hotmeteor / spectator

OpenAPI testing for PHP
MIT License
285 stars 53 forks source link

Improve validation and casting of request parameters #188

Closed bastien-phi closed 8 months ago

bastien-phi commented 8 months ago

Fixes #187

Array query parameters containing objects are not correctly validated because the validator requires the objects to be actual objects and not associative arrays.

The parameter value is now correctly casted.

I also needed to improve parameter casting in order to recursively cast the parameter (in case of objects and arrays). It is not perfect but it's better than before. We could improve it if needed in the future.

bastien-phi commented 8 months ago

@jarrodparkes Can you take a look at this ? Adam is on vacation this week and afk