Skip to main content
Version: v0.18.0

Validate

Alias:Validate, SchemaValidate

Output:Array<T>

Validate that the schema is valid for all entities. Does not evaluate the entity stream. For more information on schemas please see the documentation.

ParameterTypeRequiredPositionDefault ValueSummary
EntityStreamarray<entity>✔1Entities to validate with the schema
Schemaentity✔2The Json Schema to validate.
ErrorBehaviorErrorBehavior3FailHow to behave if an error occurs.
OnInvalidentityEither this or 'Replace' must be set.A function that does something with every entity that fails validation. The actions defined in ErrorBehaviour will also happen. This function takes an entity with three properties: 'RowNumber', 'ErrorMessage', 'Location', and 'Entity' where 'Entity' contains the entity that failed to validate