pykwalify
pykwalify copied to clipboard
Schema Validation Against Multiple Files
Environment
- PyKwalify version: 1.8.0
- Python version: CPython 3.9.0
Proposed Functionality
Allow schema validation for multiple files at once.
pykwalify \
--strict-rule-validation \
--schema-file a_schema.yaml \
--data-files validate1.yaml validate2.yaml validate3.yaml
Use Case
Simplify argument building in automation harnesses for CI and CD environment
There used to be a reason why i did not do this. I think it could have been to the complexity where a user might assume that when providing multiple data and schema files and how they interact and what validates against what. Extending the schema parts was put in place before allowing for multiple data files but at the same time i agree that be able to provide both types multiple times and just group all schema:s and run it against all different data files. I will look into it