38f70cf013d56d9712ddac2b2d083706a3213489
All checks were successful
CD / Release (push) Successful in 6s
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/checkout](https://github.com/actions/checkout) | action | pinDigest | → `93cb6ef` | | [actions/setup-node](https://github.com/actions/setup-node) | action | pinDigest | → `a0853c2` | | [https://gitea.t000-n.de/t.behrendt/conventional-semantic-git-tag-increment](https://gitea.t000-n.de/t.behrendt/conventional-semantic-git-tag-increment) | action | pinDigest | → `e2d3fdb` | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi45Mi4xNCIsInVwZGF0ZWRJblZlciI6IjQyLjkyLjE0IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJhY3Rpb24iLCJkZXBzIl19--> Reviewed-on: #11 Reviewed-by: t.behrendt <t.behrendt@noreply.localhost> Co-authored-by: Renovate Bot <renovate@t00n.de> Co-committed-by: Renovate Bot <renovate@t00n.de>
Validate JSON by JSON Schema Action
A GitHub Action that automatically validates JSON files using their $schema reference. The action extracts the schema URL from the JSON file, downloads it, migrates it to the latest version, and validates the JSON against the schema.
Usage
- name: Validate JSON file
uses: your-username/validate-json-by-json-schema-action@v1
with:
json-file: "path/to/your/file.json"
Inputs
| Input | Description | Required | Default |
|---|---|---|---|
json-file |
The JSON file to validate | Yes | - |
How it works
- Extracts the
$schemaURL from the specified JSON file - Downloads the schema from the URL
- Migrates the schema to the latest version using
ajv-cli - Validates the JSON file against the schema
- Exits successfully if validation passes, fails if validation fails
Requirements
- The JSON file must contain a
$schemaproperty with a valid URL - The schema URL must be accessible via HTTP/HTTPS
- The action uses
ajv-clifor validation with--strict=falsemode