cebe / php-openapi

Read and write OpenAPI yaml/json files and make the content accessible in PHP objects.
MIT License
472 stars 91 forks source link

Adds extra validation tests for Parameters #53

Closed lezhnev74 closed 4 years ago

lezhnev74 commented 4 years ago

Why this PR is here. I am working on validation for incoming HTTP requests, containing serialized parameters: https://github.com/thephpleague/openapi-psr7-validator/issues/2

It looks like this package should be responsible for validating serialization styles defined in the specifications. It should prevent wrong styles chosen. So the abovementioned package can safely rely on the specification to use a correct style for deserialization.

New tests in ParameterTest.php:

lezhnev74 commented 4 years ago

I am not sure why the CI failed...

cebe commented 4 years ago

Thank you!