Skip to content

FormUrlencodedValidator incorrectly expects object for the schema #214

Open
@mpviau

Description

@mpviau

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.

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