Skip to content

How to get failed param name from Exception InvalidQueryArgs? #225

Open
@akshare

Description

@akshare

How can I get the failed param name for requests ie something like $e->getName()?

I want to get the failed param in order to do additional logic.

This is the current exception thrown.

Type: League\OpenAPIValidation\PSR7\Exception\Validation\InvalidQueryArgs
Message: Missing required argument "sort_by" for Request [get /systems]
File: /vendor/league/openapi-psr7-validator/src/PSR7/Exception/Validation/AddressValidationFailed.php
Line: 31

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions