Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schema Validation Against Multiple Files #184

Open
tohch4 opened this issue Apr 9, 2021 · 1 comment
Open

Schema Validation Against Multiple Files #184

tohch4 opened this issue Apr 9, 2021 · 1 comment

Comments

@tohch4
Copy link

tohch4 commented Apr 9, 2021

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

@Grokzen
Copy link
Owner

Grokzen commented Apr 17, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants