Skip to main content

Elastic Path JSON Schema Component

This component provides actions to work with JSON Schemas.

Actions

This component has the following action.

Validate JSON Object with Schema

This action provides a way to validate the format of a given JSON Object against a given JSON Schema using the jsonschema library. The result is returned as a ValidatorResult object. The errors array field on the result will be empty if the object was successfully validated.

InputTypeDescription
JSON Object to ValidatecodeThe JSON object to validate.
JSON SchemacodeThe JSON Schema object to use for validation.
Throw Error If Validation FailsbooleanEnable this flag if you want a hard stop if the validation fails. Disable to handle the validation failure directly in your integration.
Log LevelstringThe level of component logging.