@rathnasgala2/schemas 3.15.0 → 3.17.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 (123) hide show
  1. package/README.md +17 -10
  2. package/THIRD_PARTY_LICENSES.json +1 -1
  3. package/catalog-sources/internal-event-actions.json +1 -1
  4. package/diagnostics/diagnostic-map.json +456 -4
  5. package/docs/catalogs/app-routes.json +7 -2
  6. package/docs/catalogs/internal-event-actions.json +2 -2
  7. package/docs/catalogs/schema-inventory.json +20 -10
  8. package/examples/valid/adapter-capability/rules.json +12 -0
  9. package/examples/valid/analytics-config/canonical.json +6 -0
  10. package/examples/valid/analytics-config/rules.json +334 -0
  11. package/examples/valid/build-input/rules.json +202 -0
  12. package/examples/valid/deployment-intent/rules.json +12 -0
  13. package/examples/valid/deployment-observation/rules.json +12 -0
  14. package/examples/valid/deployment-receipt/rules.json +12 -0
  15. package/examples/valid/problem/rules.json +39 -0
  16. package/examples/valid/publication/rules.json +49 -0
  17. package/examples/valid/theme-contract/rules.json +64 -4
  18. package/fixtures/boundary/adapter-capability/rules.json +26 -0
  19. package/fixtures/boundary/analytics-config/root.json +6 -0
  20. package/fixtures/boundary/analytics-config/rules.json +470 -0
  21. package/fixtures/boundary/build-input/rules.json +207 -0
  22. package/fixtures/boundary/deployment-intent/rules.json +26 -0
  23. package/fixtures/boundary/deployment-observation/rules.json +26 -0
  24. package/fixtures/boundary/deployment-receipt/rules.json +26 -0
  25. package/fixtures/boundary/problem/rules.json +81 -0
  26. package/fixtures/boundary/publication/rules.json +54 -0
  27. package/fixtures/boundary/theme-contract/rules.json +64 -4
  28. package/fixtures/invalid/adapter-capability/SCHEMA_PATTERN_INVALID/cases.json +11 -0
  29. package/fixtures/invalid/adapter-capability/SCHEMA_STRING_TOO_LONG/cases.json +11 -0
  30. package/fixtures/invalid/adapter-capability/UTF8_BYTE_LENGTH_INVALID/cases.json +11 -0
  31. package/fixtures/invalid/analytics-config/BCP47_INVALID/cases.json +56 -0
  32. package/fixtures/invalid/analytics-config/CANONICAL_ROUTE_INVALID/cases.json +38 -0
  33. package/fixtures/invalid/analytics-config/DIGEST_INVALID/cases.json +20 -0
  34. package/fixtures/invalid/analytics-config/EXTENSION_KEY_INVALID/cases.json +20 -0
  35. package/fixtures/invalid/analytics-config/GIT_OBJECT_ID_INVALID/cases.json +20 -0
  36. package/fixtures/invalid/analytics-config/HTTPS_URL_INVALID/cases.json +29 -0
  37. package/fixtures/invalid/analytics-config/ISO_COUNTRY_INVALID/cases.json +20 -0
  38. package/fixtures/invalid/analytics-config/PACKAGE_EXACT_INVALID/cases.json +38 -0
  39. package/fixtures/invalid/analytics-config/PACKAGE_RANGE_INVALID/cases.json +38 -0
  40. package/fixtures/invalid/analytics-config/PASSIVE_VISUAL_TOKEN_INVALID/cases.json +11 -0
  41. package/fixtures/invalid/analytics-config/PLAIN_LABEL_INVALID/cases.json +31 -0
  42. package/fixtures/invalid/analytics-config/PLAIN_TEXT_INVALID/cases.json +20 -0
  43. package/fixtures/invalid/analytics-config/REPOSITORY_GLOB_INVALID/cases.json +47 -0
  44. package/fixtures/invalid/analytics-config/REPOSITORY_PATH_INVALID/cases.json +58 -0
  45. package/fixtures/invalid/analytics-config/REQUEST_FIELD_UNKNOWN/cases.json +46 -0
  46. package/fixtures/invalid/analytics-config/RFC3339_INVALID/cases.json +29 -0
  47. package/fixtures/invalid/analytics-config/SCHEMA_ENUM_INVALID/cases.json +24 -0
  48. package/fixtures/invalid/analytics-config/SCHEMA_PATTERN_INVALID/cases.json +13 -0
  49. package/fixtures/invalid/analytics-config/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +92 -0
  50. package/fixtures/invalid/analytics-config/SCHEMA_TYPE_INVALID/cases.json +40 -0
  51. package/fixtures/invalid/analytics-config/SCHEMA_VERSION_UNSUPPORTED/cases.json +20 -0
  52. package/fixtures/invalid/analytics-config/SEMVER_INVALID/cases.json +20 -0
  53. package/fixtures/invalid/analytics-config/SEMVER_RANGE_INVALID/cases.json +38 -0
  54. package/fixtures/invalid/analytics-config/SLUG_INVALID/cases.json +38 -0
  55. package/fixtures/invalid/analytics-config/STABLE_ID_INVALID/cases.json +20 -0
  56. package/fixtures/invalid/analytics-config/URN_INVALID/cases.json +38 -0
  57. package/fixtures/invalid/build-input/GRAPHEME_LENGTH_INVALID/cases.json +11 -0
  58. package/fixtures/invalid/build-input/REQUEST_FIELD_UNKNOWN/cases.json +137 -0
  59. package/fixtures/invalid/build-input/SCHEMA_ENUM_INVALID/cases.json +22 -0
  60. package/fixtures/invalid/build-input/SCHEMA_PATTERN_INVALID/cases.json +11 -0
  61. package/fixtures/invalid/build-input/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +194 -0
  62. package/fixtures/invalid/build-input/SCHEMA_TYPE_INVALID/cases.json +71 -0
  63. package/fixtures/invalid/build-input/SCHEMA_VERSION_UNSUPPORTED/cases.json +22 -0
  64. package/fixtures/invalid/deployment-intent/SCHEMA_PATTERN_INVALID/cases.json +11 -0
  65. package/fixtures/invalid/deployment-intent/SCHEMA_STRING_TOO_LONG/cases.json +11 -0
  66. package/fixtures/invalid/deployment-intent/UTF8_BYTE_LENGTH_INVALID/cases.json +11 -0
  67. package/fixtures/invalid/deployment-observation/SCHEMA_PATTERN_INVALID/cases.json +11 -0
  68. package/fixtures/invalid/deployment-observation/SCHEMA_STRING_TOO_LONG/cases.json +11 -0
  69. package/fixtures/invalid/deployment-observation/UTF8_BYTE_LENGTH_INVALID/cases.json +11 -0
  70. package/fixtures/invalid/deployment-receipt/SCHEMA_PATTERN_INVALID/cases.json +11 -0
  71. package/fixtures/invalid/deployment-receipt/SCHEMA_STRING_TOO_LONG/cases.json +11 -0
  72. package/fixtures/invalid/deployment-receipt/UTF8_BYTE_LENGTH_INVALID/cases.json +11 -0
  73. package/fixtures/invalid/problem/GRAPHEME_LENGTH_INVALID/cases.json +9 -0
  74. package/fixtures/invalid/problem/SCHEMA_STRING_TOO_LONG/cases.json +27 -0
  75. package/fixtures/invalid/problem/SCHEMA_STRING_TOO_SHORT/cases.json +9 -0
  76. package/fixtures/invalid/problem/SCHEMA_TYPE_INVALID/cases.json +18 -0
  77. package/fixtures/invalid/publication/GRAPHEME_LENGTH_INVALID/cases.json +11 -0
  78. package/fixtures/invalid/publication/REQUEST_FIELD_UNKNOWN/cases.json +28 -0
  79. package/fixtures/invalid/publication/SCHEMA_PATTERN_INVALID/cases.json +11 -0
  80. package/fixtures/invalid/publication/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +44 -0
  81. package/fixtures/invalid/publication/SCHEMA_TYPE_INVALID/cases.json +18 -0
  82. package/fixtures/invalid/theme-contract/SCHEMA_CONSTANT_INVALID/cases.json +33 -22
  83. package/fixtures/invalid/theme-contract/SCHEMA_ENUM_INVALID/cases.json +33 -0
  84. package/fixtures/invalid/theme-contract/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +22 -0
  85. package/fixtures/manifest.json +3513 -26
  86. package/fixtures/s2/empty-modules-placements.json +452 -0
  87. package/fixtures/s2/manifest.json +2 -0
  88. package/fixtures/unknown-field/adapter-capability/rules.json +3 -0
  89. package/fixtures/unknown-field/analytics-config/root.json +7 -0
  90. package/fixtures/unknown-field/analytics-config/rules.json +131 -0
  91. package/fixtures/unknown-field/build-input/rules.json +162 -0
  92. package/fixtures/unknown-field/deployment-intent/rules.json +3 -0
  93. package/fixtures/unknown-field/deployment-observation/rules.json +3 -0
  94. package/fixtures/unknown-field/deployment-receipt/rules.json +3 -0
  95. package/fixtures/unknown-field/problem/rules.json +7 -0
  96. package/fixtures/unknown-field/publication/rules.json +38 -0
  97. package/fixtures/unknown-field/theme-contract/rules.json +8 -2
  98. package/generated/browser/validator-core.mjs +5 -4
  99. package/generated/typescript/contracts/adapter-capability.d.ts +1 -0
  100. package/generated/typescript/contracts/analytics-config.d.ts +54 -0
  101. package/generated/typescript/contracts/build-input.d.ts +26 -0
  102. package/generated/typescript/contracts/deployment-intent.d.ts +1 -0
  103. package/generated/typescript/contracts/deployment-observation.d.ts +1 -0
  104. package/generated/typescript/contracts/deployment-receipt.d.ts +1 -0
  105. package/generated/typescript/contracts/problem.d.ts +4 -0
  106. package/generated/typescript/contracts/publication.d.ts +11 -0
  107. package/generated/typescript/index.d.ts +4 -0
  108. package/generated/typescript/index.js +14 -0
  109. package/openapi/http-catalog.json +55 -3
  110. package/openapi/openapi.yaml +5128 -3499
  111. package/package.json +4 -1
  112. package/sbom.cdx.json +23 -23
  113. package/schemas/adapter-capability.schema.json +7 -0
  114. package/schemas/analytics-config.schema.json +161 -0
  115. package/schemas/build-input.schema.json +66 -0
  116. package/schemas/deployment-intent.schema.json +7 -0
  117. package/schemas/deployment-observation.schema.json +7 -0
  118. package/schemas/deployment-receipt.schema.json +7 -0
  119. package/schemas/problem.schema.json +21 -0
  120. package/schemas/publication.schema.json +22 -0
  121. package/schemas/theme-contract.schema.json +25 -3
  122. package/site-policy-defaults.json +10 -0
  123. package/src/internal/schema-validator.js +3 -0
@@ -0,0 +1,46 @@
1
+ [
2
+ {
3
+ "caseId": "analytics-config-invalid-7132917f4fc8b38e",
4
+ "coveredRuleIds": [
5
+ "analytics-config:#/properties/provider:additionalProperties"
6
+ ],
7
+ "schemaId": "urn:gala:schema:analytics-config:2.0.0",
8
+ "schemaPointer": "#/properties/provider",
9
+ "keyword": "additionalProperties",
10
+ "instance": {
11
+ "kind": "google-analytics-4",
12
+ "measurementId": "G-ABC123XYZ",
13
+ "unexpected": true
14
+ },
15
+ "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
16
+ },
17
+ {
18
+ "caseId": "analytics-config-invalid-952c1d1018c413fd",
19
+ "coveredRuleIds": [
20
+ "analytics-config:#/properties/consent:additionalProperties"
21
+ ],
22
+ "schemaId": "urn:gala:schema:analytics-config:2.0.0",
23
+ "schemaPointer": "#/properties/consent",
24
+ "keyword": "additionalProperties",
25
+ "instance": { "policy": "opt-in", "unexpected": true },
26
+ "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
27
+ },
28
+ {
29
+ "caseId": "analytics-config-invalid-ff84eed1c7cbde78",
30
+ "coveredRuleIds": ["analytics-config:#:additionalProperties"],
31
+ "schemaId": "urn:gala:schema:analytics-config:2.0.0",
32
+ "schemaPointer": "#",
33
+ "keyword": "additionalProperties",
34
+ "instance": {
35
+ "schemaId": "urn:gala:schema:analytics-config:2.0.0",
36
+ "schemaVersion": "2.0.0",
37
+ "provider": {
38
+ "kind": "google-analytics-4",
39
+ "measurementId": "G-ABC123XYZ"
40
+ },
41
+ "consent": { "policy": "opt-in" },
42
+ "unexpected": true
43
+ },
44
+ "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
45
+ }
46
+ ]
@@ -0,0 +1,29 @@
1
+ [
2
+ {
3
+ "caseId": "analytics-config-invalid-51f0c2d85f38de0d",
4
+ "coveredRuleIds": ["analytics-config:#/$defs/rfc3339:pattern"],
5
+ "schemaId": "urn:gala:schema:analytics-config:2.0.0",
6
+ "schemaPointer": "#/$defs/rfc3339",
7
+ "keyword": "pattern",
8
+ "instance": "",
9
+ "expectedCodes": ["RFC3339_INVALID"]
10
+ },
11
+ {
12
+ "caseId": "analytics-config-invalid-5e70bc12ec8247d7",
13
+ "coveredRuleIds": ["analytics-config:#/$defs/rfc3339:type"],
14
+ "schemaId": "urn:gala:schema:analytics-config:2.0.0",
15
+ "schemaPointer": "#/$defs/rfc3339",
16
+ "keyword": "type",
17
+ "instance": null,
18
+ "expectedCodes": ["RFC3339_INVALID"]
19
+ },
20
+ {
21
+ "caseId": "analytics-config-invalid-7fb1a780445f9acc",
22
+ "coveredRuleIds": ["analytics-config:#/$defs/rfc3339:format"],
23
+ "schemaId": "urn:gala:schema:analytics-config:2.0.0",
24
+ "schemaPointer": "#/$defs/rfc3339",
25
+ "keyword": "format",
26
+ "instance": "2026-02-31T12:00:00.000Z",
27
+ "expectedCodes": ["RFC3339_INVALID"]
28
+ }
29
+ ]
@@ -0,0 +1,24 @@
1
+ [
2
+ {
3
+ "caseId": "analytics-config-invalid-33d3b5243ef39599",
4
+ "coveredRuleIds": [
5
+ "analytics-config:#/properties/provider/properties/kind:enum"
6
+ ],
7
+ "schemaId": "urn:gala:schema:analytics-config:2.0.0",
8
+ "schemaPointer": "#/properties/provider/properties/kind",
9
+ "keyword": "enum",
10
+ "instance": "__invalid_enum__",
11
+ "expectedCodes": ["SCHEMA_ENUM_INVALID"]
12
+ },
13
+ {
14
+ "caseId": "analytics-config-invalid-fdf60c6e9f633971",
15
+ "coveredRuleIds": [
16
+ "analytics-config:#/properties/consent/properties/policy:enum"
17
+ ],
18
+ "schemaId": "urn:gala:schema:analytics-config:2.0.0",
19
+ "schemaPointer": "#/properties/consent/properties/policy",
20
+ "keyword": "enum",
21
+ "instance": "__invalid_enum__",
22
+ "expectedCodes": ["SCHEMA_ENUM_INVALID"]
23
+ }
24
+ ]
@@ -0,0 +1,13 @@
1
+ [
2
+ {
3
+ "caseId": "analytics-config-invalid-c9410e47de09947f",
4
+ "coveredRuleIds": [
5
+ "analytics-config:#/properties/provider/properties/measurementId:pattern"
6
+ ],
7
+ "schemaId": "urn:gala:schema:analytics-config:2.0.0",
8
+ "schemaPointer": "#/properties/provider/properties/measurementId",
9
+ "keyword": "pattern",
10
+ "instance": "",
11
+ "expectedCodes": ["SCHEMA_PATTERN_INVALID"]
12
+ }
13
+ ]
@@ -0,0 +1,92 @@
1
+ [
2
+ {
3
+ "caseId": "analytics-config-invalid-061ff4a78f9c0293",
4
+ "coveredRuleIds": ["analytics-config:#/properties/consent:required:policy"],
5
+ "schemaId": "urn:gala:schema:analytics-config:2.0.0",
6
+ "schemaPointer": "#/properties/consent",
7
+ "keyword": "required",
8
+ "instance": {},
9
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
10
+ },
11
+ {
12
+ "caseId": "analytics-config-invalid-2807b9c65aab317a",
13
+ "coveredRuleIds": ["analytics-config:#:required:consent"],
14
+ "schemaId": "urn:gala:schema:analytics-config:2.0.0",
15
+ "schemaPointer": "#",
16
+ "keyword": "required",
17
+ "instance": {
18
+ "schemaId": "urn:gala:schema:analytics-config:2.0.0",
19
+ "schemaVersion": "2.0.0",
20
+ "provider": {
21
+ "kind": "google-analytics-4",
22
+ "measurementId": "G-ABC123XYZ"
23
+ }
24
+ },
25
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
26
+ },
27
+ {
28
+ "caseId": "analytics-config-invalid-3dce1a1d1597f18b",
29
+ "coveredRuleIds": [
30
+ "analytics-config:#/properties/provider:required:measurementId"
31
+ ],
32
+ "schemaId": "urn:gala:schema:analytics-config:2.0.0",
33
+ "schemaPointer": "#/properties/provider",
34
+ "keyword": "required",
35
+ "instance": { "kind": "google-analytics-4" },
36
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
37
+ },
38
+ {
39
+ "caseId": "analytics-config-invalid-6d1ef210cbd746e6",
40
+ "coveredRuleIds": ["analytics-config:#:required:provider"],
41
+ "schemaId": "urn:gala:schema:analytics-config:2.0.0",
42
+ "schemaPointer": "#",
43
+ "keyword": "required",
44
+ "instance": {
45
+ "schemaId": "urn:gala:schema:analytics-config:2.0.0",
46
+ "schemaVersion": "2.0.0",
47
+ "consent": { "policy": "opt-in" }
48
+ },
49
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
50
+ },
51
+ {
52
+ "caseId": "analytics-config-invalid-94083d74b410a376",
53
+ "coveredRuleIds": ["analytics-config:#:required:schemaId"],
54
+ "schemaId": "urn:gala:schema:analytics-config:2.0.0",
55
+ "schemaPointer": "#",
56
+ "keyword": "required",
57
+ "instance": {
58
+ "schemaVersion": "2.0.0",
59
+ "provider": {
60
+ "kind": "google-analytics-4",
61
+ "measurementId": "G-ABC123XYZ"
62
+ },
63
+ "consent": { "policy": "opt-in" }
64
+ },
65
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
66
+ },
67
+ {
68
+ "caseId": "analytics-config-invalid-c47f4f66bccee475",
69
+ "coveredRuleIds": ["analytics-config:#:required:schemaVersion"],
70
+ "schemaId": "urn:gala:schema:analytics-config:2.0.0",
71
+ "schemaPointer": "#",
72
+ "keyword": "required",
73
+ "instance": {
74
+ "schemaId": "urn:gala:schema:analytics-config:2.0.0",
75
+ "provider": {
76
+ "kind": "google-analytics-4",
77
+ "measurementId": "G-ABC123XYZ"
78
+ },
79
+ "consent": { "policy": "opt-in" }
80
+ },
81
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
82
+ },
83
+ {
84
+ "caseId": "analytics-config-invalid-fa4ba3f1736171b3",
85
+ "coveredRuleIds": ["analytics-config:#/properties/provider:required:kind"],
86
+ "schemaId": "urn:gala:schema:analytics-config:2.0.0",
87
+ "schemaPointer": "#/properties/provider",
88
+ "keyword": "required",
89
+ "instance": { "measurementId": "G-ABC123XYZ" },
90
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
91
+ }
92
+ ]
@@ -0,0 +1,40 @@
1
+ [
2
+ {
3
+ "caseId": "analytics-config-invalid-6c33b9d939ff2b1a",
4
+ "coveredRuleIds": ["analytics-config:#/properties/provider:type"],
5
+ "schemaId": "urn:gala:schema:analytics-config:2.0.0",
6
+ "schemaPointer": "#/properties/provider",
7
+ "keyword": "type",
8
+ "instance": [],
9
+ "expectedCodes": ["SCHEMA_TYPE_INVALID"]
10
+ },
11
+ {
12
+ "caseId": "analytics-config-invalid-79541c57a051c1db",
13
+ "coveredRuleIds": ["analytics-config:#:type"],
14
+ "schemaId": "urn:gala:schema:analytics-config:2.0.0",
15
+ "schemaPointer": "#",
16
+ "keyword": "type",
17
+ "instance": [],
18
+ "expectedCodes": ["SCHEMA_TYPE_INVALID"]
19
+ },
20
+ {
21
+ "caseId": "analytics-config-invalid-9f16d0b70e4d0c73",
22
+ "coveredRuleIds": [
23
+ "analytics-config:#/properties/provider/properties/measurementId:type"
24
+ ],
25
+ "schemaId": "urn:gala:schema:analytics-config:2.0.0",
26
+ "schemaPointer": "#/properties/provider/properties/measurementId",
27
+ "keyword": "type",
28
+ "instance": null,
29
+ "expectedCodes": ["SCHEMA_TYPE_INVALID"]
30
+ },
31
+ {
32
+ "caseId": "analytics-config-invalid-cdbfcec3a154548d",
33
+ "coveredRuleIds": ["analytics-config:#/properties/consent:type"],
34
+ "schemaId": "urn:gala:schema:analytics-config:2.0.0",
35
+ "schemaPointer": "#/properties/consent",
36
+ "keyword": "type",
37
+ "instance": [],
38
+ "expectedCodes": ["SCHEMA_TYPE_INVALID"]
39
+ }
40
+ ]
@@ -0,0 +1,20 @@
1
+ [
2
+ {
3
+ "caseId": "analytics-config-invalid-5aebb1a18fc9abbd",
4
+ "coveredRuleIds": ["analytics-config:#/properties/schemaId:const"],
5
+ "schemaId": "urn:gala:schema:analytics-config:2.0.0",
6
+ "schemaPointer": "#/properties/schemaId",
7
+ "keyword": "const",
8
+ "instance": "urn:gala:schema:analytics-config:2.0.0-invalid",
9
+ "expectedCodes": ["SCHEMA_VERSION_UNSUPPORTED"]
10
+ },
11
+ {
12
+ "caseId": "analytics-config-invalid-5c28721fe4b207b1",
13
+ "coveredRuleIds": ["analytics-config:#/properties/schemaVersion:const"],
14
+ "schemaId": "urn:gala:schema:analytics-config:2.0.0",
15
+ "schemaPointer": "#/properties/schemaVersion",
16
+ "keyword": "const",
17
+ "instance": "2.0.0-invalid",
18
+ "expectedCodes": ["SCHEMA_VERSION_UNSUPPORTED"]
19
+ }
20
+ ]
@@ -0,0 +1,20 @@
1
+ [
2
+ {
3
+ "caseId": "analytics-config-invalid-7158d77eec7029f3",
4
+ "coveredRuleIds": ["analytics-config:#/$defs/semver:pattern"],
5
+ "schemaId": "urn:gala:schema:analytics-config:2.0.0",
6
+ "schemaPointer": "#/$defs/semver",
7
+ "keyword": "pattern",
8
+ "instance": "",
9
+ "expectedCodes": ["SEMVER_INVALID"]
10
+ },
11
+ {
12
+ "caseId": "analytics-config-invalid-9e71191a72c3909f",
13
+ "coveredRuleIds": ["analytics-config:#/$defs/semver:type"],
14
+ "schemaId": "urn:gala:schema:analytics-config:2.0.0",
15
+ "schemaPointer": "#/$defs/semver",
16
+ "keyword": "type",
17
+ "instance": null,
18
+ "expectedCodes": ["SEMVER_INVALID"]
19
+ }
20
+ ]
@@ -0,0 +1,38 @@
1
+ [
2
+ {
3
+ "caseId": "analytics-config-invalid-63611624c6f851be",
4
+ "coveredRuleIds": ["analytics-config:#/$defs/semverRange:minLength"],
5
+ "schemaId": "urn:gala:schema:analytics-config:2.0.0",
6
+ "schemaPointer": "#/$defs/semverRange",
7
+ "keyword": "minLength",
8
+ "instance": "",
9
+ "expectedCodes": ["SEMVER_RANGE_INVALID"]
10
+ },
11
+ {
12
+ "caseId": "analytics-config-invalid-9d45c71f32a296a5",
13
+ "coveredRuleIds": ["analytics-config:#/$defs/semverRange:pattern"],
14
+ "schemaId": "urn:gala:schema:analytics-config:2.0.0",
15
+ "schemaPointer": "#/$defs/semverRange",
16
+ "keyword": "pattern",
17
+ "instance": "",
18
+ "expectedCodes": ["SEMVER_RANGE_INVALID"]
19
+ },
20
+ {
21
+ "caseId": "analytics-config-invalid-d543122abd14a198",
22
+ "coveredRuleIds": ["analytics-config:#/$defs/semverRange:type"],
23
+ "schemaId": "urn:gala:schema:analytics-config:2.0.0",
24
+ "schemaPointer": "#/$defs/semverRange",
25
+ "keyword": "type",
26
+ "instance": null,
27
+ "expectedCodes": ["SEMVER_RANGE_INVALID"]
28
+ },
29
+ {
30
+ "caseId": "analytics-config-invalid-db638f13eef9fafd",
31
+ "coveredRuleIds": ["analytics-config:#/$defs/semverRange:format"],
32
+ "schemaId": "urn:gala:schema:analytics-config:2.0.0",
33
+ "schemaPointer": "#/$defs/semverRange",
34
+ "keyword": "format",
35
+ "instance": "latest",
36
+ "expectedCodes": ["SEMVER_RANGE_INVALID"]
37
+ }
38
+ ]
@@ -0,0 +1,38 @@
1
+ [
2
+ {
3
+ "caseId": "analytics-config-invalid-32d4f3a7311a6f63",
4
+ "coveredRuleIds": ["analytics-config:#/$defs/slug:pattern"],
5
+ "schemaId": "urn:gala:schema:analytics-config:2.0.0",
6
+ "schemaPointer": "#/$defs/slug",
7
+ "keyword": "pattern",
8
+ "instance": "",
9
+ "expectedCodes": ["SLUG_INVALID"]
10
+ },
11
+ {
12
+ "caseId": "analytics-config-invalid-42588b13a0af79a2",
13
+ "coveredRuleIds": ["analytics-config:#/$defs/slug:maxLength"],
14
+ "schemaId": "urn:gala:schema:analytics-config:2.0.0",
15
+ "schemaPointer": "#/$defs/slug",
16
+ "keyword": "maxLength",
17
+ "recipe": { "kind": "repeat-string", "value": "a", "count": 81 },
18
+ "expectedCodes": ["SLUG_INVALID"]
19
+ },
20
+ {
21
+ "caseId": "analytics-config-invalid-d857af7755c22286",
22
+ "coveredRuleIds": ["analytics-config:#/$defs/slug:minLength"],
23
+ "schemaId": "urn:gala:schema:analytics-config:2.0.0",
24
+ "schemaPointer": "#/$defs/slug",
25
+ "keyword": "minLength",
26
+ "instance": "",
27
+ "expectedCodes": ["SLUG_INVALID"]
28
+ },
29
+ {
30
+ "caseId": "analytics-config-invalid-f2c8923c5e85b625",
31
+ "coveredRuleIds": ["analytics-config:#/$defs/slug:type"],
32
+ "schemaId": "urn:gala:schema:analytics-config:2.0.0",
33
+ "schemaPointer": "#/$defs/slug",
34
+ "keyword": "type",
35
+ "instance": null,
36
+ "expectedCodes": ["SLUG_INVALID"]
37
+ }
38
+ ]
@@ -0,0 +1,20 @@
1
+ [
2
+ {
3
+ "caseId": "analytics-config-invalid-7fc0032c0cbc5e70",
4
+ "coveredRuleIds": ["analytics-config:#/$defs/stableId:pattern"],
5
+ "schemaId": "urn:gala:schema:analytics-config:2.0.0",
6
+ "schemaPointer": "#/$defs/stableId",
7
+ "keyword": "pattern",
8
+ "instance": "",
9
+ "expectedCodes": ["STABLE_ID_INVALID"]
10
+ },
11
+ {
12
+ "caseId": "analytics-config-invalid-9e37dd99d6b92a7e",
13
+ "coveredRuleIds": ["analytics-config:#/$defs/stableId:type"],
14
+ "schemaId": "urn:gala:schema:analytics-config:2.0.0",
15
+ "schemaPointer": "#/$defs/stableId",
16
+ "keyword": "type",
17
+ "instance": null,
18
+ "expectedCodes": ["STABLE_ID_INVALID"]
19
+ }
20
+ ]
@@ -0,0 +1,38 @@
1
+ [
2
+ {
3
+ "caseId": "analytics-config-invalid-0246b6c4c9c0bbc0",
4
+ "coveredRuleIds": ["analytics-config:#/$defs/urn:maxLength"],
5
+ "schemaId": "urn:gala:schema:analytics-config:2.0.0",
6
+ "schemaPointer": "#/$defs/urn",
7
+ "keyword": "maxLength",
8
+ "recipe": { "kind": "repeat-string", "value": "a", "count": 256 },
9
+ "expectedCodes": ["URN_INVALID"]
10
+ },
11
+ {
12
+ "caseId": "analytics-config-invalid-6b29682436f13e87",
13
+ "coveredRuleIds": ["analytics-config:#/$defs/urn:type"],
14
+ "schemaId": "urn:gala:schema:analytics-config:2.0.0",
15
+ "schemaPointer": "#/$defs/urn",
16
+ "keyword": "type",
17
+ "instance": null,
18
+ "expectedCodes": ["URN_INVALID"]
19
+ },
20
+ {
21
+ "caseId": "analytics-config-invalid-b7faab3270c85e13",
22
+ "coveredRuleIds": ["analytics-config:#/$defs/urn:minLength"],
23
+ "schemaId": "urn:gala:schema:analytics-config:2.0.0",
24
+ "schemaPointer": "#/$defs/urn",
25
+ "keyword": "minLength",
26
+ "instance": "aaaaaaaaa",
27
+ "expectedCodes": ["URN_INVALID"]
28
+ },
29
+ {
30
+ "caseId": "analytics-config-invalid-f4607c2431c61e56",
31
+ "coveredRuleIds": ["analytics-config:#/$defs/urn:pattern"],
32
+ "schemaId": "urn:gala:schema:analytics-config:2.0.0",
33
+ "schemaPointer": "#/$defs/urn",
34
+ "keyword": "pattern",
35
+ "instance": "",
36
+ "expectedCodes": ["URN_INVALID"]
37
+ }
38
+ ]
@@ -142,6 +142,17 @@
142
142
  "recipe": { "kind": "repeat-string", "value": "a", "count": 121 },
143
143
  "expectedCodes": ["GRAPHEME_LENGTH_INVALID"]
144
144
  },
145
+ {
146
+ "caseId": "build-input-invalid-bcd3ac8bde567068",
147
+ "coveredRuleIds": [
148
+ "build-input:#/$defs/policyPageNormalized/properties/title:x-gala-graphemeLength"
149
+ ],
150
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
151
+ "schemaPointer": "#/$defs/policyPageNormalized/properties/title",
152
+ "keyword": "x-gala-graphemeLength",
153
+ "recipe": { "kind": "repeat-string", "value": "a", "count": 81 },
154
+ "expectedCodes": ["GRAPHEME_LENGTH_INVALID"]
155
+ },
145
156
  {
146
157
  "caseId": "build-input-invalid-c226da3a1e501e13",
147
158
  "coveredRuleIds": [
@@ -1,4 +1,24 @@
1
1
  [
2
+ {
3
+ "caseId": "build-input-invalid-012062b00a76ee58",
4
+ "coveredRuleIds": [
5
+ "build-input:#/$defs/analyticsConfig:additionalProperties"
6
+ ],
7
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
8
+ "schemaPointer": "#/$defs/analyticsConfig",
9
+ "keyword": "additionalProperties",
10
+ "instance": {
11
+ "schemaId": "urn:gala:schema:analytics-config:2.0.0",
12
+ "schemaVersion": "2.0.0",
13
+ "provider": {
14
+ "kind": "google-analytics-4",
15
+ "measurementId": "G-ABC123XYZ"
16
+ },
17
+ "consent": { "policy": "opt-in" },
18
+ "unexpected": true
19
+ },
20
+ "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
21
+ },
2
22
  {
3
23
  "caseId": "build-input-invalid-02ea8ac9a2bfe9b0",
4
24
  "coveredRuleIds": [
@@ -113,6 +133,39 @@
113
133
  },
114
134
  "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
115
135
  },
136
+ {
137
+ "caseId": "build-input-invalid-200468e4c44696db",
138
+ "coveredRuleIds": [
139
+ "build-input:#/$defs/moduleBuildSelection/properties/analytics:additionalProperties"
140
+ ],
141
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
142
+ "schemaPointer": "#/$defs/moduleBuildSelection/properties/analytics",
143
+ "keyword": "additionalProperties",
144
+ "instance": {
145
+ "config": {
146
+ "schemaId": "urn:gala:schema:analytics-config:2.0.0",
147
+ "schemaVersion": "2.0.0",
148
+ "provider": {
149
+ "kind": "google-analytics-4",
150
+ "measurementId": "G-ABC123XYZ"
151
+ },
152
+ "consent": { "policy": "opt-in" }
153
+ },
154
+ "unexpected": true
155
+ },
156
+ "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
157
+ },
158
+ {
159
+ "caseId": "build-input-invalid-244815496877bc8b",
160
+ "coveredRuleIds": [
161
+ "build-input:#/$defs/analyticsConfig/properties/consent:additionalProperties"
162
+ ],
163
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
164
+ "schemaPointer": "#/$defs/analyticsConfig/properties/consent",
165
+ "keyword": "additionalProperties",
166
+ "instance": { "policy": "opt-in", "unexpected": true },
167
+ "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
168
+ },
116
169
  {
117
170
  "caseId": "build-input-invalid-28c4e29d9fe6733e",
118
171
  "coveredRuleIds": [
@@ -223,6 +276,32 @@
223
276
  },
224
277
  "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
225
278
  },
279
+ {
280
+ "caseId": "build-input-invalid-4893479780f32734",
281
+ "coveredRuleIds": [
282
+ "build-input:#/$defs/policyPageNormalized:additionalProperties"
283
+ ],
284
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
285
+ "schemaPointer": "#/$defs/policyPageNormalized",
286
+ "keyword": "additionalProperties",
287
+ "instance": {
288
+ "title": "fixture-1",
289
+ "body": {
290
+ "sourcePath": "content/fixture-1.md",
291
+ "sourceDigest": "sha256:0000000000000000000000000000000000000000000000000000000000000001",
292
+ "bodyMediaType": "text/html",
293
+ "body": "fixture-1",
294
+ "bodyDigest": "sha256:0000000000000000000000000000000000000000000000000000000000000001",
295
+ "renderPolicy": {
296
+ "name": "gala-render-policy",
297
+ "version": "2.0.0",
298
+ "digest": "sha256:0000000000000000000000000000000000000000000000000000000000000001"
299
+ }
300
+ },
301
+ "unexpected": true
302
+ },
303
+ "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
304
+ },
226
305
  {
227
306
  "caseId": "build-input-invalid-4df34ff7bd3501db",
228
307
  "coveredRuleIds": [
@@ -273,6 +352,21 @@
273
352
  },
274
353
  "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
275
354
  },
355
+ {
356
+ "caseId": "build-input-invalid-565dfdd3ef826339",
357
+ "coveredRuleIds": [
358
+ "build-input:#/$defs/analyticsConfig/properties/provider:additionalProperties"
359
+ ],
360
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
361
+ "schemaPointer": "#/$defs/analyticsConfig/properties/provider",
362
+ "keyword": "additionalProperties",
363
+ "instance": {
364
+ "kind": "google-analytics-4",
365
+ "measurementId": "G-ABC123XYZ",
366
+ "unexpected": true
367
+ },
368
+ "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
369
+ },
276
370
  {
277
371
  "caseId": "build-input-invalid-5f118990cd93a43f",
278
372
  "coveredRuleIds": ["build-input:#/$defs/resolvedFile:additionalProperties"],
@@ -941,6 +1035,49 @@
941
1035
  },
942
1036
  "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
943
1037
  },
1038
+ {
1039
+ "caseId": "build-input-invalid-c6711ca7ec3aed4f",
1040
+ "coveredRuleIds": [
1041
+ "build-input:#/$defs/policiesNormalized:additionalProperties"
1042
+ ],
1043
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
1044
+ "schemaPointer": "#/$defs/policiesNormalized",
1045
+ "keyword": "additionalProperties",
1046
+ "instance": {
1047
+ "terms": {
1048
+ "title": "fixture-1",
1049
+ "body": {
1050
+ "sourcePath": "content/fixture-1.md",
1051
+ "sourceDigest": "sha256:0000000000000000000000000000000000000000000000000000000000000001",
1052
+ "bodyMediaType": "text/html",
1053
+ "body": "fixture-1",
1054
+ "bodyDigest": "sha256:0000000000000000000000000000000000000000000000000000000000000001",
1055
+ "renderPolicy": {
1056
+ "name": "gala-render-policy",
1057
+ "version": "2.0.0",
1058
+ "digest": "sha256:0000000000000000000000000000000000000000000000000000000000000001"
1059
+ }
1060
+ }
1061
+ },
1062
+ "privacy": {
1063
+ "title": "fixture-1",
1064
+ "body": {
1065
+ "sourcePath": "content/fixture-1.md",
1066
+ "sourceDigest": "sha256:0000000000000000000000000000000000000000000000000000000000000001",
1067
+ "bodyMediaType": "text/html",
1068
+ "body": "fixture-1",
1069
+ "bodyDigest": "sha256:0000000000000000000000000000000000000000000000000000000000000001",
1070
+ "renderPolicy": {
1071
+ "name": "gala-render-policy",
1072
+ "version": "2.0.0",
1073
+ "digest": "sha256:0000000000000000000000000000000000000000000000000000000000000001"
1074
+ }
1075
+ }
1076
+ },
1077
+ "unexpected": true
1078
+ },
1079
+ "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
1080
+ },
944
1081
  {
945
1082
  "caseId": "build-input-invalid-cb97b11a55797a13",
946
1083
  "coveredRuleIds": [
@@ -107,6 +107,28 @@
107
107
  "instance": "__invalid_enum__",
108
108
  "expectedCodes": ["SCHEMA_ENUM_INVALID"]
109
109
  },
110
+ {
111
+ "caseId": "build-input-invalid-675276105983e5c3",
112
+ "coveredRuleIds": [
113
+ "build-input:#/$defs/analyticsConfig/properties/provider/properties/kind:enum"
114
+ ],
115
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
116
+ "schemaPointer": "#/$defs/analyticsConfig/properties/provider/properties/kind",
117
+ "keyword": "enum",
118
+ "instance": "__invalid_enum__",
119
+ "expectedCodes": ["SCHEMA_ENUM_INVALID"]
120
+ },
121
+ {
122
+ "caseId": "build-input-invalid-927a9135b6784bbf",
123
+ "coveredRuleIds": [
124
+ "build-input:#/$defs/analyticsConfig/properties/consent/properties/policy:enum"
125
+ ],
126
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
127
+ "schemaPointer": "#/$defs/analyticsConfig/properties/consent/properties/policy",
128
+ "keyword": "enum",
129
+ "instance": "__invalid_enum__",
130
+ "expectedCodes": ["SCHEMA_ENUM_INVALID"]
131
+ },
110
132
  {
111
133
  "caseId": "build-input-invalid-b12389ca44d6e5b3",
112
134
  "coveredRuleIds": [