@rathnasgala2/schemas 3.20.0 → 3.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/THIRD_PARTY_LICENSES.json +1 -1
  2. package/diagnostics/diagnostic-map.json +266 -24
  3. package/docs/catalogs/schema-inventory.json +6 -6
  4. package/examples/valid/build-input/rules.json +270 -28
  5. package/examples/valid/content-frontmatter/rules.json +41 -0
  6. package/examples/valid/interactions-config/rules.json +22 -0
  7. package/examples/valid/publication/rules.json +192 -13
  8. package/fixtures/boundary/build-input/rules.json +306 -33
  9. package/fixtures/boundary/content-frontmatter/rules.json +41 -0
  10. package/fixtures/boundary/interactions-config/rules.json +22 -0
  11. package/fixtures/boundary/publication/rules.json +243 -33
  12. package/fixtures/invalid/build-input/GRAPHEME_LENGTH_INVALID/cases.json +19 -8
  13. package/fixtures/invalid/build-input/REQUEST_FIELD_UNKNOWN/cases.json +80 -16
  14. package/fixtures/invalid/build-input/SCHEMA_ARRAY_DUPLICATE/cases.json +11 -0
  15. package/fixtures/invalid/build-input/SCHEMA_ARRAY_TOO_LONG/cases.json +15 -0
  16. package/fixtures/invalid/build-input/SCHEMA_CONSTANT_INVALID/cases.json +33 -0
  17. package/fixtures/invalid/build-input/SCHEMA_ENUM_INVALID/cases.json +22 -0
  18. package/fixtures/invalid/build-input/SCHEMA_NEGATED_RULE_MATCHED/cases.json +11 -0
  19. package/fixtures/invalid/build-input/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +204 -39
  20. package/fixtures/invalid/build-input/SCHEMA_TYPE_INVALID/cases.json +122 -11
  21. package/fixtures/invalid/build-input/SCHEMA_UNION_INVALID/cases.json +9 -0
  22. package/fixtures/invalid/content-frontmatter/SCHEMA_CONSTANT_INVALID/cases.json +11 -0
  23. package/fixtures/invalid/content-frontmatter/SCHEMA_NEGATED_RULE_MATCHED/cases.json +9 -0
  24. package/fixtures/invalid/content-frontmatter/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +31 -0
  25. package/fixtures/invalid/interactions-config/REQUEST_FIELD_UNKNOWN/cases.json +11 -0
  26. package/fixtures/invalid/interactions-config/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +11 -0
  27. package/fixtures/invalid/interactions-config/SCHEMA_TYPE_INVALID/cases.json +20 -0
  28. package/fixtures/invalid/publication/GRAPHEME_LENGTH_INVALID/cases.json +22 -11
  29. package/fixtures/invalid/publication/REQUEST_FIELD_UNKNOWN/cases.json +62 -9
  30. package/fixtures/invalid/publication/SCHEMA_ARRAY_DUPLICATE/cases.json +13 -0
  31. package/fixtures/invalid/publication/SCHEMA_ARRAY_TOO_LONG/cases.json +15 -0
  32. package/fixtures/invalid/publication/SCHEMA_CONSTANT_INVALID/cases.json +22 -0
  33. package/fixtures/invalid/publication/SCHEMA_ENUM_INVALID/cases.json +22 -0
  34. package/fixtures/invalid/publication/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +143 -20
  35. package/fixtures/invalid/publication/SCHEMA_TYPE_INVALID/cases.json +95 -4
  36. package/fixtures/invalid/publication/SCHEMA_UNION_INVALID/cases.json +11 -0
  37. package/fixtures/manifest.json +2059 -181
  38. package/fixtures/s2/empty-modules-placements.json +943 -0
  39. package/fixtures/s2/manifest.json +13 -1
  40. package/fixtures/s2/normalized-inputs.json +1704 -0
  41. package/fixtures/unknown-field/build-input/rules.json +123 -21
  42. package/fixtures/unknown-field/content-frontmatter/rules.json +5 -0
  43. package/fixtures/unknown-field/interactions-config/rules.json +14 -0
  44. package/fixtures/unknown-field/publication/rules.json +92 -9
  45. package/generated/browser/validator-core.mjs +3 -3
  46. package/generated/typescript/contracts/build-input.d.ts +47 -5
  47. package/generated/typescript/contracts/content-frontmatter.d.ts +1 -0
  48. package/generated/typescript/contracts/interactions-config.d.ts +3 -0
  49. package/generated/typescript/contracts/publication.d.ts +40 -5
  50. package/openapi/http-catalog.json +2 -2
  51. package/openapi/openapi.yaml +31 -0
  52. package/package.json +1 -1
  53. package/sbom.cdx.json +23 -23
  54. package/schemas/build-input.schema.json +104 -5
  55. package/schemas/content-frontmatter.schema.json +12 -0
  56. package/schemas/interactions-config.schema.json +7 -0
  57. package/schemas/publication.schema.json +85 -7
@@ -1,4 +1,13 @@
1
1
  [
2
+ {
3
+ "caseId": "content-frontmatter-invalid-48d19c5febc781d8",
4
+ "coveredRuleIds": ["content-frontmatter:#/allOf/2/then:not"],
5
+ "schemaId": "urn:gala:schema:content-frontmatter:2.0.0",
6
+ "schemaPointer": "#/allOf/2/then",
7
+ "keyword": "not",
8
+ "instance": { "edition": null },
9
+ "expectedCodes": ["SCHEMA_NEGATED_RULE_MATCHED"]
10
+ },
2
11
  {
3
12
  "caseId": "content-frontmatter-invalid-4c56068b5540d39e",
4
13
  "coveredRuleIds": ["content-frontmatter:#/allOf/1/else:not"],
@@ -215,6 +215,15 @@
215
215
  },
216
216
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
217
217
  },
218
+ {
219
+ "caseId": "content-frontmatter-invalid-737243e4dda64e0f",
220
+ "coveredRuleIds": ["content-frontmatter:#/allOf/2/then:required:kind"],
221
+ "schemaId": "urn:gala:schema:content-frontmatter:2.0.0",
222
+ "schemaPointer": "#/allOf/2/then",
223
+ "keyword": "required",
224
+ "instance": {},
225
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
226
+ },
218
227
  {
219
228
  "caseId": "content-frontmatter-invalid-8ca7558c87ac3b0f",
220
229
  "coveredRuleIds": [
@@ -339,6 +348,17 @@
339
348
  "instance": {},
340
349
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
341
350
  },
351
+ {
352
+ "caseId": "content-frontmatter-invalid-b731eea38e7e6656",
353
+ "coveredRuleIds": [
354
+ "content-frontmatter:#/allOf/2/if:required:translationOf"
355
+ ],
356
+ "schemaId": "urn:gala:schema:content-frontmatter:2.0.0",
357
+ "schemaPointer": "#/allOf/2/if",
358
+ "keyword": "required",
359
+ "instance": {},
360
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
361
+ },
342
362
  {
343
363
  "caseId": "content-frontmatter-invalid-bf5a9ebf026644d4",
344
364
  "coveredRuleIds": ["content-frontmatter:#/allOf/0/if:required:status"],
@@ -458,6 +478,17 @@
458
478
  },
459
479
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
460
480
  },
481
+ {
482
+ "caseId": "content-frontmatter-invalid-e0f7edb74d2ca0f1",
483
+ "coveredRuleIds": [
484
+ "content-frontmatter:#/allOf/2/then/not:required:edition"
485
+ ],
486
+ "schemaId": "urn:gala:schema:content-frontmatter:2.0.0",
487
+ "schemaPointer": "#/allOf/2/then/not",
488
+ "keyword": "required",
489
+ "instance": {},
490
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
491
+ },
461
492
  {
462
493
  "caseId": "content-frontmatter-invalid-e736bf012d175edb",
463
494
  "coveredRuleIds": ["content-frontmatter:#/allOf/1/if:required:kind"],
@@ -33,6 +33,17 @@
33
33
  },
34
34
  "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
35
35
  },
36
+ {
37
+ "caseId": "interactions-config-invalid-54eaf1a804d3b8b6",
38
+ "coveredRuleIds": [
39
+ "interactions-config:#/properties/follows:additionalProperties"
40
+ ],
41
+ "schemaId": "urn:gala:schema:interactions-config:2.0.0",
42
+ "schemaPointer": "#/properties/follows",
43
+ "keyword": "additionalProperties",
44
+ "instance": { "enabled": false, "unexpected": true },
45
+ "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
46
+ },
36
47
  {
37
48
  "caseId": "interactions-config-invalid-90033408628d438d",
38
49
  "coveredRuleIds": ["interactions-config:#:additionalProperties"],
@@ -286,6 +286,17 @@
286
286
  },
287
287
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
288
288
  },
289
+ {
290
+ "caseId": "interactions-config-invalid-f1c5d88801a878ec",
291
+ "coveredRuleIds": [
292
+ "interactions-config:#/properties/follows:required:enabled"
293
+ ],
294
+ "schemaId": "urn:gala:schema:interactions-config:2.0.0",
295
+ "schemaPointer": "#/properties/follows",
296
+ "keyword": "required",
297
+ "instance": {},
298
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
299
+ },
289
300
  {
290
301
  "caseId": "interactions-config-invalid-fae89f12aed92379",
291
302
  "coveredRuleIds": [
@@ -32,6 +32,15 @@
32
32
  "instance": null,
33
33
  "expectedCodes": ["SCHEMA_TYPE_INVALID"]
34
34
  },
35
+ {
36
+ "caseId": "interactions-config-invalid-2f06d599c84930de",
37
+ "coveredRuleIds": ["interactions-config:#/properties/follows:type"],
38
+ "schemaId": "urn:gala:schema:interactions-config:2.0.0",
39
+ "schemaPointer": "#/properties/follows",
40
+ "keyword": "type",
41
+ "instance": [],
42
+ "expectedCodes": ["SCHEMA_TYPE_INVALID"]
43
+ },
35
44
  {
36
45
  "caseId": "interactions-config-invalid-3bf201c57685d3d9",
37
46
  "coveredRuleIds": ["interactions-config:#/properties/reactions:type"],
@@ -110,6 +119,17 @@
110
119
  "instance": [],
111
120
  "expectedCodes": ["SCHEMA_TYPE_INVALID"]
112
121
  },
122
+ {
123
+ "caseId": "interactions-config-invalid-7649da72fa7abd75",
124
+ "coveredRuleIds": [
125
+ "interactions-config:#/properties/follows/properties/enabled:type"
126
+ ],
127
+ "schemaId": "urn:gala:schema:interactions-config:2.0.0",
128
+ "schemaPointer": "#/properties/follows/properties/enabled",
129
+ "keyword": "type",
130
+ "instance": null,
131
+ "expectedCodes": ["SCHEMA_TYPE_INVALID"]
132
+ },
113
133
  {
114
134
  "caseId": "interactions-config-invalid-87c34c8fa3c3d47d",
115
135
  "coveredRuleIds": ["interactions-config:#/properties/publicCounts:type"],
@@ -10,17 +10,6 @@
10
10
  "recipe": { "kind": "repeat-string", "value": "a", "count": 121 },
11
11
  "expectedCodes": ["GRAPHEME_LENGTH_INVALID"]
12
12
  },
13
- {
14
- "caseId": "publication-invalid-39884e830d86c486",
15
- "coveredRuleIds": [
16
- "publication:#/$defs/newsletter/properties/text:x-gala-graphemeLength"
17
- ],
18
- "schemaId": "urn:gala:schema:publication:2.0.0",
19
- "schemaPointer": "#/$defs/newsletter/properties/text",
20
- "keyword": "x-gala-graphemeLength",
21
- "recipe": { "kind": "repeat-string", "value": "a", "count": 301 },
22
- "expectedCodes": ["GRAPHEME_LENGTH_INVALID"]
23
- },
24
13
  {
25
14
  "caseId": "publication-invalid-5dea17271fd0c3f3",
26
15
  "coveredRuleIds": ["publication:#/properties/title:x-gala-graphemeLength"],
@@ -51,5 +40,27 @@
51
40
  "keyword": "x-gala-graphemeLength",
52
41
  "recipe": { "kind": "repeat-string", "value": "a", "count": 81 },
53
42
  "expectedCodes": ["GRAPHEME_LENGTH_INVALID"]
43
+ },
44
+ {
45
+ "caseId": "publication-invalid-a977ca6502e07732",
46
+ "coveredRuleIds": [
47
+ "publication:#/$defs/newsletter/oneOf/1/properties/text:x-gala-graphemeLength"
48
+ ],
49
+ "schemaId": "urn:gala:schema:publication:2.0.0",
50
+ "schemaPointer": "#/$defs/newsletter/oneOf/1/properties/text",
51
+ "keyword": "x-gala-graphemeLength",
52
+ "recipe": { "kind": "repeat-string", "value": "a", "count": 301 },
53
+ "expectedCodes": ["GRAPHEME_LENGTH_INVALID"]
54
+ },
55
+ {
56
+ "caseId": "publication-invalid-f4d9dae70a732429",
57
+ "coveredRuleIds": [
58
+ "publication:#/$defs/newsletter/oneOf/0/properties/text:x-gala-graphemeLength"
59
+ ],
60
+ "schemaId": "urn:gala:schema:publication:2.0.0",
61
+ "schemaPointer": "#/$defs/newsletter/oneOf/0/properties/text",
62
+ "keyword": "x-gala-graphemeLength",
63
+ "recipe": { "kind": "repeat-string", "value": "a", "count": 301 },
64
+ "expectedCodes": ["GRAPHEME_LENGTH_INVALID"]
54
65
  }
55
66
  ]
@@ -1,4 +1,17 @@
1
1
  [
2
+ {
3
+ "caseId": "publication-invalid-2cd0d09ddc5c97a4",
4
+ "coveredRuleIds": ["publication:#/$defs/contactForm:additionalProperties"],
5
+ "schemaId": "urn:gala:schema:publication:2.0.0",
6
+ "schemaPointer": "#/$defs/contactForm",
7
+ "keyword": "additionalProperties",
8
+ "instance": {
9
+ "enabled": false,
10
+ "fields": { "website": false, "phone": false },
11
+ "unexpected": true
12
+ },
13
+ "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
14
+ },
2
15
  {
3
16
  "caseId": "publication-invalid-30b8b611b230d115",
4
17
  "coveredRuleIds": ["publication:#/$defs/footerCard:additionalProperties"],
@@ -52,17 +65,12 @@
52
65
  "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
53
66
  },
54
67
  {
55
- "caseId": "publication-invalid-4f13d3c552728e29",
56
- "coveredRuleIds": ["publication:#/$defs/newsletter:additionalProperties"],
68
+ "caseId": "publication-invalid-72f108be659b9bcd",
69
+ "coveredRuleIds": ["publication:#/$defs/sharing:additionalProperties"],
57
70
  "schemaId": "urn:gala:schema:publication:2.0.0",
58
- "schemaPointer": "#/$defs/newsletter",
71
+ "schemaPointer": "#/$defs/sharing",
59
72
  "keyword": "additionalProperties",
60
- "instance": {
61
- "url": "https://fixture-1.example.com/",
62
- "title": "fixture-1",
63
- "text": "fixture-1",
64
- "unexpected": true
65
- },
73
+ "instance": { "targets": ["copy-link"], "unexpected": true },
66
74
  "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
67
75
  },
68
76
  {
@@ -104,6 +112,17 @@
104
112
  },
105
113
  "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
106
114
  },
115
+ {
116
+ "caseId": "publication-invalid-a80eafe180882636",
117
+ "coveredRuleIds": [
118
+ "publication:#/$defs/contactForm/properties/fields:additionalProperties"
119
+ ],
120
+ "schemaId": "urn:gala:schema:publication:2.0.0",
121
+ "schemaPointer": "#/$defs/contactForm/properties/fields",
122
+ "keyword": "additionalProperties",
123
+ "instance": { "website": false, "phone": false, "unexpected": true },
124
+ "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
125
+ },
107
126
  {
108
127
  "caseId": "publication-invalid-b3ae5d04b3447efc",
109
128
  "coveredRuleIds": ["publication:#/$defs/socialLink:additionalProperties"],
@@ -116,5 +135,39 @@
116
135
  "unexpected": true
117
136
  },
118
137
  "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
138
+ },
139
+ {
140
+ "caseId": "publication-invalid-bd3134805c971a3f",
141
+ "coveredRuleIds": [
142
+ "publication:#/$defs/newsletter/oneOf/1:additionalProperties"
143
+ ],
144
+ "schemaId": "urn:gala:schema:publication:2.0.0",
145
+ "schemaPointer": "#/$defs/newsletter/oneOf/1",
146
+ "keyword": "additionalProperties",
147
+ "instance": {
148
+ "mode": "galascribe",
149
+ "title": "fixture-1",
150
+ "text": "fixture-1",
151
+ "emailContent": "card",
152
+ "replyToOwner": false,
153
+ "unexpected": true
154
+ },
155
+ "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
156
+ },
157
+ {
158
+ "caseId": "publication-invalid-c886c3a79d33ff4b",
159
+ "coveredRuleIds": [
160
+ "publication:#/$defs/newsletter/oneOf/0:additionalProperties"
161
+ ],
162
+ "schemaId": "urn:gala:schema:publication:2.0.0",
163
+ "schemaPointer": "#/$defs/newsletter/oneOf/0",
164
+ "keyword": "additionalProperties",
165
+ "instance": {
166
+ "url": "https://fixture-1.example.com/",
167
+ "title": "fixture-1",
168
+ "text": "fixture-1",
169
+ "unexpected": true
170
+ },
171
+ "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
119
172
  }
120
173
  ]
@@ -0,0 +1,13 @@
1
+ [
2
+ {
3
+ "caseId": "publication-invalid-bbe0cbc742821070",
4
+ "coveredRuleIds": [
5
+ "publication:#/$defs/sharing/properties/targets:uniqueItems"
6
+ ],
7
+ "schemaId": "urn:gala:schema:publication:2.0.0",
8
+ "schemaPointer": "#/$defs/sharing/properties/targets",
9
+ "keyword": "uniqueItems",
10
+ "instance": [null, null],
11
+ "expectedCodes": ["SCHEMA_ARRAY_DUPLICATE"]
12
+ }
13
+ ]
@@ -1,4 +1,19 @@
1
1
  [
2
+ {
3
+ "caseId": "publication-invalid-004330d2cbe395cc",
4
+ "coveredRuleIds": [
5
+ "publication:#/$defs/sharing/properties/targets:maxItems"
6
+ ],
7
+ "schemaId": "urn:gala:schema:publication:2.0.0",
8
+ "schemaPointer": "#/$defs/sharing/properties/targets",
9
+ "keyword": "maxItems",
10
+ "recipe": {
11
+ "kind": "schema-array-count",
12
+ "schemaPointer": "#/$defs/sharing/properties/targets",
13
+ "length": 12
14
+ },
15
+ "expectedCodes": ["SCHEMA_ARRAY_TOO_LONG"]
16
+ },
2
17
  {
3
18
  "caseId": "publication-invalid-6230f6be9e676ebc",
4
19
  "coveredRuleIds": [
@@ -1,4 +1,26 @@
1
1
  [
2
+ {
3
+ "caseId": "publication-invalid-487c5bfcd5541e2c",
4
+ "coveredRuleIds": [
5
+ "publication:#/$defs/newsletter/oneOf/0/properties/mode:const"
6
+ ],
7
+ "schemaId": "urn:gala:schema:publication:2.0.0",
8
+ "schemaPointer": "#/$defs/newsletter/oneOf/0/properties/mode",
9
+ "keyword": "const",
10
+ "instance": "link-invalid",
11
+ "expectedCodes": ["SCHEMA_CONSTANT_INVALID"]
12
+ },
13
+ {
14
+ "caseId": "publication-invalid-b040d0e9bc687a35",
15
+ "coveredRuleIds": [
16
+ "publication:#/$defs/newsletter/oneOf/1/properties/mode:const"
17
+ ],
18
+ "schemaId": "urn:gala:schema:publication:2.0.0",
19
+ "schemaPointer": "#/$defs/newsletter/oneOf/1/properties/mode",
20
+ "keyword": "const",
21
+ "instance": "galascribe-invalid",
22
+ "expectedCodes": ["SCHEMA_CONSTANT_INVALID"]
23
+ },
2
24
  {
3
25
  "caseId": "publication-invalid-d8b19a42195dd6b1",
4
26
  "coveredRuleIds": [
@@ -16,5 +16,27 @@
16
16
  "keyword": "enum",
17
17
  "instance": "__invalid_enum__",
18
18
  "expectedCodes": ["SCHEMA_ENUM_INVALID"]
19
+ },
20
+ {
21
+ "caseId": "publication-invalid-6fa330f267ac6d8d",
22
+ "coveredRuleIds": [
23
+ "publication:#/$defs/newsletter/oneOf/1/properties/emailContent:enum"
24
+ ],
25
+ "schemaId": "urn:gala:schema:publication:2.0.0",
26
+ "schemaPointer": "#/$defs/newsletter/oneOf/1/properties/emailContent",
27
+ "keyword": "enum",
28
+ "instance": "__invalid_enum__",
29
+ "expectedCodes": ["SCHEMA_ENUM_INVALID"]
30
+ },
31
+ {
32
+ "caseId": "publication-invalid-7f5bc5a8f4287312",
33
+ "coveredRuleIds": [
34
+ "publication:#/$defs/sharing/properties/targets/items:enum"
35
+ ],
36
+ "schemaId": "urn:gala:schema:publication:2.0.0",
37
+ "schemaPointer": "#/$defs/sharing/properties/targets/items",
38
+ "keyword": "enum",
39
+ "instance": "__invalid_enum__",
40
+ "expectedCodes": ["SCHEMA_ENUM_INVALID"]
19
41
  }
20
42
  ]
@@ -61,6 +61,30 @@
61
61
  "instance": { "title": "fixture-1" },
62
62
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
63
63
  },
64
+ {
65
+ "caseId": "publication-invalid-0dd547fcdb6534a6",
66
+ "coveredRuleIds": ["publication:#/$defs/newsletter/oneOf/0:required:title"],
67
+ "schemaId": "urn:gala:schema:publication:2.0.0",
68
+ "schemaPointer": "#/$defs/newsletter/oneOf/0",
69
+ "keyword": "required",
70
+ "instance": {
71
+ "url": "https://fixture-1.example.com/",
72
+ "text": "fixture-1"
73
+ },
74
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
75
+ },
76
+ {
77
+ "caseId": "publication-invalid-10048334fb02a54b",
78
+ "coveredRuleIds": ["publication:#/$defs/newsletter/oneOf/0:required:text"],
79
+ "schemaId": "urn:gala:schema:publication:2.0.0",
80
+ "schemaPointer": "#/$defs/newsletter/oneOf/0",
81
+ "keyword": "required",
82
+ "instance": {
83
+ "url": "https://fixture-1.example.com/",
84
+ "title": "fixture-1"
85
+ },
86
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
87
+ },
64
88
  {
65
89
  "caseId": "publication-invalid-1882209b7bdbde62",
66
90
  "coveredRuleIds": ["publication:#/$defs/footerCard:required:heading"],
@@ -75,12 +99,14 @@
75
99
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
76
100
  },
77
101
  {
78
- "caseId": "publication-invalid-29a76059791fbcbf",
79
- "coveredRuleIds": ["publication:#/$defs/newsletter:required:url"],
102
+ "caseId": "publication-invalid-1ada2549ed17e6d2",
103
+ "coveredRuleIds": [
104
+ "publication:#/$defs/contactForm/properties/fields:required:website"
105
+ ],
80
106
  "schemaId": "urn:gala:schema:publication:2.0.0",
81
- "schemaPointer": "#/$defs/newsletter",
107
+ "schemaPointer": "#/$defs/contactForm/properties/fields",
82
108
  "keyword": "required",
83
- "instance": { "title": "fixture-1", "text": "fixture-1" },
109
+ "instance": { "phone": false },
84
110
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
85
111
  },
86
112
  {
@@ -105,6 +131,15 @@
105
131
  },
106
132
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
107
133
  },
134
+ {
135
+ "caseId": "publication-invalid-3f10a392fd4f453c",
136
+ "coveredRuleIds": ["publication:#/$defs/newsletter/oneOf/0:required:url"],
137
+ "schemaId": "urn:gala:schema:publication:2.0.0",
138
+ "schemaPointer": "#/$defs/newsletter/oneOf/0",
139
+ "keyword": "required",
140
+ "instance": { "title": "fixture-1", "text": "fixture-1" },
141
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
142
+ },
108
143
  {
109
144
  "caseId": "publication-invalid-55eb14ae9a39861d",
110
145
  "coveredRuleIds": [
@@ -167,14 +202,50 @@
167
202
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
168
203
  },
169
204
  {
170
- "caseId": "publication-invalid-69a94bbdee4a7dd9",
171
- "coveredRuleIds": ["publication:#/$defs/newsletter:required:text"],
205
+ "caseId": "publication-invalid-5f15f63910b892ec",
206
+ "coveredRuleIds": ["publication:#/$defs/sharing:required:targets"],
207
+ "schemaId": "urn:gala:schema:publication:2.0.0",
208
+ "schemaPointer": "#/$defs/sharing",
209
+ "keyword": "required",
210
+ "instance": {},
211
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
212
+ },
213
+ {
214
+ "caseId": "publication-invalid-650aba85b8def74c",
215
+ "coveredRuleIds": ["publication:#/$defs/newsletter/oneOf/1:required:title"],
172
216
  "schemaId": "urn:gala:schema:publication:2.0.0",
173
- "schemaPointer": "#/$defs/newsletter",
217
+ "schemaPointer": "#/$defs/newsletter/oneOf/1",
174
218
  "keyword": "required",
175
219
  "instance": {
176
- "url": "https://fixture-1.example.com/",
177
- "title": "fixture-1"
220
+ "mode": "galascribe",
221
+ "text": "fixture-1",
222
+ "emailContent": "card",
223
+ "replyToOwner": false
224
+ },
225
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
226
+ },
227
+ {
228
+ "caseId": "publication-invalid-72414940f06185f9",
229
+ "coveredRuleIds": ["publication:#/$defs/contactForm:required:fields"],
230
+ "schemaId": "urn:gala:schema:publication:2.0.0",
231
+ "schemaPointer": "#/$defs/contactForm",
232
+ "keyword": "required",
233
+ "instance": { "enabled": false },
234
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
235
+ },
236
+ {
237
+ "caseId": "publication-invalid-73b2ad06dcb1bb99",
238
+ "coveredRuleIds": [
239
+ "publication:#/$defs/newsletter/oneOf/1:required:replyToOwner"
240
+ ],
241
+ "schemaId": "urn:gala:schema:publication:2.0.0",
242
+ "schemaPointer": "#/$defs/newsletter/oneOf/1",
243
+ "keyword": "required",
244
+ "instance": {
245
+ "mode": "galascribe",
246
+ "title": "fixture-1",
247
+ "text": "fixture-1",
248
+ "emailContent": "card"
178
249
  },
179
250
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
180
251
  },
@@ -222,6 +293,31 @@
222
293
  },
223
294
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
224
295
  },
296
+ {
297
+ "caseId": "publication-invalid-7cd1fdd2be411775",
298
+ "coveredRuleIds": ["publication:#/$defs/contactForm:required:enabled"],
299
+ "schemaId": "urn:gala:schema:publication:2.0.0",
300
+ "schemaPointer": "#/$defs/contactForm",
301
+ "keyword": "required",
302
+ "instance": { "fields": { "website": false, "phone": false } },
303
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
304
+ },
305
+ {
306
+ "caseId": "publication-invalid-80d179608136e1e8",
307
+ "coveredRuleIds": [
308
+ "publication:#/$defs/newsletter/oneOf/1:required:emailContent"
309
+ ],
310
+ "schemaId": "urn:gala:schema:publication:2.0.0",
311
+ "schemaPointer": "#/$defs/newsletter/oneOf/1",
312
+ "keyword": "required",
313
+ "instance": {
314
+ "mode": "galascribe",
315
+ "title": "fixture-1",
316
+ "text": "fixture-1",
317
+ "replyToOwner": false
318
+ },
319
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
320
+ },
225
321
  {
226
322
  "caseId": "publication-invalid-84887f44baf043ce",
227
323
  "coveredRuleIds": ["publication:#/$defs/policyPage:required:title"],
@@ -254,24 +350,26 @@
254
350
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
255
351
  },
256
352
  {
257
- "caseId": "publication-invalid-a25411ee83d83079",
258
- "coveredRuleIds": ["publication:#/$defs/crawlers:required:ai"],
353
+ "caseId": "publication-invalid-9dc1fedd91c240c4",
354
+ "coveredRuleIds": ["publication:#/$defs/newsletter/oneOf/1:required:text"],
259
355
  "schemaId": "urn:gala:schema:publication:2.0.0",
260
- "schemaPointer": "#/$defs/crawlers",
356
+ "schemaPointer": "#/$defs/newsletter/oneOf/1",
261
357
  "keyword": "required",
262
- "instance": {},
358
+ "instance": {
359
+ "mode": "galascribe",
360
+ "title": "fixture-1",
361
+ "emailContent": "card",
362
+ "replyToOwner": false
363
+ },
263
364
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
264
365
  },
265
366
  {
266
- "caseId": "publication-invalid-a8e4a3a227002a14",
267
- "coveredRuleIds": ["publication:#/$defs/newsletter:required:title"],
367
+ "caseId": "publication-invalid-a25411ee83d83079",
368
+ "coveredRuleIds": ["publication:#/$defs/crawlers:required:ai"],
268
369
  "schemaId": "urn:gala:schema:publication:2.0.0",
269
- "schemaPointer": "#/$defs/newsletter",
370
+ "schemaPointer": "#/$defs/crawlers",
270
371
  "keyword": "required",
271
- "instance": {
272
- "url": "https://fixture-1.example.com/",
273
- "text": "fixture-1"
274
- },
372
+ "instance": {},
275
373
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
276
374
  },
277
375
  {
@@ -331,6 +429,20 @@
331
429
  },
332
430
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
333
431
  },
432
+ {
433
+ "caseId": "publication-invalid-b9745c61580e6d74",
434
+ "coveredRuleIds": ["publication:#/$defs/newsletter/oneOf/1:required:mode"],
435
+ "schemaId": "urn:gala:schema:publication:2.0.0",
436
+ "schemaPointer": "#/$defs/newsletter/oneOf/1",
437
+ "keyword": "required",
438
+ "instance": {
439
+ "title": "fixture-1",
440
+ "text": "fixture-1",
441
+ "emailContent": "card",
442
+ "replyToOwner": false
443
+ },
444
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
445
+ },
334
446
  {
335
447
  "caseId": "publication-invalid-c1890c19fca4bda4",
336
448
  "coveredRuleIds": ["publication:#:required:schemaId"],
@@ -395,6 +507,17 @@
395
507
  "instance": { "type": "website" },
396
508
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
397
509
  },
510
+ {
511
+ "caseId": "publication-invalid-e8b55cdd98b91383",
512
+ "coveredRuleIds": [
513
+ "publication:#/$defs/contactForm/properties/fields:required:phone"
514
+ ],
515
+ "schemaId": "urn:gala:schema:publication:2.0.0",
516
+ "schemaPointer": "#/$defs/contactForm/properties/fields",
517
+ "keyword": "required",
518
+ "instance": { "website": false },
519
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
520
+ },
398
521
  {
399
522
  "caseId": "publication-invalid-f7f64e6db687866d",
400
523
  "coveredRuleIds": ["publication:#:required:socialLinks"],