Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
akshare opened this issue Apr 24, 2024 · 0 comments
Open

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

akshare opened this issue Apr 24, 2024 · 0 comments

Comments

@akshare
Copy link

akshare commented Apr 24, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant