@rathnasgala2/schemas 3.11.0 → 3.12.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.
- package/THIRD_PARTY_LICENSES.json +1 -1
- package/diagnostics/diagnostic-map.json +30 -0
- package/docs/catalogs/schema-inventory.json +4 -4
- package/examples/valid/build-input/rules.json +41 -0
- package/examples/valid/content-frontmatter/rules.json +41 -0
- package/fixtures/boundary/build-input/rules.json +51 -0
- package/fixtures/boundary/content-frontmatter/rules.json +51 -0
- package/fixtures/invalid/build-input/GRAPHEME_LENGTH_INVALID/cases.json +22 -0
- package/fixtures/invalid/build-input/REQUEST_FIELD_UNKNOWN/cases.json +9 -0
- package/fixtures/invalid/build-input/SCHEMA_TYPE_INVALID/cases.json +20 -0
- package/fixtures/invalid/content-frontmatter/GRAPHEME_LENGTH_INVALID/cases.json +22 -0
- package/fixtures/invalid/content-frontmatter/REQUEST_FIELD_UNKNOWN/cases.json +11 -0
- package/fixtures/invalid/content-frontmatter/SCHEMA_TYPE_INVALID/cases.json +20 -0
- package/fixtures/manifest.json +234 -4
- package/fixtures/unknown-field/build-input/rules.json +15 -0
- package/fixtures/unknown-field/content-frontmatter/rules.json +15 -0
- package/generated/browser/validator-core.mjs +3 -3
- package/generated/typescript/contracts/build-input.d.ts +8 -0
- package/generated/typescript/contracts/content-frontmatter.d.ts +8 -0
- package/openapi/http-catalog.json +2 -2
- package/openapi/openapi.yaml +228 -3
- package/package.json +1 -1
- package/sbom.cdx.json +23 -23
- package/schemas/build-input.schema.json +20 -1
- package/schemas/content-frontmatter.schema.json +19 -0
package/fixtures/manifest.json
CHANGED
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
{
|
|
44
44
|
"contract": "build-input",
|
|
45
45
|
"schemaId": "urn:gala:schema:build-input:2.0.0",
|
|
46
|
-
"schemaSha256": "
|
|
47
|
-
"ruleCount":
|
|
46
|
+
"schemaSha256": "4a8fd292061cdd86bcaa03d3b2edf65dc5cf8953c41a0275399b52e21518fc95",
|
|
47
|
+
"ruleCount": 562,
|
|
48
48
|
"validExample": "examples/valid/build-input/canonical.json",
|
|
49
49
|
"boundaryFixture": "fixtures/boundary/build-input/root.json",
|
|
50
50
|
"unknownFieldFixture": "fixtures/unknown-field/build-input/root.json"
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
{
|
|
62
62
|
"contract": "content-frontmatter",
|
|
63
63
|
"schemaId": "urn:gala:schema:content-frontmatter:2.0.0",
|
|
64
|
-
"schemaSha256": "
|
|
65
|
-
"ruleCount":
|
|
64
|
+
"schemaSha256": "f2aeb8c783053868dc26d094efe4020f1ac2394f265c07bdd115e7b3b5d48654",
|
|
65
|
+
"ruleCount": 150,
|
|
66
66
|
"validExample": "examples/valid/content-frontmatter/canonical.json",
|
|
67
67
|
"boundaryFixture": "fixtures/boundary/content-frontmatter/root.json",
|
|
68
68
|
"unknownFieldFixture": "fixtures/unknown-field/content-frontmatter/root.json"
|
|
@@ -49467,6 +49467,121 @@
|
|
|
49467
49467
|
"caseId": "build-input-unknown-fc3cc67b44d0a9c0"
|
|
49468
49468
|
}
|
|
49469
49469
|
},
|
|
49470
|
+
{
|
|
49471
|
+
"contract": "build-input",
|
|
49472
|
+
"ruleId": "build-input:#/$defs/contentSeo:additionalProperties",
|
|
49473
|
+
"schemaPointer": "#/$defs/contentSeo",
|
|
49474
|
+
"keyword": "additionalProperties",
|
|
49475
|
+
"valid": {
|
|
49476
|
+
"file": "examples/valid/build-input/rules.json",
|
|
49477
|
+
"caseId": "build-input-valid-e64e682d59e775bb"
|
|
49478
|
+
},
|
|
49479
|
+
"boundary": {
|
|
49480
|
+
"file": "fixtures/boundary/build-input/rules.json",
|
|
49481
|
+
"caseId": "build-input-boundary-6eb7adf4232f7466"
|
|
49482
|
+
},
|
|
49483
|
+
"invalid": {
|
|
49484
|
+
"file": "fixtures/invalid/build-input/REQUEST_FIELD_UNKNOWN/cases.json",
|
|
49485
|
+
"caseId": "build-input-invalid-8d6958d5d461014c",
|
|
49486
|
+
"expectedCode": "REQUEST_FIELD_UNKNOWN"
|
|
49487
|
+
},
|
|
49488
|
+
"unknownField": {
|
|
49489
|
+
"file": "fixtures/unknown-field/build-input/rules.json",
|
|
49490
|
+
"caseId": "build-input-unknown-e64e682d59e775bb"
|
|
49491
|
+
}
|
|
49492
|
+
},
|
|
49493
|
+
{
|
|
49494
|
+
"contract": "build-input",
|
|
49495
|
+
"ruleId": "build-input:#/$defs/contentSeo:type",
|
|
49496
|
+
"schemaPointer": "#/$defs/contentSeo",
|
|
49497
|
+
"keyword": "type",
|
|
49498
|
+
"valid": {
|
|
49499
|
+
"file": "examples/valid/build-input/rules.json",
|
|
49500
|
+
"caseId": "build-input-valid-e64e682d59e775bb"
|
|
49501
|
+
},
|
|
49502
|
+
"boundary": {
|
|
49503
|
+
"file": "fixtures/boundary/build-input/rules.json",
|
|
49504
|
+
"caseId": "build-input-boundary-6eb7adf4232f7466"
|
|
49505
|
+
},
|
|
49506
|
+
"invalid": {
|
|
49507
|
+
"file": "fixtures/invalid/build-input/SCHEMA_TYPE_INVALID/cases.json",
|
|
49508
|
+
"caseId": "build-input-invalid-6ba812fd3a1a21bf",
|
|
49509
|
+
"expectedCode": "SCHEMA_TYPE_INVALID"
|
|
49510
|
+
},
|
|
49511
|
+
"unknownField": {
|
|
49512
|
+
"file": "fixtures/unknown-field/build-input/rules.json",
|
|
49513
|
+
"caseId": "build-input-unknown-e64e682d59e775bb"
|
|
49514
|
+
}
|
|
49515
|
+
},
|
|
49516
|
+
{
|
|
49517
|
+
"contract": "build-input",
|
|
49518
|
+
"ruleId": "build-input:#/$defs/contentSeo/properties/description:x-gala-graphemeLength",
|
|
49519
|
+
"schemaPointer": "#/$defs/contentSeo/properties/description",
|
|
49520
|
+
"keyword": "x-gala-graphemeLength",
|
|
49521
|
+
"valid": {
|
|
49522
|
+
"file": "examples/valid/build-input/rules.json",
|
|
49523
|
+
"caseId": "build-input-valid-2603dd81c82547dd"
|
|
49524
|
+
},
|
|
49525
|
+
"boundary": {
|
|
49526
|
+
"file": "fixtures/boundary/build-input/rules.json",
|
|
49527
|
+
"caseId": "build-input-boundary-e8040cb07cb39dc8"
|
|
49528
|
+
},
|
|
49529
|
+
"invalid": {
|
|
49530
|
+
"file": "fixtures/invalid/build-input/GRAPHEME_LENGTH_INVALID/cases.json",
|
|
49531
|
+
"caseId": "build-input-invalid-50934c0430090e9e",
|
|
49532
|
+
"expectedCode": "GRAPHEME_LENGTH_INVALID"
|
|
49533
|
+
},
|
|
49534
|
+
"unknownField": {
|
|
49535
|
+
"file": "fixtures/unknown-field/build-input/rules.json",
|
|
49536
|
+
"caseId": "build-input-unknown-e64e682d59e775bb"
|
|
49537
|
+
}
|
|
49538
|
+
},
|
|
49539
|
+
{
|
|
49540
|
+
"contract": "build-input",
|
|
49541
|
+
"ruleId": "build-input:#/$defs/contentSeo/properties/noindex:type",
|
|
49542
|
+
"schemaPointer": "#/$defs/contentSeo/properties/noindex",
|
|
49543
|
+
"keyword": "type",
|
|
49544
|
+
"valid": {
|
|
49545
|
+
"file": "examples/valid/build-input/rules.json",
|
|
49546
|
+
"caseId": "build-input-valid-9c89b2bcf93d64c7"
|
|
49547
|
+
},
|
|
49548
|
+
"boundary": {
|
|
49549
|
+
"file": "fixtures/boundary/build-input/rules.json",
|
|
49550
|
+
"caseId": "build-input-boundary-c90dcdd887740b2f"
|
|
49551
|
+
},
|
|
49552
|
+
"invalid": {
|
|
49553
|
+
"file": "fixtures/invalid/build-input/SCHEMA_TYPE_INVALID/cases.json",
|
|
49554
|
+
"caseId": "build-input-invalid-12e2d34705c5acfa",
|
|
49555
|
+
"expectedCode": "SCHEMA_TYPE_INVALID"
|
|
49556
|
+
},
|
|
49557
|
+
"unknownField": {
|
|
49558
|
+
"file": "fixtures/unknown-field/build-input/rules.json",
|
|
49559
|
+
"caseId": "build-input-unknown-e64e682d59e775bb"
|
|
49560
|
+
}
|
|
49561
|
+
},
|
|
49562
|
+
{
|
|
49563
|
+
"contract": "build-input",
|
|
49564
|
+
"ruleId": "build-input:#/$defs/contentSeo/properties/title:x-gala-graphemeLength",
|
|
49565
|
+
"schemaPointer": "#/$defs/contentSeo/properties/title",
|
|
49566
|
+
"keyword": "x-gala-graphemeLength",
|
|
49567
|
+
"valid": {
|
|
49568
|
+
"file": "examples/valid/build-input/rules.json",
|
|
49569
|
+
"caseId": "build-input-valid-84f00378e5e40a4d"
|
|
49570
|
+
},
|
|
49571
|
+
"boundary": {
|
|
49572
|
+
"file": "fixtures/boundary/build-input/rules.json",
|
|
49573
|
+
"caseId": "build-input-boundary-ba5cee482176cea1"
|
|
49574
|
+
},
|
|
49575
|
+
"invalid": {
|
|
49576
|
+
"file": "fixtures/invalid/build-input/GRAPHEME_LENGTH_INVALID/cases.json",
|
|
49577
|
+
"caseId": "build-input-invalid-c226da3a1e501e13",
|
|
49578
|
+
"expectedCode": "GRAPHEME_LENGTH_INVALID"
|
|
49579
|
+
},
|
|
49580
|
+
"unknownField": {
|
|
49581
|
+
"file": "fixtures/unknown-field/build-input/rules.json",
|
|
49582
|
+
"caseId": "build-input-unknown-e64e682d59e775bb"
|
|
49583
|
+
}
|
|
49584
|
+
},
|
|
49470
49585
|
{
|
|
49471
49586
|
"contract": "build-input",
|
|
49472
49587
|
"ruleId": "build-input:#/$defs/destinationCapabilityProfile:additionalProperties",
|
|
@@ -67556,6 +67671,121 @@
|
|
|
67556
67671
|
"caseId": "content-frontmatter-unknown-7d80f5971b255b6b"
|
|
67557
67672
|
}
|
|
67558
67673
|
},
|
|
67674
|
+
{
|
|
67675
|
+
"contract": "content-frontmatter",
|
|
67676
|
+
"ruleId": "content-frontmatter:#/$defs/contentSeo:additionalProperties",
|
|
67677
|
+
"schemaPointer": "#/$defs/contentSeo",
|
|
67678
|
+
"keyword": "additionalProperties",
|
|
67679
|
+
"valid": {
|
|
67680
|
+
"file": "examples/valid/content-frontmatter/rules.json",
|
|
67681
|
+
"caseId": "content-frontmatter-valid-e64e682d59e775bb"
|
|
67682
|
+
},
|
|
67683
|
+
"boundary": {
|
|
67684
|
+
"file": "fixtures/boundary/content-frontmatter/rules.json",
|
|
67685
|
+
"caseId": "content-frontmatter-boundary-6eb7adf4232f7466"
|
|
67686
|
+
},
|
|
67687
|
+
"invalid": {
|
|
67688
|
+
"file": "fixtures/invalid/content-frontmatter/REQUEST_FIELD_UNKNOWN/cases.json",
|
|
67689
|
+
"caseId": "content-frontmatter-invalid-e83c37551cf883a4",
|
|
67690
|
+
"expectedCode": "REQUEST_FIELD_UNKNOWN"
|
|
67691
|
+
},
|
|
67692
|
+
"unknownField": {
|
|
67693
|
+
"file": "fixtures/unknown-field/content-frontmatter/rules.json",
|
|
67694
|
+
"caseId": "content-frontmatter-unknown-e64e682d59e775bb"
|
|
67695
|
+
}
|
|
67696
|
+
},
|
|
67697
|
+
{
|
|
67698
|
+
"contract": "content-frontmatter",
|
|
67699
|
+
"ruleId": "content-frontmatter:#/$defs/contentSeo:type",
|
|
67700
|
+
"schemaPointer": "#/$defs/contentSeo",
|
|
67701
|
+
"keyword": "type",
|
|
67702
|
+
"valid": {
|
|
67703
|
+
"file": "examples/valid/content-frontmatter/rules.json",
|
|
67704
|
+
"caseId": "content-frontmatter-valid-e64e682d59e775bb"
|
|
67705
|
+
},
|
|
67706
|
+
"boundary": {
|
|
67707
|
+
"file": "fixtures/boundary/content-frontmatter/rules.json",
|
|
67708
|
+
"caseId": "content-frontmatter-boundary-6eb7adf4232f7466"
|
|
67709
|
+
},
|
|
67710
|
+
"invalid": {
|
|
67711
|
+
"file": "fixtures/invalid/content-frontmatter/SCHEMA_TYPE_INVALID/cases.json",
|
|
67712
|
+
"caseId": "content-frontmatter-invalid-33870632748afd96",
|
|
67713
|
+
"expectedCode": "SCHEMA_TYPE_INVALID"
|
|
67714
|
+
},
|
|
67715
|
+
"unknownField": {
|
|
67716
|
+
"file": "fixtures/unknown-field/content-frontmatter/rules.json",
|
|
67717
|
+
"caseId": "content-frontmatter-unknown-e64e682d59e775bb"
|
|
67718
|
+
}
|
|
67719
|
+
},
|
|
67720
|
+
{
|
|
67721
|
+
"contract": "content-frontmatter",
|
|
67722
|
+
"ruleId": "content-frontmatter:#/$defs/contentSeo/properties/description:x-gala-graphemeLength",
|
|
67723
|
+
"schemaPointer": "#/$defs/contentSeo/properties/description",
|
|
67724
|
+
"keyword": "x-gala-graphemeLength",
|
|
67725
|
+
"valid": {
|
|
67726
|
+
"file": "examples/valid/content-frontmatter/rules.json",
|
|
67727
|
+
"caseId": "content-frontmatter-valid-2603dd81c82547dd"
|
|
67728
|
+
},
|
|
67729
|
+
"boundary": {
|
|
67730
|
+
"file": "fixtures/boundary/content-frontmatter/rules.json",
|
|
67731
|
+
"caseId": "content-frontmatter-boundary-e8040cb07cb39dc8"
|
|
67732
|
+
},
|
|
67733
|
+
"invalid": {
|
|
67734
|
+
"file": "fixtures/invalid/content-frontmatter/GRAPHEME_LENGTH_INVALID/cases.json",
|
|
67735
|
+
"caseId": "content-frontmatter-invalid-3d5ab29ad66b0c54",
|
|
67736
|
+
"expectedCode": "GRAPHEME_LENGTH_INVALID"
|
|
67737
|
+
},
|
|
67738
|
+
"unknownField": {
|
|
67739
|
+
"file": "fixtures/unknown-field/content-frontmatter/rules.json",
|
|
67740
|
+
"caseId": "content-frontmatter-unknown-e64e682d59e775bb"
|
|
67741
|
+
}
|
|
67742
|
+
},
|
|
67743
|
+
{
|
|
67744
|
+
"contract": "content-frontmatter",
|
|
67745
|
+
"ruleId": "content-frontmatter:#/$defs/contentSeo/properties/noindex:type",
|
|
67746
|
+
"schemaPointer": "#/$defs/contentSeo/properties/noindex",
|
|
67747
|
+
"keyword": "type",
|
|
67748
|
+
"valid": {
|
|
67749
|
+
"file": "examples/valid/content-frontmatter/rules.json",
|
|
67750
|
+
"caseId": "content-frontmatter-valid-9c89b2bcf93d64c7"
|
|
67751
|
+
},
|
|
67752
|
+
"boundary": {
|
|
67753
|
+
"file": "fixtures/boundary/content-frontmatter/rules.json",
|
|
67754
|
+
"caseId": "content-frontmatter-boundary-c90dcdd887740b2f"
|
|
67755
|
+
},
|
|
67756
|
+
"invalid": {
|
|
67757
|
+
"file": "fixtures/invalid/content-frontmatter/SCHEMA_TYPE_INVALID/cases.json",
|
|
67758
|
+
"caseId": "content-frontmatter-invalid-7e8d27ef4d7246a4",
|
|
67759
|
+
"expectedCode": "SCHEMA_TYPE_INVALID"
|
|
67760
|
+
},
|
|
67761
|
+
"unknownField": {
|
|
67762
|
+
"file": "fixtures/unknown-field/content-frontmatter/rules.json",
|
|
67763
|
+
"caseId": "content-frontmatter-unknown-e64e682d59e775bb"
|
|
67764
|
+
}
|
|
67765
|
+
},
|
|
67766
|
+
{
|
|
67767
|
+
"contract": "content-frontmatter",
|
|
67768
|
+
"ruleId": "content-frontmatter:#/$defs/contentSeo/properties/title:x-gala-graphemeLength",
|
|
67769
|
+
"schemaPointer": "#/$defs/contentSeo/properties/title",
|
|
67770
|
+
"keyword": "x-gala-graphemeLength",
|
|
67771
|
+
"valid": {
|
|
67772
|
+
"file": "examples/valid/content-frontmatter/rules.json",
|
|
67773
|
+
"caseId": "content-frontmatter-valid-84f00378e5e40a4d"
|
|
67774
|
+
},
|
|
67775
|
+
"boundary": {
|
|
67776
|
+
"file": "fixtures/boundary/content-frontmatter/rules.json",
|
|
67777
|
+
"caseId": "content-frontmatter-boundary-ba5cee482176cea1"
|
|
67778
|
+
},
|
|
67779
|
+
"invalid": {
|
|
67780
|
+
"file": "fixtures/invalid/content-frontmatter/GRAPHEME_LENGTH_INVALID/cases.json",
|
|
67781
|
+
"caseId": "content-frontmatter-invalid-89940d0d5670b79c",
|
|
67782
|
+
"expectedCode": "GRAPHEME_LENGTH_INVALID"
|
|
67783
|
+
},
|
|
67784
|
+
"unknownField": {
|
|
67785
|
+
"file": "fixtures/unknown-field/content-frontmatter/rules.json",
|
|
67786
|
+
"caseId": "content-frontmatter-unknown-e64e682d59e775bb"
|
|
67787
|
+
}
|
|
67788
|
+
},
|
|
67559
67789
|
{
|
|
67560
67790
|
"contract": "content-frontmatter",
|
|
67561
67791
|
"ruleId": "content-frontmatter:#/$defs/digest:pattern",
|
|
@@ -1312,6 +1312,21 @@
|
|
|
1312
1312
|
"instance": { "kind": "emoji", "token": "👍", "unexpected": true },
|
|
1313
1313
|
"expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
|
|
1314
1314
|
},
|
|
1315
|
+
{
|
|
1316
|
+
"caseId": "build-input-unknown-e64e682d59e775bb",
|
|
1317
|
+
"coveredRuleIds": [
|
|
1318
|
+
"build-input:#/$defs/contentSeo/properties/description:x-gala-graphemeLength",
|
|
1319
|
+
"build-input:#/$defs/contentSeo/properties/noindex:type",
|
|
1320
|
+
"build-input:#/$defs/contentSeo/properties/title:x-gala-graphemeLength",
|
|
1321
|
+
"build-input:#/$defs/contentSeo:additionalProperties",
|
|
1322
|
+
"build-input:#/$defs/contentSeo:type"
|
|
1323
|
+
],
|
|
1324
|
+
"schemaId": "urn:gala:schema:build-input:2.0.0",
|
|
1325
|
+
"schemaPointer": "#/$defs/contentSeo",
|
|
1326
|
+
"keyword": "additionalProperties",
|
|
1327
|
+
"instance": { "unexpected": true },
|
|
1328
|
+
"expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
|
|
1329
|
+
},
|
|
1315
1330
|
{
|
|
1316
1331
|
"caseId": "build-input-unknown-f10e4d8207bd7581",
|
|
1317
1332
|
"coveredRuleIds": [
|
|
@@ -219,5 +219,20 @@
|
|
|
219
219
|
"unexpected": true
|
|
220
220
|
},
|
|
221
221
|
"expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"caseId": "content-frontmatter-unknown-e64e682d59e775bb",
|
|
225
|
+
"coveredRuleIds": [
|
|
226
|
+
"content-frontmatter:#/$defs/contentSeo/properties/description:x-gala-graphemeLength",
|
|
227
|
+
"content-frontmatter:#/$defs/contentSeo/properties/noindex:type",
|
|
228
|
+
"content-frontmatter:#/$defs/contentSeo/properties/title:x-gala-graphemeLength",
|
|
229
|
+
"content-frontmatter:#/$defs/contentSeo:additionalProperties",
|
|
230
|
+
"content-frontmatter:#/$defs/contentSeo:type"
|
|
231
|
+
],
|
|
232
|
+
"schemaId": "urn:gala:schema:content-frontmatter:2.0.0",
|
|
233
|
+
"schemaPointer": "#/$defs/contentSeo",
|
|
234
|
+
"keyword": "additionalProperties",
|
|
235
|
+
"instance": { "unexpected": true },
|
|
236
|
+
"expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
|
|
222
237
|
}
|
|
223
238
|
]
|