@rathnasgala2/schemas 2.22.0 → 3.1.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 (118) hide show
  1. package/README.md +39 -42
  2. package/THIRD_PARTY_LICENSES.json +3 -3
  3. package/diagnostics/diagnostic-map.json +2701 -1449
  4. package/docs/catalogs/app-components.json +435 -1
  5. package/docs/catalogs/app-routes.json +152 -2
  6. package/docs/catalogs/schema-inventory.json +17 -7
  7. package/examples/valid/artifact-manifest/rules.json +2 -2
  8. package/examples/valid/build-input/rules.json +391 -1
  9. package/examples/valid/build-provenance/rules.json +2 -2
  10. package/examples/valid/interactions-config/canonical.json +18 -0
  11. package/examples/valid/interactions-config/rules.json +529 -0
  12. package/examples/valid/publication/rules.json +48 -0
  13. package/examples/valid/theme-contract/canonical.json +355 -19
  14. package/examples/valid/theme-contract/default-3.0.json +660 -0
  15. package/examples/valid/theme-contract/rules.json +3456 -552
  16. package/fixtures/boundary/artifact-manifest/rules.json +2 -2
  17. package/fixtures/boundary/build-input/rules.json +463 -9
  18. package/fixtures/boundary/build-provenance/rules.json +2 -2
  19. package/fixtures/boundary/interactions-config/root.json +18 -0
  20. package/fixtures/boundary/interactions-config/rules.json +725 -0
  21. package/fixtures/boundary/publication/rules.json +53 -0
  22. package/fixtures/boundary/theme-contract/root.json +355 -19
  23. package/fixtures/boundary/theme-contract/rules.json +4158 -1226
  24. package/fixtures/invalid/artifact-manifest/SCHEMA_CONSTANT_INVALID/cases.json +0 -11
  25. package/fixtures/invalid/artifact-manifest/SCHEMA_TYPE_INVALID/cases.json +11 -0
  26. package/fixtures/invalid/build-input/GRAPHEME_LENGTH_INVALID/cases.json +22 -0
  27. package/fixtures/invalid/build-input/HTTPS_URL_INVALID/cases.json +29 -0
  28. package/fixtures/invalid/build-input/REQUEST_FIELD_UNKNOWN/cases.json +168 -0
  29. package/fixtures/invalid/build-input/SCHEMA_ARRAY_TOO_LONG/cases.json +15 -0
  30. package/fixtures/invalid/build-input/SCHEMA_CONSTANT_INVALID/cases.json +20 -0
  31. package/fixtures/invalid/build-input/SCHEMA_ENUM_INVALID/cases.json +22 -0
  32. package/fixtures/invalid/build-input/SCHEMA_NEGATED_RULE_MATCHED/cases.json +9 -0
  33. package/fixtures/invalid/build-input/SCHEMA_NUMBER_TOO_LARGE/cases.json +22 -0
  34. package/fixtures/invalid/build-input/SCHEMA_NUMBER_TOO_SMALL/cases.json +22 -0
  35. package/fixtures/invalid/build-input/SCHEMA_OBJECT_TOO_LARGE/cases.json +0 -15
  36. package/fixtures/invalid/build-input/SCHEMA_PATTERN_INVALID/cases.json +9 -0
  37. package/fixtures/invalid/build-input/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +429 -0
  38. package/fixtures/invalid/build-input/SCHEMA_TYPE_INVALID/cases.json +212 -0
  39. package/fixtures/invalid/build-input/SCHEMA_VERSION_UNSUPPORTED/cases.json +22 -0
  40. package/fixtures/invalid/build-provenance/SCHEMA_CONSTANT_INVALID/cases.json +0 -11
  41. package/fixtures/invalid/build-provenance/SCHEMA_TYPE_INVALID/cases.json +11 -0
  42. package/fixtures/invalid/interactions-config/BCP47_INVALID/cases.json +58 -0
  43. package/fixtures/invalid/interactions-config/CANONICAL_ROUTE_INVALID/cases.json +38 -0
  44. package/fixtures/invalid/interactions-config/DIGEST_INVALID/cases.json +20 -0
  45. package/fixtures/invalid/interactions-config/EXTENSION_KEY_INVALID/cases.json +20 -0
  46. package/fixtures/invalid/interactions-config/GIT_OBJECT_ID_INVALID/cases.json +20 -0
  47. package/fixtures/invalid/interactions-config/GRAPHEME_LENGTH_INVALID/cases.json +13 -0
  48. package/fixtures/invalid/interactions-config/HTTPS_URL_INVALID/cases.json +29 -0
  49. package/fixtures/invalid/interactions-config/ISO_COUNTRY_INVALID/cases.json +20 -0
  50. package/fixtures/invalid/interactions-config/PACKAGE_EXACT_INVALID/cases.json +38 -0
  51. package/fixtures/invalid/interactions-config/PACKAGE_RANGE_INVALID/cases.json +38 -0
  52. package/fixtures/invalid/interactions-config/PASSIVE_VISUAL_TOKEN_INVALID/cases.json +11 -0
  53. package/fixtures/invalid/interactions-config/PLAIN_LABEL_INVALID/cases.json +31 -0
  54. package/fixtures/invalid/interactions-config/PLAIN_TEXT_INVALID/cases.json +20 -0
  55. package/fixtures/invalid/interactions-config/REPOSITORY_GLOB_INVALID/cases.json +49 -0
  56. package/fixtures/invalid/interactions-config/REPOSITORY_PATH_INVALID/cases.json +62 -0
  57. package/fixtures/invalid/interactions-config/REQUEST_FIELD_UNKNOWN/cases.json +108 -0
  58. package/fixtures/invalid/interactions-config/RFC3339_INVALID/cases.json +29 -0
  59. package/fixtures/invalid/interactions-config/SCHEMA_ARRAY_TOO_LONG/cases.json +17 -0
  60. package/fixtures/invalid/interactions-config/SCHEMA_CONSTANT_INVALID/cases.json +22 -0
  61. package/fixtures/invalid/interactions-config/SCHEMA_ENUM_INVALID/cases.json +13 -0
  62. package/fixtures/invalid/interactions-config/SCHEMA_NEGATED_RULE_MATCHED/cases.json +11 -0
  63. package/fixtures/invalid/interactions-config/SCHEMA_NUMBER_TOO_LARGE/cases.json +24 -0
  64. package/fixtures/invalid/interactions-config/SCHEMA_NUMBER_TOO_SMALL/cases.json +24 -0
  65. package/fixtures/invalid/interactions-config/SCHEMA_PATTERN_INVALID/cases.json +11 -0
  66. package/fixtures/invalid/interactions-config/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +305 -0
  67. package/fixtures/invalid/interactions-config/SCHEMA_TYPE_INVALID/cases.json +175 -0
  68. package/fixtures/invalid/interactions-config/SCHEMA_VERSION_UNSUPPORTED/cases.json +20 -0
  69. package/fixtures/invalid/interactions-config/SEMVER_INVALID/cases.json +20 -0
  70. package/fixtures/invalid/interactions-config/SEMVER_RANGE_INVALID/cases.json +38 -0
  71. package/fixtures/invalid/interactions-config/SLUG_INVALID/cases.json +38 -0
  72. package/fixtures/invalid/interactions-config/STABLE_ID_INVALID/cases.json +20 -0
  73. package/fixtures/invalid/interactions-config/URN_INVALID/cases.json +38 -0
  74. package/fixtures/invalid/publication/GRAPHEME_LENGTH_INVALID/cases.json +11 -0
  75. package/fixtures/invalid/publication/REQUEST_FIELD_UNKNOWN/cases.json +23 -0
  76. package/fixtures/invalid/publication/SCHEMA_ENUM_INVALID/cases.json +9 -0
  77. package/fixtures/invalid/publication/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +42 -0
  78. package/fixtures/invalid/publication/SCHEMA_TYPE_INVALID/cases.json +18 -0
  79. package/fixtures/invalid/theme-contract/REQUEST_FIELD_UNKNOWN/cases.json +421 -20
  80. package/fixtures/invalid/theme-contract/SCHEMA_ARRAY_TOO_LONG/cases.json +2 -2
  81. package/fixtures/invalid/theme-contract/SCHEMA_ARRAY_TOO_SHORT/cases.json +1 -1
  82. package/fixtures/invalid/theme-contract/SCHEMA_CONSTANT_INVALID/cases.json +2155 -296
  83. package/fixtures/invalid/theme-contract/SCHEMA_ENUM_INVALID/cases.json +229 -9
  84. package/fixtures/invalid/theme-contract/SCHEMA_PATTERN_INVALID/cases.json +176 -0
  85. package/fixtures/invalid/theme-contract/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +8812 -1517
  86. package/fixtures/invalid/theme-contract/SCHEMA_STRING_TOO_LONG/cases.json +22 -0
  87. package/fixtures/manifest.json +21925 -12282
  88. package/fixtures/s2/empty-modules-placements.json +233 -3
  89. package/fixtures/s2/manifest.json +2 -1
  90. package/fixtures/s2/theme-contracts-digest-cycle.json +888 -36
  91. package/fixtures/unknown-field/artifact-manifest/rules.json +1 -1
  92. package/fixtures/unknown-field/build-input/rules.json +233 -1
  93. package/fixtures/unknown-field/build-provenance/rules.json +1 -1
  94. package/fixtures/unknown-field/interactions-config/root.json +19 -0
  95. package/fixtures/unknown-field/interactions-config/rules.json +227 -0
  96. package/fixtures/unknown-field/publication/rules.json +35 -0
  97. package/fixtures/unknown-field/theme-contract/root.json +355 -19
  98. package/fixtures/unknown-field/theme-contract/rules.json +637 -22
  99. package/generated/browser/validator-core.mjs +4 -3
  100. package/generated/typescript/contracts/artifact-manifest.d.ts +1 -1
  101. package/generated/typescript/contracts/build-input.d.ts +66 -1
  102. package/generated/typescript/contracts/build-provenance.d.ts +1 -1
  103. package/generated/typescript/contracts/interactions-config.d.ts +91 -0
  104. package/generated/typescript/contracts/publication.d.ts +12 -0
  105. package/generated/typescript/contracts/theme-contract.d.ts +529 -9
  106. package/generated/typescript/index.d.ts +4 -0
  107. package/generated/typescript/index.js +14 -0
  108. package/openapi/http-catalog.json +230 -2
  109. package/openapi/openapi.yaml +5941 -1509
  110. package/package.json +2 -1
  111. package/sbom.cdx.json +23 -23
  112. package/schemas/artifact-manifest.schema.json +1 -1
  113. package/schemas/build-input.schema.json +136 -2
  114. package/schemas/build-provenance.schema.json +1 -1
  115. package/schemas/interactions-config.schema.json +222 -0
  116. package/schemas/publication.schema.json +21 -0
  117. package/schemas/theme-contract.schema.json +1178 -83
  118. package/src/internal/schema-validator.js +3 -0
@@ -395,17 +395,6 @@
395
395
  "instance": "gala-artifact-validation-v2-invalid",
396
396
  "expectedCodes": ["SCHEMA_CONSTANT_INVALID"]
397
397
  },
398
- {
399
- "caseId": "artifact-manifest-invalid-b024c0db761db968",
400
- "coveredRuleIds": [
401
- "artifact-manifest:#/$defs/manifestRoute/properties/interactionBearing:const"
402
- ],
403
- "schemaId": "urn:gala:schema:artifact-manifest:2.0.0",
404
- "schemaPointer": "#/$defs/manifestRoute/properties/interactionBearing",
405
- "keyword": "const",
406
- "instance": null,
407
- "expectedCodes": ["SCHEMA_CONSTANT_INVALID"]
408
- },
409
398
  {
410
399
  "caseId": "artifact-manifest-invalid-b211cc78348f1693",
411
400
  "coveredRuleIds": [
@@ -266,6 +266,17 @@
266
266
  "instance": [],
267
267
  "expectedCodes": ["SCHEMA_TYPE_INVALID"]
268
268
  },
269
+ {
270
+ "caseId": "artifact-manifest-invalid-787dc2189ad26a82",
271
+ "coveredRuleIds": [
272
+ "artifact-manifest:#/$defs/manifestRoute/properties/interactionBearing:type"
273
+ ],
274
+ "schemaId": "urn:gala:schema:artifact-manifest:2.0.0",
275
+ "schemaPointer": "#/$defs/manifestRoute/properties/interactionBearing",
276
+ "keyword": "type",
277
+ "instance": null,
278
+ "expectedCodes": ["SCHEMA_TYPE_INVALID"]
279
+ },
269
280
  {
270
281
  "caseId": "artifact-manifest-invalid-90a6186dc70cfe33",
271
282
  "coveredRuleIds": ["artifact-manifest:#/$defs/workflowFileEvidence:type"],
@@ -76,6 +76,17 @@
76
76
  "recipe": { "kind": "repeat-string", "value": "a", "count": 2001 },
77
77
  "expectedCodes": ["GRAPHEME_LENGTH_INVALID"]
78
78
  },
79
+ {
80
+ "caseId": "build-input-invalid-6b10c08f816996e4",
81
+ "coveredRuleIds": [
82
+ "build-input:#/$defs/reactionDefinition/properties/label:x-gala-graphemeLength"
83
+ ],
84
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
85
+ "schemaPointer": "#/$defs/reactionDefinition/properties/label",
86
+ "keyword": "x-gala-graphemeLength",
87
+ "recipe": { "kind": "repeat-string", "value": "a", "count": 33 },
88
+ "expectedCodes": ["GRAPHEME_LENGTH_INVALID"]
89
+ },
79
90
  {
80
91
  "caseId": "build-input-invalid-89b0092dc251a8a9",
81
92
  "coveredRuleIds": [
@@ -98,6 +109,17 @@
98
109
  "recipe": { "kind": "repeat-string", "value": "a", "count": 121 },
99
110
  "expectedCodes": ["GRAPHEME_LENGTH_INVALID"]
100
111
  },
112
+ {
113
+ "caseId": "build-input-invalid-a17ac85530e1588e",
114
+ "coveredRuleIds": [
115
+ "build-input:#/$defs/publicationNormalized/properties/newsletter/properties/text:x-gala-graphemeLength"
116
+ ],
117
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
118
+ "schemaPointer": "#/$defs/publicationNormalized/properties/newsletter/properties/text",
119
+ "keyword": "x-gala-graphemeLength",
120
+ "recipe": { "kind": "repeat-string", "value": "a", "count": 301 },
121
+ "expectedCodes": ["GRAPHEME_LENGTH_INVALID"]
122
+ },
101
123
  {
102
124
  "caseId": "build-input-invalid-a5de27eba0f13731",
103
125
  "coveredRuleIds": [
@@ -8,6 +8,35 @@
8
8
  "instance": "",
9
9
  "expectedCodes": ["HTTPS_URL_INVALID"]
10
10
  },
11
+ {
12
+ "caseId": "build-input-invalid-10318dedc18e52cd",
13
+ "coveredRuleIds": ["build-input:#/$defs/interactionsServiceOrigin:type"],
14
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
15
+ "schemaPointer": "#/$defs/interactionsServiceOrigin",
16
+ "keyword": "type",
17
+ "instance": null,
18
+ "expectedCodes": ["HTTPS_URL_INVALID"]
19
+ },
20
+ {
21
+ "caseId": "build-input-invalid-2bed5583fa23011a",
22
+ "coveredRuleIds": ["build-input:#/$defs/interactionsServiceOrigin:pattern"],
23
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
24
+ "schemaPointer": "#/$defs/interactionsServiceOrigin",
25
+ "keyword": "pattern",
26
+ "instance": "",
27
+ "expectedCodes": ["HTTPS_URL_INVALID"]
28
+ },
29
+ {
30
+ "caseId": "build-input-invalid-5a7760620de1abc4",
31
+ "coveredRuleIds": [
32
+ "build-input:#/$defs/interactionsServiceOrigin:maxLength"
33
+ ],
34
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
35
+ "schemaPointer": "#/$defs/interactionsServiceOrigin",
36
+ "keyword": "maxLength",
37
+ "recipe": { "kind": "repeat-string", "value": "a", "count": 256 },
38
+ "expectedCodes": ["HTTPS_URL_INVALID"]
39
+ },
11
40
  {
12
41
  "caseId": "build-input-invalid-795f8420d623acd9",
13
42
  "coveredRuleIds": ["build-input:#/$defs/urlHttps:format"],
@@ -10,6 +10,17 @@
10
10
  "instance": { "unexpected": true },
11
11
  "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
12
12
  },
13
+ {
14
+ "caseId": "build-input-invalid-13698720f3c60b26",
15
+ "coveredRuleIds": [
16
+ "build-input:#/$defs/publicationNormalized/properties/crawlers:additionalProperties"
17
+ ],
18
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
19
+ "schemaPointer": "#/$defs/publicationNormalized/properties/crawlers",
20
+ "keyword": "additionalProperties",
21
+ "instance": { "ai": "allow", "unexpected": true },
22
+ "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
23
+ },
13
24
  {
14
25
  "caseId": "build-input-invalid-1857e60422cdd37d",
15
26
  "coveredRuleIds": [
@@ -155,6 +166,39 @@
155
166
  },
156
167
  "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
157
168
  },
169
+ {
170
+ "caseId": "build-input-invalid-342f95db8b266b3a",
171
+ "coveredRuleIds": [
172
+ "build-input:#/$defs/moduleBuildSelection/properties/interactions:additionalProperties"
173
+ ],
174
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
175
+ "schemaPointer": "#/$defs/moduleBuildSelection/properties/interactions",
176
+ "keyword": "additionalProperties",
177
+ "instance": {
178
+ "config": {
179
+ "schemaId": "urn:gala:schema:interactions-config:2.0.0",
180
+ "schemaVersion": "2.0.0",
181
+ "reactions": {
182
+ "enabled": false,
183
+ "definitions": [
184
+ {
185
+ "key": "fixture-1",
186
+ "label": "fixture-1",
187
+ "visual": { "kind": "emoji", "token": "👍" },
188
+ "order": 1,
189
+ "enabled": false
190
+ }
191
+ ]
192
+ },
193
+ "comments": { "enabled": false, "allowReplies": false, "maxDepth": 1 },
194
+ "publicCounts": { "reactions": false, "comments": false }
195
+ },
196
+ "apiOrigin": "https://fixture-1.example.com",
197
+ "appOrigin": "https://fixture-1.example.com",
198
+ "unexpected": true
199
+ },
200
+ "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
201
+ },
158
202
  {
159
203
  "caseId": "build-input-invalid-3a3a81c31c4ec387",
160
204
  "coveredRuleIds": ["build-input:#/$defs/socialLink:additionalProperties"],
@@ -231,6 +275,22 @@
231
275
  },
232
276
  "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
233
277
  },
278
+ {
279
+ "caseId": "build-input-invalid-5f914f6e417eae91",
280
+ "coveredRuleIds": [
281
+ "build-input:#/$defs/publicationNormalized/properties/newsletter:additionalProperties"
282
+ ],
283
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
284
+ "schemaPointer": "#/$defs/publicationNormalized/properties/newsletter",
285
+ "keyword": "additionalProperties",
286
+ "instance": {
287
+ "url": "https://fixture-1.example.com/",
288
+ "title": "fixture-1",
289
+ "text": "fixture-1",
290
+ "unexpected": true
291
+ },
292
+ "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
293
+ },
234
294
  {
235
295
  "caseId": "build-input-invalid-5fb2cbe20ce5ef24",
236
296
  "coveredRuleIds": [
@@ -314,6 +374,35 @@
314
374
  },
315
375
  "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
316
376
  },
377
+ {
378
+ "caseId": "build-input-invalid-965ba077aca43160",
379
+ "coveredRuleIds": [
380
+ "build-input:#/$defs/interactionsConfig:additionalProperties"
381
+ ],
382
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
383
+ "schemaPointer": "#/$defs/interactionsConfig",
384
+ "keyword": "additionalProperties",
385
+ "instance": {
386
+ "schemaId": "urn:gala:schema:interactions-config:2.0.0",
387
+ "schemaVersion": "2.0.0",
388
+ "reactions": {
389
+ "enabled": false,
390
+ "definitions": [
391
+ {
392
+ "key": "fixture-1",
393
+ "label": "fixture-1",
394
+ "visual": { "kind": "emoji", "token": "👍" },
395
+ "order": 1,
396
+ "enabled": false
397
+ }
398
+ ]
399
+ },
400
+ "comments": { "enabled": false, "allowReplies": false, "maxDepth": 1 },
401
+ "publicCounts": { "reactions": false, "comments": false },
402
+ "unexpected": true
403
+ },
404
+ "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
405
+ },
317
406
  {
318
407
  "caseId": "build-input-invalid-97b92a16cfbd0d25",
319
408
  "coveredRuleIds": [
@@ -445,6 +534,22 @@
445
534
  },
446
535
  "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
447
536
  },
537
+ {
538
+ "caseId": "build-input-invalid-a71e75816d3ab0da",
539
+ "coveredRuleIds": [
540
+ "build-input:#/$defs/interactionsConfig/properties/comments:additionalProperties"
541
+ ],
542
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
543
+ "schemaPointer": "#/$defs/interactionsConfig/properties/comments",
544
+ "keyword": "additionalProperties",
545
+ "instance": {
546
+ "enabled": false,
547
+ "allowReplies": false,
548
+ "maxDepth": 1,
549
+ "unexpected": true
550
+ },
551
+ "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
552
+ },
448
553
  {
449
554
  "caseId": "build-input-invalid-a8608ad957efb4b5",
450
555
  "coveredRuleIds": [
@@ -487,6 +592,17 @@
487
592
  },
488
593
  "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
489
594
  },
595
+ {
596
+ "caseId": "build-input-invalid-ae3b99e46fbddcf9",
597
+ "coveredRuleIds": [
598
+ "build-input:#/$defs/interactionsConfig/properties/publicCounts:additionalProperties"
599
+ ],
600
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
601
+ "schemaPointer": "#/$defs/interactionsConfig/properties/publicCounts",
602
+ "keyword": "additionalProperties",
603
+ "instance": { "reactions": false, "comments": false, "unexpected": true },
604
+ "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
605
+ },
490
606
  {
491
607
  "caseId": "build-input-invalid-b1719a271cd93fb0",
492
608
  "coveredRuleIds": [
@@ -510,6 +626,35 @@
510
626
  },
511
627
  "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
512
628
  },
629
+ {
630
+ "caseId": "build-input-invalid-b4985b4b9a8e00fc",
631
+ "coveredRuleIds": [
632
+ "build-input:#/$defs/reactionDefinition:additionalProperties"
633
+ ],
634
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
635
+ "schemaPointer": "#/$defs/reactionDefinition",
636
+ "keyword": "additionalProperties",
637
+ "instance": {
638
+ "key": "fixture-1",
639
+ "label": "fixture-1",
640
+ "visual": { "kind": "emoji", "token": "👍" },
641
+ "order": 1,
642
+ "enabled": false,
643
+ "unexpected": true
644
+ },
645
+ "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
646
+ },
647
+ {
648
+ "caseId": "build-input-invalid-b636e04b4067cf77",
649
+ "coveredRuleIds": [
650
+ "build-input:#/$defs/reactionVisual:additionalProperties"
651
+ ],
652
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
653
+ "schemaPointer": "#/$defs/reactionVisual",
654
+ "keyword": "additionalProperties",
655
+ "instance": { "kind": "emoji", "token": "👍", "unexpected": true },
656
+ "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
657
+ },
513
658
  {
514
659
  "caseId": "build-input-invalid-bfdcadcf00fc8eb0",
515
660
  "coveredRuleIds": ["build-input:#:additionalProperties"],
@@ -718,6 +863,29 @@
718
863
  },
719
864
  "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
720
865
  },
866
+ {
867
+ "caseId": "build-input-invalid-cff55357f8adf2b6",
868
+ "coveredRuleIds": [
869
+ "build-input:#/$defs/interactionsConfig/properties/reactions:additionalProperties"
870
+ ],
871
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
872
+ "schemaPointer": "#/$defs/interactionsConfig/properties/reactions",
873
+ "keyword": "additionalProperties",
874
+ "instance": {
875
+ "enabled": false,
876
+ "definitions": [
877
+ {
878
+ "key": "fixture-1",
879
+ "label": "fixture-1",
880
+ "visual": { "kind": "emoji", "token": "👍" },
881
+ "order": 1,
882
+ "enabled": false
883
+ }
884
+ ],
885
+ "unexpected": true
886
+ },
887
+ "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
888
+ },
721
889
  {
722
890
  "caseId": "build-input-invalid-d6c4472e305dfe9c",
723
891
  "coveredRuleIds": [
@@ -145,6 +145,21 @@
145
145
  },
146
146
  "expectedCodes": ["SCHEMA_ARRAY_TOO_LONG"]
147
147
  },
148
+ {
149
+ "caseId": "build-input-invalid-a15c50cf2d61e7a8",
150
+ "coveredRuleIds": [
151
+ "build-input:#/$defs/interactionsConfig/properties/reactions/properties/definitions:maxItems"
152
+ ],
153
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
154
+ "schemaPointer": "#/$defs/interactionsConfig/properties/reactions/properties/definitions",
155
+ "keyword": "maxItems",
156
+ "recipe": {
157
+ "kind": "schema-array-count",
158
+ "schemaPointer": "#/$defs/interactionsConfig/properties/reactions/properties/definitions",
159
+ "length": 17
160
+ },
161
+ "expectedCodes": ["SCHEMA_ARRAY_TOO_LONG"]
162
+ },
148
163
  {
149
164
  "caseId": "build-input-invalid-bbfa6459eb1f7d10",
150
165
  "coveredRuleIds": [
@@ -184,6 +184,26 @@
184
184
  "instance": "dark-invalid",
185
185
  "expectedCodes": ["SCHEMA_CONSTANT_INVALID"]
186
186
  },
187
+ {
188
+ "caseId": "build-input-invalid-a42bdc180c5491f2",
189
+ "coveredRuleIds": [
190
+ "build-input:#/$defs/reactionVisual/properties/kind:const"
191
+ ],
192
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
193
+ "schemaPointer": "#/$defs/reactionVisual/properties/kind",
194
+ "keyword": "const",
195
+ "instance": "emoji-invalid",
196
+ "expectedCodes": ["SCHEMA_CONSTANT_INVALID"]
197
+ },
198
+ {
199
+ "caseId": "build-input-invalid-abde74c464514ff8",
200
+ "coveredRuleIds": ["build-input:#/$defs/reactionKey/not:const"],
201
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
202
+ "schemaPointer": "#/$defs/reactionKey/not",
203
+ "keyword": "const",
204
+ "instance": "like-invalid",
205
+ "expectedCodes": ["SCHEMA_CONSTANT_INVALID"]
206
+ },
187
207
  {
188
208
  "caseId": "build-input-invalid-ba59109f4a794651",
189
209
  "coveredRuleIds": [
@@ -30,6 +30,17 @@
30
30
  "instance": "__invalid_enum__",
31
31
  "expectedCodes": ["SCHEMA_ENUM_INVALID"]
32
32
  },
33
+ {
34
+ "caseId": "build-input-invalid-24c610e1d45fea08",
35
+ "coveredRuleIds": [
36
+ "build-input:#/$defs/publicationNormalized/properties/crawlers/properties/ai:enum"
37
+ ],
38
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
39
+ "schemaPointer": "#/$defs/publicationNormalized/properties/crawlers/properties/ai",
40
+ "keyword": "enum",
41
+ "instance": "__invalid_enum__",
42
+ "expectedCodes": ["SCHEMA_ENUM_INVALID"]
43
+ },
33
44
  {
34
45
  "caseId": "build-input-invalid-2caa1e257695a239",
35
46
  "coveredRuleIds": [
@@ -63,6 +74,17 @@
63
74
  "instance": "__invalid_enum__",
64
75
  "expectedCodes": ["SCHEMA_ENUM_INVALID"]
65
76
  },
77
+ {
78
+ "caseId": "build-input-invalid-41a61938fc9dc098",
79
+ "coveredRuleIds": [
80
+ "build-input:#/$defs/reactionVisual/properties/token:enum"
81
+ ],
82
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
83
+ "schemaPointer": "#/$defs/reactionVisual/properties/token",
84
+ "keyword": "enum",
85
+ "instance": "__invalid_enum__",
86
+ "expectedCodes": ["SCHEMA_ENUM_INVALID"]
87
+ },
66
88
  {
67
89
  "caseId": "build-input-invalid-589156d8da12f8e4",
68
90
  "coveredRuleIds": [
@@ -26,6 +26,15 @@
26
26
  "instance": { "route": null },
27
27
  "expectedCodes": ["SCHEMA_NEGATED_RULE_MATCHED"]
28
28
  },
29
+ {
30
+ "caseId": "build-input-invalid-cb6ab167e9a387cb",
31
+ "coveredRuleIds": ["build-input:#/$defs/reactionKey:not"],
32
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
33
+ "schemaPointer": "#/$defs/reactionKey",
34
+ "keyword": "not",
35
+ "instance": "like",
36
+ "expectedCodes": ["SCHEMA_NEGATED_RULE_MATCHED"]
37
+ },
29
38
  {
30
39
  "caseId": "build-input-invalid-fced846c573232d7",
31
40
  "coveredRuleIds": ["build-input:#/$defs/navigationItem/allOf/0/then:not"],
@@ -10,6 +10,28 @@
10
10
  "instance": 52428801,
11
11
  "expectedCodes": ["SCHEMA_NUMBER_TOO_LARGE"]
12
12
  },
13
+ {
14
+ "caseId": "build-input-invalid-846eb6449989d3c3",
15
+ "coveredRuleIds": [
16
+ "build-input:#/$defs/interactionsConfig/properties/comments/properties/maxDepth:maximum"
17
+ ],
18
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
19
+ "schemaPointer": "#/$defs/interactionsConfig/properties/comments/properties/maxDepth",
20
+ "keyword": "maximum",
21
+ "instance": 5,
22
+ "expectedCodes": ["SCHEMA_NUMBER_TOO_LARGE"]
23
+ },
24
+ {
25
+ "caseId": "build-input-invalid-a1defba25913e967",
26
+ "coveredRuleIds": [
27
+ "build-input:#/$defs/reactionDefinition/properties/order:maximum"
28
+ ],
29
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
30
+ "schemaPointer": "#/$defs/reactionDefinition/properties/order",
31
+ "keyword": "maximum",
32
+ "instance": 17,
33
+ "expectedCodes": ["SCHEMA_NUMBER_TOO_LARGE"]
34
+ },
13
35
  {
14
36
  "caseId": "build-input-invalid-b97973873c4a39b5",
15
37
  "coveredRuleIds": [
@@ -1,4 +1,15 @@
1
1
  [
2
+ {
3
+ "caseId": "build-input-invalid-5a4fe0dd501518da",
4
+ "coveredRuleIds": [
5
+ "build-input:#/$defs/interactionsConfig/properties/comments/properties/maxDepth:minimum"
6
+ ],
7
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
8
+ "schemaPointer": "#/$defs/interactionsConfig/properties/comments/properties/maxDepth",
9
+ "keyword": "minimum",
10
+ "instance": 0,
11
+ "expectedCodes": ["SCHEMA_NUMBER_TOO_SMALL"]
12
+ },
2
13
  {
3
14
  "caseId": "build-input-invalid-7d7008685fde4378",
4
15
  "coveredRuleIds": [
@@ -10,6 +21,17 @@
10
21
  "instance": 0,
11
22
  "expectedCodes": ["SCHEMA_NUMBER_TOO_SMALL"]
12
23
  },
24
+ {
25
+ "caseId": "build-input-invalid-80ccfe4c1060b9f3",
26
+ "coveredRuleIds": [
27
+ "build-input:#/$defs/reactionDefinition/properties/order:minimum"
28
+ ],
29
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
30
+ "schemaPointer": "#/$defs/reactionDefinition/properties/order",
31
+ "keyword": "minimum",
32
+ "instance": 0,
33
+ "expectedCodes": ["SCHEMA_NUMBER_TOO_SMALL"]
34
+ },
13
35
  {
14
36
  "caseId": "build-input-invalid-f08214fcddcfb213",
15
37
  "coveredRuleIds": [
@@ -1,19 +1,4 @@
1
1
  [
2
- {
3
- "caseId": "build-input-invalid-8c4cf2d139b126ce",
4
- "coveredRuleIds": [
5
- "build-input:#/$defs/moduleBuildSelection:maxProperties"
6
- ],
7
- "schemaId": "urn:gala:schema:build-input:2.0.0",
8
- "schemaPointer": "#/$defs/moduleBuildSelection",
9
- "keyword": "maxProperties",
10
- "recipe": {
11
- "kind": "numbered-object",
12
- "schemaPointer": "#/$defs/moduleBuildSelection",
13
- "count": 1
14
- },
15
- "expectedCodes": ["SCHEMA_OBJECT_TOO_LARGE"]
16
- },
17
2
  {
18
3
  "caseId": "build-input-invalid-939226632d6b9645",
19
4
  "coveredRuleIds": ["build-input:#/$defs/semanticTokens:maxProperties"],
@@ -38,5 +38,14 @@
38
38
  "keyword": "pattern",
39
39
  "instance": "",
40
40
  "expectedCodes": ["SCHEMA_PATTERN_INVALID"]
41
+ },
42
+ {
43
+ "caseId": "build-input-invalid-e1b12cc5c7e30288",
44
+ "coveredRuleIds": ["build-input:#/$defs/reactionKey:pattern"],
45
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
46
+ "schemaPointer": "#/$defs/reactionKey",
47
+ "keyword": "pattern",
48
+ "instance": "",
49
+ "expectedCodes": ["SCHEMA_PATTERN_INVALID"]
41
50
  }
42
51
  ]