| 1 | # ajv errors |
| 2 | |
| 3 | ```json |
| 4 | [ |
| 5 | { |
| 6 | "instancePath": "/platforms/0/networks/0", |
| 7 | "keyword": "type", |
| 8 | "message": "must be object", |
| 9 | "params": { |
| 10 | "type": "object" |
| 11 | }, |
| 12 | "schemaPath": "#/$defs/platform-network/type" |
| 13 | }, |
| 14 | { |
| 15 | "instancePath": "/platforms/0/networks/1", |
| 16 | "keyword": "type", |
| 17 | "message": "must be object", |
| 18 | "params": { |
| 19 | "type": "object" |
| 20 | }, |
| 21 | "schemaPath": "#/$defs/platform-network/type" |
| 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/molecule/platforms_networks/molecule.yml", |
| 37 | "path": "$.platforms[0].networks[0]", |
| 38 | "message": "'foo' is not of type 'object'", |
| 39 | "has_sub_errors": false |
| 40 | }, |
| 41 | { |
| 42 | "filename": "negative_test/molecule/platforms_networks/molecule.yml", |
| 43 | "path": "$.platforms[0].networks[1]", |
| 44 | "message": "'bar' is not of type 'object'", |
| 45 | "has_sub_errors": false |
| 46 | } |
| 47 | ], |
| 48 | "parse_errors": [] |
| 49 | } |
| 50 | ``` |