diff --git a/.github/workflows/json-schema.yml b/.github/workflows/json-schema.yml new file mode 100644 index 0000000..18dc53b --- /dev/null +++ b/.github/workflows/json-schema.yml @@ -0,0 +1,20 @@ +name: JSON Schema Validation +on: [pull_request] +jobs: + validate-json-schema: + name: JSON Schema Check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Check if json schema was changed + id: check-for-changed-schemas + uses: tj-actions/changed-files@v41 + with: + files: | + json-schema/*/*.json + - name: Validate JSON Schema files + if: steps.check-for-changed-schemas.outputs.any_changed == 'true' + uses: cardinalby/schema-validator-action@v3 + with: + file: "json-schema/*/*.json" + schema: https://json-schema.org/draft/2020-12/schema diff --git a/.github/workflows/markdown.yml b/.github/workflows/markdown.yml new file mode 100644 index 0000000..9574ab6 --- /dev/null +++ b/.github/workflows/markdown.yml @@ -0,0 +1,23 @@ +name: Markdown Link Validation +on: [pull_request] +jobs: + markdown-link-check: + name: Markdown Link Check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Check if spec.md was changed + id: check-for-changed-spec + uses: tj-actions/changed-files@v41 + with: + files: | + spec.md + - name: Validate Markdown Links + uses: gaurav-nelson/github-action-markdown-link-check@v1 + if: steps.check-for-changed-spec.outputs.any_changed == 'true' + with: + use-quiet-mode: "yes" + use-verbose-mode: "yes" + config-file: "mlc_config.json" + file-path: ./spec.md + max-depth: 3 diff --git a/json-schema/datablock/format.blend.json b/json-schema/datablock/format.blend.json index 3ebd34f..d9d6c5e 100644 --- a/json-schema/datablock/format.blend.json +++ b/json-schema/datablock/format.blend.json @@ -10,7 +10,7 @@ "string", "null" ], - "pattern": "^[0-9]+\\.[0-9]+)\\.[0-9]+$" + "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$" }, "is_asset": { "type": [ diff --git a/json-schema/template/meta.json b/json-schema/template/meta.json index 10e6d63..69f41db 100644 --- a/json-schema/template/meta.json +++ b/json-schema/template/meta.json @@ -31,10 +31,10 @@ "string", "null" ] - }, - "required": [ - "kind", - "version" - ] - } + } + }, + "required": [ + "kind", + "version" + ] } \ No newline at end of file