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

APISpec now MUST find a server match or throws an exception. (WIP) #89

Closed charjr closed 1 year ago

charjr commented 1 year ago

Fixes bug where incorrect servers are accepted.

Also adds new CannotProcessRequest exception for unsupported methods. i.e. currently 'update' is not supported.

carnage commented 1 year ago

I think we need to allow for the possibility that the user doesn't care about matching the server; perhaps we can add a flag to the specification (or perhaps an alternative specification implementation) which ignores server matching entirely.