README
@shanzhai/validate-json-schema-step
A Shanzhai step which validates a JSON value against a JSON schema.
Usage
If within a trigger's event handler an instance of ValidateJsonSchemaStep
similar to the following were to be returned:
new ValidateJsonSchemaStep(
`A description of the operation being performed`,
new InputForAJsonSchema(),
new InputForAValueToValidate(),
new OutputForTheValidatedValue(),
);
The value which be checked against the JSON schema. If it passes, the value will be copied to the output. If it fails, an error is raised.
Dependencies
This package has the following runtime dependencies:
Name | Version |
---|---|
jsonschema |
Peer Dependencies
This package has no runtime peer dependencies (it does not expect any other packages to be installed alongside itself).