method

Version

Defines the JSON Schema validation rules for one exact JSON-RPC method name.

Use params to validate the request payload and response to validate successful upstream responses.

Syntax

json-rpc-method-schema:
params: {}
response: {}
json-rpc-method-schema:
  params: {}
  response: {}

Child Structure

ElementCardinalityDescription
params0..1Validates the JSON-RPC params member for this method.
response0..1Validates the successful JSON-RPC result payload for this method.

Can be used in