Skip to content

Commit

Permalink
fix: minor improvements to policies.yaml validation (datreeio#624)
Browse files Browse the repository at this point in the history
* refactor: move extract errorPrefix to top of validatePoliciesYaml

* test: remove commented out test

* test: add test case for invalid json

* fix: adjust schema key in error message

* fix: add customRule index to error message

* refactor: rename function

* refactor: use pipe notation in jsonSchema field

* fix: duplicate defaultRules.yaml to 2 places (will be removed)

* refactor: move customRulesIdentifier validation logic to one iteration
  • Loading branch information
royhadad authored May 16, 2022
1 parent 55b0f2e commit d27afba
Show file tree
Hide file tree
Showing 5 changed files with 1,631 additions and 43 deletions.
Loading

0 comments on commit d27afba

Please sign in to comment.