@rathnasgala2/schemas 3.7.0 → 3.9.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 (61) hide show
  1. package/THIRD_PARTY_LICENSES.json +1 -1
  2. package/diagnostics/diagnostic-map.json +857 -10
  3. package/docs/catalogs/schema-inventory.json +11 -11
  4. package/examples/valid/build-input/rules.json +24 -2
  5. package/examples/valid/problem/rules.json +35 -0
  6. package/examples/valid/template-composition/rules.json +769 -0
  7. package/examples/valid/theme-contract/rules.json +1107 -5
  8. package/fixtures/boundary/build-input/rules.json +24 -2
  9. package/fixtures/boundary/problem/rules.json +83 -0
  10. package/fixtures/boundary/template-composition/rules.json +769 -0
  11. package/fixtures/boundary/theme-contract/rules.json +1107 -5
  12. package/fixtures/invalid/build-input/SCHEMA_PATTERN_INVALID/cases.json +22 -11
  13. package/fixtures/invalid/build-input/SCHEMA_TYPE_INVALID/cases.json +22 -0
  14. package/fixtures/invalid/build-input/SCHEMA_UNION_INVALID/cases.json +11 -0
  15. package/fixtures/invalid/problem/SCHEMA_ARRAY_TOO_LONG/cases.json +13 -0
  16. package/fixtures/invalid/problem/SCHEMA_ENUM_INVALID/cases.json +11 -0
  17. package/fixtures/invalid/problem/SCHEMA_STRING_TOO_LONG/cases.json +11 -0
  18. package/fixtures/invalid/problem/SCHEMA_STRING_TOO_SHORT/cases.json +11 -0
  19. package/fixtures/invalid/problem/SCHEMA_TYPE_INVALID/cases.json +29 -0
  20. package/fixtures/invalid/template-composition/SCHEMA_CONSTANT_INVALID/cases.json +497 -0
  21. package/fixtures/invalid/template-composition/SCHEMA_ENUM_INVALID/cases.json +83 -0
  22. package/fixtures/invalid/template-composition/SCHEMA_NEGATED_RULE_MATCHED/cases.json +11 -0
  23. package/fixtures/invalid/template-composition/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +909 -0
  24. package/fixtures/invalid/template-composition/SCHEMA_UNION_INVALID/cases.json +20 -0
  25. package/fixtures/invalid/theme-contract/REQUEST_FIELD_UNKNOWN/cases.json +120 -0
  26. package/fixtures/invalid/theme-contract/SCHEMA_CONSTANT_INVALID/cases.json +680 -0
  27. package/fixtures/invalid/theme-contract/SCHEMA_NEGATED_RULE_MATCHED/cases.json +11 -0
  28. package/fixtures/invalid/theme-contract/SCHEMA_PATTERN_INVALID/cases.json +33 -9
  29. package/fixtures/invalid/theme-contract/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +1383 -3
  30. package/fixtures/invalid/theme-contract/SCHEMA_TYPE_INVALID/cases.json +77 -0
  31. package/fixtures/invalid/theme-contract/SCHEMA_UNION_INVALID/cases.json +18 -0
  32. package/fixtures/invalid/theme-contract/SCHEMA_VERSION_UNSUPPORTED/cases.json +110 -0
  33. package/fixtures/manifest.json +7570 -1065
  34. package/fixtures/s2/manifest.json +1 -1
  35. package/fixtures/unknown-field/build-input/rules.json +5 -1
  36. package/fixtures/unknown-field/problem/rules.json +8 -0
  37. package/fixtures/unknown-field/template-composition/rules.json +111 -0
  38. package/fixtures/unknown-field/theme-contract/rules.json +276 -1
  39. package/generated/browser/validator-core.mjs +3 -3
  40. package/generated/typescript/contracts/artifact-manifest.d.ts +4 -2
  41. package/generated/typescript/contracts/build-input.d.ts +3 -2
  42. package/generated/typescript/contracts/build-provenance.d.ts +4 -2
  43. package/generated/typescript/contracts/deployment-intent.d.ts +1 -0
  44. package/generated/typescript/contracts/deployment-receipt.d.ts +1 -0
  45. package/generated/typescript/contracts/lock.d.ts +2 -1
  46. package/generated/typescript/contracts/problem.d.ts +9 -0
  47. package/generated/typescript/contracts/template-composition.d.ts +75 -4
  48. package/generated/typescript/contracts/theme-contract.d.ts +75 -2
  49. package/openapi/http-catalog.json +2 -2
  50. package/openapi/openapi.yaml +82 -11
  51. package/package.json +1 -1
  52. package/sbom.cdx.json +23 -23
  53. package/schemas/artifact-manifest.schema.json +4 -2
  54. package/schemas/build-input.schema.json +12 -2
  55. package/schemas/build-provenance.schema.json +4 -2
  56. package/schemas/deployment-intent.schema.json +1 -0
  57. package/schemas/deployment-receipt.schema.json +1 -0
  58. package/schemas/lock.schema.json +2 -1
  59. package/schemas/problem.schema.json +21 -1
  60. package/schemas/template-composition.schema.json +179 -2
  61. package/schemas/theme-contract.schema.json +282 -1
@@ -1,15 +1,4 @@
1
1
  [
2
- {
3
- "caseId": "build-input-invalid-2cb272569d03b68c",
4
- "coveredRuleIds": [
5
- "build-input:#/$defs/appearanceNormalized/properties/theme/allOf/1:pattern"
6
- ],
7
- "schemaId": "urn:gala:schema:build-input:2.0.0",
8
- "schemaPointer": "#/$defs/appearanceNormalized/properties/theme/allOf/1",
9
- "keyword": "pattern",
10
- "instance": "",
11
- "expectedCodes": ["SCHEMA_PATTERN_INVALID"]
12
- },
13
2
  {
14
3
  "caseId": "build-input-invalid-5518b31d248e3f99",
15
4
  "coveredRuleIds": ["build-input:#/$defs/npmPackageName:pattern"],
@@ -30,6 +19,17 @@
30
19
  "instance": "",
31
20
  "expectedCodes": ["SCHEMA_PATTERN_INVALID"]
32
21
  },
22
+ {
23
+ "caseId": "build-input-invalid-7a3c1a6c1def283b",
24
+ "coveredRuleIds": [
25
+ "build-input:#/$defs/appearanceNormalized/properties/theme/allOf/1/anyOf/0:pattern"
26
+ ],
27
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
28
+ "schemaPointer": "#/$defs/appearanceNormalized/properties/theme/allOf/1/anyOf/0",
29
+ "keyword": "pattern",
30
+ "instance": "",
31
+ "expectedCodes": ["SCHEMA_PATTERN_INVALID"]
32
+ },
33
33
  {
34
34
  "caseId": "build-input-invalid-a24ac112cbeaf366",
35
35
  "coveredRuleIds": ["build-input:#/$defs/githubPositiveDecimal:pattern"],
@@ -39,6 +39,17 @@
39
39
  "instance": "",
40
40
  "expectedCodes": ["SCHEMA_PATTERN_INVALID"]
41
41
  },
42
+ {
43
+ "caseId": "build-input-invalid-c997d3e76a95fa66",
44
+ "coveredRuleIds": [
45
+ "build-input:#/$defs/appearanceNormalized/properties/theme/allOf/1/anyOf/1:pattern"
46
+ ],
47
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
48
+ "schemaPointer": "#/$defs/appearanceNormalized/properties/theme/allOf/1/anyOf/1",
49
+ "keyword": "pattern",
50
+ "instance": "",
51
+ "expectedCodes": ["SCHEMA_PATTERN_INVALID"]
52
+ },
42
53
  {
43
54
  "caseId": "build-input-invalid-e1b12cc5c7e30288",
44
55
  "coveredRuleIds": ["build-input:#/$defs/reactionKey:pattern"],
@@ -295,6 +295,17 @@
295
295
  "instance": [],
296
296
  "expectedCodes": ["SCHEMA_TYPE_INVALID"]
297
297
  },
298
+ {
299
+ "caseId": "build-input-invalid-567b5de30ad1d624",
300
+ "coveredRuleIds": [
301
+ "build-input:#/$defs/appearanceNormalized/properties/theme/allOf/1/anyOf/0:type"
302
+ ],
303
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
304
+ "schemaPointer": "#/$defs/appearanceNormalized/properties/theme/allOf/1/anyOf/0",
305
+ "keyword": "type",
306
+ "instance": null,
307
+ "expectedCodes": ["SCHEMA_TYPE_INVALID"]
308
+ },
298
309
  {
299
310
  "caseId": "build-input-invalid-59f22a2c85a7d6c5",
300
311
  "coveredRuleIds": ["build-input:#/$defs/contentBuildRecord:type"],
@@ -514,6 +525,17 @@
514
525
  "instance": {},
515
526
  "expectedCodes": ["SCHEMA_TYPE_INVALID"]
516
527
  },
528
+ {
529
+ "caseId": "build-input-invalid-a7d27d9674da2908",
530
+ "coveredRuleIds": [
531
+ "build-input:#/$defs/appearanceNormalized/properties/theme/allOf/1/anyOf/1:type"
532
+ ],
533
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
534
+ "schemaPointer": "#/$defs/appearanceNormalized/properties/theme/allOf/1/anyOf/1",
535
+ "keyword": "type",
536
+ "instance": null,
537
+ "expectedCodes": ["SCHEMA_TYPE_INVALID"]
538
+ },
517
539
  {
518
540
  "caseId": "build-input-invalid-a8994536e3df0082",
519
541
  "coveredRuleIds": [
@@ -1,4 +1,15 @@
1
1
  [
2
+ {
3
+ "caseId": "build-input-invalid-4361c98304ff9dc5",
4
+ "coveredRuleIds": [
5
+ "build-input:#/$defs/appearanceNormalized/properties/theme/allOf/1:anyOf"
6
+ ],
7
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
8
+ "schemaPointer": "#/$defs/appearanceNormalized/properties/theme/allOf/1",
9
+ "keyword": "anyOf",
10
+ "instance": {},
11
+ "expectedCodes": ["SCHEMA_UNION_INVALID"]
12
+ },
2
13
  {
3
14
  "caseId": "build-input-invalid-b7525a1ba3446a1d",
4
15
  "coveredRuleIds": ["build-input:#/$defs/normalizedSource:oneOf"],
@@ -1,4 +1,17 @@
1
1
  [
2
+ {
3
+ "caseId": "problem-invalid-4ae795114f250c31",
4
+ "coveredRuleIds": ["problem:#/$defs/fieldError/properties/paths:maxItems"],
5
+ "schemaId": "urn:gala:schema:problem:2.0.0",
6
+ "schemaPointer": "#/$defs/fieldError/properties/paths",
7
+ "keyword": "maxItems",
8
+ "recipe": {
9
+ "kind": "schema-array-count",
10
+ "schemaPointer": "#/$defs/fieldError/properties/paths",
11
+ "length": 51
12
+ },
13
+ "expectedCodes": ["SCHEMA_ARRAY_TOO_LONG"]
14
+ },
2
15
  {
3
16
  "caseId": "problem-invalid-a84c02f9b711f16c",
4
17
  "coveredRuleIds": ["problem:#/properties/errors:maxItems"],
@@ -0,0 +1,11 @@
1
+ [
2
+ {
3
+ "caseId": "problem-invalid-c944caf60eb2babd",
4
+ "coveredRuleIds": ["problem:#/$defs/fieldError/properties/reason:enum"],
5
+ "schemaId": "urn:gala:schema:problem:2.0.0",
6
+ "schemaPointer": "#/$defs/fieldError/properties/reason",
7
+ "keyword": "enum",
8
+ "instance": "__invalid_enum__",
9
+ "expectedCodes": ["SCHEMA_ENUM_INVALID"]
10
+ }
11
+ ]
@@ -1,4 +1,15 @@
1
1
  [
2
+ {
3
+ "caseId": "problem-invalid-079794886ab5dd4d",
4
+ "coveredRuleIds": [
5
+ "problem:#/$defs/fieldError/properties/paths/items:maxLength"
6
+ ],
7
+ "schemaId": "urn:gala:schema:problem:2.0.0",
8
+ "schemaPointer": "#/$defs/fieldError/properties/paths/items",
9
+ "keyword": "maxLength",
10
+ "recipe": { "kind": "repeat-string", "value": "a", "count": 513 },
11
+ "expectedCodes": ["SCHEMA_STRING_TOO_LONG"]
12
+ },
2
13
  {
3
14
  "caseId": "problem-invalid-fbd1092416e2570b",
4
15
  "coveredRuleIds": [
@@ -1,4 +1,15 @@
1
1
  [
2
+ {
3
+ "caseId": "problem-invalid-789a2b9a352caea5",
4
+ "coveredRuleIds": [
5
+ "problem:#/$defs/fieldError/properties/paths/items:minLength"
6
+ ],
7
+ "schemaId": "urn:gala:schema:problem:2.0.0",
8
+ "schemaPointer": "#/$defs/fieldError/properties/paths/items",
9
+ "keyword": "minLength",
10
+ "instance": "",
11
+ "expectedCodes": ["SCHEMA_STRING_TOO_SHORT"]
12
+ },
2
13
  {
3
14
  "caseId": "problem-invalid-7b9682224573b367",
4
15
  "coveredRuleIds": [
@@ -8,6 +8,26 @@
8
8
  "instance": null,
9
9
  "expectedCodes": ["SCHEMA_TYPE_INVALID"]
10
10
  },
11
+ {
12
+ "caseId": "problem-invalid-361b444f240195c2",
13
+ "coveredRuleIds": ["problem:#/$defs/fieldError/properties/reason:type"],
14
+ "schemaId": "urn:gala:schema:problem:2.0.0",
15
+ "schemaPointer": "#/$defs/fieldError/properties/reason",
16
+ "keyword": "type",
17
+ "instance": null,
18
+ "expectedCodes": ["SCHEMA_TYPE_INVALID"]
19
+ },
20
+ {
21
+ "caseId": "problem-invalid-6729549958d3f9e2",
22
+ "coveredRuleIds": [
23
+ "problem:#/$defs/fieldError/properties/paths/items:type"
24
+ ],
25
+ "schemaId": "urn:gala:schema:problem:2.0.0",
26
+ "schemaPointer": "#/$defs/fieldError/properties/paths/items",
27
+ "keyword": "type",
28
+ "instance": null,
29
+ "expectedCodes": ["SCHEMA_TYPE_INVALID"]
30
+ },
11
31
  {
12
32
  "caseId": "problem-invalid-7275fbb8f6f498e7",
13
33
  "coveredRuleIds": ["problem:#/$defs/problemCode:type"],
@@ -79,5 +99,14 @@
79
99
  "keyword": "type",
80
100
  "instance": [],
81
101
  "expectedCodes": ["SCHEMA_TYPE_INVALID"]
102
+ },
103
+ {
104
+ "caseId": "problem-invalid-f7dd9718874abfab",
105
+ "coveredRuleIds": ["problem:#/$defs/fieldError/properties/paths:type"],
106
+ "schemaId": "urn:gala:schema:problem:2.0.0",
107
+ "schemaPointer": "#/$defs/fieldError/properties/paths",
108
+ "keyword": "type",
109
+ "instance": {},
110
+ "expectedCodes": ["SCHEMA_TYPE_INVALID"]
82
111
  }
83
112
  ]