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
| Element | Cardinality | Description |
|---|---|---|
| error | 0..1 | Configures a JSON Schema that validates JSON-RPC error objects. |
| methods | 0..1 | Configures per-method JSON Schema validation rules. |