Skip to content

Instantly share code, notes, and snippets.

@DanukaPraneeth
Created August 2, 2020 15:35
Show Gist options
  • Save DanukaPraneeth/6284f29dc413346886cbae52069a9db6 to your computer and use it in GitHub Desktop.
Save DanukaPraneeth/6284f29dc413346886cbae52069a9db6 to your computer and use it in GitHub Desktop.
apiVersion: configuration.konghq.com/v1
kind: KongPlugin
metadata:
name: request-validator
config:
allowed_content_types:
- application/json
body_schema: '[{"firstName":{"type": "string", "required": false}},{"lastName":{"type": "string", "required": true}}]'
parameter_schema: null
verbose_response: false
version: kong
enabled: false
run_on: first
protocols:
- grpc
- grpcs
- http
- https
plugin: request-validator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment