| 1 |
[ |
| 2 |
{ |
| 3 |
"description": "invalid $vocabulary: need boolean values", |
| 4 |
"schema": { |
| 5 |
"$vocabulary": { |
| 6 |
"https://foo.com": "not-bool" |
| 7 |
} |
| 8 |
}, |
| 9 |
"tests": [ |
| 10 |
{ |
| 11 |
"description": "an invalid $vocabulary value (value should be a boolean)", |
| 12 |
"data": 1, |
| 13 |
"valid": false |
| 14 |
} |
| 15 |
] |
| 16 |
}, |
| 17 |
{ |
| 18 |
"description": "invalid $vocabulary: uri must not have unencoded characters", |
| 19 |
"comment": "when properly encoded, this would be http://foo%5Ebar/path", |
| 20 |
"schema": { |
| 21 |
"$vocabulary": { |
| 22 |
"http://foo^bar/path": false |
| 23 |
} |
| 24 |
}, |
| 25 |
"tests": [ |
| 26 |
{ |
| 27 |
"description": "unencoded characters in $vocabulary uri", |
| 28 |
"data": 1, |
| 29 |
"valid": false |
| 30 |
} |
| 31 |
] |
| 32 |
}, |
| 33 |
{ |
| 34 |
"description": "invalid $vocabulary: non-ascii characters in uri", |
| 35 |
"schema": { |
| 36 |
"$vocabulary": { |
| 37 |
"https://ಠ_ಠ.com": false |
| 38 |
} |
| 39 |
}, |
| 40 |
"tests": [ |
| 41 |
{ |
| 42 |
"description": "non-ascii characters in $vocabulary uri", |
| 43 |
"data": 1, |
| 44 |
"valid": false |
| 45 |
} |
| 46 |
] |
| 47 |
}, |
| 48 |
{ |
| 49 |
"description": "invalid $vocabulary: missing scheme", |
| 50 |
"schema": { |
| 51 |
"$vocabulary": { |
| 52 |
"foo.com": false |
| 53 |
} |
| 54 |
}, |
| 55 |
"tests": [ |
| 56 |
{ |
| 57 |
"description": "$vocabulary uri is missing a scheme", |
| 58 |
"data": 1, |
| 59 |
"valid": false |
| 60 |
} |
| 61 |
] |
| 62 |
} |
| 63 |
] |