Skip to content

Commit

Permalink
Add validation of Vega-Lite schema to build pipeline (#3061)
Browse files Browse the repository at this point in the history
* Add validation of Vega-Lite schema itself

* Install check-jsonschema
  • Loading branch information
binste committed May 18, 2023
1 parent 62ca5e3 commit 5b1a5d0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,12 @@ jobs:
run: |
# pip install vl-convert-python
pytest -m save_engine --doctest-modules tests
- name: Validate Vega-Lite schema
run: |
# We install all 'format' dependencies of jsonschema as check-jsonschema
# only does the 'format' checks which are installed.
# We can always use the latest jsonschema version here.
# uri-reference check is disabled as the URIs in the Vega-Lite schema do
# not conform RFC 3986.
pip install 'jsonschema[format]' check-jsonschema --upgrade
check-jsonschema --check-metaschema altair/vegalite/v5/schema/vega-lite-schema.json --disable-formats uri-reference

0 comments on commit 5b1a5d0

Please sign in to comment.