| 1 |
[ |
| 2 |
{ |
| 3 |
"description": "object that is not a schema containing an $id property", |
| 4 |
"schema": { |
| 5 |
"definitions": { |
| 6 |
"const_not_id": { |
| 7 |
"const": { |
| 8 |
"$id": "not_a_real_id" |
| 9 |
} |
| 10 |
} |
| 11 |
}, |
| 12 |
"if": { |
| 13 |
"const": "skip not_a_real_id" |
| 14 |
}, |
| 15 |
"then": true, |
| 16 |
"else" : { |
| 17 |
"$ref": "#/definitions/const_not_id" |
| 18 |
} |
| 19 |
}, |
| 20 |
"tests": [ |
| 21 |
{ |
| 22 |
"description": "skip traversing definition for a valid result", |
| 23 |
"data": "skip not_a_real_id", |
| 24 |
"valid": true |
| 25 |
}, |
| 26 |
{ |
| 27 |
"description": "const at const_not_id does not match", |
| 28 |
"data": 1, |
| 29 |
"valid": false |
| 30 |
} |
| 31 |
] |
| 32 |
} |
| 33 |
] |