error

Version

Configures a JSON Schema that validates JSON-RPC error objects.

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

Syntax

error:
location: <string>
schema: {}
error:
  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