The JSON Schema Validator component performs bean validation of the message body.
URI Syntax: json-validator:resourceUri
Path parameters
Name | Description | Default | Type |
|---|---|---|---|
resourceUri (producer) | (required) Path to the resource. You can prefix with: classpath, file, http, ref or bean. | — | String |
The flow starts when a POST request is received.
Logs the received JSON to myLogger log (before validation).
Validates the JSON against the schema defined in my-json-schema.json (if invalid, throws exception).
Logs confirmation to myLogger log (after successful validation).

We use cookies to enhance your experience on our site. By continuing to browse, you agree to our use of cookies.Learn more