| 1 |
# ajv errors |
| 2 |
|
| 3 |
```json |
| 4 |
[ |
| 5 |
{ |
| 6 |
"instancePath": "/argument_specs/weather_check", |
| 7 |
"keyword": "required", |
| 8 |
"message": "must have required property 'options'", |
| 9 |
"params": { |
| 10 |
"missingProperty": "options" |
| 11 |
}, |
| 12 |
"schemaPath": "#/properties/argument_specs/patternProperties/%5E%5Ba-zA-Z_%5D%5Ba-zA-Z0-9_%5D*%24/required" |
| 13 |
}, |
| 14 |
{ |
| 15 |
"instancePath": "/argument_specs/weather_check", |
| 16 |
"keyword": "required", |
| 17 |
"message": "must have required property 'examples'", |
| 18 |
"params": { |
| 19 |
"missingProperty": "examples" |
| 20 |
}, |
| 21 |
"schemaPath": "#/properties/argument_specs/patternProperties/%5E%5Ba-zA-Z_%5D%5Ba-zA-Z0-9_%5D*%24/required" |
| 22 |
} |
| 23 |
] |
| 24 |
``` |
| 25 |
|
| 26 |
# check-jsonschema |
| 27 |
|
| 28 |
stdout: |
| 29 |
|
| 30 |
```json |
| 31 |
{ |
| 32 |
"status": "fail", |
| 33 |
"successes": [], |
| 34 |
"errors": [ |
| 35 |
{ |
| 36 |
"filename": "negative_test/play_argspec/site.meta.yaml", |
| 37 |
"path": "$.argument_specs.weather_check", |
| 38 |
"message": "'options' is a required property", |
| 39 |
"has_sub_errors": false |
| 40 |
}, |
| 41 |
{ |
| 42 |
"filename": "negative_test/play_argspec/site.meta.yaml", |
| 43 |
"path": "$.argument_specs.weather_check", |
| 44 |
"message": "'examples' is a required property", |
| 45 |
"has_sub_errors": false |
| 46 |
} |
| 47 |
], |
| 48 |
"parse_errors": [] |
| 49 |
} |
| 50 |
``` |