params

Version

Configures JSON Schema validation for the JSON-RPC params member of one method.

Use either location to load an external schema or schema to define the schema inline.

Syntax

params:
location: <string>
schema: {}
params:
  location: <string>
  schema: {}

Attributes

NameRequiredDefaultDescriptionExamples
locationfalse-

References the JSON Schema by path or URL.

Configure either location or schema, but not both.

classpath:/json/rpc/echo-params.schema.json

Child Structure

ElementCardinalityDescription
schema0..1Defines the JSON Schema inline.

Can be used in