Skip to content

Validate JSON Schemas

Actions
Find json files and validate them agains $schema
v1.1.0
Latest
Star (8)

Validate JSON Action

Validate JSON files against their $schema.

Usage:

name: Validate JSON

jobs:
  validate:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - name: Validate JSON
        uses: walbo/[email protected]
        with:
          files: folder/**/*.json

          # optional, defaults to `$schema` in your JSON file
          schema: schemas/schema.json

          # optional, default: draft-04
          schema-version: draft-04

          # optional, default: false
          print-valid-files: false

          # optional, default: false
          fail-on-missing-schema: false

          # optional, default: true
          strict: true

          # optional, default: false
          allow-matching-properties: false

          # optional, default: true
          allow-union-types: true

Validate JSON Schemas is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Find json files and validate them agains $schema
v1.1.0
Latest

Validate JSON Schemas is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.