Skip to content

Commit

Permalink
validate all examples
Browse files Browse the repository at this point in the history
  • Loading branch information
cportele committed Mar 7, 2024
1 parent 9fee6ce commit 2a60335
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cql2/standard/schema/examples/json/validate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh

# validation using https://www.npmjs.com/package/ajv-cli

# validate all examples
for f in *.json
do
ajv validate -s "../../cql2.json" --spec=draft2020 --validateFormats=false --strict=true --errors=no -d $f
done

0 comments on commit 2a60335

Please sign in to comment.