schemaValidation

Version

Configures JSON Schema validation for JSON-RPC request params, successful responses, and error responses.

Under methods, each key is matched against the exact JSON-RPC method value. For every method, params and response can define either a schema location or an inline schema.

The optional error entry validates JSON-RPC error objects returned by the upstream service.

Syntax

schemaValidation:
error: {}
methods: {}
schemaValidation:
  error: {}
  methods: {}

Child Structure

ElementCardinalityDescription
error0..1Configures a JSON Schema that validates JSON-RPC error objects.
methods0..1Configures per-method JSON Schema validation rules.

Can be used in