Skip to content

Commit

Permalink
WIP: 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 to pass validation.
  • Loading branch information
andrew-farries committed Apr 26, 2024
1 parent d1fd240 commit 5aba8c8
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=false -s schema.json -d "./examples/*.json"
examples:
name: 'examples (pg: ${{ matrix.pgVersion }}, schema: ${{ matrix.testSchema }})'
Expand Down

0 comments on commit 5aba8c8

Please sign in to comment.