@rathnasgala2/schemas 3.24.0 → 3.25.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 (52) hide show
  1. package/THIRD_PARTY_LICENSES.json +1 -1
  2. package/diagnostics/diagnostic-map.json +222 -0
  3. package/docs/catalogs/app-components.json +239 -1
  4. package/docs/catalogs/app-routes.json +69 -1
  5. package/docs/catalogs/schema-inventory.json +6 -6
  6. package/examples/valid/build-input/rules.json +118 -0
  7. package/examples/valid/content-frontmatter/rules.json +11 -0
  8. package/examples/valid/deployment-receipt/rules.json +150 -0
  9. package/examples/valid/publication/rules.json +107 -0
  10. package/fixtures/boundary/build-input/rules.json +127 -0
  11. package/fixtures/boundary/content-frontmatter/rules.json +11 -0
  12. package/fixtures/boundary/deployment-receipt/rules.json +163 -0
  13. package/fixtures/boundary/publication/rules.json +116 -0
  14. package/fixtures/invalid/build-input/REQUEST_FIELD_UNKNOWN/cases.json +38 -0
  15. package/fixtures/invalid/build-input/SCHEMA_ENUM_INVALID/cases.json +18 -0
  16. package/fixtures/invalid/build-input/SCHEMA_NUMBER_TOO_LARGE/cases.json +11 -0
  17. package/fixtures/invalid/build-input/SCHEMA_NUMBER_TOO_SMALL/cases.json +44 -0
  18. package/fixtures/invalid/build-input/SCHEMA_PATTERN_INVALID/cases.json +9 -0
  19. package/fixtures/invalid/build-input/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +18 -0
  20. package/fixtures/invalid/build-input/SCHEMA_TYPE_INVALID/cases.json +89 -0
  21. package/fixtures/invalid/content-frontmatter/SCHEMA_PATTERN_INVALID/cases.json +9 -0
  22. package/fixtures/invalid/content-frontmatter/SCHEMA_TYPE_INVALID/cases.json +9 -0
  23. package/fixtures/invalid/deployment-receipt/REQUEST_FIELD_UNKNOWN/cases.json +51 -0
  24. package/fixtures/invalid/deployment-receipt/SCHEMA_ARRAY_TOO_LONG/cases.json +15 -0
  25. package/fixtures/invalid/deployment-receipt/SCHEMA_ENUM_INVALID/cases.json +11 -0
  26. package/fixtures/invalid/deployment-receipt/SCHEMA_NUMBER_TOO_SMALL/cases.json +66 -0
  27. package/fixtures/invalid/deployment-receipt/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +101 -0
  28. package/fixtures/invalid/deployment-receipt/SCHEMA_TYPE_INVALID/cases.json +108 -0
  29. package/fixtures/invalid/publication/REQUEST_FIELD_UNKNOWN/cases.json +38 -0
  30. package/fixtures/invalid/publication/SCHEMA_ENUM_INVALID/cases.json +18 -0
  31. package/fixtures/invalid/publication/SCHEMA_NUMBER_TOO_LARGE/cases.json +13 -0
  32. package/fixtures/invalid/publication/SCHEMA_NUMBER_TOO_SMALL/cases.json +46 -0
  33. package/fixtures/invalid/publication/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +18 -0
  34. package/fixtures/invalid/publication/SCHEMA_TYPE_INVALID/cases.json +80 -0
  35. package/fixtures/manifest.json +1710 -8
  36. package/fixtures/unknown-field/build-input/rules.json +63 -0
  37. package/fixtures/unknown-field/content-frontmatter/rules.json +2 -0
  38. package/fixtures/unknown-field/deployment-receipt/rules.json +76 -0
  39. package/fixtures/unknown-field/publication/rules.json +61 -0
  40. package/generated/browser/validator-core.mjs +3 -3
  41. package/generated/typescript/contracts/build-input.d.ts +24 -0
  42. package/generated/typescript/contracts/content-frontmatter.d.ts +3 -0
  43. package/generated/typescript/contracts/deployment-receipt.d.ts +18 -0
  44. package/generated/typescript/contracts/publication.d.ts +21 -0
  45. package/openapi/http-catalog.json +28 -2
  46. package/openapi/openapi.yaml +353 -2
  47. package/package.json +1 -1
  48. package/sbom.cdx.json +23 -23
  49. package/schemas/build-input.schema.json +47 -0
  50. package/schemas/content-frontmatter.schema.json +6 -0
  51. package/schemas/deployment-receipt.schema.json +35 -0
  52. package/schemas/publication.schema.json +41 -0
@@ -2318,6 +2318,27 @@
2318
2318
  },
2319
2319
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
2320
2320
  },
2321
+ {
2322
+ "caseId": "deployment-receipt-invalid-16c2be3e110bbcb3",
2323
+ "coveredRuleIds": [
2324
+ "deployment-receipt:#/$defs/deploymentPerformance:required:overBudgetCount"
2325
+ ],
2326
+ "schemaId": "urn:gala:schema:deployment-receipt:2.0.0",
2327
+ "schemaPointer": "#/$defs/deploymentPerformance",
2328
+ "keyword": "required",
2329
+ "instance": {
2330
+ "budgets": {},
2331
+ "overBudget": [
2332
+ {
2333
+ "path": "content/fixture-1.md",
2334
+ "kind": "html",
2335
+ "bytes": 0,
2336
+ "budget": 1024
2337
+ }
2338
+ ]
2339
+ },
2340
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
2341
+ },
2321
2342
  {
2322
2343
  "caseId": "deployment-receipt-invalid-16d4b6eefb8d0067",
2323
2344
  "coveredRuleIds": [
@@ -4467,6 +4488,17 @@
4467
4488
  },
4468
4489
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
4469
4490
  },
4491
+ {
4492
+ "caseId": "deployment-receipt-invalid-287892f05d359a14",
4493
+ "coveredRuleIds": [
4494
+ "deployment-receipt:#/$defs/deploymentPerformance/properties/overBudget/items:required:budget"
4495
+ ],
4496
+ "schemaId": "urn:gala:schema:deployment-receipt:2.0.0",
4497
+ "schemaPointer": "#/$defs/deploymentPerformance/properties/overBudget/items",
4498
+ "keyword": "required",
4499
+ "instance": { "path": "content/fixture-1.md", "kind": "html", "bytes": 0 },
4500
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
4501
+ },
4470
4502
  {
4471
4503
  "caseId": "deployment-receipt-invalid-2878dc332300c712",
4472
4504
  "coveredRuleIds": [
@@ -4656,6 +4688,17 @@
4656
4688
  },
4657
4689
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
4658
4690
  },
4691
+ {
4692
+ "caseId": "deployment-receipt-invalid-2a2b76465e72f1ae",
4693
+ "coveredRuleIds": [
4694
+ "deployment-receipt:#/$defs/deploymentPerformance/properties/overBudget/items:required:kind"
4695
+ ],
4696
+ "schemaId": "urn:gala:schema:deployment-receipt:2.0.0",
4697
+ "schemaPointer": "#/$defs/deploymentPerformance/properties/overBudget/items",
4698
+ "keyword": "required",
4699
+ "instance": { "path": "content/fixture-1.md", "bytes": 0, "budget": 1024 },
4700
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
4701
+ },
4659
4702
  {
4660
4703
  "caseId": "deployment-receipt-invalid-2aadb9c76621965d",
4661
4704
  "coveredRuleIds": [
@@ -6000,6 +6043,17 @@
6000
6043
  "instance": {},
6001
6044
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
6002
6045
  },
6046
+ {
6047
+ "caseId": "deployment-receipt-invalid-366cbe5fbed1c278",
6048
+ "coveredRuleIds": [
6049
+ "deployment-receipt:#/$defs/deploymentPerformance/properties/overBudget/items:required:path"
6050
+ ],
6051
+ "schemaId": "urn:gala:schema:deployment-receipt:2.0.0",
6052
+ "schemaPointer": "#/$defs/deploymentPerformance/properties/overBudget/items",
6053
+ "keyword": "required",
6054
+ "instance": { "kind": "html", "bytes": 0, "budget": 1024 },
6055
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
6056
+ },
6003
6057
  {
6004
6058
  "caseId": "deployment-receipt-invalid-368a558dc5cdfa22",
6005
6059
  "coveredRuleIds": [
@@ -15926,6 +15980,21 @@
15926
15980
  },
15927
15981
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
15928
15982
  },
15983
+ {
15984
+ "caseId": "deployment-receipt-invalid-8ca70da3aec7c0a6",
15985
+ "coveredRuleIds": [
15986
+ "deployment-receipt:#/$defs/deploymentPerformance/properties/overBudget/items:required:bytes"
15987
+ ],
15988
+ "schemaId": "urn:gala:schema:deployment-receipt:2.0.0",
15989
+ "schemaPointer": "#/$defs/deploymentPerformance/properties/overBudget/items",
15990
+ "keyword": "required",
15991
+ "instance": {
15992
+ "path": "content/fixture-1.md",
15993
+ "kind": "html",
15994
+ "budget": 1024
15995
+ },
15996
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
15997
+ },
15929
15998
  {
15930
15999
  "caseId": "deployment-receipt-invalid-8cdbdce8d216146f",
15931
16000
  "coveredRuleIds": [
@@ -16244,6 +16313,27 @@
16244
16313
  },
16245
16314
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
16246
16315
  },
16316
+ {
16317
+ "caseId": "deployment-receipt-invalid-9155cbdd1808b11e",
16318
+ "coveredRuleIds": [
16319
+ "deployment-receipt:#/$defs/deploymentPerformance:required:budgets"
16320
+ ],
16321
+ "schemaId": "urn:gala:schema:deployment-receipt:2.0.0",
16322
+ "schemaPointer": "#/$defs/deploymentPerformance",
16323
+ "keyword": "required",
16324
+ "instance": {
16325
+ "overBudgetCount": 0,
16326
+ "overBudget": [
16327
+ {
16328
+ "path": "content/fixture-1.md",
16329
+ "kind": "html",
16330
+ "bytes": 0,
16331
+ "budget": 1024
16332
+ }
16333
+ ]
16334
+ },
16335
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
16336
+ },
16247
16337
  {
16248
16338
  "caseId": "deployment-receipt-invalid-91599f56ac801ed3",
16249
16339
  "coveredRuleIds": [
@@ -25305,6 +25395,17 @@
25305
25395
  },
25306
25396
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
25307
25397
  },
25398
+ {
25399
+ "caseId": "deployment-receipt-invalid-e01f1922350c4de3",
25400
+ "coveredRuleIds": [
25401
+ "deployment-receipt:#/$defs/deploymentPerformance:required:overBudget"
25402
+ ],
25403
+ "schemaId": "urn:gala:schema:deployment-receipt:2.0.0",
25404
+ "schemaPointer": "#/$defs/deploymentPerformance",
25405
+ "keyword": "required",
25406
+ "instance": { "budgets": {}, "overBudgetCount": 0 },
25407
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
25408
+ },
25308
25409
  {
25309
25410
  "caseId": "deployment-receipt-invalid-e021abc871cd12d0",
25310
25411
  "coveredRuleIds": [
@@ -302,6 +302,17 @@
302
302
  "instance": [],
303
303
  "expectedCodes": ["SCHEMA_TYPE_INVALID"]
304
304
  },
305
+ {
306
+ "caseId": "deployment-receipt-invalid-34d7792470a21be5",
307
+ "coveredRuleIds": [
308
+ "deployment-receipt:#/$defs/deploymentPerformance/properties/overBudget:type"
309
+ ],
310
+ "schemaId": "urn:gala:schema:deployment-receipt:2.0.0",
311
+ "schemaPointer": "#/$defs/deploymentPerformance/properties/overBudget",
312
+ "keyword": "type",
313
+ "instance": {},
314
+ "expectedCodes": ["SCHEMA_TYPE_INVALID"]
315
+ },
305
316
  {
306
317
  "caseId": "deployment-receipt-invalid-374f6c67efd42622",
307
318
  "coveredRuleIds": [
@@ -422,6 +433,17 @@
422
433
  "instance": [],
423
434
  "expectedCodes": ["SCHEMA_TYPE_INVALID"]
424
435
  },
436
+ {
437
+ "caseId": "deployment-receipt-invalid-50239895f06bcd25",
438
+ "coveredRuleIds": [
439
+ "deployment-receipt:#/$defs/deploymentPerformance/properties/budgets/properties/jsBytes:type"
440
+ ],
441
+ "schemaId": "urn:gala:schema:deployment-receipt:2.0.0",
442
+ "schemaPointer": "#/$defs/deploymentPerformance/properties/budgets/properties/jsBytes",
443
+ "keyword": "type",
444
+ "instance": null,
445
+ "expectedCodes": ["SCHEMA_TYPE_INVALID"]
446
+ },
425
447
  {
426
448
  "caseId": "deployment-receipt-invalid-579ead4417d175ef",
427
449
  "coveredRuleIds": [
@@ -521,6 +543,26 @@
521
543
  "instance": null,
522
544
  "expectedCodes": ["SCHEMA_TYPE_INVALID"]
523
545
  },
546
+ {
547
+ "caseId": "deployment-receipt-invalid-661644478b506031",
548
+ "coveredRuleIds": ["deployment-receipt:#/$defs/deploymentPerformance:type"],
549
+ "schemaId": "urn:gala:schema:deployment-receipt:2.0.0",
550
+ "schemaPointer": "#/$defs/deploymentPerformance",
551
+ "keyword": "type",
552
+ "instance": [],
553
+ "expectedCodes": ["SCHEMA_TYPE_INVALID"]
554
+ },
555
+ {
556
+ "caseId": "deployment-receipt-invalid-66b3a620048eccbd",
557
+ "coveredRuleIds": [
558
+ "deployment-receipt:#/$defs/deploymentPerformance/properties/overBudget/items:type"
559
+ ],
560
+ "schemaId": "urn:gala:schema:deployment-receipt:2.0.0",
561
+ "schemaPointer": "#/$defs/deploymentPerformance/properties/overBudget/items",
562
+ "keyword": "type",
563
+ "instance": [],
564
+ "expectedCodes": ["SCHEMA_TYPE_INVALID"]
565
+ },
524
566
  {
525
567
  "caseId": "deployment-receipt-invalid-6701d11d1a784ddb",
526
568
  "coveredRuleIds": [
@@ -574,6 +616,17 @@
574
616
  "instance": [],
575
617
  "expectedCodes": ["SCHEMA_TYPE_INVALID"]
576
618
  },
619
+ {
620
+ "caseId": "deployment-receipt-invalid-757e781b2c00c021",
621
+ "coveredRuleIds": [
622
+ "deployment-receipt:#/$defs/deploymentPerformance/properties/budgets:type"
623
+ ],
624
+ "schemaId": "urn:gala:schema:deployment-receipt:2.0.0",
625
+ "schemaPointer": "#/$defs/deploymentPerformance/properties/budgets",
626
+ "keyword": "type",
627
+ "instance": [],
628
+ "expectedCodes": ["SCHEMA_TYPE_INVALID"]
629
+ },
577
630
  {
578
631
  "caseId": "deployment-receipt-invalid-796bfede79dd08b6",
579
632
  "coveredRuleIds": [
@@ -709,6 +762,17 @@
709
762
  "instance": {},
710
763
  "expectedCodes": ["SCHEMA_TYPE_INVALID"]
711
764
  },
765
+ {
766
+ "caseId": "deployment-receipt-invalid-941b25370270c416",
767
+ "coveredRuleIds": [
768
+ "deployment-receipt:#/$defs/deploymentPerformance/properties/budgets/properties/cssBytes:type"
769
+ ],
770
+ "schemaId": "urn:gala:schema:deployment-receipt:2.0.0",
771
+ "schemaPointer": "#/$defs/deploymentPerformance/properties/budgets/properties/cssBytes",
772
+ "keyword": "type",
773
+ "instance": null,
774
+ "expectedCodes": ["SCHEMA_TYPE_INVALID"]
775
+ },
712
776
  {
713
777
  "caseId": "deployment-receipt-invalid-9862049284d474ae",
714
778
  "coveredRuleIds": [
@@ -835,6 +899,17 @@
835
899
  "instance": null,
836
900
  "expectedCodes": ["SCHEMA_TYPE_INVALID"]
837
901
  },
902
+ {
903
+ "caseId": "deployment-receipt-invalid-b28de29c80903cd1",
904
+ "coveredRuleIds": [
905
+ "deployment-receipt:#/$defs/deploymentPerformance/properties/overBudgetCount:type"
906
+ ],
907
+ "schemaId": "urn:gala:schema:deployment-receipt:2.0.0",
908
+ "schemaPointer": "#/$defs/deploymentPerformance/properties/overBudgetCount",
909
+ "keyword": "type",
910
+ "instance": null,
911
+ "expectedCodes": ["SCHEMA_TYPE_INVALID"]
912
+ },
838
913
  {
839
914
  "caseId": "deployment-receipt-invalid-b33b02a698f74896",
840
915
  "coveredRuleIds": [
@@ -901,6 +976,17 @@
901
976
  "instance": {},
902
977
  "expectedCodes": ["SCHEMA_TYPE_INVALID"]
903
978
  },
979
+ {
980
+ "caseId": "deployment-receipt-invalid-c5490eb528750d35",
981
+ "coveredRuleIds": [
982
+ "deployment-receipt:#/$defs/deploymentPerformance/properties/overBudget/items/properties/budget:type"
983
+ ],
984
+ "schemaId": "urn:gala:schema:deployment-receipt:2.0.0",
985
+ "schemaPointer": "#/$defs/deploymentPerformance/properties/overBudget/items/properties/budget",
986
+ "keyword": "type",
987
+ "instance": null,
988
+ "expectedCodes": ["SCHEMA_TYPE_INVALID"]
989
+ },
904
990
  {
905
991
  "caseId": "deployment-receipt-invalid-c69e7324ba33728c",
906
992
  "coveredRuleIds": [
@@ -912,6 +998,17 @@
912
998
  "instance": null,
913
999
  "expectedCodes": ["SCHEMA_TYPE_INVALID"]
914
1000
  },
1001
+ {
1002
+ "caseId": "deployment-receipt-invalid-c707d7b1c782a450",
1003
+ "coveredRuleIds": [
1004
+ "deployment-receipt:#/$defs/deploymentPerformance/properties/budgets/properties/htmlBytes:type"
1005
+ ],
1006
+ "schemaId": "urn:gala:schema:deployment-receipt:2.0.0",
1007
+ "schemaPointer": "#/$defs/deploymentPerformance/properties/budgets/properties/htmlBytes",
1008
+ "keyword": "type",
1009
+ "instance": null,
1010
+ "expectedCodes": ["SCHEMA_TYPE_INVALID"]
1011
+ },
915
1012
  {
916
1013
  "caseId": "deployment-receipt-invalid-c87975bfa425024f",
917
1014
  "coveredRuleIds": [
@@ -923,6 +1020,17 @@
923
1020
  "instance": null,
924
1021
  "expectedCodes": ["SCHEMA_TYPE_INVALID"]
925
1022
  },
1023
+ {
1024
+ "caseId": "deployment-receipt-invalid-c98cfe6a98f71e5c",
1025
+ "coveredRuleIds": [
1026
+ "deployment-receipt:#/$defs/deploymentPerformance/properties/overBudget/items/properties/bytes:type"
1027
+ ],
1028
+ "schemaId": "urn:gala:schema:deployment-receipt:2.0.0",
1029
+ "schemaPointer": "#/$defs/deploymentPerformance/properties/overBudget/items/properties/bytes",
1030
+ "keyword": "type",
1031
+ "instance": null,
1032
+ "expectedCodes": ["SCHEMA_TYPE_INVALID"]
1033
+ },
926
1034
  {
927
1035
  "caseId": "deployment-receipt-invalid-ca0bcf32766cf81a",
928
1036
  "coveredRuleIds": [
@@ -1,4 +1,13 @@
1
1
  [
2
+ {
3
+ "caseId": "publication-invalid-2c5963bd4dab0337",
4
+ "coveredRuleIds": ["publication:#/$defs/aiRights:additionalProperties"],
5
+ "schemaId": "urn:gala:schema:publication:2.0.0",
6
+ "schemaPointer": "#/$defs/aiRights",
7
+ "keyword": "additionalProperties",
8
+ "instance": { "search": "allow", "training": "allow", "unexpected": true },
9
+ "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
10
+ },
2
11
  {
3
12
  "caseId": "publication-invalid-2cd0d09ddc5c97a4",
4
13
  "coveredRuleIds": ["publication:#/$defs/contactForm:additionalProperties"],
@@ -73,6 +82,15 @@
73
82
  "instance": { "targets": ["copy-link"], "unexpected": true },
74
83
  "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
75
84
  },
85
+ {
86
+ "caseId": "publication-invalid-8d5623a605a8b9a4",
87
+ "coveredRuleIds": ["publication:#/$defs/listing:additionalProperties"],
88
+ "schemaId": "urn:gala:schema:publication:2.0.0",
89
+ "schemaPointer": "#/$defs/listing",
90
+ "keyword": "additionalProperties",
91
+ "instance": { "unexpected": true },
92
+ "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
93
+ },
76
94
  {
77
95
  "caseId": "publication-invalid-9309edfb6351b8f1",
78
96
  "coveredRuleIds": [
@@ -112,6 +130,15 @@
112
130
  },
113
131
  "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
114
132
  },
133
+ {
134
+ "caseId": "publication-invalid-9fc552f64d8a1100",
135
+ "coveredRuleIds": ["publication:#/$defs/performance:additionalProperties"],
136
+ "schemaId": "urn:gala:schema:publication:2.0.0",
137
+ "schemaPointer": "#/$defs/performance",
138
+ "keyword": "additionalProperties",
139
+ "instance": { "unexpected": true },
140
+ "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
141
+ },
115
142
  {
116
143
  "caseId": "publication-invalid-a80eafe180882636",
117
144
  "coveredRuleIds": [
@@ -169,5 +196,16 @@
169
196
  "unexpected": true
170
197
  },
171
198
  "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
199
+ },
200
+ {
201
+ "caseId": "publication-invalid-f2adfab92fecf0b4",
202
+ "coveredRuleIds": [
203
+ "publication:#/$defs/performance/properties/budgets:additionalProperties"
204
+ ],
205
+ "schemaId": "urn:gala:schema:publication:2.0.0",
206
+ "schemaPointer": "#/$defs/performance/properties/budgets",
207
+ "keyword": "additionalProperties",
208
+ "instance": { "unexpected": true },
209
+ "expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
172
210
  }
173
211
  ]
@@ -1,4 +1,13 @@
1
1
  [
2
+ {
3
+ "caseId": "publication-invalid-04d6b2129a0b8e15",
4
+ "coveredRuleIds": ["publication:#/$defs/aiRights/properties/training:enum"],
5
+ "schemaId": "urn:gala:schema:publication:2.0.0",
6
+ "schemaPointer": "#/$defs/aiRights/properties/training",
7
+ "keyword": "enum",
8
+ "instance": "__invalid_enum__",
9
+ "expectedCodes": ["SCHEMA_ENUM_INVALID"]
10
+ },
2
11
  {
3
12
  "caseId": "publication-invalid-178514bc067ffa8a",
4
13
  "coveredRuleIds": ["publication:#/$defs/socialLink/properties/type:enum"],
@@ -38,5 +47,14 @@
38
47
  "keyword": "enum",
39
48
  "instance": "__invalid_enum__",
40
49
  "expectedCodes": ["SCHEMA_ENUM_INVALID"]
50
+ },
51
+ {
52
+ "caseId": "publication-invalid-ffb4f1053b6c11a6",
53
+ "coveredRuleIds": ["publication:#/$defs/aiRights/properties/search:enum"],
54
+ "schemaId": "urn:gala:schema:publication:2.0.0",
55
+ "schemaPointer": "#/$defs/aiRights/properties/search",
56
+ "keyword": "enum",
57
+ "instance": "__invalid_enum__",
58
+ "expectedCodes": ["SCHEMA_ENUM_INVALID"]
41
59
  }
42
60
  ]
@@ -0,0 +1,13 @@
1
+ [
2
+ {
3
+ "caseId": "publication-invalid-b8c1639eb07b1725",
4
+ "coveredRuleIds": [
5
+ "publication:#/$defs/listing/properties/pageSize:maximum"
6
+ ],
7
+ "schemaId": "urn:gala:schema:publication:2.0.0",
8
+ "schemaPointer": "#/$defs/listing/properties/pageSize",
9
+ "keyword": "maximum",
10
+ "instance": 51,
11
+ "expectedCodes": ["SCHEMA_NUMBER_TOO_LARGE"]
12
+ }
13
+ ]
@@ -0,0 +1,46 @@
1
+ [
2
+ {
3
+ "caseId": "publication-invalid-2c914bc4e274d2c2",
4
+ "coveredRuleIds": [
5
+ "publication:#/$defs/performance/properties/budgets/properties/htmlBytes:minimum"
6
+ ],
7
+ "schemaId": "urn:gala:schema:publication:2.0.0",
8
+ "schemaPointer": "#/$defs/performance/properties/budgets/properties/htmlBytes",
9
+ "keyword": "minimum",
10
+ "instance": 1023,
11
+ "expectedCodes": ["SCHEMA_NUMBER_TOO_SMALL"]
12
+ },
13
+ {
14
+ "caseId": "publication-invalid-45b38e6d6be39fa7",
15
+ "coveredRuleIds": [
16
+ "publication:#/$defs/listing/properties/pageSize:minimum"
17
+ ],
18
+ "schemaId": "urn:gala:schema:publication:2.0.0",
19
+ "schemaPointer": "#/$defs/listing/properties/pageSize",
20
+ "keyword": "minimum",
21
+ "instance": 0,
22
+ "expectedCodes": ["SCHEMA_NUMBER_TOO_SMALL"]
23
+ },
24
+ {
25
+ "caseId": "publication-invalid-a677f534a1b258d2",
26
+ "coveredRuleIds": [
27
+ "publication:#/$defs/performance/properties/budgets/properties/jsBytes:minimum"
28
+ ],
29
+ "schemaId": "urn:gala:schema:publication:2.0.0",
30
+ "schemaPointer": "#/$defs/performance/properties/budgets/properties/jsBytes",
31
+ "keyword": "minimum",
32
+ "instance": 1023,
33
+ "expectedCodes": ["SCHEMA_NUMBER_TOO_SMALL"]
34
+ },
35
+ {
36
+ "caseId": "publication-invalid-dc3cd52f303d3819",
37
+ "coveredRuleIds": [
38
+ "publication:#/$defs/performance/properties/budgets/properties/cssBytes:minimum"
39
+ ],
40
+ "schemaId": "urn:gala:schema:publication:2.0.0",
41
+ "schemaPointer": "#/$defs/performance/properties/budgets/properties/cssBytes",
42
+ "keyword": "minimum",
43
+ "instance": 1023,
44
+ "expectedCodes": ["SCHEMA_NUMBER_TOO_SMALL"]
45
+ }
46
+ ]
@@ -140,6 +140,15 @@
140
140
  "instance": { "title": "fixture-1", "text": "fixture-1" },
141
141
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
142
142
  },
143
+ {
144
+ "caseId": "publication-invalid-44358bb33d75f25e",
145
+ "coveredRuleIds": ["publication:#/$defs/aiRights:required:training"],
146
+ "schemaId": "urn:gala:schema:publication:2.0.0",
147
+ "schemaPointer": "#/$defs/aiRights",
148
+ "keyword": "required",
149
+ "instance": { "search": "allow" },
150
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
151
+ },
143
152
  {
144
153
  "caseId": "publication-invalid-55eb14ae9a39861d",
145
154
  "coveredRuleIds": [
@@ -465,6 +474,15 @@
465
474
  },
466
475
  "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
467
476
  },
477
+ {
478
+ "caseId": "publication-invalid-da5ab1d082915ca9",
479
+ "coveredRuleIds": ["publication:#/$defs/aiRights:required:search"],
480
+ "schemaId": "urn:gala:schema:publication:2.0.0",
481
+ "schemaPointer": "#/$defs/aiRights",
482
+ "keyword": "required",
483
+ "instance": { "training": "allow" },
484
+ "expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
485
+ },
468
486
  {
469
487
  "caseId": "publication-invalid-e597da1ab07b4fa7",
470
488
  "coveredRuleIds": [
@@ -46,6 +46,15 @@
46
46
  "instance": [],
47
47
  "expectedCodes": ["SCHEMA_TYPE_INVALID"]
48
48
  },
49
+ {
50
+ "caseId": "publication-invalid-33c77efc4e8e8409",
51
+ "coveredRuleIds": ["publication:#/$defs/aiRights:type"],
52
+ "schemaId": "urn:gala:schema:publication:2.0.0",
53
+ "schemaPointer": "#/$defs/aiRights",
54
+ "keyword": "type",
55
+ "instance": [],
56
+ "expectedCodes": ["SCHEMA_TYPE_INVALID"]
57
+ },
49
58
  {
50
59
  "caseId": "publication-invalid-39a63cd384a19ac8",
51
60
  "coveredRuleIds": ["publication:#/$defs/contactForm:type"],
@@ -84,6 +93,17 @@
84
93
  "instance": null,
85
94
  "expectedCodes": ["SCHEMA_TYPE_INVALID"]
86
95
  },
96
+ {
97
+ "caseId": "publication-invalid-5a1c0f22b45d6fb8",
98
+ "coveredRuleIds": [
99
+ "publication:#/$defs/performance/properties/budgets:type"
100
+ ],
101
+ "schemaId": "urn:gala:schema:publication:2.0.0",
102
+ "schemaPointer": "#/$defs/performance/properties/budgets",
103
+ "keyword": "type",
104
+ "instance": [],
105
+ "expectedCodes": ["SCHEMA_TYPE_INVALID"]
106
+ },
87
107
  {
88
108
  "caseId": "publication-invalid-5c319dceab87b4a0",
89
109
  "coveredRuleIds": [
@@ -95,6 +115,26 @@
95
115
  "instance": null,
96
116
  "expectedCodes": ["SCHEMA_TYPE_INVALID"]
97
117
  },
118
+ {
119
+ "caseId": "publication-invalid-5fd071a7ef1e92aa",
120
+ "coveredRuleIds": ["publication:#/$defs/performance:type"],
121
+ "schemaId": "urn:gala:schema:publication:2.0.0",
122
+ "schemaPointer": "#/$defs/performance",
123
+ "keyword": "type",
124
+ "instance": [],
125
+ "expectedCodes": ["SCHEMA_TYPE_INVALID"]
126
+ },
127
+ {
128
+ "caseId": "publication-invalid-64628119bbde47c6",
129
+ "coveredRuleIds": [
130
+ "publication:#/$defs/performance/properties/budgets/properties/jsBytes:type"
131
+ ],
132
+ "schemaId": "urn:gala:schema:publication:2.0.0",
133
+ "schemaPointer": "#/$defs/performance/properties/budgets/properties/jsBytes",
134
+ "keyword": "type",
135
+ "instance": null,
136
+ "expectedCodes": ["SCHEMA_TYPE_INVALID"]
137
+ },
98
138
  {
99
139
  "caseId": "publication-invalid-6abeef2775d5a1d2",
100
140
  "coveredRuleIds": [
@@ -106,6 +146,26 @@
106
146
  "instance": null,
107
147
  "expectedCodes": ["SCHEMA_TYPE_INVALID"]
108
148
  },
149
+ {
150
+ "caseId": "publication-invalid-76744d339be3248f",
151
+ "coveredRuleIds": ["publication:#/$defs/listing:type"],
152
+ "schemaId": "urn:gala:schema:publication:2.0.0",
153
+ "schemaPointer": "#/$defs/listing",
154
+ "keyword": "type",
155
+ "instance": [],
156
+ "expectedCodes": ["SCHEMA_TYPE_INVALID"]
157
+ },
158
+ {
159
+ "caseId": "publication-invalid-789ce6ab2fb047db",
160
+ "coveredRuleIds": [
161
+ "publication:#/$defs/performance/properties/budgets/properties/htmlBytes:type"
162
+ ],
163
+ "schemaId": "urn:gala:schema:publication:2.0.0",
164
+ "schemaPointer": "#/$defs/performance/properties/budgets/properties/htmlBytes",
165
+ "keyword": "type",
166
+ "instance": null,
167
+ "expectedCodes": ["SCHEMA_TYPE_INVALID"]
168
+ },
109
169
  {
110
170
  "caseId": "publication-invalid-7971b28fe51dae97",
111
171
  "coveredRuleIds": ["publication:#/$defs/newsletter/oneOf/0:type"],
@@ -153,6 +213,17 @@
153
213
  "instance": [],
154
214
  "expectedCodes": ["SCHEMA_TYPE_INVALID"]
155
215
  },
216
+ {
217
+ "caseId": "publication-invalid-bcb90c01eee6b461",
218
+ "coveredRuleIds": [
219
+ "publication:#/$defs/performance/properties/budgets/properties/cssBytes:type"
220
+ ],
221
+ "schemaId": "urn:gala:schema:publication:2.0.0",
222
+ "schemaPointer": "#/$defs/performance/properties/budgets/properties/cssBytes",
223
+ "keyword": "type",
224
+ "instance": null,
225
+ "expectedCodes": ["SCHEMA_TYPE_INVALID"]
226
+ },
156
227
  {
157
228
  "caseId": "publication-invalid-c947df665d32286c",
158
229
  "coveredRuleIds": ["publication:#/$defs/newsletter/oneOf/1:type"],
@@ -162,6 +233,15 @@
162
233
  "instance": [],
163
234
  "expectedCodes": ["SCHEMA_TYPE_INVALID"]
164
235
  },
236
+ {
237
+ "caseId": "publication-invalid-c9611f8977f2d88c",
238
+ "coveredRuleIds": ["publication:#/$defs/listing/properties/pageSize:type"],
239
+ "schemaId": "urn:gala:schema:publication:2.0.0",
240
+ "schemaPointer": "#/$defs/listing/properties/pageSize",
241
+ "keyword": "type",
242
+ "instance": null,
243
+ "expectedCodes": ["SCHEMA_TYPE_INVALID"]
244
+ },
165
245
  {
166
246
  "caseId": "publication-invalid-d595eb832c5d1c45",
167
247
  "coveredRuleIds": ["publication:#/$defs/crawlers:type"],