@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
@@ -37,6 +37,17 @@
37
37
  },
38
38
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
39
39
  },
40
+ {
41
+ "caseId": "build-input-invalid-02c922d39ce5bd6c",
42
+ "coveredRuleIds": [
43
+ "build-input:#/$defs/interactionsConfig/properties/reactions:required:definitions"
44
+ ],
45
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
46
+ "schemaPointer": "#/$defs/interactionsConfig/properties/reactions",
47
+ "keyword": "required",
48
+ "instance": { "enabled": false },
49
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
50
+ },
40
51
  {
41
52
  "caseId": "build-input-invalid-04c4537da25ab3c9",
42
53
  "coveredRuleIds": ["build-input:#:required:basePath"],
@@ -531,6 +542,28 @@
531
542
  },
532
543
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
533
544
  },
545
+ {
546
+ "caseId": "build-input-invalid-0ea21125388083ad",
547
+ "coveredRuleIds": [
548
+ "build-input:#/$defs/publicationNormalized/properties/newsletter:required:url"
549
+ ],
550
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
551
+ "schemaPointer": "#/$defs/publicationNormalized/properties/newsletter",
552
+ "keyword": "required",
553
+ "instance": { "title": "fixture-1", "text": "fixture-1" },
554
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
555
+ },
556
+ {
557
+ "caseId": "build-input-invalid-0eb911ac3e176115",
558
+ "coveredRuleIds": [
559
+ "build-input:#/$defs/interactionsConfig/properties/comments:required:allowReplies"
560
+ ],
561
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
562
+ "schemaPointer": "#/$defs/interactionsConfig/properties/comments",
563
+ "keyword": "required",
564
+ "instance": { "enabled": false, "maxDepth": 1 },
565
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
566
+ },
534
567
  {
535
568
  "caseId": "build-input-invalid-0f00934b4650a00f",
536
569
  "coveredRuleIds": ["build-input:#:required:inputDigest"],
@@ -748,6 +781,34 @@
748
781
  "instance": {},
749
782
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
750
783
  },
784
+ {
785
+ "caseId": "build-input-invalid-0f88336d55950a8f",
786
+ "coveredRuleIds": [
787
+ "build-input:#/$defs/publicationNormalized/properties/newsletter:required:text"
788
+ ],
789
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
790
+ "schemaPointer": "#/$defs/publicationNormalized/properties/newsletter",
791
+ "keyword": "required",
792
+ "instance": {
793
+ "url": "https://fixture-1.example.com/",
794
+ "title": "fixture-1"
795
+ },
796
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
797
+ },
798
+ {
799
+ "caseId": "build-input-invalid-12154ab45191bd98",
800
+ "coveredRuleIds": ["build-input:#/$defs/reactionDefinition:required:label"],
801
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
802
+ "schemaPointer": "#/$defs/reactionDefinition",
803
+ "keyword": "required",
804
+ "instance": {
805
+ "key": "fixture-1",
806
+ "visual": { "kind": "emoji", "token": "👍" },
807
+ "order": 1,
808
+ "enabled": false
809
+ },
810
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
811
+ },
751
812
  {
752
813
  "caseId": "build-input-invalid-12231956486980db",
753
814
  "coveredRuleIds": [
@@ -841,6 +902,33 @@
841
902
  },
842
903
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
843
904
  },
905
+ {
906
+ "caseId": "build-input-invalid-194853de9442c5a6",
907
+ "coveredRuleIds": [
908
+ "build-input:#/$defs/interactionsConfig:required:comments"
909
+ ],
910
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
911
+ "schemaPointer": "#/$defs/interactionsConfig",
912
+ "keyword": "required",
913
+ "instance": {
914
+ "schemaId": "urn:gala:schema:interactions-config:2.0.0",
915
+ "schemaVersion": "2.0.0",
916
+ "reactions": {
917
+ "enabled": false,
918
+ "definitions": [
919
+ {
920
+ "key": "fixture-1",
921
+ "label": "fixture-1",
922
+ "visual": { "kind": "emoji", "token": "👍" },
923
+ "order": 1,
924
+ "enabled": false
925
+ }
926
+ ]
927
+ },
928
+ "publicCounts": { "reactions": false, "comments": false }
929
+ },
930
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
931
+ },
844
932
  {
845
933
  "caseId": "build-input-invalid-195f840f13570e22",
846
934
  "coveredRuleIds": [
@@ -877,6 +965,22 @@
877
965
  },
878
966
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
879
967
  },
968
+ {
969
+ "caseId": "build-input-invalid-1fcce2bac00c67ed",
970
+ "coveredRuleIds": [
971
+ "build-input:#/$defs/reactionDefinition:required:enabled"
972
+ ],
973
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
974
+ "schemaPointer": "#/$defs/reactionDefinition",
975
+ "keyword": "required",
976
+ "instance": {
977
+ "key": "fixture-1",
978
+ "label": "fixture-1",
979
+ "visual": { "kind": "emoji", "token": "👍" },
980
+ "order": 1
981
+ },
982
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
983
+ },
880
984
  {
881
985
  "caseId": "build-input-invalid-2035e602a293038d",
882
986
  "coveredRuleIds": [
@@ -1402,6 +1506,33 @@
1402
1506
  },
1403
1507
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
1404
1508
  },
1509
+ {
1510
+ "caseId": "build-input-invalid-46402142c4fa8736",
1511
+ "coveredRuleIds": [
1512
+ "build-input:#/$defs/interactionsConfig:required:publicCounts"
1513
+ ],
1514
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
1515
+ "schemaPointer": "#/$defs/interactionsConfig",
1516
+ "keyword": "required",
1517
+ "instance": {
1518
+ "schemaId": "urn:gala:schema:interactions-config:2.0.0",
1519
+ "schemaVersion": "2.0.0",
1520
+ "reactions": {
1521
+ "enabled": false,
1522
+ "definitions": [
1523
+ {
1524
+ "key": "fixture-1",
1525
+ "label": "fixture-1",
1526
+ "visual": { "kind": "emoji", "token": "👍" },
1527
+ "order": 1,
1528
+ "enabled": false
1529
+ }
1530
+ ]
1531
+ },
1532
+ "comments": { "enabled": false, "allowReplies": false, "maxDepth": 1 }
1533
+ },
1534
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
1535
+ },
1405
1536
  {
1406
1537
  "caseId": "build-input-invalid-488d858790057385",
1407
1538
  "coveredRuleIds": [
@@ -1484,6 +1615,37 @@
1484
1615
  "instance": { "kind": "authored", "sourcePath": "content/fixture-1.md" },
1485
1616
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
1486
1617
  },
1618
+ {
1619
+ "caseId": "build-input-invalid-544f182e68e06e77",
1620
+ "coveredRuleIds": [
1621
+ "build-input:#/$defs/moduleBuildSelection/properties/interactions:required:appOrigin"
1622
+ ],
1623
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
1624
+ "schemaPointer": "#/$defs/moduleBuildSelection/properties/interactions",
1625
+ "keyword": "required",
1626
+ "instance": {
1627
+ "config": {
1628
+ "schemaId": "urn:gala:schema:interactions-config:2.0.0",
1629
+ "schemaVersion": "2.0.0",
1630
+ "reactions": {
1631
+ "enabled": false,
1632
+ "definitions": [
1633
+ {
1634
+ "key": "fixture-1",
1635
+ "label": "fixture-1",
1636
+ "visual": { "kind": "emoji", "token": "👍" },
1637
+ "order": 1,
1638
+ "enabled": false
1639
+ }
1640
+ ]
1641
+ },
1642
+ "comments": { "enabled": false, "allowReplies": false, "maxDepth": 1 },
1643
+ "publicCounts": { "reactions": false, "comments": false }
1644
+ },
1645
+ "apiOrigin": "https://fixture-1.example.com"
1646
+ },
1647
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
1648
+ },
1487
1649
  {
1488
1650
  "caseId": "build-input-invalid-553d158dda3c192e",
1489
1651
  "coveredRuleIds": ["build-input:#:required:repository"],
@@ -2478,6 +2640,15 @@
2478
2640
  },
2479
2641
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
2480
2642
  },
2643
+ {
2644
+ "caseId": "build-input-invalid-7309a52fe711d3af",
2645
+ "coveredRuleIds": ["build-input:#/$defs/reactionVisual:required:token"],
2646
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
2647
+ "schemaPointer": "#/$defs/reactionVisual",
2648
+ "keyword": "required",
2649
+ "instance": { "kind": "emoji" },
2650
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
2651
+ },
2481
2652
  {
2482
2653
  "caseId": "build-input-invalid-74052d83465c31db",
2483
2654
  "coveredRuleIds": ["build-input:#/$defs/packageIdentity:required:registry"],
@@ -2491,6 +2662,33 @@
2491
2662
  },
2492
2663
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
2493
2664
  },
2665
+ {
2666
+ "caseId": "build-input-invalid-741e2ceacbd347da",
2667
+ "coveredRuleIds": [
2668
+ "build-input:#/$defs/interactionsConfig:required:schemaVersion"
2669
+ ],
2670
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
2671
+ "schemaPointer": "#/$defs/interactionsConfig",
2672
+ "keyword": "required",
2673
+ "instance": {
2674
+ "schemaId": "urn:gala:schema:interactions-config:2.0.0",
2675
+ "reactions": {
2676
+ "enabled": false,
2677
+ "definitions": [
2678
+ {
2679
+ "key": "fixture-1",
2680
+ "label": "fixture-1",
2681
+ "visual": { "kind": "emoji", "token": "👍" },
2682
+ "order": 1,
2683
+ "enabled": false
2684
+ }
2685
+ ]
2686
+ },
2687
+ "comments": { "enabled": false, "allowReplies": false, "maxDepth": 1 },
2688
+ "publicCounts": { "reactions": false, "comments": false }
2689
+ },
2690
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
2691
+ },
2494
2692
  {
2495
2693
  "caseId": "build-input-invalid-74adabadaf55df4f",
2496
2694
  "coveredRuleIds": [
@@ -2533,6 +2731,22 @@
2533
2731
  },
2534
2732
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
2535
2733
  },
2734
+ {
2735
+ "caseId": "build-input-invalid-755adc9093311741",
2736
+ "coveredRuleIds": [
2737
+ "build-input:#/$defs/reactionDefinition:required:visual"
2738
+ ],
2739
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
2740
+ "schemaPointer": "#/$defs/reactionDefinition",
2741
+ "keyword": "required",
2742
+ "instance": {
2743
+ "key": "fixture-1",
2744
+ "label": "fixture-1",
2745
+ "order": 1,
2746
+ "enabled": false
2747
+ },
2748
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
2749
+ },
2536
2750
  {
2537
2751
  "caseId": "build-input-invalid-75c65af51d045269",
2538
2752
  "coveredRuleIds": [
@@ -2595,6 +2809,17 @@
2595
2809
  },
2596
2810
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
2597
2811
  },
2812
+ {
2813
+ "caseId": "build-input-invalid-79bda698cbb72581",
2814
+ "coveredRuleIds": [
2815
+ "build-input:#/$defs/interactionsConfig/properties/publicCounts:required:comments"
2816
+ ],
2817
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
2818
+ "schemaPointer": "#/$defs/interactionsConfig/properties/publicCounts",
2819
+ "keyword": "required",
2820
+ "instance": { "reactions": false },
2821
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
2822
+ },
2598
2823
  {
2599
2824
  "caseId": "build-input-invalid-7cbb4a6520cbfe3d",
2600
2825
  "coveredRuleIds": ["build-input:#/$defs/buildPackages:required:template"],
@@ -2882,6 +3107,17 @@
2882
3107
  },
2883
3108
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
2884
3109
  },
3110
+ {
3111
+ "caseId": "build-input-invalid-7ef10b57f3901e1f",
3112
+ "coveredRuleIds": [
3113
+ "build-input:#/$defs/interactionsConfig/properties/comments:required:enabled"
3114
+ ],
3115
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
3116
+ "schemaPointer": "#/$defs/interactionsConfig/properties/comments",
3117
+ "keyword": "required",
3118
+ "instance": { "allowReplies": false, "maxDepth": 1 },
3119
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
3120
+ },
2885
3121
  {
2886
3122
  "caseId": "build-input-invalid-7f080df943b1735b",
2887
3123
  "coveredRuleIds": ["build-input:#/$defs/buildPackages:required:theme"],
@@ -3045,6 +3281,20 @@
3045
3281
  },
3046
3282
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
3047
3283
  },
3284
+ {
3285
+ "caseId": "build-input-invalid-880420ad27806f01",
3286
+ "coveredRuleIds": [
3287
+ "build-input:#/$defs/moduleBuildSelection/properties/interactions:required:config"
3288
+ ],
3289
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
3290
+ "schemaPointer": "#/$defs/moduleBuildSelection/properties/interactions",
3291
+ "keyword": "required",
3292
+ "instance": {
3293
+ "apiOrigin": "https://fixture-1.example.com",
3294
+ "appOrigin": "https://fixture-1.example.com"
3295
+ },
3296
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
3297
+ },
3048
3298
  {
3049
3299
  "caseId": "build-input-invalid-8828fd45dc08f315",
3050
3300
  "coveredRuleIds": ["build-input:#:required:authors"],
@@ -3540,6 +3790,31 @@
3540
3790
  },
3541
3791
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
3542
3792
  },
3793
+ {
3794
+ "caseId": "build-input-invalid-96235a88df9e02d2",
3795
+ "coveredRuleIds": [
3796
+ "build-input:#/$defs/interactionsConfig/properties/comments:required:maxDepth"
3797
+ ],
3798
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
3799
+ "schemaPointer": "#/$defs/interactionsConfig/properties/comments",
3800
+ "keyword": "required",
3801
+ "instance": { "enabled": false, "allowReplies": false },
3802
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
3803
+ },
3804
+ {
3805
+ "caseId": "build-input-invalid-9727dff1bdd80245",
3806
+ "coveredRuleIds": ["build-input:#/$defs/reactionDefinition:required:order"],
3807
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
3808
+ "schemaPointer": "#/$defs/reactionDefinition",
3809
+ "keyword": "required",
3810
+ "instance": {
3811
+ "key": "fixture-1",
3812
+ "label": "fixture-1",
3813
+ "visual": { "kind": "emoji", "token": "👍" },
3814
+ "enabled": false
3815
+ },
3816
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
3817
+ },
3543
3818
  {
3544
3819
  "caseId": "build-input-invalid-986ea3863631a873",
3545
3820
  "coveredRuleIds": ["build-input:#/$defs/navigationLeaf:required:children"],
@@ -3553,6 +3828,17 @@
3553
3828
  },
3554
3829
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
3555
3830
  },
3831
+ {
3832
+ "caseId": "build-input-invalid-9d6bf3c283842ebe",
3833
+ "coveredRuleIds": [
3834
+ "build-input:#/$defs/publicationNormalized/properties/crawlers:required:ai"
3835
+ ],
3836
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
3837
+ "schemaPointer": "#/$defs/publicationNormalized/properties/crawlers",
3838
+ "keyword": "required",
3839
+ "instance": {},
3840
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
3841
+ },
3556
3842
  {
3557
3843
  "caseId": "build-input-invalid-9e441c1207ade38c",
3558
3844
  "coveredRuleIds": ["build-input:#/$defs/socialLink:required:uri"],
@@ -3562,6 +3848,20 @@
3562
3848
  "instance": { "type": "website" },
3563
3849
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
3564
3850
  },
3851
+ {
3852
+ "caseId": "build-input-invalid-9ed06e2c56835937",
3853
+ "coveredRuleIds": ["build-input:#/$defs/reactionDefinition:required:key"],
3854
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
3855
+ "schemaPointer": "#/$defs/reactionDefinition",
3856
+ "keyword": "required",
3857
+ "instance": {
3858
+ "label": "fixture-1",
3859
+ "visual": { "kind": "emoji", "token": "👍" },
3860
+ "order": 1,
3861
+ "enabled": false
3862
+ },
3863
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
3864
+ },
3565
3865
  {
3566
3866
  "caseId": "build-input-invalid-9fe5e6012c08e843",
3567
3867
  "coveredRuleIds": [
@@ -4236,6 +4536,17 @@
4236
4536
  },
4237
4537
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
4238
4538
  },
4539
+ {
4540
+ "caseId": "build-input-invalid-b8b3263ebe48b07d",
4541
+ "coveredRuleIds": [
4542
+ "build-input:#/$defs/interactionsConfig/properties/publicCounts:required:reactions"
4543
+ ],
4544
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
4545
+ "schemaPointer": "#/$defs/interactionsConfig/properties/publicCounts",
4546
+ "keyword": "required",
4547
+ "instance": { "comments": false },
4548
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
4549
+ },
4239
4550
  {
4240
4551
  "caseId": "build-input-invalid-b98f5b8c1b9d901b",
4241
4552
  "coveredRuleIds": ["build-input:#/$defs/authorNormalized:required:id"],
@@ -4359,6 +4670,31 @@
4359
4670
  "instance": {},
4360
4671
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
4361
4672
  },
4673
+ {
4674
+ "caseId": "build-input-invalid-c0ad6d145217a678",
4675
+ "coveredRuleIds": [
4676
+ "build-input:#/$defs/interactionsConfig:required:reactions"
4677
+ ],
4678
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
4679
+ "schemaPointer": "#/$defs/interactionsConfig",
4680
+ "keyword": "required",
4681
+ "instance": {
4682
+ "schemaId": "urn:gala:schema:interactions-config:2.0.0",
4683
+ "schemaVersion": "2.0.0",
4684
+ "comments": { "enabled": false, "allowReplies": false, "maxDepth": 1 },
4685
+ "publicCounts": { "reactions": false, "comments": false }
4686
+ },
4687
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
4688
+ },
4689
+ {
4690
+ "caseId": "build-input-invalid-c4c6580cb2e52b4d",
4691
+ "coveredRuleIds": ["build-input:#/$defs/reactionVisual:required:kind"],
4692
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
4693
+ "schemaPointer": "#/$defs/reactionVisual",
4694
+ "keyword": "required",
4695
+ "instance": { "token": "👍" },
4696
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
4697
+ },
4362
4698
  {
4363
4699
  "caseId": "build-input-invalid-c527ccec2e3fb796",
4364
4700
  "coveredRuleIds": [
@@ -4370,6 +4706,27 @@
4370
4706
  "instance": {},
4371
4707
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
4372
4708
  },
4709
+ {
4710
+ "caseId": "build-input-invalid-c5ac9268326dfe0d",
4711
+ "coveredRuleIds": [
4712
+ "build-input:#/$defs/interactionsConfig/properties/reactions:required:enabled"
4713
+ ],
4714
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
4715
+ "schemaPointer": "#/$defs/interactionsConfig/properties/reactions",
4716
+ "keyword": "required",
4717
+ "instance": {
4718
+ "definitions": [
4719
+ {
4720
+ "key": "fixture-1",
4721
+ "label": "fixture-1",
4722
+ "visual": { "kind": "emoji", "token": "👍" },
4723
+ "order": 1,
4724
+ "enabled": false
4725
+ }
4726
+ ]
4727
+ },
4728
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
4729
+ },
4373
4730
  {
4374
4731
  "caseId": "build-input-invalid-caceff020bcd7de2",
4375
4732
  "coveredRuleIds": ["build-input:#:required:modules"],
@@ -5278,6 +5635,20 @@
5278
5635
  },
5279
5636
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
5280
5637
  },
5638
+ {
5639
+ "caseId": "build-input-invalid-edb92153dcc6d08c",
5640
+ "coveredRuleIds": [
5641
+ "build-input:#/$defs/publicationNormalized/properties/newsletter:required:title"
5642
+ ],
5643
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
5644
+ "schemaPointer": "#/$defs/publicationNormalized/properties/newsletter",
5645
+ "keyword": "required",
5646
+ "instance": {
5647
+ "url": "https://fixture-1.example.com/",
5648
+ "text": "fixture-1"
5649
+ },
5650
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
5651
+ },
5281
5652
  {
5282
5653
  "caseId": "build-input-invalid-ee866b428328a588",
5283
5654
  "coveredRuleIds": ["build-input:#/$defs/buildPackages:required:schemas"],
@@ -5554,6 +5925,37 @@
5554
5925
  },
5555
5926
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
5556
5927
  },
5928
+ {
5929
+ "caseId": "build-input-invalid-f3c6d59dab042229",
5930
+ "coveredRuleIds": [
5931
+ "build-input:#/$defs/moduleBuildSelection/properties/interactions:required:apiOrigin"
5932
+ ],
5933
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
5934
+ "schemaPointer": "#/$defs/moduleBuildSelection/properties/interactions",
5935
+ "keyword": "required",
5936
+ "instance": {
5937
+ "config": {
5938
+ "schemaId": "urn:gala:schema:interactions-config:2.0.0",
5939
+ "schemaVersion": "2.0.0",
5940
+ "reactions": {
5941
+ "enabled": false,
5942
+ "definitions": [
5943
+ {
5944
+ "key": "fixture-1",
5945
+ "label": "fixture-1",
5946
+ "visual": { "kind": "emoji", "token": "👍" },
5947
+ "order": 1,
5948
+ "enabled": false
5949
+ }
5950
+ ]
5951
+ },
5952
+ "comments": { "enabled": false, "allowReplies": false, "maxDepth": 1 },
5953
+ "publicCounts": { "reactions": false, "comments": false }
5954
+ },
5955
+ "appOrigin": "https://fixture-1.example.com"
5956
+ },
5957
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
5958
+ },
5557
5959
  {
5558
5960
  "caseId": "build-input-invalid-f55daacf0bd10221",
5559
5961
  "coveredRuleIds": ["build-input:#:required:baseUrl"],
@@ -5966,6 +6368,33 @@
5966
6368
  },
5967
6369
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
5968
6370
  },
6371
+ {
6372
+ "caseId": "build-input-invalid-f80d4872e19a5fcc",
6373
+ "coveredRuleIds": [
6374
+ "build-input:#/$defs/interactionsConfig:required:schemaId"
6375
+ ],
6376
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
6377
+ "schemaPointer": "#/$defs/interactionsConfig",
6378
+ "keyword": "required",
6379
+ "instance": {
6380
+ "schemaVersion": "2.0.0",
6381
+ "reactions": {
6382
+ "enabled": false,
6383
+ "definitions": [
6384
+ {
6385
+ "key": "fixture-1",
6386
+ "label": "fixture-1",
6387
+ "visual": { "kind": "emoji", "token": "👍" },
6388
+ "order": 1,
6389
+ "enabled": false
6390
+ }
6391
+ ]
6392
+ },
6393
+ "comments": { "enabled": false, "allowReplies": false, "maxDepth": 1 },
6394
+ "publicCounts": { "reactions": false, "comments": false }
6395
+ },
6396
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
6397
+ },
5969
6398
  {
5970
6399
  "caseId": "build-input-invalid-fb9fffd9ee81eb63",
5971
6400
  "coveredRuleIds": ["build-input:#/$defs/packageIdentity:required:package"],