| 1 |
[ |
| 2 |
{ |
| 3 |
"description": "refs to future drafts are processed as future drafts", |
| 4 |
"schema": { |
| 5 |
"type": "object", |
| 6 |
"allOf": [ |
| 7 |
{ "properties": { "foo": true } }, |
| 8 |
{ "$ref": "http://localhost:1234/draft2019-09/dependentRequired.json" } |
| 9 |
] |
| 10 |
}, |
| 11 |
"tests": [ |
| 12 |
{ |
| 13 |
"description": "missing bar is invalid", |
| 14 |
"comment": "if the implementation is not processing the $ref as a 2019-09 schema, this test will fail", |
| 15 |
"data": {"foo": "any value"}, |
| 16 |
"valid": false |
| 17 |
}, |
| 18 |
{ |
| 19 |
"description": "present bar is valid", |
| 20 |
"data": {"foo": "any value", "bar": "also any value"}, |
| 21 |
"valid": true |
| 22 |
} |
| 23 |
] |
| 24 |
} |
| 25 |
] |