@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
@@ -720,11 +720,11 @@
720
720
  {
721
721
  "caseId": "build-input-boundary-272d0c4109ba4725",
722
722
  "coveredRuleIds": [
723
- "build-input:#/$defs/appearanceNormalized/properties/theme/allOf/1:pattern"
723
+ "build-input:#/$defs/appearanceNormalized/properties/theme/allOf/1:anyOf"
724
724
  ],
725
725
  "schemaId": "urn:gala:schema:build-input:2.0.0",
726
726
  "schemaPointer": "#/$defs/appearanceNormalized/properties/theme/allOf/1",
727
- "keyword": "pattern",
727
+ "keyword": "anyOf",
728
728
  "instance": "@rathnasgala2/theme-default@2.0.0"
729
729
  },
730
730
  {
@@ -2500,6 +2500,17 @@
2500
2500
  "sourceDigest": "sha256:0000000000000000000000000000000000000000000000000000000000000001"
2501
2501
  }
2502
2502
  },
2503
+ {
2504
+ "caseId": "build-input-boundary-9994a1907dfd03f5",
2505
+ "coveredRuleIds": [
2506
+ "build-input:#/$defs/appearanceNormalized/properties/theme/allOf/1/anyOf/0:pattern",
2507
+ "build-input:#/$defs/appearanceNormalized/properties/theme/allOf/1/anyOf/0:type"
2508
+ ],
2509
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
2510
+ "schemaPointer": "#/$defs/appearanceNormalized/properties/theme/allOf/1/anyOf/0",
2511
+ "keyword": "pattern",
2512
+ "instance": "@rathnasgala2/theme-default@2.0.0"
2513
+ },
2503
2514
  {
2504
2515
  "caseId": "build-input-boundary-9a2dfd5b00341b6c",
2505
2516
  "coveredRuleIds": [
@@ -3553,6 +3564,17 @@
3553
3564
  }
3554
3565
  ]
3555
3566
  },
3567
+ {
3568
+ "caseId": "build-input-boundary-e32d8fa6d02ccbd7",
3569
+ "coveredRuleIds": [
3570
+ "build-input:#/$defs/appearanceNormalized/properties/theme/allOf/1/anyOf/1:pattern",
3571
+ "build-input:#/$defs/appearanceNormalized/properties/theme/allOf/1/anyOf/1:type"
3572
+ ],
3573
+ "schemaId": "urn:gala:schema:build-input:2.0.0",
3574
+ "schemaPointer": "#/$defs/appearanceNormalized/properties/theme/allOf/1/anyOf/1",
3575
+ "keyword": "pattern",
3576
+ "instance": "@rathnasgala2/theme-editorial@4.0.0"
3577
+ },
3556
3578
  {
3557
3579
  "caseId": "build-input-boundary-e38f8bfbb900c700",
3558
3580
  "coveredRuleIds": [
@@ -169,6 +169,18 @@
169
169
  "length": 100
170
170
  }
171
171
  },
172
+ {
173
+ "caseId": "problem-boundary-538e0d3cb66a8912",
174
+ "coveredRuleIds": ["problem:#/$defs/fieldError/properties/paths:maxItems"],
175
+ "schemaId": "urn:gala:schema:problem:2.0.0",
176
+ "schemaPointer": "#/$defs/fieldError/properties/paths",
177
+ "keyword": "maxItems",
178
+ "recipe": {
179
+ "kind": "schema-array-boundary",
180
+ "schemaPointer": "#/$defs/fieldError/properties/paths",
181
+ "length": 50
182
+ }
183
+ },
172
184
  {
173
185
  "caseId": "problem-boundary-5b5e96f439400c47",
174
186
  "coveredRuleIds": [
@@ -231,6 +243,17 @@
231
243
  "keyword": "format",
232
244
  "instance": "https://fixture-1.example.com/"
233
245
  },
246
+ {
247
+ "caseId": "problem-boundary-653ff392e0a9a9d2",
248
+ "coveredRuleIds": [
249
+ "problem:#/$defs/fieldError/properties/reason:enum",
250
+ "problem:#/$defs/fieldError/properties/reason:type"
251
+ ],
252
+ "schemaId": "urn:gala:schema:problem:2.0.0",
253
+ "schemaPointer": "#/$defs/fieldError/properties/reason",
254
+ "keyword": "enum",
255
+ "instance": "AUTHOR_EDITED"
256
+ },
234
257
  {
235
258
  "caseId": "problem-boundary-6d8e769d019903ac",
236
259
  "coveredRuleIds": ["problem:#/$defs/urn:minLength"],
@@ -255,6 +278,18 @@
255
278
  "keyword": "format",
256
279
  "instance": "fixture-1"
257
280
  },
281
+ {
282
+ "caseId": "problem-boundary-7cf6d46ec133d643",
283
+ "coveredRuleIds": ["problem:#/$defs/fieldError/properties/paths:minItems"],
284
+ "schemaId": "urn:gala:schema:problem:2.0.0",
285
+ "schemaPointer": "#/$defs/fieldError/properties/paths",
286
+ "keyword": "minItems",
287
+ "recipe": {
288
+ "kind": "schema-array-boundary",
289
+ "schemaPointer": "#/$defs/fieldError/properties/paths",
290
+ "length": 0
291
+ }
292
+ },
258
293
  {
259
294
  "caseId": "problem-boundary-7ed4474c367a9950",
260
295
  "coveredRuleIds": [
@@ -319,6 +354,21 @@
319
354
  "direction": "minimum"
320
355
  }
321
356
  },
357
+ {
358
+ "caseId": "problem-boundary-92f8b53631f17b61",
359
+ "coveredRuleIds": [
360
+ "problem:#/$defs/fieldError/properties/paths/items:maxLength"
361
+ ],
362
+ "schemaId": "urn:gala:schema:problem:2.0.0",
363
+ "schemaPointer": "#/$defs/fieldError/properties/paths/items",
364
+ "keyword": "maxLength",
365
+ "recipe": {
366
+ "kind": "schema-string-boundary",
367
+ "schemaPointer": "#/$defs/fieldError/properties/paths/items",
368
+ "length": 512,
369
+ "direction": "maximum"
370
+ }
371
+ },
322
372
  {
323
373
  "caseId": "problem-boundary-9513b91bbfc3d7b8",
324
374
  "coveredRuleIds": [
@@ -338,6 +388,14 @@
338
388
  "keyword": "const",
339
389
  "instance": "urn:gala:schema:problem:2.0.0"
340
390
  },
391
+ {
392
+ "caseId": "problem-boundary-9cf0ce432b88fcca",
393
+ "coveredRuleIds": ["problem:#/$defs/fieldError/properties/paths:type"],
394
+ "schemaId": "urn:gala:schema:problem:2.0.0",
395
+ "schemaPointer": "#/$defs/fieldError/properties/paths",
396
+ "keyword": "type",
397
+ "instance": ["fixture-1"]
398
+ },
341
399
  {
342
400
  "caseId": "problem-boundary-9d1652c8539eeeb4",
343
401
  "coveredRuleIds": ["problem:#/$defs/fieldError/properties/pointer:type"],
@@ -354,6 +412,16 @@
354
412
  "keyword": "type",
355
413
  "instance": [{ "pointer": "fixture-1", "code": "FIXTURE" }]
356
414
  },
415
+ {
416
+ "caseId": "problem-boundary-a8d854d1aaeaf3b1",
417
+ "coveredRuleIds": [
418
+ "problem:#/$defs/fieldError/properties/paths/items:type"
419
+ ],
420
+ "schemaId": "urn:gala:schema:problem:2.0.0",
421
+ "schemaPointer": "#/$defs/fieldError/properties/paths/items",
422
+ "keyword": "type",
423
+ "instance": "fixture-1"
424
+ },
357
425
  {
358
426
  "caseId": "problem-boundary-a9defb191b0db7c2",
359
427
  "coveredRuleIds": [
@@ -585,6 +653,21 @@
585
653
  "direction": "maximum"
586
654
  }
587
655
  },
656
+ {
657
+ "caseId": "problem-boundary-f8e4f1f246c4faf4",
658
+ "coveredRuleIds": [
659
+ "problem:#/$defs/fieldError/properties/paths/items:minLength"
660
+ ],
661
+ "schemaId": "urn:gala:schema:problem:2.0.0",
662
+ "schemaPointer": "#/$defs/fieldError/properties/paths/items",
663
+ "keyword": "minLength",
664
+ "recipe": {
665
+ "kind": "schema-string-boundary",
666
+ "schemaPointer": "#/$defs/fieldError/properties/paths/items",
667
+ "length": 1,
668
+ "direction": "minimum"
669
+ }
670
+ },
588
671
  {
589
672
  "caseId": "problem-boundary-fa8f8d73d7254afa",
590
673
  "coveredRuleIds": [