@rathnasgala2/schemas 3.30.0 → 3.32.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 (45) hide show
  1. package/THIRD_PARTY_LICENSES.json +1 -1
  2. package/diagnostics/diagnostic-map.json +119 -0
  3. package/docs/catalogs/schema-inventory.json +7 -7
  4. package/examples/valid/build-input/rules.json +126 -0
  5. package/examples/valid/interactions-config/rules.json +10 -0
  6. package/examples/valid/publication/rules.json +86 -0
  7. package/fixtures/boundary/build-input/rules.json +176 -0
  8. package/fixtures/boundary/interactions-config/rules.json +10 -0
  9. package/fixtures/boundary/publication/rules.json +132 -0
  10. package/fixtures/invalid/build-input/GRAPHEME_LENGTH_INVALID/cases.json +33 -0
  11. package/fixtures/invalid/build-input/REQUEST_FIELD_UNKNOWN/cases.json +30 -0
  12. package/fixtures/invalid/build-input/SCHEMA_ARRAY_DUPLICATE/cases.json +11 -0
  13. package/fixtures/invalid/build-input/SCHEMA_ARRAY_TOO_LONG/cases.json +15 -0
  14. package/fixtures/invalid/build-input/SCHEMA_ENUM_INVALID/cases.json +11 -0
  15. package/fixtures/invalid/build-input/SCHEMA_NUMBER_TOO_LARGE/cases.json +11 -0
  16. package/fixtures/invalid/build-input/SCHEMA_PATTERN_INVALID/cases.json +22 -0
  17. package/fixtures/invalid/build-input/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +51 -0
  18. package/fixtures/invalid/build-input/SCHEMA_TYPE_INVALID/cases.json +53 -0
  19. package/fixtures/invalid/interactions-config/SCHEMA_TYPE_INVALID/cases.json +11 -0
  20. package/fixtures/invalid/publication/GRAPHEME_LENGTH_INVALID/cases.json +33 -0
  21. package/fixtures/invalid/publication/REQUEST_FIELD_UNKNOWN/cases.json +30 -0
  22. package/fixtures/invalid/publication/SCHEMA_ARRAY_DUPLICATE/cases.json +9 -0
  23. package/fixtures/invalid/publication/SCHEMA_ARRAY_TOO_LONG/cases.json +13 -0
  24. package/fixtures/invalid/publication/SCHEMA_PATTERN_INVALID/cases.json +22 -0
  25. package/fixtures/invalid/publication/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +40 -0
  26. package/fixtures/invalid/publication/SCHEMA_TYPE_INVALID/cases.json +40 -0
  27. package/fixtures/manifest.json +943 -8
  28. package/fixtures/unknown-field/build-input/rules.json +50 -0
  29. package/fixtures/unknown-field/interactions-config/rules.json +1 -0
  30. package/fixtures/unknown-field/publication/rules.json +46 -0
  31. package/generated/browser/validator-core.mjs +3 -3
  32. package/generated/typescript/contracts/artifact-manifest.d.ts +4 -2
  33. package/generated/typescript/contracts/build-input.d.ts +16 -1
  34. package/generated/typescript/contracts/build-provenance.d.ts +4 -2
  35. package/generated/typescript/contracts/interactions-config.d.ts +1 -0
  36. package/generated/typescript/contracts/publication.d.ts +13 -0
  37. package/openapi/http-catalog.json +80 -2
  38. package/openapi/openapi.yaml +1721 -253
  39. package/package.json +1 -1
  40. package/sbom.cdx.json +23 -23
  41. package/schemas/artifact-manifest.schema.json +4 -2
  42. package/schemas/build-input.schema.json +64 -3
  43. package/schemas/build-provenance.schema.json +4 -2
  44. package/schemas/interactions-config.schema.json +6 -1
  45. package/schemas/publication.schema.json +48 -0
@@ -83,6 +83,17 @@
83
83
  "instance": "",
84
84
  "expectedCodes": ["SCHEMA_PATTERN_INVALID"]
85
85
  },
86
+ {
87
+ "caseId": "build-input-invalid-9ee17f8c38e888bb",
88
+ "coveredRuleIds": [
89
+ "build-input:#/$defs/newsletter/oneOf/1/properties/welcome/properties/subject:pattern"
90
+ ],
91
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
92
+ "schemaPointer": "#/$defs/newsletter/oneOf/1/properties/welcome/properties/subject",
93
+ "keyword": "pattern",
94
+ "instance": "",
95
+ "expectedCodes": ["SCHEMA_PATTERN_INVALID"]
96
+ },
86
97
  {
87
98
  "caseId": "build-input-invalid-a24ac112cbeaf366",
88
99
  "coveredRuleIds": ["build-input:#/$defs/githubPositiveDecimal:pattern"],
@@ -145,6 +156,17 @@
145
156
  "instance": "",
146
157
  "expectedCodes": ["SCHEMA_PATTERN_INVALID"]
147
158
  },
159
+ {
160
+ "caseId": "build-input-invalid-e77406c05324e7db",
161
+ "coveredRuleIds": [
162
+ "build-input:#/$defs/recommendation/properties/addedOn:pattern"
163
+ ],
164
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
165
+ "schemaPointer": "#/$defs/recommendation/properties/addedOn",
166
+ "keyword": "pattern",
167
+ "instance": "",
168
+ "expectedCodes": ["SCHEMA_PATTERN_INVALID"]
169
+ },
148
170
  {
149
171
  "caseId": "build-input-invalid-ee426016bdcc14e4",
150
172
  "coveredRuleIds": [
@@ -78,6 +78,17 @@
78
78
  "instance": { "provider": "anthropic", "model": "fixture-1" },
79
79
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
80
80
  },
81
+ {
82
+ "caseId": "build-input-invalid-048cbb5dca7e2627",
83
+ "coveredRuleIds": [
84
+ "build-input:#/$defs/newsletter/oneOf/1/properties/welcome:required:subject"
85
+ ],
86
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
87
+ "schemaPointer": "#/$defs/newsletter/oneOf/1/properties/welcome",
88
+ "keyword": "required",
89
+ "instance": { "body": "fixture-1" },
90
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
91
+ },
81
92
  {
82
93
  "caseId": "build-input-invalid-04c4537da25ab3c9",
83
94
  "coveredRuleIds": ["build-input:#:required:basePath"],
@@ -862,6 +873,15 @@
862
873
  },
863
874
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
864
875
  },
876
+ {
877
+ "caseId": "build-input-invalid-0f48676bf1a77022",
878
+ "coveredRuleIds": ["build-input:#/$defs/recommendation:required:url"],
879
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
880
+ "schemaPointer": "#/$defs/recommendation",
881
+ "keyword": "required",
882
+ "instance": { "title": "fixture-1" },
883
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
884
+ },
865
885
  {
866
886
  "caseId": "build-input-invalid-0f6fa7aef85ce918",
867
887
  "coveredRuleIds": [
@@ -1496,6 +1516,15 @@
1496
1516
  },
1497
1517
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
1498
1518
  },
1519
+ {
1520
+ "caseId": "build-input-invalid-291775ca33fbe9ee",
1521
+ "coveredRuleIds": ["build-input:#/$defs/recommendation:required:title"],
1522
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
1523
+ "schemaPointer": "#/$defs/recommendation",
1524
+ "keyword": "required",
1525
+ "instance": { "url": "https://fixture-1.example.com/" },
1526
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
1527
+ },
1499
1528
  {
1500
1529
  "caseId": "build-input-invalid-2bacef3bb4a2b44b",
1501
1530
  "coveredRuleIds": [
@@ -3045,6 +3074,17 @@
3045
3074
  "instance": { "kind": "emoji" },
3046
3075
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
3047
3076
  },
3077
+ {
3078
+ "caseId": "build-input-invalid-734e0770e4bdb646",
3079
+ "coveredRuleIds": [
3080
+ "build-input:#/$defs/contentBuildMediaFile/allOf/3/if:required:mediaType"
3081
+ ],
3082
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
3083
+ "schemaPointer": "#/$defs/contentBuildMediaFile/allOf/3/if",
3084
+ "keyword": "required",
3085
+ "instance": {},
3086
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
3087
+ },
3048
3088
  {
3049
3089
  "caseId": "build-input-invalid-74052d83465c31db",
3050
3090
  "coveredRuleIds": ["build-input:#/$defs/packageIdentity:required:registry"],
@@ -3668,6 +3708,17 @@
3668
3708
  },
3669
3709
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
3670
3710
  },
3711
+ {
3712
+ "caseId": "build-input-invalid-82a9ef76f9794ce0",
3713
+ "coveredRuleIds": [
3714
+ "build-input:#/$defs/newsletter/oneOf/1/properties/welcome:required:body"
3715
+ ],
3716
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
3717
+ "schemaPointer": "#/$defs/newsletter/oneOf/1/properties/welcome",
3718
+ "keyword": "required",
3719
+ "instance": { "subject": "fixture-1" },
3720
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
3721
+ },
3671
3722
  {
3672
3723
  "caseId": "build-input-invalid-82f8c3ff1c2f0463",
3673
3724
  "coveredRuleIds": [
@@ -568,6 +568,17 @@
568
568
  "instance": [],
569
569
  "expectedCodes": ["SCHEMA_TYPE_INVALID"]
570
570
  },
571
+ {
572
+ "caseId": "build-input-invalid-695937caa251bc92",
573
+ "coveredRuleIds": [
574
+ "build-input:#/$defs/newsletter/oneOf/1/properties/welcome:type"
575
+ ],
576
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
577
+ "schemaPointer": "#/$defs/newsletter/oneOf/1/properties/welcome",
578
+ "keyword": "type",
579
+ "instance": [],
580
+ "expectedCodes": ["SCHEMA_TYPE_INVALID"]
581
+ },
571
582
  {
572
583
  "caseId": "build-input-invalid-6ba812fd3a1a21bf",
573
584
  "coveredRuleIds": ["build-input:#/$defs/contentSeo:type"],
@@ -661,6 +672,17 @@
661
672
  "instance": {},
662
673
  "expectedCodes": ["SCHEMA_TYPE_INVALID"]
663
674
  },
675
+ {
676
+ "caseId": "build-input-invalid-7c2754a504ab50b6",
677
+ "coveredRuleIds": [
678
+ "build-input:#/$defs/publicationNormalized/properties/recommendations:type"
679
+ ],
680
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
681
+ "schemaPointer": "#/$defs/publicationNormalized/properties/recommendations",
682
+ "keyword": "type",
683
+ "instance": {},
684
+ "expectedCodes": ["SCHEMA_TYPE_INVALID"]
685
+ },
664
686
  {
665
687
  "caseId": "build-input-invalid-7fa52f89a889bfdd",
666
688
  "coveredRuleIds": [
@@ -694,6 +716,17 @@
694
716
  "instance": {},
695
717
  "expectedCodes": ["SCHEMA_TYPE_INVALID"]
696
718
  },
719
+ {
720
+ "caseId": "build-input-invalid-85e931a1cc3a10e3",
721
+ "coveredRuleIds": [
722
+ "build-input:#/$defs/interactionsConfig/properties/comments/properties/likes:type"
723
+ ],
724
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
725
+ "schemaPointer": "#/$defs/interactionsConfig/properties/comments/properties/likes",
726
+ "keyword": "type",
727
+ "instance": null,
728
+ "expectedCodes": ["SCHEMA_TYPE_INVALID"]
729
+ },
697
730
  {
698
731
  "caseId": "build-input-invalid-8d1066df6fec729d",
699
732
  "coveredRuleIds": [
@@ -1051,6 +1084,15 @@
1051
1084
  "instance": null,
1052
1085
  "expectedCodes": ["SCHEMA_TYPE_INVALID"]
1053
1086
  },
1087
+ {
1088
+ "caseId": "build-input-invalid-cffd1752ff758c80",
1089
+ "coveredRuleIds": ["build-input:#/$defs/recommendation:type"],
1090
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
1091
+ "schemaPointer": "#/$defs/recommendation",
1092
+ "keyword": "type",
1093
+ "instance": [],
1094
+ "expectedCodes": ["SCHEMA_TYPE_INVALID"]
1095
+ },
1054
1096
  {
1055
1097
  "caseId": "build-input-invalid-d243e10e71679ce6",
1056
1098
  "coveredRuleIds": [
@@ -1293,6 +1335,17 @@
1293
1335
  "instance": null,
1294
1336
  "expectedCodes": ["SCHEMA_TYPE_INVALID"]
1295
1337
  },
1338
+ {
1339
+ "caseId": "build-input-invalid-f8536d048a9db21c",
1340
+ "coveredRuleIds": [
1341
+ "build-input:#/$defs/recommendation/properties/addedOn:type"
1342
+ ],
1343
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
1344
+ "schemaPointer": "#/$defs/recommendation/properties/addedOn",
1345
+ "keyword": "type",
1346
+ "instance": null,
1347
+ "expectedCodes": ["SCHEMA_TYPE_INVALID"]
1348
+ },
1296
1349
  {
1297
1350
  "caseId": "build-input-invalid-f8db59dc047c5635",
1298
1351
  "coveredRuleIds": [
@@ -148,6 +148,17 @@
148
148
  "instance": [],
149
149
  "expectedCodes": ["SCHEMA_TYPE_INVALID"]
150
150
  },
151
+ {
152
+ "caseId": "interactions-config-invalid-a0b3f555fb4d6d24",
153
+ "coveredRuleIds": [
154
+ "interactions-config:#/properties/comments/properties/likes:type"
155
+ ],
156
+ "schemaId": "urn:gala:schema:interactions-config:2.0.0",
157
+ "schemaPointer": "#/properties/comments/properties/likes",
158
+ "keyword": "type",
159
+ "instance": null,
160
+ "expectedCodes": ["SCHEMA_TYPE_INVALID"]
161
+ },
151
162
  {
152
163
  "caseId": "interactions-config-invalid-ac1a568db8f33892",
153
164
  "coveredRuleIds": [
@@ -10,6 +10,17 @@
10
10
  "recipe": { "kind": "repeat-string", "value": "a", "count": 121 },
11
11
  "expectedCodes": ["GRAPHEME_LENGTH_INVALID"]
12
12
  },
13
+ {
14
+ "caseId": "publication-invalid-0929b98c71f6dfd7",
15
+ "coveredRuleIds": [
16
+ "publication:#/$defs/recommendation/properties/description:x-gala-graphemeLength"
17
+ ],
18
+ "schemaId": "urn:gala:schema:publication:2.0.0",
19
+ "schemaPointer": "#/$defs/recommendation/properties/description",
20
+ "keyword": "x-gala-graphemeLength",
21
+ "recipe": { "kind": "repeat-string", "value": "a", "count": 301 },
22
+ "expectedCodes": ["GRAPHEME_LENGTH_INVALID"]
23
+ },
13
24
  {
14
25
  "caseId": "publication-invalid-5dea17271fd0c3f3",
15
26
  "coveredRuleIds": ["publication:#/properties/title:x-gala-graphemeLength"],
@@ -30,6 +41,17 @@
30
41
  "recipe": { "kind": "repeat-string", "value": "a", "count": 501 },
31
42
  "expectedCodes": ["GRAPHEME_LENGTH_INVALID"]
32
43
  },
44
+ {
45
+ "caseId": "publication-invalid-9c9a22d586a95e4c",
46
+ "coveredRuleIds": [
47
+ "publication:#/$defs/newsletter/oneOf/1/properties/welcome/properties/subject:x-gala-graphemeLength"
48
+ ],
49
+ "schemaId": "urn:gala:schema:publication:2.0.0",
50
+ "schemaPointer": "#/$defs/newsletter/oneOf/1/properties/welcome/properties/subject",
51
+ "keyword": "x-gala-graphemeLength",
52
+ "recipe": { "kind": "repeat-string", "value": "a", "count": 121 },
53
+ "expectedCodes": ["GRAPHEME_LENGTH_INVALID"]
54
+ },
33
55
  {
34
56
  "caseId": "publication-invalid-a0df4b481bc8800e",
35
57
  "coveredRuleIds": [
@@ -62,5 +84,16 @@
62
84
  "keyword": "x-gala-graphemeLength",
63
85
  "recipe": { "kind": "repeat-string", "value": "a", "count": 301 },
64
86
  "expectedCodes": ["GRAPHEME_LENGTH_INVALID"]
87
+ },
88
+ {
89
+ "caseId": "publication-invalid-fbdfc7ea96466282",
90
+ "coveredRuleIds": [
91
+ "publication:#/$defs/newsletter/oneOf/1/properties/welcome/properties/body:x-gala-graphemeLength"
92
+ ],
93
+ "schemaId": "urn:gala:schema:publication:2.0.0",
94
+ "schemaPointer": "#/$defs/newsletter/oneOf/1/properties/welcome/properties/body",
95
+ "keyword": "x-gala-graphemeLength",
96
+ "recipe": { "kind": "repeat-string", "value": "a", "count": 2001 },
97
+ "expectedCodes": ["GRAPHEME_LENGTH_INVALID"]
65
98
  }
66
99
  ]
@@ -1,4 +1,19 @@
1
1
  [
2
+ {
3
+ "caseId": "publication-invalid-096db003f5d627d2",
4
+ "coveredRuleIds": [
5
+ "publication:#/$defs/recommendation:additionalProperties"
6
+ ],
7
+ "schemaId": "urn:gala:schema:publication:2.0.0",
8
+ "schemaPointer": "#/$defs/recommendation",
9
+ "keyword": "additionalProperties",
10
+ "instance": {
11
+ "url": "https://fixture-1.example.com/",
12
+ "title": "fixture-1",
13
+ "unexpected": true
14
+ },
15
+ "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
16
+ },
2
17
  {
3
18
  "caseId": "publication-invalid-2c5963bd4dab0337",
4
19
  "coveredRuleIds": ["publication:#/$defs/aiRights:additionalProperties"],
@@ -82,6 +97,21 @@
82
97
  "instance": { "targets": ["copy-link"], "unexpected": true },
83
98
  "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
84
99
  },
100
+ {
101
+ "caseId": "publication-invalid-835b130f68cb9ce1",
102
+ "coveredRuleIds": [
103
+ "publication:#/$defs/newsletter/oneOf/1/properties/welcome:additionalProperties"
104
+ ],
105
+ "schemaId": "urn:gala:schema:publication:2.0.0",
106
+ "schemaPointer": "#/$defs/newsletter/oneOf/1/properties/welcome",
107
+ "keyword": "additionalProperties",
108
+ "instance": {
109
+ "subject": "fixture-1",
110
+ "body": "fixture-1",
111
+ "unexpected": true
112
+ },
113
+ "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
114
+ },
85
115
  {
86
116
  "caseId": "publication-invalid-8d5623a605a8b9a4",
87
117
  "coveredRuleIds": ["publication:#/$defs/listing:additionalProperties"],
@@ -9,5 +9,14 @@
9
9
  "keyword": "uniqueItems",
10
10
  "instance": [null, null],
11
11
  "expectedCodes": ["SCHEMA_ARRAY_DUPLICATE"]
12
+ },
13
+ {
14
+ "caseId": "publication-invalid-d3fc3142a73ab8fc",
15
+ "coveredRuleIds": ["publication:#/properties/recommendations:uniqueItems"],
16
+ "schemaId": "urn:gala:schema:publication:2.0.0",
17
+ "schemaPointer": "#/properties/recommendations",
18
+ "keyword": "uniqueItems",
19
+ "instance": [null, null],
20
+ "expectedCodes": ["SCHEMA_ARRAY_DUPLICATE"]
12
21
  }
13
22
  ]
@@ -14,6 +14,19 @@
14
14
  },
15
15
  "expectedCodes": ["SCHEMA_ARRAY_TOO_LONG"]
16
16
  },
17
+ {
18
+ "caseId": "publication-invalid-31659eb30d049f2c",
19
+ "coveredRuleIds": ["publication:#/properties/recommendations:maxItems"],
20
+ "schemaId": "urn:gala:schema:publication:2.0.0",
21
+ "schemaPointer": "#/properties/recommendations",
22
+ "keyword": "maxItems",
23
+ "recipe": {
24
+ "kind": "schema-array-count",
25
+ "schemaPointer": "#/properties/recommendations",
26
+ "length": 25
27
+ },
28
+ "expectedCodes": ["SCHEMA_ARRAY_TOO_LONG"]
29
+ },
17
30
  {
18
31
  "caseId": "publication-invalid-6230f6be9e676ebc",
19
32
  "coveredRuleIds": [
@@ -1,4 +1,15 @@
1
1
  [
2
+ {
3
+ "caseId": "publication-invalid-4a2f2d7c86c964b0",
4
+ "coveredRuleIds": [
5
+ "publication:#/$defs/newsletter/oneOf/1/properties/welcome/properties/subject:pattern"
6
+ ],
7
+ "schemaId": "urn:gala:schema:publication:2.0.0",
8
+ "schemaPointer": "#/$defs/newsletter/oneOf/1/properties/welcome/properties/subject",
9
+ "keyword": "pattern",
10
+ "instance": "",
11
+ "expectedCodes": ["SCHEMA_PATTERN_INVALID"]
12
+ },
2
13
  {
3
14
  "caseId": "publication-invalid-713b84fea6bcb51e",
4
15
  "coveredRuleIds": [
@@ -20,5 +31,16 @@
20
31
  "keyword": "pattern",
21
32
  "instance": "",
22
33
  "expectedCodes": ["SCHEMA_PATTERN_INVALID"]
34
+ },
35
+ {
36
+ "caseId": "publication-invalid-a9a3ec868c9f0b7e",
37
+ "coveredRuleIds": [
38
+ "publication:#/$defs/recommendation/properties/addedOn:pattern"
39
+ ],
40
+ "schemaId": "urn:gala:schema:publication:2.0.0",
41
+ "schemaPointer": "#/$defs/recommendation/properties/addedOn",
42
+ "keyword": "pattern",
43
+ "instance": "",
44
+ "expectedCodes": ["SCHEMA_PATTERN_INVALID"]
23
45
  }
24
46
  ]
@@ -109,6 +109,15 @@
109
109
  "instance": { "phone": false },
110
110
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
111
111
  },
112
+ {
113
+ "caseId": "publication-invalid-1c62eced3ea452e2",
114
+ "coveredRuleIds": ["publication:#/$defs/recommendation:required:url"],
115
+ "schemaId": "urn:gala:schema:publication:2.0.0",
116
+ "schemaPointer": "#/$defs/recommendation",
117
+ "keyword": "required",
118
+ "instance": { "title": "fixture-1" },
119
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
120
+ },
112
121
  {
113
122
  "caseId": "publication-invalid-312870a8bdc6845b",
114
123
  "coveredRuleIds": ["publication:#:required:defaultLanguage"],
@@ -403,6 +412,26 @@
403
412
  },
404
413
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
405
414
  },
415
+ {
416
+ "caseId": "publication-invalid-acdcd861596d0d72",
417
+ "coveredRuleIds": ["publication:#/$defs/recommendation:required:title"],
418
+ "schemaId": "urn:gala:schema:publication:2.0.0",
419
+ "schemaPointer": "#/$defs/recommendation",
420
+ "keyword": "required",
421
+ "instance": { "url": "https://fixture-1.example.com/" },
422
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
423
+ },
424
+ {
425
+ "caseId": "publication-invalid-b2b1e5b37c0eed00",
426
+ "coveredRuleIds": [
427
+ "publication:#/$defs/newsletter/oneOf/1/properties/welcome:required:subject"
428
+ ],
429
+ "schemaId": "urn:gala:schema:publication:2.0.0",
430
+ "schemaPointer": "#/$defs/newsletter/oneOf/1/properties/welcome",
431
+ "keyword": "required",
432
+ "instance": { "body": "fixture-1" },
433
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
434
+ },
406
435
  {
407
436
  "caseId": "publication-invalid-b407c9d5a70c79e8",
408
437
  "coveredRuleIds": [
@@ -474,6 +503,17 @@
474
503
  },
475
504
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
476
505
  },
506
+ {
507
+ "caseId": "publication-invalid-c90b0337b8e94d1b",
508
+ "coveredRuleIds": [
509
+ "publication:#/$defs/newsletter/oneOf/1/properties/welcome:required:body"
510
+ ],
511
+ "schemaId": "urn:gala:schema:publication:2.0.0",
512
+ "schemaPointer": "#/$defs/newsletter/oneOf/1/properties/welcome",
513
+ "keyword": "required",
514
+ "instance": { "subject": "fixture-1" },
515
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
516
+ },
477
517
  {
478
518
  "caseId": "publication-invalid-da5ab1d082915ca9",
479
519
  "coveredRuleIds": ["publication:#/$defs/aiRights:required:search"],
@@ -1,4 +1,13 @@
1
1
  [
2
+ {
3
+ "caseId": "publication-invalid-01b4242fca5daa04",
4
+ "coveredRuleIds": ["publication:#/$defs/recommendation:type"],
5
+ "schemaId": "urn:gala:schema:publication:2.0.0",
6
+ "schemaPointer": "#/$defs/recommendation",
7
+ "keyword": "type",
8
+ "instance": [],
9
+ "expectedCodes": ["SCHEMA_TYPE_INVALID"]
10
+ },
2
11
  {
3
12
  "caseId": "publication-invalid-0fe97c17ab5dc54d",
4
13
  "coveredRuleIds": [
@@ -93,6 +102,17 @@
93
102
  "instance": {},
94
103
  "expectedCodes": ["SCHEMA_TYPE_INVALID"]
95
104
  },
105
+ {
106
+ "caseId": "publication-invalid-4b7d8d8da88e8bb0",
107
+ "coveredRuleIds": [
108
+ "publication:#/$defs/recommendation/properties/addedOn:type"
109
+ ],
110
+ "schemaId": "urn:gala:schema:publication:2.0.0",
111
+ "schemaPointer": "#/$defs/recommendation/properties/addedOn",
112
+ "keyword": "type",
113
+ "instance": null,
114
+ "expectedCodes": ["SCHEMA_TYPE_INVALID"]
115
+ },
96
116
  {
97
117
  "caseId": "publication-invalid-4f096c566e88efd2",
98
118
  "coveredRuleIds": ["publication:#/$defs/socialLink/properties/uri:type"],
@@ -155,6 +175,15 @@
155
175
  "instance": null,
156
176
  "expectedCodes": ["SCHEMA_TYPE_INVALID"]
157
177
  },
178
+ {
179
+ "caseId": "publication-invalid-71daa0302fc0c782",
180
+ "coveredRuleIds": ["publication:#/properties/recommendations:type"],
181
+ "schemaId": "urn:gala:schema:publication:2.0.0",
182
+ "schemaPointer": "#/properties/recommendations",
183
+ "keyword": "type",
184
+ "instance": {},
185
+ "expectedCodes": ["SCHEMA_TYPE_INVALID"]
186
+ },
158
187
  {
159
188
  "caseId": "publication-invalid-76744d339be3248f",
160
189
  "coveredRuleIds": ["publication:#/$defs/listing:type"],
@@ -202,6 +231,17 @@
202
231
  "instance": [],
203
232
  "expectedCodes": ["SCHEMA_TYPE_INVALID"]
204
233
  },
234
+ {
235
+ "caseId": "publication-invalid-8f31f6f80e90cdc7",
236
+ "coveredRuleIds": [
237
+ "publication:#/$defs/newsletter/oneOf/1/properties/welcome:type"
238
+ ],
239
+ "schemaId": "urn:gala:schema:publication:2.0.0",
240
+ "schemaPointer": "#/$defs/newsletter/oneOf/1/properties/welcome",
241
+ "keyword": "type",
242
+ "instance": [],
243
+ "expectedCodes": ["SCHEMA_TYPE_INVALID"]
244
+ },
205
245
  {
206
246
  "caseId": "publication-invalid-92f2f0fdd2b2f214",
207
247
  "coveredRuleIds": ["publication:#/$defs/listen:type"],