cebe / php-openapi

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

Get request / response model definition from specifications #66

Closed Neirda24 closed 3 years ago

Neirda24 commented 4 years ago

I think it would be great to have some kind of "finder" to retrieve the model as associative array based on parameters.

For Request body we need :

For Responses we need :

It could be usefull in PHPUnit for example to retrieve the specific model and test it against jsonschema validator.

cebe commented 4 years ago

Not sure I understand what you are trying to do. Can you give an example function call and what you expect it to return?

cebe commented 3 years ago

No answer :arrow_right: closing. Happy to reopen if you explain in more detail.