8

Click here to load reader

Mule JSON Schema Validator

Embed Size (px)

Citation preview

Page 1: Mule JSON Schema Validator

Mule JSON Schema ValidatorBy – Ankush Sharma

Page 2: Mule JSON Schema Validator

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.

Page 3: Mule JSON Schema Validator

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.

Page 4: Mule JSON Schema Validator

Mule JSON Schema Validator – Configuration Wizard (General Tab)(Cont.)

Page 5: Mule JSON Schema Validator

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.

Page 6: Mule JSON Schema Validator

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.

Page 7: Mule JSON Schema Validator

Flow screenshot

Page 8: Mule JSON Schema Validator

Thank You!