From 5b1a5d0c9104311cc712fc4850d9c24824cbecc7 Mon Sep 17 00:00:00 2001 From: Stefan Binder Date: Thu, 18 May 2023 21:09:19 +0200 Subject: [PATCH] Add validation of Vega-Lite schema to build pipeline (#3061) * Add validation of Vega-Lite schema itself * Install check-jsonschema --- .github/workflows/build.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index dc3f700c4..37995c134 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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