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.
Parameter | Type | Required | Position | Default Value | Summary |
---|---|---|---|---|---|
EntityStream | array<entity> | ✔ | 1 | Entities to validate with the schema | |
Schema | entity | ✔ | 2 | The Json Schema to validate. | |
ErrorBehavior | ErrorBehavior | 3 | Fail | How to behave if an error occurs. | |
OnInvalid | entity | Either 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 |