Open lezhnev74 opened 5 years ago
To track progress: @samuelnogueira implemented JSON parameter serialization in #43
Did you know, by default PHP would override get arguments with the same name. However it is allowed in general by OpenAPI spec.
For get parameters like ?id=3&id=4&id=5
, the value of $_GET
would be id=5
. Yet, $_SERVER['REQUEST_URI']
still would contain the initial query string.
I think, query string discovery is beyond this package's responsibility, it works with what it is given (psr-7 object).
Quick update: awesome @cebe merged the pending PR and I am ready to move to the next step here. I will review https://github.com/thephpleague/openapi-psr7-validator/pull/49 and see how this branch fits in.
Just merged #72 with support for some serializaition styles
Currently, the package does not support serialization of parameters.
This ticket is to track efforts for adding serialization support to the package.
Docs:
https://swagger.io/docs/specification/serialization/ https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#support-for-x-www-form-urlencoded-request-bodies