Request Validation Configuration
Parameters
See plugin common configurations for configuration options available to all plugins.
-
header_schema—object· optionalSchema for request header.
At lease one of the
header_schemaandbody_schemashould be configured. -
body_schema—object· optionalSchema for request body.
At lease one of the
header_schemaandbody_schemashould be configured. -
rejected_code—integer· optional · default:400Valid values: between 200 and 599 inclusive
Status code to return when rejecting requests.
-
rejected_msg—string· optionalMessage to return when rejecting requests.
-
max_req_body_size—integer· optional · default:67108864Valid values: greater than or equal to 1
Maximum request body size in bytes read when
body_schemais configured. A larger body is rejected withrejected_code, which defaults to400. This field has no effect when onlyheader_schemais configured. Introduced in API7 Enterprise 3.9.17 and 3.10.4, and APISIX 3.18.0.