@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.
- package/THIRD_PARTY_LICENSES.json +1 -1
- package/diagnostics/diagnostic-map.json +857 -10
- package/docs/catalogs/schema-inventory.json +11 -11
- package/examples/valid/build-input/rules.json +24 -2
- package/examples/valid/problem/rules.json +35 -0
- 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/problem/rules.json +83 -0
- 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/problem/SCHEMA_ARRAY_TOO_LONG/cases.json +13 -0
- package/fixtures/invalid/problem/SCHEMA_ENUM_INVALID/cases.json +11 -0
- package/fixtures/invalid/problem/SCHEMA_STRING_TOO_LONG/cases.json +11 -0
- package/fixtures/invalid/problem/SCHEMA_STRING_TOO_SHORT/cases.json +11 -0
- package/fixtures/invalid/problem/SCHEMA_TYPE_INVALID/cases.json +29 -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 +7570 -1065
- package/fixtures/s2/manifest.json +1 -1
- package/fixtures/unknown-field/build-input/rules.json +5 -1
- package/fixtures/unknown-field/problem/rules.json +8 -0
- 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/problem.d.ts +9 -0
- 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 +82 -11
- 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/problem.schema.json +21 -1
- package/schemas/template-composition.schema.json +179 -2
- package/schemas/theme-contract.schema.json +282 -1
|
@@ -46,6 +46,61 @@
|
|
|
46
46
|
"instance": [],
|
|
47
47
|
"expectedCodes": ["SCHEMA_TYPE_INVALID"]
|
|
48
48
|
},
|
|
49
|
+
{
|
|
50
|
+
"caseId": "theme-contract-invalid-39c414cfa5e3df6f",
|
|
51
|
+
"coveredRuleIds": [
|
|
52
|
+
"theme-contract:#/properties/package/allOf/1/anyOf/0:type"
|
|
53
|
+
],
|
|
54
|
+
"schemaId": "urn:gala:schema:theme-contract:2.0.0",
|
|
55
|
+
"schemaPointer": "#/properties/package/allOf/1/anyOf/0",
|
|
56
|
+
"keyword": "type",
|
|
57
|
+
"instance": null,
|
|
58
|
+
"expectedCodes": ["SCHEMA_TYPE_INVALID"]
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"caseId": "theme-contract-invalid-401d8223fde1e5de",
|
|
62
|
+
"coveredRuleIds": [
|
|
63
|
+
"theme-contract:#/$defs/templateComposition/oneOf/2:type"
|
|
64
|
+
],
|
|
65
|
+
"schemaId": "urn:gala:schema:theme-contract:2.0.0",
|
|
66
|
+
"schemaPointer": "#/$defs/templateComposition/oneOf/2",
|
|
67
|
+
"keyword": "type",
|
|
68
|
+
"instance": [],
|
|
69
|
+
"expectedCodes": ["SCHEMA_TYPE_INVALID"]
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"caseId": "theme-contract-invalid-488577598c9fb914",
|
|
73
|
+
"coveredRuleIds": [
|
|
74
|
+
"theme-contract:#/$defs/templateComposition/oneOf/0:type"
|
|
75
|
+
],
|
|
76
|
+
"schemaId": "urn:gala:schema:theme-contract:2.0.0",
|
|
77
|
+
"schemaPointer": "#/$defs/templateComposition/oneOf/0",
|
|
78
|
+
"keyword": "type",
|
|
79
|
+
"instance": [],
|
|
80
|
+
"expectedCodes": ["SCHEMA_TYPE_INVALID"]
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"caseId": "theme-contract-invalid-489c4a25bf45d4cb",
|
|
84
|
+
"coveredRuleIds": [
|
|
85
|
+
"theme-contract:#/$defs/templateComposition/oneOf/1:type"
|
|
86
|
+
],
|
|
87
|
+
"schemaId": "urn:gala:schema:theme-contract:2.0.0",
|
|
88
|
+
"schemaPointer": "#/$defs/templateComposition/oneOf/1",
|
|
89
|
+
"keyword": "type",
|
|
90
|
+
"instance": [],
|
|
91
|
+
"expectedCodes": ["SCHEMA_TYPE_INVALID"]
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"caseId": "theme-contract-invalid-571fc5e879ed2a5d",
|
|
95
|
+
"coveredRuleIds": [
|
|
96
|
+
"theme-contract:#/properties/package/allOf/1/anyOf/1:type"
|
|
97
|
+
],
|
|
98
|
+
"schemaId": "urn:gala:schema:theme-contract:2.0.0",
|
|
99
|
+
"schemaPointer": "#/properties/package/allOf/1/anyOf/1",
|
|
100
|
+
"keyword": "type",
|
|
101
|
+
"instance": null,
|
|
102
|
+
"expectedCodes": ["SCHEMA_TYPE_INVALID"]
|
|
103
|
+
},
|
|
49
104
|
{
|
|
50
105
|
"caseId": "theme-contract-invalid-6c5aeb385a404c98",
|
|
51
106
|
"coveredRuleIds": ["theme-contract:#/properties/cssLayers:type"],
|
|
@@ -73,6 +128,17 @@
|
|
|
73
128
|
"instance": {},
|
|
74
129
|
"expectedCodes": ["SCHEMA_TYPE_INVALID"]
|
|
75
130
|
},
|
|
131
|
+
{
|
|
132
|
+
"caseId": "theme-contract-invalid-a0b4856168e55c8a",
|
|
133
|
+
"coveredRuleIds": [
|
|
134
|
+
"theme-contract:#/$defs/templateComposition/oneOf/3:type"
|
|
135
|
+
],
|
|
136
|
+
"schemaId": "urn:gala:schema:theme-contract:2.0.0",
|
|
137
|
+
"schemaPointer": "#/$defs/templateComposition/oneOf/3",
|
|
138
|
+
"keyword": "type",
|
|
139
|
+
"instance": [],
|
|
140
|
+
"expectedCodes": ["SCHEMA_TYPE_INVALID"]
|
|
141
|
+
},
|
|
76
142
|
{
|
|
77
143
|
"caseId": "theme-contract-invalid-b142a29587072ba7",
|
|
78
144
|
"coveredRuleIds": [
|
|
@@ -104,6 +170,17 @@
|
|
|
104
170
|
"instance": null,
|
|
105
171
|
"expectedCodes": ["SCHEMA_TYPE_INVALID"]
|
|
106
172
|
},
|
|
173
|
+
{
|
|
174
|
+
"caseId": "theme-contract-invalid-c7b95fd566ed540b",
|
|
175
|
+
"coveredRuleIds": [
|
|
176
|
+
"theme-contract:#/$defs/templateComposition/oneOf/4:type"
|
|
177
|
+
],
|
|
178
|
+
"schemaId": "urn:gala:schema:theme-contract:2.0.0",
|
|
179
|
+
"schemaPointer": "#/$defs/templateComposition/oneOf/4",
|
|
180
|
+
"keyword": "type",
|
|
181
|
+
"instance": [],
|
|
182
|
+
"expectedCodes": ["SCHEMA_TYPE_INVALID"]
|
|
183
|
+
},
|
|
107
184
|
{
|
|
108
185
|
"caseId": "theme-contract-invalid-d10d4cac54bf3893",
|
|
109
186
|
"coveredRuleIds": ["theme-contract:#/properties/assets:type"],
|
|
@@ -1,4 +1,22 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"caseId": "theme-contract-invalid-4a25f42d40099b3b",
|
|
4
|
+
"coveredRuleIds": ["theme-contract:#/properties/package/allOf/1:anyOf"],
|
|
5
|
+
"schemaId": "urn:gala:schema:theme-contract:2.0.0",
|
|
6
|
+
"schemaPointer": "#/properties/package/allOf/1",
|
|
7
|
+
"keyword": "anyOf",
|
|
8
|
+
"instance": {},
|
|
9
|
+
"expectedCodes": ["SCHEMA_UNION_INVALID"]
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"caseId": "theme-contract-invalid-66a6a180a6598753",
|
|
13
|
+
"coveredRuleIds": ["theme-contract:#/$defs/templateComposition:oneOf"],
|
|
14
|
+
"schemaId": "urn:gala:schema:theme-contract:2.0.0",
|
|
15
|
+
"schemaPointer": "#/$defs/templateComposition",
|
|
16
|
+
"keyword": "oneOf",
|
|
17
|
+
"instance": { "outcome": "__invalid_union__" },
|
|
18
|
+
"expectedCodes": ["SCHEMA_UNION_INVALID"]
|
|
19
|
+
},
|
|
2
20
|
{
|
|
3
21
|
"caseId": "theme-contract-invalid-70765d1b6d5a0652",
|
|
4
22
|
"coveredRuleIds": ["theme-contract:#/allOf/0:oneOf"],
|
|
@@ -1,4 +1,92 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"caseId": "theme-contract-invalid-06b83421b0f27001",
|
|
4
|
+
"coveredRuleIds": [
|
|
5
|
+
"theme-contract:#/$defs/templateComposition/oneOf/1/properties/schemaId:const"
|
|
6
|
+
],
|
|
7
|
+
"schemaId": "urn:gala:schema:theme-contract:2.0.0",
|
|
8
|
+
"schemaPointer": "#/$defs/templateComposition/oneOf/1/properties/schemaId",
|
|
9
|
+
"keyword": "const",
|
|
10
|
+
"instance": "urn:gala:schema:template-composition:2.0.0-invalid",
|
|
11
|
+
"expectedCodes": ["SCHEMA_VERSION_UNSUPPORTED"]
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"caseId": "theme-contract-invalid-0b77cc694f6685f6",
|
|
15
|
+
"coveredRuleIds": [
|
|
16
|
+
"theme-contract:#/$defs/templateComposition/oneOf/4/properties/schemaId:const"
|
|
17
|
+
],
|
|
18
|
+
"schemaId": "urn:gala:schema:theme-contract:2.0.0",
|
|
19
|
+
"schemaPointer": "#/$defs/templateComposition/oneOf/4/properties/schemaId",
|
|
20
|
+
"keyword": "const",
|
|
21
|
+
"instance": "urn:gala:schema:template-composition:2.0.0-invalid",
|
|
22
|
+
"expectedCodes": ["SCHEMA_VERSION_UNSUPPORTED"]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"caseId": "theme-contract-invalid-262de9b0f26f510d",
|
|
26
|
+
"coveredRuleIds": [
|
|
27
|
+
"theme-contract:#/$defs/templateComposition/oneOf/2/properties/schemaId:const"
|
|
28
|
+
],
|
|
29
|
+
"schemaId": "urn:gala:schema:theme-contract:2.0.0",
|
|
30
|
+
"schemaPointer": "#/$defs/templateComposition/oneOf/2/properties/schemaId",
|
|
31
|
+
"keyword": "const",
|
|
32
|
+
"instance": "urn:gala:schema:template-composition:2.0.0-invalid",
|
|
33
|
+
"expectedCodes": ["SCHEMA_VERSION_UNSUPPORTED"]
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"caseId": "theme-contract-invalid-4528c71f97623065",
|
|
37
|
+
"coveredRuleIds": [
|
|
38
|
+
"theme-contract:#/$defs/templateComposition/oneOf/4/properties/schemaVersion:const"
|
|
39
|
+
],
|
|
40
|
+
"schemaId": "urn:gala:schema:theme-contract:2.0.0",
|
|
41
|
+
"schemaPointer": "#/$defs/templateComposition/oneOf/4/properties/schemaVersion",
|
|
42
|
+
"keyword": "const",
|
|
43
|
+
"instance": "2.0.0-invalid",
|
|
44
|
+
"expectedCodes": ["SCHEMA_VERSION_UNSUPPORTED"]
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"caseId": "theme-contract-invalid-48086d8111afb188",
|
|
48
|
+
"coveredRuleIds": [
|
|
49
|
+
"theme-contract:#/$defs/templateComposition/oneOf/1/properties/schemaVersion:const"
|
|
50
|
+
],
|
|
51
|
+
"schemaId": "urn:gala:schema:theme-contract:2.0.0",
|
|
52
|
+
"schemaPointer": "#/$defs/templateComposition/oneOf/1/properties/schemaVersion",
|
|
53
|
+
"keyword": "const",
|
|
54
|
+
"instance": "2.0.0-invalid",
|
|
55
|
+
"expectedCodes": ["SCHEMA_VERSION_UNSUPPORTED"]
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"caseId": "theme-contract-invalid-66aed8cc83d1aeff",
|
|
59
|
+
"coveredRuleIds": [
|
|
60
|
+
"theme-contract:#/$defs/templateComposition/oneOf/0/properties/schemaId:const"
|
|
61
|
+
],
|
|
62
|
+
"schemaId": "urn:gala:schema:theme-contract:2.0.0",
|
|
63
|
+
"schemaPointer": "#/$defs/templateComposition/oneOf/0/properties/schemaId",
|
|
64
|
+
"keyword": "const",
|
|
65
|
+
"instance": "urn:gala:schema:template-composition:2.0.0-invalid",
|
|
66
|
+
"expectedCodes": ["SCHEMA_VERSION_UNSUPPORTED"]
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"caseId": "theme-contract-invalid-7aedb64c764765ca",
|
|
70
|
+
"coveredRuleIds": [
|
|
71
|
+
"theme-contract:#/$defs/templateComposition/oneOf/2/properties/schemaVersion:const"
|
|
72
|
+
],
|
|
73
|
+
"schemaId": "urn:gala:schema:theme-contract:2.0.0",
|
|
74
|
+
"schemaPointer": "#/$defs/templateComposition/oneOf/2/properties/schemaVersion",
|
|
75
|
+
"keyword": "const",
|
|
76
|
+
"instance": "2.0.0-invalid",
|
|
77
|
+
"expectedCodes": ["SCHEMA_VERSION_UNSUPPORTED"]
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"caseId": "theme-contract-invalid-7f9aa0193f35391c",
|
|
81
|
+
"coveredRuleIds": [
|
|
82
|
+
"theme-contract:#/$defs/templateComposition/oneOf/3/properties/schemaId:const"
|
|
83
|
+
],
|
|
84
|
+
"schemaId": "urn:gala:schema:theme-contract:2.0.0",
|
|
85
|
+
"schemaPointer": "#/$defs/templateComposition/oneOf/3/properties/schemaId",
|
|
86
|
+
"keyword": "const",
|
|
87
|
+
"instance": "urn:gala:schema:template-composition:2.0.0-invalid",
|
|
88
|
+
"expectedCodes": ["SCHEMA_VERSION_UNSUPPORTED"]
|
|
89
|
+
},
|
|
2
90
|
{
|
|
3
91
|
"caseId": "theme-contract-invalid-9c69452032f966a6",
|
|
4
92
|
"coveredRuleIds": ["theme-contract:#/properties/schemaId:const"],
|
|
@@ -16,5 +104,27 @@
|
|
|
16
104
|
"keyword": "const",
|
|
17
105
|
"instance": "2.0.0-invalid",
|
|
18
106
|
"expectedCodes": ["SCHEMA_VERSION_UNSUPPORTED"]
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"caseId": "theme-contract-invalid-effba6f429bafc52",
|
|
110
|
+
"coveredRuleIds": [
|
|
111
|
+
"theme-contract:#/$defs/templateComposition/oneOf/3/properties/schemaVersion:const"
|
|
112
|
+
],
|
|
113
|
+
"schemaId": "urn:gala:schema:theme-contract:2.0.0",
|
|
114
|
+
"schemaPointer": "#/$defs/templateComposition/oneOf/3/properties/schemaVersion",
|
|
115
|
+
"keyword": "const",
|
|
116
|
+
"instance": "2.0.0-invalid",
|
|
117
|
+
"expectedCodes": ["SCHEMA_VERSION_UNSUPPORTED"]
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"caseId": "theme-contract-invalid-f3d5a4712cc2b74d",
|
|
121
|
+
"coveredRuleIds": [
|
|
122
|
+
"theme-contract:#/$defs/templateComposition/oneOf/0/properties/schemaVersion:const"
|
|
123
|
+
],
|
|
124
|
+
"schemaId": "urn:gala:schema:theme-contract:2.0.0",
|
|
125
|
+
"schemaPointer": "#/$defs/templateComposition/oneOf/0/properties/schemaVersion",
|
|
126
|
+
"keyword": "const",
|
|
127
|
+
"instance": "2.0.0-invalid",
|
|
128
|
+
"expectedCodes": ["SCHEMA_VERSION_UNSUPPORTED"]
|
|
19
129
|
}
|
|
20
130
|
]
|