1. Home
  2. ...
  3. Data Transformation and Validation
  4. c JSON Schema Validator

c JSON Schema Validator

Available connectors

The JSON Schema Validator component performs bean validation of the message body.

URI Syntax: json-validator:resourceUri

Main fields

Path parameters

Name
Description
Default
Type
resourceUri (producer)(required) Path to the resource. You can prefix with: classpath, file, http, ref or bean.—String

Example

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).

cURL

Result

How happy are you with this page?

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