| 1 |
[ |
| 2 |
{ |
| 3 |
"description": "valid $vocabulary: everything is valid", |
| 4 |
"schema": { |
| 5 |
"$id": "https://mymetaschema", |
| 6 |
"$vocabulary": { |
| 7 |
"https://json-schema.org/draft/2019-09/vocab/core": true, |
| 8 |
"https://foo.com": false |
| 9 |
} |
| 10 |
}, |
| 11 |
"tests": [ |
| 12 |
{ |
| 13 |
"description": "a valid $vocabulary value", |
| 14 |
"data": 1, |
| 15 |
"valid": true |
| 16 |
} |
| 17 |
] |
| 18 |
}, |
| 19 |
{ |
| 20 |
"description": "wrong specification version: but this is draft7", |
| 21 |
"schema": { |
| 22 |
"$id": "https://mymetaschema2", |
| 23 |
"$vocabulary": { |
| 24 |
"https://json-schema.org/draft/2020-12/vocab/core": true |
| 25 |
} |
| 26 |
}, |
| 27 |
"tests": [ |
| 28 |
{ |
| 29 |
"description": "invalid $vocabulary value: wrong specification version", |
| 30 |
"data": 1, |
| 31 |
"valid": true |
| 32 |
} |
| 33 |
] |
| 34 |
}, |
| 35 |
{ |
| 36 |
"description": "but this is draft7", |
| 37 |
"schema": { |
| 38 |
"$id": "https://mymetaschema3", |
| 39 |
"$vocabulary": { |
| 40 |
"https://json-schema.org/draft/2020-12/vocab/core": true, |
| 41 |
"https://foo.com": true |
| 42 |
} |
| 43 |
}, |
| 44 |
"tests": [ |
| 45 |
{ |
| 46 |
"description": "invalid $vocabulary value: unknown URI", |
| 47 |
"data": 1, |
| 48 |
"valid": true |
| 49 |
} |
| 50 |
] |
| 51 |
} |
| 52 |
] |