From b377ddebffbef621fa6b6556a54483579b24d330 Mon Sep 17 00:00:00 2001 From: Stephen Rosen Date: Thu, 18 Jan 2024 12:29:45 -0600 Subject: [PATCH] chore: add linting CI step for the JSON Schema This is written to use `check-jsonschema` on the (current) latest version (0.27.3). It checks that the JSON Schema published in the docs is valid under its declared metaschema (`$schema`). --- .github/workflows/lint.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 6edc843a..089706d7 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -22,3 +22,18 @@ jobs: uses: golangci/golangci-lint-action@v3 with: version: v1.55.2 + + lint-jsonschema: + runs-on: ubuntu-latest + steps: + - uses: actions/setup-python@v5 + with: + python-version: 3.12 + + - uses: actions/checkout@v3 + + - name: install check-jsonschema + run: python -m pip install 'check-jsonschema==0.27.3' + + - name: check-jsonschema (metaschema) + run: check-jsonschema --check-metaschema docs/static/schema.json