{"id":17570932,"url":"https://github.com/emmanuelgautier/validate-json","last_synced_at":"2026-02-03T01:09:37.944Z","repository":{"id":258855638,"uuid":"872293431","full_name":"emmanuelgautier/validate-json","owner":"emmanuelgautier","description":"A GitHub Action that validates JSON files with JSON Schema.","archived":false,"fork":false,"pushed_at":"2024-12-14T17:05:12.000Z","size":1202,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-12-14T18:19:24.792Z","etag":null,"topics":["ajv","continuous-integration","github","github-actions","json","json-schema","json-schema-validator"],"latest_commit_sha":null,"homepage":"https://github.com/emmanuelgautier/validate-json","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/emmanuelgautier.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-14T07:30:22.000Z","updated_at":"2024-12-14T17:04:34.000Z","dependencies_parsed_at":"2024-12-14T18:19:30.921Z","dependency_job_id":"7e1ff967-1bfe-455b-ac1a-9aa57028b037","html_url":"https://github.com/emmanuelgautier/validate-json","commit_stats":{"total_commits":11,"total_committers":2,"mean_commits":5.5,"dds":0.09090909090909094,"last_synced_commit":"8f4b09870e264bff2ac60e5b2b8a93948491148d"},"previous_names":["emmanuelgautier/validate-json"],"tags_count":2,"template":false,"template_full_name":"actions/javascript-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emmanuelgautier%2Fvalidate-json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emmanuelgautier%2Fvalidate-json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emmanuelgautier%2Fvalidate-json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emmanuelgautier%2Fvalidate-json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emmanuelgautier","download_url":"https://codeload.github.com/emmanuelgautier/validate-json/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230575835,"owners_count":18247483,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ajv","continuous-integration","github","github-actions","json","json-schema","json-schema-validator"],"created_at":"2024-10-21T18:04:27.812Z","updated_at":"2026-02-03T01:09:37.937Z","avatar_url":"https://github.com/emmanuelgautier.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Validate JSON GitHub Action\n\n[![GitHub Super-Linter](https://github.com/emmanuelgautier/validate-json/actions/workflows/linter.yml/badge.svg)](https://github.com/super-linter/super-linter)\n![CI](https://github.com/emmanuelgautier/validate-json/actions/workflows/ci.yml/badge.svg)\n\nA GitHub Action that validates JSON files with JSON Schema.\n\n## Installation\n\nTo use this action, you need to create a workflow file in your repository. For\nexample, you can create a `.github/workflows/validate-json.yml` file with the\nfollowing content:\n\n```yaml\nname: Validate JSON\n\non:\n  push:\n    branches:\n      - main\n  pull_request:\n    branches:\n      - main\n\njobs:\n  validate:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout\n        uses: actions/checkout@v5\n\n      - name: Validate JSON\n        uses: emmanuelgautier/validate-json@v2\n        with:\n          files: dir/*.json\n          schema: schema.json\n```\n\n## Inputs\n\n| Input    | Description                          | Required | Default |\n| -------- | ------------------------------------ | -------- | ------- |\n| `files`  | The JSON file(s) to validate.        | `true`   |         |\n| `schema` | The JSON Schema to validate against. | `false`  |         |\n| `strict` | Enforce strict validation.           | `false`  | `false` |\n\n## Outputs\n\n| Output   | Description                          |\n| -------- | ------------------------------------ |\n| `valid`  | Whether the JSON file(s) are valid.  |\n| `errors` | The validation errors for each file. |\n\n## Schema Input Behavior\n\nThe schema input is optional and can be omitted during the validation process.\nIf the `schema` input is not provided, the action will perform a basic\nvalidation to ensure that the JSON files have the correct format. This basic\nvalidation checks for common JSON syntax errors and structure.\n\nHowever, it's **highly recommended to provide a custom JSON Schema** using the\n`schema` input. A custom JSON Schema allows you to define specific validation\nrules tailored to your JSON files. By using a custom JSON Schema, you can ensure\nthat your JSON files adhere to your desired structure and requirements.\n\n## About\n\nThis action uses [ajv](https://ajv.js.org/) to validate JSON files.\n\n## License\n\nThe action in this repository is licensed under the\n[MIT License](https://github.com/emmanuelgautier/validate-json/blob/main/LICENSE)@\n[Emmanuel Gautier](https://www.emmanuelgautier.com/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femmanuelgautier%2Fvalidate-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femmanuelgautier%2Fvalidate-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femmanuelgautier%2Fvalidate-json/lists"}