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 GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
filesWhitespace/newline-separated file paths or globs to validate. If empty, reads from stdin.no""
schemaPath or URL to the JSON Schema. If omitted, the $schema declared inside each file is used.no""
reportReport format: text, json, yaml, junit, or sarif.notext
report-fileWrite the report to this file instead of stdout (required to upload SARIF).no""
schema-overrideIf true, use the `schema` input even when a file declares its own $schema.nofalse
http-timeoutTimeout for fetching remote schemas, e.g. 10s.no""
ignore-ssl-errorsIf true, ignore SSL certificate errors when fetching remote schemas.nofalse
colorColored console output. Off by default for clean CI logs.nofalse
extra-argsAdditional raw arguments passed straight through to the CLI.no""
fail-on-errorFail the step when validation finds errors. Set false to continue (e.g. to upload SARIF first).notrue
imageThe Spring Boot buildpacks image to run. Pin to a version tag for reproducibility.noghcr.io/alexmond/yj-schema-validator:latest
namedescription
exit-codeValidator exit code (0 = all valid, 1 = validation errors).
report-filePath to the written report file, when report-file was set.