Request Validator

Enterprise only

Validate a request pathv1.0+

Configure the plugin to use the draft4 validator to check that the request path contains a status_code parameter with a number value.

Set up the plugin

Add this section to your kong.yaml configuration file:

kong.yaml
_format_version: "3.0"
plugins:
  - name: request-validator
    config:
      version: draft4
      parameter_schema:
      - name: status_code
        in: path
        required: true
        schema: '{"type": "number"}'
        style: simple
        explode: false

Did this doc help?

Something wrong?

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!