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

FormUrlencodedValidator incorrectly expects object for the schema #214

Open
mpviau opened this issue Dec 21, 2023 · 0 comments
Open

FormUrlencodedValidator incorrectly expects object for the schema #214

mpviau opened this issue Dec 21, 2023 · 0 comments

Comments

@mpviau
Copy link

mpviau commented Dec 21, 2023

Using oneOf on a schema for a form-url-encoded body does not work.

It throws this exception:

vendor/league/openapi-psr7-validator/src/PSR7/Validators/BodyValidator/FormUrlencodedValidator.php(54): League\OpenAPIValidation\Schema\Exception\TypeMismatch::becauseTypeDoesNotMatch(Array, NULL)

It look like the check has been copy/pasted from the multi part body validator, which I am not using.

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