Validator V1 (Deprecated)
Know the component and how to use it.
The Validator V1 feature is deprecated and no longer updated. Please refer to the document with the most recent version of the feature: Validator V2.
Validator has the function of analyzing an input JSON and comparing it to the provided schema, so a validation is created inside its pipeline and interrupts the flow if the structure is not aligned with what is declared.
JSON Schema is a vocabulary widely known in the market, which allows the validation of JSON documentation. For more information about it, refer to the official JSON documentation.
Parameters
Take a look at the configuration options for the component. Parameters supported by Double Braces expressions are marked with (DB)
.
JSON Schema
JSON Schema definition that validates JSON.
N/A
JSON
Messages flow
Input
The component accepts JSON-type input messages to validate.
Output
The component does not change any information of the input message when JSON validator is aligned with JSON Schema. Therefore, the message returns to the next component or is used as the final return when the component is the last step of the pipeline.
Validator in action
See below how the component behaves in specific situations and its configuration.
Informing a schema and sending a JSON that doesn’t match the requirements
Configure the component with the following schema:
Then, send the following JSON to the component:
Input
Output
Informing a schema and sending a JSON that matches the requirements
Configure the component with the following schema:
Then send the following JSON to the component:
Input
Output
Last updated