lyubick/YAML/JSON validation against JSON Schema

Validates YAML or JSON file(s) against provided JSON Schema file

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stalelast commit Aug 6, 2024
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: lyubick/action-yaml-schema-validator@bab9fd890ab3226a8035b2647e785693afb7d44e # v4

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

namedescriptionrequireddefault
json-schema-fileJSON Schema file or HTTPS URL to file to validate against. In case, mapping is provided, schema provided here will be used as a default schema. yes
yaml-json-file-dirComma separated list of YAML or JSON files and/or directories that require validation. yes
recursiveTrue/False, provide True if recursive scan for YAML or JSON files in directory required. nofalse
ignore-emptyTrue/False, provide False if error should be raised on empty files, otherwise empty files will be ignored. notrue
schema-mappingFiles or directories with schema mapping, mapped using `->`. Multiple mappings can be defined separating each mapping by comma. no""

no outputs