Skip to content

Commit f32b326

Browse files
committed
fix linter issues
1 parent 77bef7f commit f32b326

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

  • cmem_plugin_validation/validate_entities

cmem_plugin_validation/validate_entities/task.py

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,26 +45,33 @@
4545
The used JSON Schema needs to be provided as a JSON Dataset in the project.
4646
4747
### Input Modes
48+
4849
The plugin supports two input modes for validation:
50+
4951
1. **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
5456
Validated data objects can be sent to an output port for further processing in the workflow
5557
or 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+
6268
The 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
6674
The error handling behavior is configurable through the `Fail on violations` parameter.
67-
6875
"""
6976

7077

0 commit comments

Comments
 (0)