File tree Expand file tree Collapse file tree
cmem_plugin_validation/validate_entities Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4545The used JSON Schema needs to be provided as a JSON Dataset in the project.
4646
4747### Input Modes
48+
4849The plugin supports two input modes for validation:
50+
49511. **Validate Entities**: Validates entities received from the input port in the workflow.
50- 2. **Validate JSON Dataset**: Validates a JSON dataset stored in the project.
52+ 2. **Validate JSON Dataset**: Validates a JSON dataset stored in the project.
5153 - If the JSON dataset is a JSON array, the schema will validate each object inside the array.
5254 - If the JSON dataset is a JSON object, it will be validated against the schema directly.
5355
5456Validated data objects can be sent to an output port for further processing in the workflow
5557or saved in a JSON dataset in the project.
5658
5759### Output Modes
58- 1. **Valid JSON objects sent to Output Port**: Valid JSON objects can be sent as entities to the output port.
59- 2. **Saved in JSON Dataset**: Valid JSON objects can be stored in a specified JSON dataset in the project.
60+
61+ 1. **Valid JSON objects sent to Output Port**: Valid JSON objects can be sent as entities
62+ to the output port.
63+ 2. **Saved in JSON Dataset**: Valid JSON objects can be stored in a specified JSON dataset
64+ in the project.
6065
6166### Error Handling
67+
6268The task can either:
69+
6370- Fail instantly if there is a data violation, halting the workflow.
64- - Provide warnings in the workflow report, allowing follow-up tasks to run based on the validated data.
71+ - Provide warnings in the workflow report, allowing follow-up tasks to run based on the
72+ validated data.
6573
6674The error handling behavior is configurable through the `Fail on violations` parameter.
67-
6875"""
6976
7077
You can’t perform that action at this time.
0 commit comments