Flags
| Flag | Default | Description |
|---|---|---|
-i · --input <path> | — | ScreenJSON file to validate. Required. |
--strict | false | Exit with code 1 when the document has validation errors. |
--verbose | false | Print the schema version used. |
Exit codes
| Code | Meaning |
|---|---|
0 | Document is valid, or invalid but --strict was not set. |
1 | Document is invalid and --strict was set, or a runtime error occurred. |
Examples
Output format
Success:1 under --strict):
Validator used
The validator uses the schema version bundled with the binary. The current version is reported with--verbose. The same schema is available at https://screenjson.com/schema.json for use with any external validator (Ajv, jsonschema, gojsonschema).