alexmond/YJ Schema Validator
Validate YAML/JSON files against JSON Schema (drafts 2019-09/2020-12). Emits text, JSON, YAML, JUnit, or SARIF.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| files | Whitespace/newline-separated file paths or globs to validate. If empty, reads from stdin. | no | "" |
| schema | Path or URL to the JSON Schema. If omitted, the $schema declared inside each file is used. | no | "" |
| report | Report format: text, json, yaml, junit, or sarif. | no | text |
| report-file | Write the report to this file instead of stdout (required to upload SARIF). | no | "" |
| schema-override | If true, use the `schema` input even when a file declares its own $schema. | no | false |
| http-timeout | Timeout for fetching remote schemas, e.g. 10s. | no | "" |
| ignore-ssl-errors | If true, ignore SSL certificate errors when fetching remote schemas. | no | false |
| color | Colored console output. Off by default for clean CI logs. | no | false |
| extra-args | Additional raw arguments passed straight through to the CLI. | no | "" |
| fail-on-error | Fail the step when validation finds errors. Set false to continue (e.g. to upload SARIF first). | no | true |
| image | The Spring Boot buildpacks image to run. Pin to a version tag for reproducibility. | no | ghcr.io/alexmond/yj-schema-validator:latest |
Outputs
| name | description |
|---|---|
| exit-code | Validator exit code (0 = all valid, 1 = validation errors). |
| report-file | Path to the written report file, when report-file was set. |