membrane-php / membrane-core

Membrane is a general purpose input validation library, supports both PHP Attributes and OpenAPI specifications
Other
1 stars 2 forks source link

Support "explode":"true" #115

Open charjr opened 1 year ago

charjr commented 1 year ago

Issue

Currently Membrane only supports "explode":"false" due to the way in which PHP parses query strings.

This may require creating our own query string parser.

Work being done on this so far:

https://github.com/membrane-php/openapi-reader/pull/7 This will check for conflicting styles, if there are not conflicting styles then we do not need to check (and consequently throw exceptions) on explode: true

Once this is complete, we will need to use our own QueryStringToArray filter to parse query strings as opposed to the built-in php function which relies on square brackets.