cardinalby/schema-validation-action
Validate JSON, YAML, XML against a schema
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stalelast commit Jun 27, 2024
- License
- MIT
Pinned Snippet
uses: cardinalby/schema-validator-action@2166123eb256fa40baef7e22ab1379708425efc7 # 3.1.1tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| schema | Schema file path or URL | no | — |
| file | | separated files to validate. Globs are allowed | yes | — |
| fileParser | | separated list of parsers used to parse the file: json, yaml | no | auto |
| mode | schemasafe validation mode: default, lax, strong | no | default |
| refSchemasMap | schemas for resolving refs, JSON object: id -> file/url | no | — |
| refSchemasArray | schemas for resolving refs, JSON array of file/url strings | no | — |
| fixSchemas | strip unknown features from the schema | no | false |
Outputs
| name | description |
|---|---|
| errorType | `file` or `schema` or `validation` |
| validation_error | Error during file validation |