Mule JSON Schema
Validator
By – Ankush Sharma
What is schema validator?
 A schema validator is a mechanism which is used to validate some data against its
defined schema. That schema may be from a web address, from file system or
anywhere.
Mule JSON Schema Validator
The JSON Schema validator evaluates JSON
payloads at runtime and verifies that they match
a referenced JSON schema. You can match
against schemas that exist in a local file or in an
external URI. If the validation fails, an exception
is raised with feedback about what went wrong
and a reference to the original invalid payload.
Mule JSON Schema Validator – Configuration
Wizard (General Tab)(Cont.)
Mule JSON Schema Validator –
Configuration Wizard (General Tab)
 Following are the properties on general tab –
 Display Name – The display name of the connector used for display purposes in Mule
flow.
 Schema Location – Location of the schema. It may be a web URL, file system URL etc.
 Dereferencing - Draft v4 defines two dereferencing modes, canonical (default) and inline.
This attribute is ignored if validating a v3 draft.
Mule JSON Schema Validator – Configuration
Wizard (Notes and Meta-data Tab)
 Notes Tab – Notes tab is used to add special notes for Mule JSON Schema
validator filter.
 Meta-data Tab – This tab is used to add Meta-data to Mule JSON schema validator
component.
Flow screenshot
Thank You!

Mule JSON Schema Validator

  • 1.
  • 2.
    What is schemavalidator?  A schema validator is a mechanism which is used to validate some data against its defined schema. That schema may be from a web address, from file system or anywhere.
  • 3.
    Mule JSON SchemaValidator The JSON Schema validator evaluates JSON payloads at runtime and verifies that they match a referenced JSON schema. You can match against schemas that exist in a local file or in an external URI. If the validation fails, an exception is raised with feedback about what went wrong and a reference to the original invalid payload.
  • 4.
    Mule JSON SchemaValidator – Configuration Wizard (General Tab)(Cont.)
  • 5.
    Mule JSON SchemaValidator – Configuration Wizard (General Tab)  Following are the properties on general tab –  Display Name – The display name of the connector used for display purposes in Mule flow.  Schema Location – Location of the schema. It may be a web URL, file system URL etc.  Dereferencing - Draft v4 defines two dereferencing modes, canonical (default) and inline. This attribute is ignored if validating a v3 draft.
  • 6.
    Mule JSON SchemaValidator – Configuration Wizard (Notes and Meta-data Tab)  Notes Tab – Notes tab is used to add special notes for Mule JSON Schema validator filter.  Meta-data Tab – This tab is used to add Meta-data to Mule JSON schema validator component.
  • 7.
  • 8.