PhoenixSwagger.Plug.Validate (phoenix_swagger v0.8.3) View Source
A plug to automatically validate all requests in a given scope. Please make sure to:
- load Swagger specs at appliction start with
PhoenixSwagger.Validator.parse_swagger_schema/1
- set
conn.private.phoenix_swagger.valid
totrue
to skip validation
Link to this section Summary
Link to this section Functions
Plug.init callback
Options:
:validation_failed_status
the response status to set when parameter validation fails, defaults to 400.