pykwalify icon indicating copy to clipboard operation
pykwalify copied to clipboard

Schema Validation Against Multiple Files

Open tohch4 opened this issue 5 years ago • 1 comments

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

tohch4 avatar Apr 09 '21 02:04 tohch4

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

Grokzen avatar Apr 17 '22 12:04 Grokzen