You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2.7.0
- Allow to override path for schema matching with `config.path = ->(request) { '/prefix' + request.path } ` (#349)
- Support passing in a Definition instance when registering an OAD for tests (#353)
- Fix registering multiple APIs for testing (#352)
use OpenapiFirst::Middlewares::RequestValidation, oad
355
-
356
-
# You can add ResponseValidation without any customization.
357
-
use OpenapiFirst::Middlewares::ResponseValidation, 'openapi.yaml'
358
-
```
359
-
360
-
In this case, you might want to serve APIs on `/api` while serving rendered pages on other paths which are not managed by OpenAPI schema in a single application.
361
-
362
-
You can add some lines to selectively validate only paths under `/api` while bypassing others:
0 commit comments