Skip to content

JSON Schema Validator

Actions
Validate JSON files against specified JSON schema
v1.0.5
Latest
Star (1)

JSON Schema Validator

A Github Action for validating JSON using specified JSON schema.

How to use it?

Create .github/workflows/<workflow_name>.yml

on:
  pull_request:
    branches:
      - master
name: Pull request workflow
jobs:
  validate_configurations:
    name: Validate configurations
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Validate any json file
        uses: mcandeia/[email protected]
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          send_comment: true
          clear_comments: true
Inputs Required Default Description
token Yes - GitHub token to access pull request details. GitHub provides one here ${{ secrets.GITHUB_TOKEN }}
send_comment No False Create a comment containing validation errors
clear_comments No False Clear previous error comment(s)

JSON Schema Validator 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

Validate JSON files against specified JSON schema
v1.0.5
Latest

JSON Schema Validator 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.