Skip to content

Commit

Permalink
Validate schema in non-strict mode
Browse files Browse the repository at this point in the history
Allow unrecognized properties in the schema definition. This allows the
`goJSONSchema` extension keyword.

See:

https://ajv.js.org/strict-mode.html#prohibit-ignored-keywords
  • Loading branch information
andrew-farries committed Apr 28, 2024
1 parent 7b7d900 commit 9f74b91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ jobs:

- name: Validate example migrations against JSON schema
run: |
npx -y ajv-cli --spec=draft2020 validate -s schema.json -d "./examples/*.json"
npx -y ajv-cli --spec=draft2020 validate --strict-schema=false -s schema.json -d "./examples/*.json"
examples:
name: 'examples (pg: ${{ matrix.pgVersion }}, schema: ${{ matrix.testSchema }})'
Expand Down

0 comments on commit 9f74b91

Please sign in to comment.