Upload spec for validationv3.1+

Upload an API spec to validate requests against.

The config.api_spec field accepts JSON or URL-encoded YAML. You must provide the entire contents of the OpenAPI spec. The parameter doesn’t accept file paths or URLs.

Set up the plugin

Add this section to your declarative configuration file:

_format_version: "3.0"
plugins:
  - name: oas-validation
    config:
      api_spec: contents of entire API spec go here
      verbose_response: true
Copied to clipboard!

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!