cardinalby/schema-validation-action

Validate JSON, YAML, XML against a schema

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stalelast commit Jun 27, 2024
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: cardinalby/schema-validator-action@2166123eb256fa40baef7e22ab1379708425efc7 # 3.1.1

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
schemaSchema file path or URLno
file| separated files to validate. Globs are allowedyes
fileParser| separated list of parsers used to parse the file: json, yamlnoauto
modeschemasafe validation mode: default, lax, strongnodefault
refSchemasMapschemas for resolving refs, JSON object: id -> file/urlno
refSchemasArrayschemas for resolving refs, JSON array of file/url stringsno
fixSchemasstrip unknown features from the schemanofalse
namedescription
errorType`file` or `schema` or `validation`
validation_errorError during file validation