Parameters
See plugin common configurations for configuration options available to all plugins.
spec
string
required
String containing the Open API spec.
verbose_errors
boolean
default:
falseIf true, respond with detailed error if the validation fails.
skip_request_body_validation
boolean
default:
falseIf true, skip the validation of request body.
skip_request_header_validation
boolean
default:
falseIf true, skip the validation of request header.
skip_query_params_validation
boolean
default:
falseIf true, skip the validation of query parameters.
skip_path_params_validation
boolean
default:
falseIf true, skip the validation of path parameters.
reject_if_not_match
boolean
default:
trueIf false, requests that fail OAS validation are logged as error but the request is still forwarded to the upstream service.
Available in API7 Enterprise from 3.9.6 and not in APISIX.
rejection_status_code
integer
default:
400vaild vaule:
400–599
HTTP status code to return when request validation fails. For example, set to
422to distinguish semantic validation errors (Unprocessable Entity) from malformed request syntax (400Bad Request). Only effective whenreject_if_not_matchistrue.Available in API7 Enterprise from version 3.9.8. Not available in APISIX yet.