@rathnasgala2/schemas 3.19.1 → 3.21.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 +41 -0
- package/fixtures/boundary/content-frontmatter/rules.json +41 -0
- package/fixtures/invalid/build-input/SCHEMA_CONSTANT_INVALID/cases.json +11 -0
- package/fixtures/invalid/build-input/SCHEMA_NEGATED_RULE_MATCHED/cases.json +11 -0
- package/fixtures/invalid/build-input/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +33 -0
- package/fixtures/invalid/content-frontmatter/SCHEMA_CONSTANT_INVALID/cases.json +11 -0
- package/fixtures/invalid/content-frontmatter/SCHEMA_NEGATED_RULE_MATCHED/cases.json +9 -0
- package/fixtures/invalid/content-frontmatter/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +31 -0
- package/fixtures/manifest.json +234 -4
- package/fixtures/unknown-field/build-input/rules.json +5 -0
- package/fixtures/unknown-field/content-frontmatter/rules.json +5 -0
- package/generated/browser/validator-core.mjs +3 -3
- package/generated/typescript/contracts/build-input.d.ts +1 -0
- package/generated/typescript/contracts/content-frontmatter.d.ts +1 -0
- package/openapi/http-catalog.json +2 -2
- package/openapi/openapi.yaml +26 -4
- package/package.json +1 -1
- package/sbom.cdx.json +23 -23
- package/schemas/build-input.schema.json +13 -1
- package/schemas/content-frontmatter.schema.json +12 -0
package/fixtures/manifest.json
CHANGED
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
{
|
|
53
53
|
"contract": "build-input",
|
|
54
54
|
"schemaId": "urn:gala:schema:build-input:2.0.0",
|
|
55
|
-
"schemaSha256": "
|
|
56
|
-
"ruleCount":
|
|
55
|
+
"schemaSha256": "8164871d1ddaebe13c62a5bcd1009fd42fc7fb1c4949b4274ea24d3b4cb989a6",
|
|
56
|
+
"ruleCount": 598,
|
|
57
57
|
"validExample": "examples/valid/build-input/canonical.json",
|
|
58
58
|
"boundaryFixture": "fixtures/boundary/build-input/root.json",
|
|
59
59
|
"unknownFieldFixture": "fixtures/unknown-field/build-input/root.json"
|
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
{
|
|
71
71
|
"contract": "content-frontmatter",
|
|
72
72
|
"schemaId": "urn:gala:schema:content-frontmatter:2.0.0",
|
|
73
|
-
"schemaSha256": "
|
|
74
|
-
"ruleCount":
|
|
73
|
+
"schemaSha256": "3104073a542e77794a3fa114ec910350e927881c7d2ab9ac6c9d7cd4455d74bd",
|
|
74
|
+
"ruleCount": 157,
|
|
75
75
|
"validExample": "examples/valid/content-frontmatter/canonical.json",
|
|
76
76
|
"boundaryFixture": "fixtures/boundary/content-frontmatter/root.json",
|
|
77
77
|
"unknownFieldFixture": "fixtures/unknown-field/content-frontmatter/root.json"
|
|
@@ -51536,6 +51536,121 @@
|
|
|
51536
51536
|
"caseId": "build-input-unknown-fc3cc67b44d0a9c0"
|
|
51537
51537
|
}
|
|
51538
51538
|
},
|
|
51539
|
+
{
|
|
51540
|
+
"contract": "build-input",
|
|
51541
|
+
"ruleId": "build-input:#/$defs/contentFrontmatterNormalized/allOf/1/if:required:translationOf",
|
|
51542
|
+
"schemaPointer": "#/$defs/contentFrontmatterNormalized/allOf/1/if",
|
|
51543
|
+
"keyword": "required",
|
|
51544
|
+
"valid": {
|
|
51545
|
+
"file": "examples/valid/build-input/rules.json",
|
|
51546
|
+
"caseId": "build-input-valid-7364c65aa64a4775"
|
|
51547
|
+
},
|
|
51548
|
+
"boundary": {
|
|
51549
|
+
"file": "fixtures/boundary/build-input/rules.json",
|
|
51550
|
+
"caseId": "build-input-boundary-955d96a965ab0844"
|
|
51551
|
+
},
|
|
51552
|
+
"invalid": {
|
|
51553
|
+
"file": "fixtures/invalid/build-input/SCHEMA_REQUIRED_FIELD_MISSING/cases.json",
|
|
51554
|
+
"caseId": "build-input-invalid-bfad0d3cb118daab",
|
|
51555
|
+
"expectedCode": "SCHEMA_REQUIRED_FIELD_MISSING"
|
|
51556
|
+
},
|
|
51557
|
+
"unknownField": {
|
|
51558
|
+
"file": "fixtures/unknown-field/build-input/rules.json",
|
|
51559
|
+
"caseId": "build-input-unknown-fc3cc67b44d0a9c0"
|
|
51560
|
+
}
|
|
51561
|
+
},
|
|
51562
|
+
{
|
|
51563
|
+
"contract": "build-input",
|
|
51564
|
+
"ruleId": "build-input:#/$defs/contentFrontmatterNormalized/allOf/1/then:not",
|
|
51565
|
+
"schemaPointer": "#/$defs/contentFrontmatterNormalized/allOf/1/then",
|
|
51566
|
+
"keyword": "not",
|
|
51567
|
+
"valid": {
|
|
51568
|
+
"file": "examples/valid/build-input/rules.json",
|
|
51569
|
+
"caseId": "build-input-valid-b0a1e54a5d0c3242"
|
|
51570
|
+
},
|
|
51571
|
+
"boundary": {
|
|
51572
|
+
"file": "fixtures/boundary/build-input/rules.json",
|
|
51573
|
+
"caseId": "build-input-boundary-7781ca6d3139fb92"
|
|
51574
|
+
},
|
|
51575
|
+
"invalid": {
|
|
51576
|
+
"file": "fixtures/invalid/build-input/SCHEMA_NEGATED_RULE_MATCHED/cases.json",
|
|
51577
|
+
"caseId": "build-input-invalid-55616afdaceabc66",
|
|
51578
|
+
"expectedCode": "SCHEMA_NEGATED_RULE_MATCHED"
|
|
51579
|
+
},
|
|
51580
|
+
"unknownField": {
|
|
51581
|
+
"file": "fixtures/unknown-field/build-input/rules.json",
|
|
51582
|
+
"caseId": "build-input-unknown-fc3cc67b44d0a9c0"
|
|
51583
|
+
}
|
|
51584
|
+
},
|
|
51585
|
+
{
|
|
51586
|
+
"contract": "build-input",
|
|
51587
|
+
"ruleId": "build-input:#/$defs/contentFrontmatterNormalized/allOf/1/then:required:kind",
|
|
51588
|
+
"schemaPointer": "#/$defs/contentFrontmatterNormalized/allOf/1/then",
|
|
51589
|
+
"keyword": "required",
|
|
51590
|
+
"valid": {
|
|
51591
|
+
"file": "examples/valid/build-input/rules.json",
|
|
51592
|
+
"caseId": "build-input-valid-b0a1e54a5d0c3242"
|
|
51593
|
+
},
|
|
51594
|
+
"boundary": {
|
|
51595
|
+
"file": "fixtures/boundary/build-input/rules.json",
|
|
51596
|
+
"caseId": "build-input-boundary-7781ca6d3139fb92"
|
|
51597
|
+
},
|
|
51598
|
+
"invalid": {
|
|
51599
|
+
"file": "fixtures/invalid/build-input/SCHEMA_REQUIRED_FIELD_MISSING/cases.json",
|
|
51600
|
+
"caseId": "build-input-invalid-b015c9bde0914f46",
|
|
51601
|
+
"expectedCode": "SCHEMA_REQUIRED_FIELD_MISSING"
|
|
51602
|
+
},
|
|
51603
|
+
"unknownField": {
|
|
51604
|
+
"file": "fixtures/unknown-field/build-input/rules.json",
|
|
51605
|
+
"caseId": "build-input-unknown-fc3cc67b44d0a9c0"
|
|
51606
|
+
}
|
|
51607
|
+
},
|
|
51608
|
+
{
|
|
51609
|
+
"contract": "build-input",
|
|
51610
|
+
"ruleId": "build-input:#/$defs/contentFrontmatterNormalized/allOf/1/then/not:required:edition",
|
|
51611
|
+
"schemaPointer": "#/$defs/contentFrontmatterNormalized/allOf/1/then/not",
|
|
51612
|
+
"keyword": "required",
|
|
51613
|
+
"valid": {
|
|
51614
|
+
"file": "examples/valid/build-input/rules.json",
|
|
51615
|
+
"caseId": "build-input-valid-f2f5c4242ae6d6a0"
|
|
51616
|
+
},
|
|
51617
|
+
"boundary": {
|
|
51618
|
+
"file": "fixtures/boundary/build-input/rules.json",
|
|
51619
|
+
"caseId": "build-input-boundary-133dfe17f7193cce"
|
|
51620
|
+
},
|
|
51621
|
+
"invalid": {
|
|
51622
|
+
"file": "fixtures/invalid/build-input/SCHEMA_REQUIRED_FIELD_MISSING/cases.json",
|
|
51623
|
+
"caseId": "build-input-invalid-32fa9f8216892ec5",
|
|
51624
|
+
"expectedCode": "SCHEMA_REQUIRED_FIELD_MISSING"
|
|
51625
|
+
},
|
|
51626
|
+
"unknownField": {
|
|
51627
|
+
"file": "fixtures/unknown-field/build-input/rules.json",
|
|
51628
|
+
"caseId": "build-input-unknown-fc3cc67b44d0a9c0"
|
|
51629
|
+
}
|
|
51630
|
+
},
|
|
51631
|
+
{
|
|
51632
|
+
"contract": "build-input",
|
|
51633
|
+
"ruleId": "build-input:#/$defs/contentFrontmatterNormalized/allOf/1/then/properties/kind:const",
|
|
51634
|
+
"schemaPointer": "#/$defs/contentFrontmatterNormalized/allOf/1/then/properties/kind",
|
|
51635
|
+
"keyword": "const",
|
|
51636
|
+
"valid": {
|
|
51637
|
+
"file": "examples/valid/build-input/rules.json",
|
|
51638
|
+
"caseId": "build-input-valid-b5d5c6ef6815c431"
|
|
51639
|
+
},
|
|
51640
|
+
"boundary": {
|
|
51641
|
+
"file": "fixtures/boundary/build-input/rules.json",
|
|
51642
|
+
"caseId": "build-input-boundary-b16b3b06f9188e7e"
|
|
51643
|
+
},
|
|
51644
|
+
"invalid": {
|
|
51645
|
+
"file": "fixtures/invalid/build-input/SCHEMA_CONSTANT_INVALID/cases.json",
|
|
51646
|
+
"caseId": "build-input-invalid-3435bddda855c4df",
|
|
51647
|
+
"expectedCode": "SCHEMA_CONSTANT_INVALID"
|
|
51648
|
+
},
|
|
51649
|
+
"unknownField": {
|
|
51650
|
+
"file": "fixtures/unknown-field/build-input/rules.json",
|
|
51651
|
+
"caseId": "build-input-unknown-fc3cc67b44d0a9c0"
|
|
51652
|
+
}
|
|
51653
|
+
},
|
|
51539
51654
|
{
|
|
51540
51655
|
"contract": "build-input",
|
|
51541
51656
|
"ruleId": "build-input:#/$defs/contentFrontmatterNormalized/properties/authorIds:maxItems",
|
|
@@ -72498,6 +72613,121 @@
|
|
|
72498
72613
|
"caseId": "content-frontmatter-unknown-334359b90efed75d"
|
|
72499
72614
|
}
|
|
72500
72615
|
},
|
|
72616
|
+
{
|
|
72617
|
+
"contract": "content-frontmatter",
|
|
72618
|
+
"ruleId": "content-frontmatter:#/allOf/2/if:required:translationOf",
|
|
72619
|
+
"schemaPointer": "#/allOf/2/if",
|
|
72620
|
+
"keyword": "required",
|
|
72621
|
+
"valid": {
|
|
72622
|
+
"file": "examples/valid/content-frontmatter/rules.json",
|
|
72623
|
+
"caseId": "content-frontmatter-valid-5bc9b77cdce1698b"
|
|
72624
|
+
},
|
|
72625
|
+
"boundary": {
|
|
72626
|
+
"file": "fixtures/boundary/content-frontmatter/rules.json",
|
|
72627
|
+
"caseId": "content-frontmatter-boundary-3581b88002125a13"
|
|
72628
|
+
},
|
|
72629
|
+
"invalid": {
|
|
72630
|
+
"file": "fixtures/invalid/content-frontmatter/SCHEMA_REQUIRED_FIELD_MISSING/cases.json",
|
|
72631
|
+
"caseId": "content-frontmatter-invalid-b731eea38e7e6656",
|
|
72632
|
+
"expectedCode": "SCHEMA_REQUIRED_FIELD_MISSING"
|
|
72633
|
+
},
|
|
72634
|
+
"unknownField": {
|
|
72635
|
+
"file": "fixtures/unknown-field/content-frontmatter/rules.json",
|
|
72636
|
+
"caseId": "content-frontmatter-unknown-334359b90efed75d"
|
|
72637
|
+
}
|
|
72638
|
+
},
|
|
72639
|
+
{
|
|
72640
|
+
"contract": "content-frontmatter",
|
|
72641
|
+
"ruleId": "content-frontmatter:#/allOf/2/then:not",
|
|
72642
|
+
"schemaPointer": "#/allOf/2/then",
|
|
72643
|
+
"keyword": "not",
|
|
72644
|
+
"valid": {
|
|
72645
|
+
"file": "examples/valid/content-frontmatter/rules.json",
|
|
72646
|
+
"caseId": "content-frontmatter-valid-f56efa528b4d21fc"
|
|
72647
|
+
},
|
|
72648
|
+
"boundary": {
|
|
72649
|
+
"file": "fixtures/boundary/content-frontmatter/rules.json",
|
|
72650
|
+
"caseId": "content-frontmatter-boundary-c6212dd445cff011"
|
|
72651
|
+
},
|
|
72652
|
+
"invalid": {
|
|
72653
|
+
"file": "fixtures/invalid/content-frontmatter/SCHEMA_NEGATED_RULE_MATCHED/cases.json",
|
|
72654
|
+
"caseId": "content-frontmatter-invalid-48d19c5febc781d8",
|
|
72655
|
+
"expectedCode": "SCHEMA_NEGATED_RULE_MATCHED"
|
|
72656
|
+
},
|
|
72657
|
+
"unknownField": {
|
|
72658
|
+
"file": "fixtures/unknown-field/content-frontmatter/rules.json",
|
|
72659
|
+
"caseId": "content-frontmatter-unknown-334359b90efed75d"
|
|
72660
|
+
}
|
|
72661
|
+
},
|
|
72662
|
+
{
|
|
72663
|
+
"contract": "content-frontmatter",
|
|
72664
|
+
"ruleId": "content-frontmatter:#/allOf/2/then:required:kind",
|
|
72665
|
+
"schemaPointer": "#/allOf/2/then",
|
|
72666
|
+
"keyword": "required",
|
|
72667
|
+
"valid": {
|
|
72668
|
+
"file": "examples/valid/content-frontmatter/rules.json",
|
|
72669
|
+
"caseId": "content-frontmatter-valid-f56efa528b4d21fc"
|
|
72670
|
+
},
|
|
72671
|
+
"boundary": {
|
|
72672
|
+
"file": "fixtures/boundary/content-frontmatter/rules.json",
|
|
72673
|
+
"caseId": "content-frontmatter-boundary-c6212dd445cff011"
|
|
72674
|
+
},
|
|
72675
|
+
"invalid": {
|
|
72676
|
+
"file": "fixtures/invalid/content-frontmatter/SCHEMA_REQUIRED_FIELD_MISSING/cases.json",
|
|
72677
|
+
"caseId": "content-frontmatter-invalid-737243e4dda64e0f",
|
|
72678
|
+
"expectedCode": "SCHEMA_REQUIRED_FIELD_MISSING"
|
|
72679
|
+
},
|
|
72680
|
+
"unknownField": {
|
|
72681
|
+
"file": "fixtures/unknown-field/content-frontmatter/rules.json",
|
|
72682
|
+
"caseId": "content-frontmatter-unknown-334359b90efed75d"
|
|
72683
|
+
}
|
|
72684
|
+
},
|
|
72685
|
+
{
|
|
72686
|
+
"contract": "content-frontmatter",
|
|
72687
|
+
"ruleId": "content-frontmatter:#/allOf/2/then/not:required:edition",
|
|
72688
|
+
"schemaPointer": "#/allOf/2/then/not",
|
|
72689
|
+
"keyword": "required",
|
|
72690
|
+
"valid": {
|
|
72691
|
+
"file": "examples/valid/content-frontmatter/rules.json",
|
|
72692
|
+
"caseId": "content-frontmatter-valid-f0025b852107838d"
|
|
72693
|
+
},
|
|
72694
|
+
"boundary": {
|
|
72695
|
+
"file": "fixtures/boundary/content-frontmatter/rules.json",
|
|
72696
|
+
"caseId": "content-frontmatter-boundary-7e1f09c452daeb8b"
|
|
72697
|
+
},
|
|
72698
|
+
"invalid": {
|
|
72699
|
+
"file": "fixtures/invalid/content-frontmatter/SCHEMA_REQUIRED_FIELD_MISSING/cases.json",
|
|
72700
|
+
"caseId": "content-frontmatter-invalid-e0f7edb74d2ca0f1",
|
|
72701
|
+
"expectedCode": "SCHEMA_REQUIRED_FIELD_MISSING"
|
|
72702
|
+
},
|
|
72703
|
+
"unknownField": {
|
|
72704
|
+
"file": "fixtures/unknown-field/content-frontmatter/rules.json",
|
|
72705
|
+
"caseId": "content-frontmatter-unknown-334359b90efed75d"
|
|
72706
|
+
}
|
|
72707
|
+
},
|
|
72708
|
+
{
|
|
72709
|
+
"contract": "content-frontmatter",
|
|
72710
|
+
"ruleId": "content-frontmatter:#/allOf/2/then/properties/kind:const",
|
|
72711
|
+
"schemaPointer": "#/allOf/2/then/properties/kind",
|
|
72712
|
+
"keyword": "const",
|
|
72713
|
+
"valid": {
|
|
72714
|
+
"file": "examples/valid/content-frontmatter/rules.json",
|
|
72715
|
+
"caseId": "content-frontmatter-valid-d40c2575322c1992"
|
|
72716
|
+
},
|
|
72717
|
+
"boundary": {
|
|
72718
|
+
"file": "fixtures/boundary/content-frontmatter/rules.json",
|
|
72719
|
+
"caseId": "content-frontmatter-boundary-4ce1134d2d7492ef"
|
|
72720
|
+
},
|
|
72721
|
+
"invalid": {
|
|
72722
|
+
"file": "fixtures/invalid/content-frontmatter/SCHEMA_CONSTANT_INVALID/cases.json",
|
|
72723
|
+
"caseId": "content-frontmatter-invalid-2bdcaca85709c1b8",
|
|
72724
|
+
"expectedCode": "SCHEMA_CONSTANT_INVALID"
|
|
72725
|
+
},
|
|
72726
|
+
"unknownField": {
|
|
72727
|
+
"file": "fixtures/unknown-field/content-frontmatter/rules.json",
|
|
72728
|
+
"caseId": "content-frontmatter-unknown-334359b90efed75d"
|
|
72729
|
+
}
|
|
72730
|
+
},
|
|
72501
72731
|
{
|
|
72502
72732
|
"contract": "content-frontmatter",
|
|
72503
72733
|
"ruleId": "content-frontmatter:#/properties/authors:maxItems",
|
|
@@ -1624,6 +1624,11 @@
|
|
|
1624
1624
|
"build-input:#/$defs/contentFrontmatterNormalized/allOf/0/if/properties/kind:const",
|
|
1625
1625
|
"build-input:#/$defs/contentFrontmatterNormalized/allOf/0/if:required:kind",
|
|
1626
1626
|
"build-input:#/$defs/contentFrontmatterNormalized/allOf/0/then:required:edition",
|
|
1627
|
+
"build-input:#/$defs/contentFrontmatterNormalized/allOf/1/if:required:translationOf",
|
|
1628
|
+
"build-input:#/$defs/contentFrontmatterNormalized/allOf/1/then/not:required:edition",
|
|
1629
|
+
"build-input:#/$defs/contentFrontmatterNormalized/allOf/1/then/properties/kind:const",
|
|
1630
|
+
"build-input:#/$defs/contentFrontmatterNormalized/allOf/1/then:not",
|
|
1631
|
+
"build-input:#/$defs/contentFrontmatterNormalized/allOf/1/then:required:kind",
|
|
1627
1632
|
"build-input:#/$defs/contentFrontmatterNormalized/properties/authorIds:maxItems",
|
|
1628
1633
|
"build-input:#/$defs/contentFrontmatterNormalized/properties/authorIds:minItems",
|
|
1629
1634
|
"build-input:#/$defs/contentFrontmatterNormalized/properties/authorIds:type",
|
|
@@ -85,6 +85,11 @@
|
|
|
85
85
|
"content-frontmatter:#/allOf/1/if/properties/kind:const",
|
|
86
86
|
"content-frontmatter:#/allOf/1/if:required:kind",
|
|
87
87
|
"content-frontmatter:#/allOf/1/then:required:edition",
|
|
88
|
+
"content-frontmatter:#/allOf/2/if:required:translationOf",
|
|
89
|
+
"content-frontmatter:#/allOf/2/then/not:required:edition",
|
|
90
|
+
"content-frontmatter:#/allOf/2/then/properties/kind:const",
|
|
91
|
+
"content-frontmatter:#/allOf/2/then:not",
|
|
92
|
+
"content-frontmatter:#/allOf/2/then:required:kind",
|
|
88
93
|
"content-frontmatter:#/properties/authors:maxItems",
|
|
89
94
|
"content-frontmatter:#/properties/authors:minItems",
|
|
90
95
|
"content-frontmatter:#/properties/authors:type",
|