|
3 | 3 | "description": "The content vocabulary",
|
4 | 4 | "suite": [
|
5 | 5 | {
|
6 |
| - "description": "`contentMediaType` is an annotation", |
| 6 | + "description": "`contentMediaType` is an annotation for string instances", |
7 | 7 | "compatibility": "7",
|
8 | 8 | "schema": {
|
9 | 9 | "contentMediaType": "application/json"
|
|
18 | 18 | "expected": ["application/json"]
|
19 | 19 | }
|
20 | 20 | ]
|
| 21 | + }, |
| 22 | + { |
| 23 | + "instance": 42, |
| 24 | + "assertions": [ |
| 25 | + { |
| 26 | + "location": "", |
| 27 | + "keyword": "contentMediaType", |
| 28 | + "expected": [] |
| 29 | + } |
| 30 | + ] |
21 | 31 | }
|
22 | 32 | ]
|
23 | 33 | },
|
24 | 34 | {
|
25 |
| - "description": "`contentEncoding` is an annotation", |
| 35 | + "description": "`contentEncoding` is an annotation for string instances", |
26 | 36 | "compatibility": "7",
|
27 | 37 | "schema": {
|
28 | 38 | "contentEncoding": "base64"
|
|
37 | 47 | "expected": ["base64"]
|
38 | 48 | }
|
39 | 49 | ]
|
| 50 | + }, |
| 51 | + { |
| 52 | + "instance": 42, |
| 53 | + "assertions": [ |
| 54 | + { |
| 55 | + "location": "", |
| 56 | + "keyword": "contentEncoding", |
| 57 | + "expected": [] |
| 58 | + } |
| 59 | + ] |
| 60 | + } |
| 61 | + ] |
| 62 | + }, |
| 63 | + { |
| 64 | + "description": "`contentSchema` is an annotation for string instances", |
| 65 | + "compatibility": "2019", |
| 66 | + "schema": { |
| 67 | + "$id": "https://annotations.json-schema.org/test/contentSchema-is-an-annotation", |
| 68 | + "contentMediaType": "application/json", |
| 69 | + "contentSchema": { "type": "number" } |
| 70 | + }, |
| 71 | + "tests": [ |
| 72 | + { |
| 73 | + "instance": "42", |
| 74 | + "assertions": [ |
| 75 | + { |
| 76 | + "location": "", |
| 77 | + "keyword": "contentSchema", |
| 78 | + "expected": [{ "type": "number" }] |
| 79 | + } |
| 80 | + ] |
| 81 | + }, |
| 82 | + { |
| 83 | + "instance": 42, |
| 84 | + "assertions": [ |
| 85 | + { |
| 86 | + "location": "", |
| 87 | + "keyword": "contentSchema", |
| 88 | + "expected": [] |
| 89 | + } |
| 90 | + ] |
40 | 91 | }
|
41 | 92 | ]
|
42 | 93 | },
|
43 | 94 | {
|
44 |
| - "description": "`contentSchema` is an annotation", |
| 95 | + "description": "`contentSchema` requires `contentMediaType`", |
45 | 96 | "compatibility": "2019",
|
46 | 97 | "schema": {
|
47 | 98 | "$id": "https://annotations.json-schema.org/test/contentSchema-is-an-annotation",
|
|
54 | 105 | {
|
55 | 106 | "location": "",
|
56 | 107 | "keyword": "contentSchema",
|
57 |
| - "expected": ["https://annotations.json-schema.org/test/contentSchema-is-an-annotation#/contentSchema"] |
| 108 | + "expected": [] |
58 | 109 | }
|
59 | 110 | ]
|
60 | 111 | }
|
|
0 commit comments