@rathnasgala2/schemas 3.7.0 → 3.8.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 +845 -20
- package/docs/catalogs/schema-inventory.json +10 -10
- package/examples/valid/build-input/rules.json +24 -2
- package/examples/valid/template-composition/rules.json +769 -0
- package/examples/valid/theme-contract/rules.json +1107 -5
- package/fixtures/boundary/build-input/rules.json +24 -2
- package/fixtures/boundary/template-composition/rules.json +769 -0
- package/fixtures/boundary/theme-contract/rules.json +1107 -5
- package/fixtures/invalid/build-input/SCHEMA_PATTERN_INVALID/cases.json +22 -11
- package/fixtures/invalid/build-input/SCHEMA_TYPE_INVALID/cases.json +22 -0
- package/fixtures/invalid/build-input/SCHEMA_UNION_INVALID/cases.json +11 -0
- package/fixtures/invalid/template-composition/SCHEMA_CONSTANT_INVALID/cases.json +497 -0
- package/fixtures/invalid/template-composition/SCHEMA_ENUM_INVALID/cases.json +83 -0
- package/fixtures/invalid/template-composition/SCHEMA_NEGATED_RULE_MATCHED/cases.json +11 -0
- package/fixtures/invalid/template-composition/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +909 -0
- package/fixtures/invalid/template-composition/SCHEMA_UNION_INVALID/cases.json +20 -0
- package/fixtures/invalid/theme-contract/REQUEST_FIELD_UNKNOWN/cases.json +120 -0
- package/fixtures/invalid/theme-contract/SCHEMA_CONSTANT_INVALID/cases.json +680 -0
- package/fixtures/invalid/theme-contract/SCHEMA_NEGATED_RULE_MATCHED/cases.json +11 -0
- package/fixtures/invalid/theme-contract/SCHEMA_PATTERN_INVALID/cases.json +33 -9
- package/fixtures/invalid/theme-contract/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +1383 -3
- package/fixtures/invalid/theme-contract/SCHEMA_TYPE_INVALID/cases.json +77 -0
- package/fixtures/invalid/theme-contract/SCHEMA_UNION_INVALID/cases.json +18 -0
- package/fixtures/invalid/theme-contract/SCHEMA_VERSION_UNSUPPORTED/cases.json +110 -0
- package/fixtures/manifest.json +7414 -1089
- package/fixtures/s2/manifest.json +1 -1
- package/fixtures/unknown-field/build-input/rules.json +5 -1
- package/fixtures/unknown-field/template-composition/rules.json +111 -0
- package/fixtures/unknown-field/theme-contract/rules.json +276 -1
- package/generated/browser/validator-core.mjs +3 -3
- package/generated/typescript/contracts/artifact-manifest.d.ts +4 -2
- package/generated/typescript/contracts/build-input.d.ts +3 -2
- package/generated/typescript/contracts/build-provenance.d.ts +4 -2
- package/generated/typescript/contracts/deployment-intent.d.ts +1 -0
- package/generated/typescript/contracts/deployment-receipt.d.ts +1 -0
- package/generated/typescript/contracts/lock.d.ts +2 -1
- package/generated/typescript/contracts/template-composition.d.ts +75 -4
- package/generated/typescript/contracts/theme-contract.d.ts +75 -2
- package/openapi/http-catalog.json +2 -2
- package/openapi/openapi.yaml +41 -10
- package/package.json +1 -1
- package/sbom.cdx.json +23 -23
- package/schemas/artifact-manifest.schema.json +4 -2
- package/schemas/build-input.schema.json +12 -2
- package/schemas/build-provenance.schema.json +4 -2
- package/schemas/deployment-intent.schema.json +1 -0
- package/schemas/deployment-receipt.schema.json +1 -0
- package/schemas/lock.schema.json +2 -1
- package/schemas/template-composition.schema.json +179 -2
- package/schemas/theme-contract.schema.json +282 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"caseId": "template-composition-invalid-3a4b1d95136a96cf",
|
|
4
|
+
"coveredRuleIds": ["template-composition:#:oneOf"],
|
|
5
|
+
"schemaId": "urn:gala:schema:template-composition:2.0.0",
|
|
6
|
+
"schemaPointer": "#",
|
|
7
|
+
"keyword": "oneOf",
|
|
8
|
+
"instance": { "profile": "editorial", "homeLayout": "newspaper" },
|
|
9
|
+
"expectedCodes": ["SCHEMA_UNION_INVALID"]
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"caseId": "template-composition-invalid-63cf3a4bdab0582c",
|
|
13
|
+
"coveredRuleIds": ["template-composition:#/oneOf/0/not:anyOf"],
|
|
14
|
+
"schemaId": "urn:gala:schema:template-composition:2.0.0",
|
|
15
|
+
"schemaPointer": "#/oneOf/0/not",
|
|
16
|
+
"keyword": "anyOf",
|
|
17
|
+
"instance": {},
|
|
18
|
+
"expectedCodes": ["SCHEMA_UNION_INVALID"]
|
|
19
|
+
}
|
|
20
|
+
]
|
|
@@ -603,6 +603,30 @@
|
|
|
603
603
|
},
|
|
604
604
|
"expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
|
|
605
605
|
},
|
|
606
|
+
{
|
|
607
|
+
"caseId": "theme-contract-invalid-2639c0eadc36fc86",
|
|
608
|
+
"coveredRuleIds": [
|
|
609
|
+
"theme-contract:#/$defs/templateComposition/oneOf/2:additionalProperties"
|
|
610
|
+
],
|
|
611
|
+
"schemaId": "urn:gala:schema:theme-contract:2.0.0",
|
|
612
|
+
"schemaPointer": "#/$defs/templateComposition/oneOf/2",
|
|
613
|
+
"keyword": "additionalProperties",
|
|
614
|
+
"instance": {
|
|
615
|
+
"schemaId": "urn:gala:schema:template-composition:2.0.0",
|
|
616
|
+
"schemaVersion": "2.0.0",
|
|
617
|
+
"profile": "visual",
|
|
618
|
+
"homeLayout": "gallery",
|
|
619
|
+
"articleLayout": "full-bleed",
|
|
620
|
+
"authorLayout": "portfolio",
|
|
621
|
+
"listingLayout": "image-grid",
|
|
622
|
+
"headerLayout": "minimal",
|
|
623
|
+
"footerLayout": "compact",
|
|
624
|
+
"mediaRatio": "mixed",
|
|
625
|
+
"density": "comfortable",
|
|
626
|
+
"unexpected": true
|
|
627
|
+
},
|
|
628
|
+
"expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
|
|
629
|
+
},
|
|
606
630
|
{
|
|
607
631
|
"caseId": "theme-contract-invalid-309f5d2bd4225209",
|
|
608
632
|
"coveredRuleIds": [
|
|
@@ -619,6 +643,30 @@
|
|
|
619
643
|
},
|
|
620
644
|
"expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
|
|
621
645
|
},
|
|
646
|
+
{
|
|
647
|
+
"caseId": "theme-contract-invalid-56d766264e494c9b",
|
|
648
|
+
"coveredRuleIds": [
|
|
649
|
+
"theme-contract:#/$defs/templateComposition/oneOf/4:additionalProperties"
|
|
650
|
+
],
|
|
651
|
+
"schemaId": "urn:gala:schema:theme-contract:2.0.0",
|
|
652
|
+
"schemaPointer": "#/$defs/templateComposition/oneOf/4",
|
|
653
|
+
"keyword": "additionalProperties",
|
|
654
|
+
"instance": {
|
|
655
|
+
"schemaId": "urn:gala:schema:template-composition:2.0.0",
|
|
656
|
+
"schemaVersion": "2.0.0",
|
|
657
|
+
"profile": "developer",
|
|
658
|
+
"homeLayout": "topic-index",
|
|
659
|
+
"articleLayout": "technical",
|
|
660
|
+
"authorLayout": "biography",
|
|
661
|
+
"listingLayout": "rows",
|
|
662
|
+
"headerLayout": "utility",
|
|
663
|
+
"footerLayout": "compact",
|
|
664
|
+
"mediaRatio": "landscape",
|
|
665
|
+
"density": "compact",
|
|
666
|
+
"unexpected": true
|
|
667
|
+
},
|
|
668
|
+
"expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
|
|
669
|
+
},
|
|
622
670
|
{
|
|
623
671
|
"caseId": "theme-contract-invalid-8be84c111c6e2c48",
|
|
624
672
|
"coveredRuleIds": [
|
|
@@ -636,6 +684,78 @@
|
|
|
636
684
|
},
|
|
637
685
|
"expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
|
|
638
686
|
},
|
|
687
|
+
{
|
|
688
|
+
"caseId": "theme-contract-invalid-8da0c79068f639f9",
|
|
689
|
+
"coveredRuleIds": [
|
|
690
|
+
"theme-contract:#/$defs/templateComposition/oneOf/0:additionalProperties"
|
|
691
|
+
],
|
|
692
|
+
"schemaId": "urn:gala:schema:theme-contract:2.0.0",
|
|
693
|
+
"schemaPointer": "#/$defs/templateComposition/oneOf/0",
|
|
694
|
+
"keyword": "additionalProperties",
|
|
695
|
+
"instance": {
|
|
696
|
+
"schemaId": "urn:gala:schema:template-composition:2.0.0",
|
|
697
|
+
"schemaVersion": "2.0.0",
|
|
698
|
+
"profile": "editorial",
|
|
699
|
+
"homeLayout": "magazine",
|
|
700
|
+
"articleLayout": "editorial",
|
|
701
|
+
"authorLayout": "portrait",
|
|
702
|
+
"listingLayout": "rows",
|
|
703
|
+
"headerLayout": "masthead",
|
|
704
|
+
"footerLayout": "expanded",
|
|
705
|
+
"mediaRatio": "landscape",
|
|
706
|
+
"density": "comfortable",
|
|
707
|
+
"unexpected": true
|
|
708
|
+
},
|
|
709
|
+
"expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
|
|
710
|
+
},
|
|
711
|
+
{
|
|
712
|
+
"caseId": "theme-contract-invalid-cc38c017f52adaaa",
|
|
713
|
+
"coveredRuleIds": [
|
|
714
|
+
"theme-contract:#/$defs/templateComposition/oneOf/1:additionalProperties"
|
|
715
|
+
],
|
|
716
|
+
"schemaId": "urn:gala:schema:theme-contract:2.0.0",
|
|
717
|
+
"schemaPointer": "#/$defs/templateComposition/oneOf/1",
|
|
718
|
+
"keyword": "additionalProperties",
|
|
719
|
+
"instance": {
|
|
720
|
+
"schemaId": "urn:gala:schema:template-composition:2.0.0",
|
|
721
|
+
"schemaVersion": "2.0.0",
|
|
722
|
+
"profile": "newsletter",
|
|
723
|
+
"homeLayout": "newspaper",
|
|
724
|
+
"articleLayout": "issue",
|
|
725
|
+
"authorLayout": "profile",
|
|
726
|
+
"listingLayout": "issues",
|
|
727
|
+
"headerLayout": "publication",
|
|
728
|
+
"footerLayout": "expanded",
|
|
729
|
+
"mediaRatio": "landscape",
|
|
730
|
+
"density": "comfortable",
|
|
731
|
+
"unexpected": true
|
|
732
|
+
},
|
|
733
|
+
"expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
|
|
734
|
+
},
|
|
735
|
+
{
|
|
736
|
+
"caseId": "theme-contract-invalid-e752af67a2ccb4c4",
|
|
737
|
+
"coveredRuleIds": [
|
|
738
|
+
"theme-contract:#/$defs/templateComposition/oneOf/3:additionalProperties"
|
|
739
|
+
],
|
|
740
|
+
"schemaId": "urn:gala:schema:theme-contract:2.0.0",
|
|
741
|
+
"schemaPointer": "#/$defs/templateComposition/oneOf/3",
|
|
742
|
+
"keyword": "additionalProperties",
|
|
743
|
+
"instance": {
|
|
744
|
+
"schemaId": "urn:gala:schema:template-composition:2.0.0",
|
|
745
|
+
"schemaVersion": "2.0.0",
|
|
746
|
+
"profile": "personal",
|
|
747
|
+
"homeLayout": "chronological",
|
|
748
|
+
"articleLayout": "prose",
|
|
749
|
+
"authorLayout": "biography",
|
|
750
|
+
"listingLayout": "dated-rows",
|
|
751
|
+
"headerLayout": "compact",
|
|
752
|
+
"footerLayout": "compact",
|
|
753
|
+
"mediaRatio": "landscape",
|
|
754
|
+
"density": "spacious",
|
|
755
|
+
"unexpected": true
|
|
756
|
+
},
|
|
757
|
+
"expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
|
|
758
|
+
},
|
|
639
759
|
{
|
|
640
760
|
"caseId": "theme-contract-invalid-f6d980e4c1c10d17",
|
|
641
761
|
"coveredRuleIds": [
|