@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
@@ -29,7 +29,7 @@
29
29
  "version": "2.0.0",
30
30
  "path": "schemas/artifact-manifest.schema.json",
31
31
  "materialized": true,
32
- "sourceDigest": "sha256:ee2107c4ae162bc975ceac5e3c543a77ca57aa50892a037fc55a9878a57785cf",
32
+ "sourceDigest": "sha256:2d99b1af6e435acb50aac4b5f2c3f3e620eaa504097ea908ec6b1951829119f4",
33
33
  "typescriptRootType": "ArtifactManifestDocument"
34
34
  },
35
35
  {
@@ -49,7 +49,7 @@
49
49
  "version": "2.0.0",
50
50
  "path": "schemas/build-input.schema.json",
51
51
  "materialized": true,
52
- "sourceDigest": "sha256:342260092fc16bdd6ba6b38490fbdaeca6817212fe51f8082b464b70d01469d0",
52
+ "sourceDigest": "sha256:0a8f2b34b96b70a9d6c3086effb5249c8392c862d018af8a358ce08e94a25f6f",
53
53
  "typescriptRootType": "BuildInputDocument"
54
54
  },
55
55
  {
@@ -59,7 +59,7 @@
59
59
  "version": "2.0.0",
60
60
  "path": "schemas/build-provenance.schema.json",
61
61
  "materialized": true,
62
- "sourceDigest": "sha256:d97d133c083770f75f91356bcc084a0f1df33c0d8ff3e60bc2799204d2ae9958",
62
+ "sourceDigest": "sha256:6af2c4f1b9092e08e32e17a1a57ebbfd6a519fb023d0cb5196c41feb20e31a67",
63
63
  "typescriptRootType": "BuildProvenanceDocument"
64
64
  },
65
65
  {
@@ -112,6 +112,16 @@
112
112
  "sourceDigest": "sha256:aa1df78fa2c78bb1eb0dcf6dab1a65a7553bfeb9ef13d180827ebbf0bd7aab92",
113
113
  "typescriptRootType": "EventEnvelopeDocument"
114
114
  },
115
+ {
116
+ "contract": "interactions-config",
117
+ "artifactKind": "JSON_SCHEMA",
118
+ "id": "urn:gala:schema:interactions-config:2.0.0",
119
+ "version": "2.0.0",
120
+ "path": "schemas/interactions-config.schema.json",
121
+ "materialized": true,
122
+ "sourceDigest": "sha256:3e4becec944a33fa3119803ca0729f56a609736adc71f3037d2ba933af5037a2",
123
+ "typescriptRootType": "InteractionsConfigDocument"
124
+ },
115
125
  {
116
126
  "contract": "lock",
117
127
  "artifactKind": "JSON_SCHEMA",
@@ -169,7 +179,7 @@
169
179
  "version": "2.0.0",
170
180
  "path": "schemas/publication.schema.json",
171
181
  "materialized": true,
172
- "sourceDigest": "sha256:257401246e0de3b314003287da2f280c0be2e8286f7fdeb666179b95c9f93936",
182
+ "sourceDigest": "sha256:90ce1cc0d061bd87b18539d9822aca2ec762be2e5fadad9aca80d8351f7a872e",
173
183
  "typescriptRootType": "PublicationDocument"
174
184
  },
175
185
  {
@@ -199,7 +209,7 @@
199
209
  "version": "2.0.0",
200
210
  "path": "schemas/theme-contract.schema.json",
201
211
  "materialized": true,
202
- "sourceDigest": "sha256:05eddb45e9faf95f28ab8a44a4f9dddba744292dbabe669d05f1816d66969bcd",
212
+ "sourceDigest": "sha256:4d586690db60767ed80b3bb15d3ac8ba6a68bfc9848acb58cbbeab4f7434bf56",
203
213
  "typescriptRootType": "ThemeContractDocument"
204
214
  },
205
215
  {
@@ -209,9 +219,9 @@
209
219
  "version": "2.0.0",
210
220
  "path": "openapi/openapi.yaml",
211
221
  "materialized": true,
212
- "sourceDigest": "sha256:f3d0acf21a5fe89857d94dfa3067bbb59486a3e3a7f263cdd261695238303290",
222
+ "sourceDigest": "sha256:b926672f6094bd397d63ae05f96eff46a47109e12aeca1761bdb3ee7c3957e5e",
213
223
  "typescriptRootType": null
214
224
  }
215
225
  ],
216
- "digest": "sha256:78eef0b48eb6ee220a0cbb5a603a76ecd410c2203ff0523fe2b39c48b0854dfa"
226
+ "digest": "sha256:236ad080e7ad34f946204ed53078ef03857055740a0926e0a7a06aac856a2b68"
217
227
  }
@@ -1426,11 +1426,11 @@
1426
1426
  {
1427
1427
  "caseId": "artifact-manifest-valid-738056632652b2e7",
1428
1428
  "coveredRuleIds": [
1429
- "artifact-manifest:#/$defs/manifestRoute/properties/interactionBearing:const"
1429
+ "artifact-manifest:#/$defs/manifestRoute/properties/interactionBearing:type"
1430
1430
  ],
1431
1431
  "schemaId": "urn:gala:schema:artifact-manifest:2.0.0",
1432
1432
  "schemaPointer": "#/$defs/manifestRoute/properties/interactionBearing",
1433
- "keyword": "const",
1433
+ "keyword": "type",
1434
1434
  "instance": false
1435
1435
  },
1436
1436
  {
@@ -257,6 +257,20 @@
257
257
  "keyword": "not",
258
258
  "instance": { "route": null }
259
259
  },
260
+ {
261
+ "caseId": "build-input-valid-0ac82bcd811aa1d8",
262
+ "coveredRuleIds": [
263
+ "build-input:#/$defs/interactionsConfig/properties/comments:additionalProperties",
264
+ "build-input:#/$defs/interactionsConfig/properties/comments:required:allowReplies",
265
+ "build-input:#/$defs/interactionsConfig/properties/comments:required:enabled",
266
+ "build-input:#/$defs/interactionsConfig/properties/comments:required:maxDepth",
267
+ "build-input:#/$defs/interactionsConfig/properties/comments:type"
268
+ ],
269
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
270
+ "schemaPointer": "#/$defs/interactionsConfig/properties/comments",
271
+ "keyword": "additionalProperties",
272
+ "instance": { "enabled": false, "allowReplies": false, "maxDepth": 1 }
273
+ },
260
274
  {
261
275
  "caseId": "build-input-valid-0b53e972d2ab2c5b",
262
276
  "coveredRuleIds": [
@@ -283,6 +297,18 @@
283
297
  }
284
298
  ]
285
299
  },
300
+ {
301
+ "caseId": "build-input-valid-0e1d0f2c24de809f",
302
+ "coveredRuleIds": [
303
+ "build-input:#/$defs/interactionsServiceOrigin:maxLength",
304
+ "build-input:#/$defs/interactionsServiceOrigin:pattern",
305
+ "build-input:#/$defs/interactionsServiceOrigin:type"
306
+ ],
307
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
308
+ "schemaPointer": "#/$defs/interactionsServiceOrigin",
309
+ "keyword": "maxLength",
310
+ "instance": "https://fixture-1.example.com"
311
+ },
286
312
  {
287
313
  "caseId": "build-input-valid-15dc616a37a9207f",
288
314
  "coveredRuleIds": [
@@ -402,6 +428,16 @@
402
428
  }
403
429
  }
404
430
  },
431
+ {
432
+ "caseId": "build-input-valid-1acb1fc4b169c1ea",
433
+ "coveredRuleIds": [
434
+ "build-input:#/$defs/interactionsConfig/properties/publicCounts/properties/reactions:type"
435
+ ],
436
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
437
+ "schemaPointer": "#/$defs/interactionsConfig/properties/publicCounts/properties/reactions",
438
+ "keyword": "type",
439
+ "instance": false
440
+ },
405
441
  {
406
442
  "caseId": "build-input-valid-1f162f1bb1a03f9d",
407
443
  "coveredRuleIds": [
@@ -441,6 +477,26 @@
441
477
  "keyword": "x-gala-graphemeLength",
442
478
  "instance": "fixture-1"
443
479
  },
480
+ {
481
+ "caseId": "build-input-valid-21b82ef8b0f22a28",
482
+ "coveredRuleIds": [
483
+ "build-input:#/$defs/interactionsConfig/properties/comments/properties/allowReplies:type"
484
+ ],
485
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
486
+ "schemaPointer": "#/$defs/interactionsConfig/properties/comments/properties/allowReplies",
487
+ "keyword": "type",
488
+ "instance": false
489
+ },
490
+ {
491
+ "caseId": "build-input-valid-227809fbe76d181d",
492
+ "coveredRuleIds": [
493
+ "build-input:#/$defs/reactionDefinition/properties/enabled:type"
494
+ ],
495
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
496
+ "schemaPointer": "#/$defs/reactionDefinition/properties/enabled",
497
+ "keyword": "type",
498
+ "instance": false
499
+ },
444
500
  {
445
501
  "caseId": "build-input-valid-2330ba3ae3cda318",
446
502
  "coveredRuleIds": [
@@ -541,6 +597,16 @@
541
597
  "keyword": "format",
542
598
  "instance": "content/fixture-1.md"
543
599
  },
600
+ {
601
+ "caseId": "build-input-valid-2de642706d96dcf4",
602
+ "coveredRuleIds": [
603
+ "build-input:#/$defs/interactionsConfig/properties/schemaVersion:const"
604
+ ],
605
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
606
+ "schemaPointer": "#/$defs/interactionsConfig/properties/schemaVersion",
607
+ "keyword": "const",
608
+ "instance": "2.0.0"
609
+ },
544
610
  {
545
611
  "caseId": "build-input-valid-2e5700695c2a3878",
546
612
  "coveredRuleIds": ["build-input:#/properties/placements:const"],
@@ -616,6 +682,28 @@
616
682
  "keyword": "required",
617
683
  "instance": { "route": null }
618
684
  },
685
+ {
686
+ "caseId": "build-input-valid-32690b22292983d6",
687
+ "coveredRuleIds": [
688
+ "build-input:#/$defs/reactionDefinition:additionalProperties",
689
+ "build-input:#/$defs/reactionDefinition:required:enabled",
690
+ "build-input:#/$defs/reactionDefinition:required:key",
691
+ "build-input:#/$defs/reactionDefinition:required:label",
692
+ "build-input:#/$defs/reactionDefinition:required:order",
693
+ "build-input:#/$defs/reactionDefinition:required:visual",
694
+ "build-input:#/$defs/reactionDefinition:type"
695
+ ],
696
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
697
+ "schemaPointer": "#/$defs/reactionDefinition",
698
+ "keyword": "additionalProperties",
699
+ "instance": {
700
+ "key": "fixture-1",
701
+ "label": "fixture-1",
702
+ "visual": { "kind": "emoji", "token": "👍" },
703
+ "order": 1,
704
+ "enabled": false
705
+ }
706
+ },
619
707
  {
620
708
  "caseId": "build-input-valid-32d14fd0ba2b5ea1",
621
709
  "coveredRuleIds": [
@@ -626,6 +714,16 @@
626
714
  "keyword": "type",
627
715
  "instance": false
628
716
  },
717
+ {
718
+ "caseId": "build-input-valid-32d286f6b3477b79",
719
+ "coveredRuleIds": [
720
+ "build-input:#/$defs/reactionVisual/properties/token:enum"
721
+ ],
722
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
723
+ "schemaPointer": "#/$defs/reactionVisual/properties/token",
724
+ "keyword": "enum",
725
+ "instance": "👍"
726
+ },
629
727
  {
630
728
  "caseId": "build-input-valid-334359b90efed75d",
631
729
  "coveredRuleIds": [
@@ -909,6 +1007,41 @@
909
1007
  }
910
1008
  }
911
1009
  },
1010
+ {
1011
+ "caseId": "build-input-valid-39a0234ee4a035d0",
1012
+ "coveredRuleIds": [
1013
+ "build-input:#/$defs/moduleBuildSelection/properties/interactions:additionalProperties",
1014
+ "build-input:#/$defs/moduleBuildSelection/properties/interactions:required:apiOrigin",
1015
+ "build-input:#/$defs/moduleBuildSelection/properties/interactions:required:appOrigin",
1016
+ "build-input:#/$defs/moduleBuildSelection/properties/interactions:required:config",
1017
+ "build-input:#/$defs/moduleBuildSelection/properties/interactions:type"
1018
+ ],
1019
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
1020
+ "schemaPointer": "#/$defs/moduleBuildSelection/properties/interactions",
1021
+ "keyword": "additionalProperties",
1022
+ "instance": {
1023
+ "config": {
1024
+ "schemaId": "urn:gala:schema:interactions-config:2.0.0",
1025
+ "schemaVersion": "2.0.0",
1026
+ "reactions": {
1027
+ "enabled": false,
1028
+ "definitions": [
1029
+ {
1030
+ "key": "fixture-1",
1031
+ "label": "fixture-1",
1032
+ "visual": { "kind": "emoji", "token": "👍" },
1033
+ "order": 1,
1034
+ "enabled": false
1035
+ }
1036
+ ]
1037
+ },
1038
+ "comments": { "enabled": false, "allowReplies": false, "maxDepth": 1 },
1039
+ "publicCounts": { "reactions": false, "comments": false }
1040
+ },
1041
+ "apiOrigin": "https://fixture-1.example.com",
1042
+ "appOrigin": "https://fixture-1.example.com"
1043
+ }
1044
+ },
912
1045
  {
913
1046
  "caseId": "build-input-valid-3b188d4e77d173de",
914
1047
  "coveredRuleIds": [
@@ -929,6 +1062,39 @@
929
1062
  "keyword": "const",
930
1063
  "instance": "built-in-default"
931
1064
  },
1065
+ {
1066
+ "caseId": "build-input-valid-3e63676d6a733634",
1067
+ "coveredRuleIds": [
1068
+ "build-input:#/$defs/interactionsConfig:additionalProperties",
1069
+ "build-input:#/$defs/interactionsConfig:required:comments",
1070
+ "build-input:#/$defs/interactionsConfig:required:publicCounts",
1071
+ "build-input:#/$defs/interactionsConfig:required:reactions",
1072
+ "build-input:#/$defs/interactionsConfig:required:schemaId",
1073
+ "build-input:#/$defs/interactionsConfig:required:schemaVersion",
1074
+ "build-input:#/$defs/interactionsConfig:type"
1075
+ ],
1076
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
1077
+ "schemaPointer": "#/$defs/interactionsConfig",
1078
+ "keyword": "additionalProperties",
1079
+ "instance": {
1080
+ "schemaId": "urn:gala:schema:interactions-config:2.0.0",
1081
+ "schemaVersion": "2.0.0",
1082
+ "reactions": {
1083
+ "enabled": false,
1084
+ "definitions": [
1085
+ {
1086
+ "key": "fixture-1",
1087
+ "label": "fixture-1",
1088
+ "visual": { "kind": "emoji", "token": "👍" },
1089
+ "order": 1,
1090
+ "enabled": false
1091
+ }
1092
+ ]
1093
+ },
1094
+ "comments": { "enabled": false, "allowReplies": false, "maxDepth": 1 },
1095
+ "publicCounts": { "reactions": false, "comments": false }
1096
+ }
1097
+ },
932
1098
  {
933
1099
  "caseId": "build-input-valid-3e704a85aded3da0",
934
1100
  "coveredRuleIds": [
@@ -1191,6 +1357,24 @@
1191
1357
  }
1192
1358
  ]
1193
1359
  },
1360
+ {
1361
+ "caseId": "build-input-valid-527b14b2a55202e0",
1362
+ "coveredRuleIds": [
1363
+ "build-input:#/$defs/publicationNormalized/properties/newsletter:additionalProperties",
1364
+ "build-input:#/$defs/publicationNormalized/properties/newsletter:required:text",
1365
+ "build-input:#/$defs/publicationNormalized/properties/newsletter:required:title",
1366
+ "build-input:#/$defs/publicationNormalized/properties/newsletter:required:url",
1367
+ "build-input:#/$defs/publicationNormalized/properties/newsletter:type"
1368
+ ],
1369
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
1370
+ "schemaPointer": "#/$defs/publicationNormalized/properties/newsletter",
1371
+ "keyword": "additionalProperties",
1372
+ "instance": {
1373
+ "url": "https://fixture-1.example.com/",
1374
+ "title": "fixture-1",
1375
+ "text": "fixture-1"
1376
+ }
1377
+ },
1194
1378
  {
1195
1379
  "caseId": "build-input-valid-53a189b729c940c9",
1196
1380
  "coveredRuleIds": [
@@ -1226,6 +1410,28 @@
1226
1410
  }
1227
1411
  ]
1228
1412
  },
1413
+ {
1414
+ "caseId": "build-input-valid-542cb60dc0cd0988",
1415
+ "coveredRuleIds": [
1416
+ "build-input:#/$defs/interactionsConfig/properties/comments/properties/enabled:type"
1417
+ ],
1418
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
1419
+ "schemaPointer": "#/$defs/interactionsConfig/properties/comments/properties/enabled",
1420
+ "keyword": "type",
1421
+ "instance": false
1422
+ },
1423
+ {
1424
+ "caseId": "build-input-valid-57a4e9646af8b6f1",
1425
+ "coveredRuleIds": [
1426
+ "build-input:#/$defs/reactionDefinition/properties/order:maximum",
1427
+ "build-input:#/$defs/reactionDefinition/properties/order:minimum",
1428
+ "build-input:#/$defs/reactionDefinition/properties/order:type"
1429
+ ],
1430
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
1431
+ "schemaPointer": "#/$defs/reactionDefinition/properties/order",
1432
+ "keyword": "maximum",
1433
+ "instance": 1
1434
+ },
1229
1435
  {
1230
1436
  "caseId": "build-input-valid-5838043483525c02",
1231
1437
  "coveredRuleIds": [
@@ -1237,6 +1443,18 @@
1237
1443
  "keyword": "pattern",
1238
1444
  "instance": "sha256:0000000000000000000000000000000000000000000000000000000000000001"
1239
1445
  },
1446
+ {
1447
+ "caseId": "build-input-valid-5cd12f3ec2d6f40f",
1448
+ "coveredRuleIds": [
1449
+ "build-input:#/$defs/publicationNormalized/properties/crawlers:additionalProperties",
1450
+ "build-input:#/$defs/publicationNormalized/properties/crawlers:required:ai",
1451
+ "build-input:#/$defs/publicationNormalized/properties/crawlers:type"
1452
+ ],
1453
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
1454
+ "schemaPointer": "#/$defs/publicationNormalized/properties/crawlers",
1455
+ "keyword": "additionalProperties",
1456
+ "instance": { "ai": "allow" }
1457
+ },
1240
1458
  {
1241
1459
  "caseId": "build-input-valid-60afd7fb506f64f8",
1242
1460
  "coveredRuleIds": ["build-input:#/properties/schemaId:const"],
@@ -1276,6 +1494,18 @@
1276
1494
  }
1277
1495
  ]
1278
1496
  },
1497
+ {
1498
+ "caseId": "build-input-valid-6a75ae389f594781",
1499
+ "coveredRuleIds": [
1500
+ "build-input:#/$defs/reactionKey:not",
1501
+ "build-input:#/$defs/reactionKey:pattern",
1502
+ "build-input:#/$defs/reactionKey:type"
1503
+ ],
1504
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
1505
+ "schemaPointer": "#/$defs/reactionKey",
1506
+ "keyword": "not",
1507
+ "instance": "fixture-1"
1508
+ },
1279
1509
  {
1280
1510
  "caseId": "build-input-valid-6c8df9dafddc200f",
1281
1511
  "coveredRuleIds": [
@@ -1326,6 +1556,14 @@
1326
1556
  "keyword": "x-gala-graphemeLength",
1327
1557
  "instance": "fixture-1"
1328
1558
  },
1559
+ {
1560
+ "caseId": "build-input-valid-7314e2e8181b7a0a",
1561
+ "coveredRuleIds": ["build-input:#/$defs/reactionKey/not:const"],
1562
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
1563
+ "schemaPointer": "#/$defs/reactionKey/not",
1564
+ "keyword": "const",
1565
+ "instance": "like"
1566
+ },
1329
1567
  {
1330
1568
  "caseId": "build-input-valid-74061890596a952b",
1331
1569
  "coveredRuleIds": [
@@ -1397,6 +1635,26 @@
1397
1635
  "keyword": "const",
1398
1636
  "instance": "light"
1399
1637
  },
1638
+ {
1639
+ "caseId": "build-input-valid-7fda9e8808193e3d",
1640
+ "coveredRuleIds": [
1641
+ "build-input:#/$defs/interactionsConfig/properties/reactions/properties/definitions:maxItems",
1642
+ "build-input:#/$defs/interactionsConfig/properties/reactions/properties/definitions:minItems",
1643
+ "build-input:#/$defs/interactionsConfig/properties/reactions/properties/definitions:type"
1644
+ ],
1645
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
1646
+ "schemaPointer": "#/$defs/interactionsConfig/properties/reactions/properties/definitions",
1647
+ "keyword": "maxItems",
1648
+ "instance": [
1649
+ {
1650
+ "key": "fixture-1",
1651
+ "label": "fixture-1",
1652
+ "visual": { "kind": "emoji", "token": "👍" },
1653
+ "order": 1,
1654
+ "enabled": false
1655
+ }
1656
+ ]
1657
+ },
1400
1658
  {
1401
1659
  "caseId": "build-input-valid-81e47acb3276faad",
1402
1660
  "coveredRuleIds": [
@@ -1410,6 +1668,16 @@
1410
1668
  "keyword": "format",
1411
1669
  "instance": "^2.0.0"
1412
1670
  },
1671
+ {
1672
+ "caseId": "build-input-valid-83bbc31efe363baa",
1673
+ "coveredRuleIds": [
1674
+ "build-input:#/$defs/publicationNormalized/properties/newsletter/properties/text:x-gala-graphemeLength"
1675
+ ],
1676
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
1677
+ "schemaPointer": "#/$defs/publicationNormalized/properties/newsletter/properties/text",
1678
+ "keyword": "x-gala-graphemeLength",
1679
+ "instance": "fixture-1"
1680
+ },
1413
1681
  {
1414
1682
  "caseId": "build-input-valid-851b7ad4de3183a8",
1415
1683
  "coveredRuleIds": [
@@ -1498,6 +1766,16 @@
1498
1766
  "keyword": "enum",
1499
1767
  "instance": "light"
1500
1768
  },
1769
+ {
1770
+ "caseId": "build-input-valid-90ce5901046095a1",
1771
+ "coveredRuleIds": [
1772
+ "build-input:#/$defs/interactionsConfig/properties/publicCounts/properties/comments:type"
1773
+ ],
1774
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
1775
+ "schemaPointer": "#/$defs/interactionsConfig/properties/publicCounts/properties/comments",
1776
+ "keyword": "type",
1777
+ "instance": false
1778
+ },
1501
1779
  {
1502
1780
  "caseId": "build-input-valid-921cd78eaf7e28e9",
1503
1781
  "coveredRuleIds": [
@@ -1693,6 +1971,29 @@
1693
1971
  "keyword": "maxItems",
1694
1972
  "instance": ["019c0000-0000-7000-8000-000000000001"]
1695
1973
  },
1974
+ {
1975
+ "caseId": "build-input-valid-aa780f7f611f7ee7",
1976
+ "coveredRuleIds": [
1977
+ "build-input:#/$defs/interactionsConfig/properties/publicCounts:additionalProperties",
1978
+ "build-input:#/$defs/interactionsConfig/properties/publicCounts:required:comments",
1979
+ "build-input:#/$defs/interactionsConfig/properties/publicCounts:required:reactions",
1980
+ "build-input:#/$defs/interactionsConfig/properties/publicCounts:type"
1981
+ ],
1982
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
1983
+ "schemaPointer": "#/$defs/interactionsConfig/properties/publicCounts",
1984
+ "keyword": "additionalProperties",
1985
+ "instance": { "reactions": false, "comments": false }
1986
+ },
1987
+ {
1988
+ "caseId": "build-input-valid-aa92c8059981419b",
1989
+ "coveredRuleIds": [
1990
+ "build-input:#/$defs/interactionsConfig/properties/schemaId:const"
1991
+ ],
1992
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
1993
+ "schemaPointer": "#/$defs/interactionsConfig/properties/schemaId",
1994
+ "keyword": "const",
1995
+ "instance": "urn:gala:schema:interactions-config:2.0.0"
1996
+ },
1696
1997
  {
1697
1998
  "caseId": "build-input-valid-abb26fa16d36a229",
1698
1999
  "coveredRuleIds": [
@@ -1707,7 +2008,6 @@
1707
2008
  "caseId": "build-input-valid-ad3a9e70024dcd1c",
1708
2009
  "coveredRuleIds": [
1709
2010
  "build-input:#/$defs/moduleBuildSelection:additionalProperties",
1710
- "build-input:#/$defs/moduleBuildSelection:maxProperties",
1711
2011
  "build-input:#/$defs/moduleBuildSelection:type"
1712
2012
  ],
1713
2013
  "schemaId": "urn:gala:schema:build-input:2.0.0",
@@ -1868,6 +2168,16 @@
1868
2168
  "keyword": "required",
1869
2169
  "instance": { "mediaType": "audio/mpeg" }
1870
2170
  },
2171
+ {
2172
+ "caseId": "build-input-valid-cf7f7f1d7cb4c32d",
2173
+ "coveredRuleIds": [
2174
+ "build-input:#/$defs/reactionVisual/properties/kind:const"
2175
+ ],
2176
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
2177
+ "schemaPointer": "#/$defs/reactionVisual/properties/kind",
2178
+ "keyword": "const",
2179
+ "instance": "emoji"
2180
+ },
1871
2181
  {
1872
2182
  "caseId": "build-input-valid-d3f6cc6ab7220249",
1873
2183
  "coveredRuleIds": ["build-input:#/$defs/normalizedSource:oneOf"],
@@ -2078,6 +2388,19 @@
2078
2388
  "keyword": "const",
2079
2389
  "instance": "@rathnasgala2/template"
2080
2390
  },
2391
+ {
2392
+ "caseId": "build-input-valid-e33d59edd841db65",
2393
+ "coveredRuleIds": [
2394
+ "build-input:#/$defs/reactionVisual:additionalProperties",
2395
+ "build-input:#/$defs/reactionVisual:required:kind",
2396
+ "build-input:#/$defs/reactionVisual:required:token",
2397
+ "build-input:#/$defs/reactionVisual:type"
2398
+ ],
2399
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
2400
+ "schemaPointer": "#/$defs/reactionVisual",
2401
+ "keyword": "additionalProperties",
2402
+ "instance": { "kind": "emoji", "token": "👍" }
2403
+ },
2081
2404
  {
2082
2405
  "caseId": "build-input-valid-e5d053ef3f3709f2",
2083
2406
  "coveredRuleIds": [
@@ -2130,6 +2453,16 @@
2130
2453
  "keyword": "enum",
2131
2454
  "instance": "website"
2132
2455
  },
2456
+ {
2457
+ "caseId": "build-input-valid-e8f6fa64797595d5",
2458
+ "coveredRuleIds": [
2459
+ "build-input:#/$defs/publicationNormalized/properties/crawlers/properties/ai:enum"
2460
+ ],
2461
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
2462
+ "schemaPointer": "#/$defs/publicationNormalized/properties/crawlers/properties/ai",
2463
+ "keyword": "enum",
2464
+ "instance": "allow"
2465
+ },
2133
2466
  {
2134
2467
  "caseId": "build-input-valid-e91f7c18870f1e9b",
2135
2468
  "coveredRuleIds": [
@@ -2173,6 +2506,30 @@
2173
2506
  "keyword": "pattern",
2174
2507
  "instance": "019c0000-0000-7000-8000-000000000001"
2175
2508
  },
2509
+ {
2510
+ "caseId": "build-input-valid-f10e4d8207bd7581",
2511
+ "coveredRuleIds": [
2512
+ "build-input:#/$defs/interactionsConfig/properties/reactions:additionalProperties",
2513
+ "build-input:#/$defs/interactionsConfig/properties/reactions:required:definitions",
2514
+ "build-input:#/$defs/interactionsConfig/properties/reactions:required:enabled",
2515
+ "build-input:#/$defs/interactionsConfig/properties/reactions:type"
2516
+ ],
2517
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
2518
+ "schemaPointer": "#/$defs/interactionsConfig/properties/reactions",
2519
+ "keyword": "additionalProperties",
2520
+ "instance": {
2521
+ "enabled": false,
2522
+ "definitions": [
2523
+ {
2524
+ "key": "fixture-1",
2525
+ "label": "fixture-1",
2526
+ "visual": { "kind": "emoji", "token": "👍" },
2527
+ "order": 1,
2528
+ "enabled": false
2529
+ }
2530
+ ]
2531
+ }
2532
+ },
2176
2533
  {
2177
2534
  "caseId": "build-input-valid-f15536e08dbd6868",
2178
2535
  "coveredRuleIds": [
@@ -2192,6 +2549,28 @@
2192
2549
  }
2193
2550
  ]
2194
2551
  },
2552
+ {
2553
+ "caseId": "build-input-valid-f165210270277ed4",
2554
+ "coveredRuleIds": [
2555
+ "build-input:#/$defs/interactionsConfig/properties/reactions/properties/enabled:type"
2556
+ ],
2557
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
2558
+ "schemaPointer": "#/$defs/interactionsConfig/properties/reactions/properties/enabled",
2559
+ "keyword": "type",
2560
+ "instance": false
2561
+ },
2562
+ {
2563
+ "caseId": "build-input-valid-f32995a8c5e4e569",
2564
+ "coveredRuleIds": [
2565
+ "build-input:#/$defs/interactionsConfig/properties/comments/properties/maxDepth:maximum",
2566
+ "build-input:#/$defs/interactionsConfig/properties/comments/properties/maxDepth:minimum",
2567
+ "build-input:#/$defs/interactionsConfig/properties/comments/properties/maxDepth:type"
2568
+ ],
2569
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
2570
+ "schemaPointer": "#/$defs/interactionsConfig/properties/comments/properties/maxDepth",
2571
+ "keyword": "maximum",
2572
+ "instance": 1
2573
+ },
2195
2574
  {
2196
2575
  "caseId": "build-input-valid-f3a17a27206407ab",
2197
2576
  "coveredRuleIds": [
@@ -2218,6 +2597,17 @@
2218
2597
  "keyword": "required",
2219
2598
  "instance": { "mediaType": "image/png" }
2220
2599
  },
2600
+ {
2601
+ "caseId": "build-input-valid-f47050489e881708",
2602
+ "coveredRuleIds": [
2603
+ "build-input:#/$defs/reactionDefinition/properties/label:type",
2604
+ "build-input:#/$defs/reactionDefinition/properties/label:x-gala-graphemeLength"
2605
+ ],
2606
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
2607
+ "schemaPointer": "#/$defs/reactionDefinition/properties/label",
2608
+ "keyword": "type",
2609
+ "instance": "fixture-1"
2610
+ },
2221
2611
  {
2222
2612
  "caseId": "build-input-valid-f60d3692dc6e9132",
2223
2613
  "coveredRuleIds": [
@@ -1088,11 +1088,11 @@
1088
1088
  {
1089
1089
  "caseId": "build-provenance-valid-738056632652b2e7",
1090
1090
  "coveredRuleIds": [
1091
- "build-provenance:#/$defs/manifestRoute/properties/interactionBearing:const"
1091
+ "build-provenance:#/$defs/manifestRoute/properties/interactionBearing:type"
1092
1092
  ],
1093
1093
  "schemaId": "urn:gala:metadata:build-provenance:2.0.0",
1094
1094
  "schemaPointer": "#/$defs/manifestRoute/properties/interactionBearing",
1095
- "keyword": "const",
1095
+ "keyword": "type",
1096
1096
  "instance": false
1097
1097
  },
1098
1098
  {
@@ -0,0 +1,18 @@
1
+ {
2
+ "schemaId": "urn:gala:schema:interactions-config:2.0.0",
3
+ "schemaVersion": "2.0.0",
4
+ "reactions": {
5
+ "enabled": false,
6
+ "definitions": [
7
+ {
8
+ "key": "fixture-1",
9
+ "label": "fixture-1",
10
+ "visual": { "kind": "emoji", "token": "👍" },
11
+ "order": 1,
12
+ "enabled": false
13
+ }
14
+ ]
15
+ },
16
+ "comments": { "enabled": false, "allowReplies": false, "maxDepth": 1 },
17
+ "publicCounts": { "reactions": false, "comments": false }
18
+ }