Configures JSON Schema validation for successful JSON-RPC responses of one method.
The schema is applied to the JSON-RPC result value. Use either location or an inline schema.
Syntax
response:
location: <string>
schema: {}
response:
location: <string>
schema: {}
Sample
<api port="2000" method="POST">
<response>
<static>POST is blocked!</static>
</response>
<return statusCode="405"/>
</api>
<api port="2000" method="POST">
<response>
<static>POST is blocked!</static>
</response>
<return statusCode="405"/>
</api>
Attributes
| Name | Required | Default | Description | Examples |
|---|---|---|---|---|
| location | false | - | References the JSON Schema by path or URL. Configure either | classpath:/json/rpc/echo-params.schema.json |
Child Structure
| Element | Cardinality | Description |
|---|---|---|
| schema | 0..1 | Defines the JSON Schema inline. |