{"id":18739364,"url":"https://github.com/neilpa/yajsv","last_synced_at":"2025-04-12T19:53:41.892Z","repository":{"id":42031280,"uuid":"236075733","full_name":"neilpa/yajsv","owner":"neilpa","description":"Yet Another JSON Schema Validator [CLI]","archived":false,"fork":false,"pushed_at":"2023-11-21T19:18:21.000Z","size":58,"stargazers_count":95,"open_issues_count":10,"forks_count":12,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-12T19:53:32.283Z","etag":null,"topics":["cli","go","golang","json","json-schema","yaml"],"latest_commit_sha":null,"homepage":"https://json-schema.org/","language":"Go","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/neilpa.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-24T20:11:58.000Z","updated_at":"2025-03-16T22:12:18.000Z","dependencies_parsed_at":"2024-06-19T00:03:49.469Z","dependency_job_id":"d34a5aef-a049-423b-9f71-9b2586a13b61","html_url":"https://github.com/neilpa/yajsv","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neilpa%2Fyajsv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neilpa%2Fyajsv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neilpa%2Fyajsv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neilpa%2Fyajsv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neilpa","download_url":"https://codeload.github.com/neilpa/yajsv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248625513,"owners_count":21135513,"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":["cli","go","golang","json","json-schema","yaml"],"created_at":"2024-11-07T15:33:37.478Z","updated_at":"2025-04-12T19:53:41.872Z","avatar_url":"https://github.com/neilpa.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# yajsv\n\n[![CI](https://github.com/neilpa/yajsv/workflows/CI/badge.svg)](https://github.com/neilpa/yajsv/actions/)\n\nYet Another [JSON-Schema](https://json-schema.org) Validator. Command line tool for validating JSON and/or YAML documents against provided schemas.\n\nThe real credit goes to [xeipuuv/gojsonschema](https://github.com/xeipuuv/gojsonschema) which does the heavy lifting behind this CLI.\n\n## Installation\n\nSimply use `go install` to install\n\n```\ngo install github.com/neilpa/yajsv\n```\n\nThere are also pre-built static binaries for Windows, Mac and Linux on the [releases tab](https://github.com/neilpa/yajsv/releases/latest).\n\n## Usage\n\nYajsv validates JSON (and/or YAML) documents against a JSON-Schema, providing a status per document:\n\n  * pass: Document is valid relative to the schema\n  * fail: Document is invalid relative to the schema\n  * error: Document is malformed, e.g. not valid JSON or YAML\n\nThe 'fail' status may be reported multiple times per-document, once for each schema validation failure.\n\nBasic usage example\n\n```\n$ yajsv -s schema.json document.json\ndocument.json: pass\n```\n\nOr with both schema and doc in YAML.\n\n```\n$ yajsv -s schema.yml document.yml\ndocument.yml: pass\n```\n\nWith multiple schema files and docs\n\n```\n$ yajsv -s schema.json -r foo.json -r bar.yaml doc1.json doc2.yaml\ndoc1.json: pass\ndoc2.json: pass\n```\n\nOr with file globs (note the quotes to side-step shell expansion)\n\n```\n$ yajsv -s main.schema.json -r '*.schema.json' 'docs/*.json'\ndocs/a.json: pass\ndocs/b.json: fail: Validation failure message\n...\n```\n\nNote that each referenced schema is assumed to be a path on the local filesystem. These are not\nURI references to either local or external files.\n\nSee `yajsv -h` for more details\n\n## License\n\n[MIT](/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneilpa%2Fyajsv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneilpa%2Fyajsv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneilpa%2Fyajsv/lists"}