@rathnasgala2/schemas 3.9.0 → 3.11.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 +255 -9
- package/docs/catalogs/app-components.json +71 -1
- package/docs/catalogs/app-routes.json +27 -4
- package/docs/catalogs/schema-inventory.json +5 -5
- package/examples/valid/appearance/rules.json +105 -1
- package/examples/valid/build-input/rules.json +105 -1
- package/examples/valid/theme-contract/rules.json +276 -2
- package/fixtures/boundary/appearance/rules.json +105 -12
- package/fixtures/boundary/build-input/rules.json +105 -12
- package/fixtures/boundary/theme-contract/rules.json +386 -2
- package/fixtures/invalid/appearance/REQUEST_FIELD_UNKNOWN/cases.json +33 -0
- package/fixtures/invalid/appearance/SCHEMA_OBJECT_TOO_LARGE/cases.json +0 -13
- package/fixtures/invalid/appearance/SCHEMA_PATTERN_INVALID/cases.json +68 -0
- package/fixtures/invalid/appearance/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +66 -0
- package/fixtures/invalid/appearance/SCHEMA_TYPE_INVALID/cases.json +99 -0
- package/fixtures/invalid/build-input/REQUEST_FIELD_UNKNOWN/cases.json +33 -0
- package/fixtures/invalid/build-input/SCHEMA_PATTERN_INVALID/cases.json +66 -0
- package/fixtures/invalid/build-input/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +66 -0
- package/fixtures/invalid/build-input/SCHEMA_TYPE_INVALID/cases.json +99 -0
- package/fixtures/invalid/theme-contract/REQUEST_FIELD_UNKNOWN/cases.json +33 -0
- package/fixtures/invalid/theme-contract/SCHEMA_ARRAY_TOO_LONG/cases.json +165 -0
- package/fixtures/invalid/theme-contract/SCHEMA_CONSTANT_INVALID/cases.json +11 -11
- package/fixtures/invalid/theme-contract/SCHEMA_ENUM_INVALID/cases.json +88 -0
- package/fixtures/invalid/theme-contract/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +93 -0
- package/fixtures/invalid/theme-contract/SCHEMA_TYPE_INVALID/cases.json +51 -0
- package/fixtures/manifest.json +1955 -35
- package/fixtures/unknown-field/appearance/rules.json +54 -1
- package/fixtures/unknown-field/build-input/rules.json +54 -1
- package/fixtures/unknown-field/theme-contract/rules.json +70 -1
- package/generated/browser/validator-core.mjs +3 -3
- package/generated/typescript/contracts/appearance.d.ts +14 -1
- package/generated/typescript/contracts/build-input.d.ts +14 -1
- package/generated/typescript/contracts/theme-contract.d.ts +51 -0
- package/openapi/http-catalog.json +38 -2
- package/openapi/openapi.yaml +598 -3
- package/package.json +10 -1
- package/parity/palette/golden-vectors.json +883 -0
- package/parity/palette/stress-corpus.json +521 -0
- package/parity/palette/theme-default.fixture.json +698 -0
- package/sbom.cdx.json +23 -23
- package/schemas/appearance.schema.json +30 -3
- package/schemas/build-input.schema.json +30 -3
- package/schemas/theme-contract.schema.json +185 -1
- package/src/palette.js +919 -0
- package/types/palette.d.ts +305 -0
- package/fixtures/invalid/build-input/SCHEMA_OBJECT_TOO_LARGE/cases.json +0 -15
|
@@ -165,11 +165,64 @@
|
|
|
165
165
|
"instance": { "showMadeWith": false, "unexpected": true },
|
|
166
166
|
"expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
|
|
167
167
|
},
|
|
168
|
+
{
|
|
169
|
+
"caseId": "appearance-unknown-78e7a761eab25ca7",
|
|
170
|
+
"coveredRuleIds": [
|
|
171
|
+
"appearance:#/$defs/semanticTokens/properties/canvas/properties/dark:pattern",
|
|
172
|
+
"appearance:#/$defs/semanticTokens/properties/canvas/properties/dark:type",
|
|
173
|
+
"appearance:#/$defs/semanticTokens/properties/canvas/properties/light:pattern",
|
|
174
|
+
"appearance:#/$defs/semanticTokens/properties/canvas/properties/light:type",
|
|
175
|
+
"appearance:#/$defs/semanticTokens/properties/canvas:additionalProperties",
|
|
176
|
+
"appearance:#/$defs/semanticTokens/properties/canvas:required:dark",
|
|
177
|
+
"appearance:#/$defs/semanticTokens/properties/canvas:required:light",
|
|
178
|
+
"appearance:#/$defs/semanticTokens/properties/canvas:type"
|
|
179
|
+
],
|
|
180
|
+
"schemaId": "urn:gala:schema:appearance:2.0.0",
|
|
181
|
+
"schemaPointer": "#/$defs/semanticTokens/properties/canvas",
|
|
182
|
+
"keyword": "additionalProperties",
|
|
183
|
+
"instance": { "light": "#000000", "dark": "#000000", "unexpected": true },
|
|
184
|
+
"expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"caseId": "appearance-unknown-ace067b399cf0427",
|
|
188
|
+
"coveredRuleIds": [
|
|
189
|
+
"appearance:#/$defs/semanticTokens/properties/text/properties/dark:pattern",
|
|
190
|
+
"appearance:#/$defs/semanticTokens/properties/text/properties/dark:type",
|
|
191
|
+
"appearance:#/$defs/semanticTokens/properties/text/properties/light:pattern",
|
|
192
|
+
"appearance:#/$defs/semanticTokens/properties/text/properties/light:type",
|
|
193
|
+
"appearance:#/$defs/semanticTokens/properties/text:additionalProperties",
|
|
194
|
+
"appearance:#/$defs/semanticTokens/properties/text:required:dark",
|
|
195
|
+
"appearance:#/$defs/semanticTokens/properties/text:required:light",
|
|
196
|
+
"appearance:#/$defs/semanticTokens/properties/text:type"
|
|
197
|
+
],
|
|
198
|
+
"schemaId": "urn:gala:schema:appearance:2.0.0",
|
|
199
|
+
"schemaPointer": "#/$defs/semanticTokens/properties/text",
|
|
200
|
+
"keyword": "additionalProperties",
|
|
201
|
+
"instance": { "light": "#000000", "dark": "#000000", "unexpected": true },
|
|
202
|
+
"expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"caseId": "appearance-unknown-de3b662db45eefe2",
|
|
206
|
+
"coveredRuleIds": [
|
|
207
|
+
"appearance:#/$defs/semanticTokens/properties/accent/properties/dark:pattern",
|
|
208
|
+
"appearance:#/$defs/semanticTokens/properties/accent/properties/dark:type",
|
|
209
|
+
"appearance:#/$defs/semanticTokens/properties/accent/properties/light:pattern",
|
|
210
|
+
"appearance:#/$defs/semanticTokens/properties/accent/properties/light:type",
|
|
211
|
+
"appearance:#/$defs/semanticTokens/properties/accent:additionalProperties",
|
|
212
|
+
"appearance:#/$defs/semanticTokens/properties/accent:required:dark",
|
|
213
|
+
"appearance:#/$defs/semanticTokens/properties/accent:required:light",
|
|
214
|
+
"appearance:#/$defs/semanticTokens/properties/accent:type"
|
|
215
|
+
],
|
|
216
|
+
"schemaId": "urn:gala:schema:appearance:2.0.0",
|
|
217
|
+
"schemaPointer": "#/$defs/semanticTokens/properties/accent",
|
|
218
|
+
"keyword": "additionalProperties",
|
|
219
|
+
"instance": { "light": "#000000", "dark": "#000000", "unexpected": true },
|
|
220
|
+
"expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
|
|
221
|
+
},
|
|
168
222
|
{
|
|
169
223
|
"caseId": "appearance-unknown-e01b29a6b0d28dc0",
|
|
170
224
|
"coveredRuleIds": [
|
|
171
225
|
"appearance:#/$defs/semanticTokens:additionalProperties",
|
|
172
|
-
"appearance:#/$defs/semanticTokens:maxProperties",
|
|
173
226
|
"appearance:#/$defs/semanticTokens:type"
|
|
174
227
|
],
|
|
175
228
|
"schemaId": "urn:gala:schema:appearance:2.0.0",
|
|
@@ -1045,6 +1045,24 @@
|
|
|
1045
1045
|
"instance": { "showMadeWith": false, "unexpected": true },
|
|
1046
1046
|
"expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
|
|
1047
1047
|
},
|
|
1048
|
+
{
|
|
1049
|
+
"caseId": "build-input-unknown-78e7a761eab25ca7",
|
|
1050
|
+
"coveredRuleIds": [
|
|
1051
|
+
"build-input:#/$defs/semanticTokens/properties/canvas/properties/dark:pattern",
|
|
1052
|
+
"build-input:#/$defs/semanticTokens/properties/canvas/properties/dark:type",
|
|
1053
|
+
"build-input:#/$defs/semanticTokens/properties/canvas/properties/light:pattern",
|
|
1054
|
+
"build-input:#/$defs/semanticTokens/properties/canvas/properties/light:type",
|
|
1055
|
+
"build-input:#/$defs/semanticTokens/properties/canvas:additionalProperties",
|
|
1056
|
+
"build-input:#/$defs/semanticTokens/properties/canvas:required:dark",
|
|
1057
|
+
"build-input:#/$defs/semanticTokens/properties/canvas:required:light",
|
|
1058
|
+
"build-input:#/$defs/semanticTokens/properties/canvas:type"
|
|
1059
|
+
],
|
|
1060
|
+
"schemaId": "urn:gala:schema:build-input:2.0.0",
|
|
1061
|
+
"schemaPointer": "#/$defs/semanticTokens/properties/canvas",
|
|
1062
|
+
"keyword": "additionalProperties",
|
|
1063
|
+
"instance": { "light": "#000000", "dark": "#000000", "unexpected": true },
|
|
1064
|
+
"expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
|
|
1065
|
+
},
|
|
1048
1066
|
{
|
|
1049
1067
|
"caseId": "build-input-unknown-7d80f5971b255b6b",
|
|
1050
1068
|
"coveredRuleIds": [
|
|
@@ -1155,6 +1173,24 @@
|
|
|
1155
1173
|
"instance": { "reactions": false, "comments": false, "unexpected": true },
|
|
1156
1174
|
"expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
|
|
1157
1175
|
},
|
|
1176
|
+
{
|
|
1177
|
+
"caseId": "build-input-unknown-ace067b399cf0427",
|
|
1178
|
+
"coveredRuleIds": [
|
|
1179
|
+
"build-input:#/$defs/semanticTokens/properties/text/properties/dark:pattern",
|
|
1180
|
+
"build-input:#/$defs/semanticTokens/properties/text/properties/dark:type",
|
|
1181
|
+
"build-input:#/$defs/semanticTokens/properties/text/properties/light:pattern",
|
|
1182
|
+
"build-input:#/$defs/semanticTokens/properties/text/properties/light:type",
|
|
1183
|
+
"build-input:#/$defs/semanticTokens/properties/text:additionalProperties",
|
|
1184
|
+
"build-input:#/$defs/semanticTokens/properties/text:required:dark",
|
|
1185
|
+
"build-input:#/$defs/semanticTokens/properties/text:required:light",
|
|
1186
|
+
"build-input:#/$defs/semanticTokens/properties/text:type"
|
|
1187
|
+
],
|
|
1188
|
+
"schemaId": "urn:gala:schema:build-input:2.0.0",
|
|
1189
|
+
"schemaPointer": "#/$defs/semanticTokens/properties/text",
|
|
1190
|
+
"keyword": "additionalProperties",
|
|
1191
|
+
"instance": { "light": "#000000", "dark": "#000000", "unexpected": true },
|
|
1192
|
+
"expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
|
|
1193
|
+
},
|
|
1158
1194
|
{
|
|
1159
1195
|
"caseId": "build-input-unknown-ad3a9e70024dcd1c",
|
|
1160
1196
|
"coveredRuleIds": [
|
|
@@ -1230,11 +1266,28 @@
|
|
|
1230
1266
|
},
|
|
1231
1267
|
"expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
|
|
1232
1268
|
},
|
|
1269
|
+
{
|
|
1270
|
+
"caseId": "build-input-unknown-de3b662db45eefe2",
|
|
1271
|
+
"coveredRuleIds": [
|
|
1272
|
+
"build-input:#/$defs/semanticTokens/properties/accent/properties/dark:pattern",
|
|
1273
|
+
"build-input:#/$defs/semanticTokens/properties/accent/properties/dark:type",
|
|
1274
|
+
"build-input:#/$defs/semanticTokens/properties/accent/properties/light:pattern",
|
|
1275
|
+
"build-input:#/$defs/semanticTokens/properties/accent/properties/light:type",
|
|
1276
|
+
"build-input:#/$defs/semanticTokens/properties/accent:additionalProperties",
|
|
1277
|
+
"build-input:#/$defs/semanticTokens/properties/accent:required:dark",
|
|
1278
|
+
"build-input:#/$defs/semanticTokens/properties/accent:required:light",
|
|
1279
|
+
"build-input:#/$defs/semanticTokens/properties/accent:type"
|
|
1280
|
+
],
|
|
1281
|
+
"schemaId": "urn:gala:schema:build-input:2.0.0",
|
|
1282
|
+
"schemaPointer": "#/$defs/semanticTokens/properties/accent",
|
|
1283
|
+
"keyword": "additionalProperties",
|
|
1284
|
+
"instance": { "light": "#000000", "dark": "#000000", "unexpected": true },
|
|
1285
|
+
"expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
|
|
1286
|
+
},
|
|
1233
1287
|
{
|
|
1234
1288
|
"caseId": "build-input-unknown-e01b29a6b0d28dc0",
|
|
1235
1289
|
"coveredRuleIds": [
|
|
1236
1290
|
"build-input:#/$defs/semanticTokens:additionalProperties",
|
|
1237
|
-
"build-input:#/$defs/semanticTokens:maxProperties",
|
|
1238
1291
|
"build-input:#/$defs/semanticTokens:type"
|
|
1239
1292
|
],
|
|
1240
1293
|
"schemaId": "urn:gala:schema:build-input:2.0.0",
|
|
@@ -225,7 +225,7 @@
|
|
|
225
225
|
"theme-contract:#/allOf/2/then/allOf/5/if:required:themeId",
|
|
226
226
|
"theme-contract:#/allOf/2/then/allOf/5/then/properties/composition/properties/profile:const",
|
|
227
227
|
"theme-contract:#/allOf/2/then/allOf/5/then/properties/composition:required:profile",
|
|
228
|
-
"theme-contract:#/allOf/2/then/properties/templateRange:
|
|
228
|
+
"theme-contract:#/allOf/2/then/properties/templateRange:enum",
|
|
229
229
|
"theme-contract:#/allOf/2/then:required:composition",
|
|
230
230
|
"theme-contract:#/allOf/3/if/properties/themeId:const",
|
|
231
231
|
"theme-contract:#/allOf/3/if:required:themeId",
|
|
@@ -1325,6 +1325,51 @@
|
|
|
1325
1325
|
},
|
|
1326
1326
|
"expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
|
|
1327
1327
|
},
|
|
1328
|
+
{
|
|
1329
|
+
"caseId": "theme-contract-unknown-e4f0412c78d67aae",
|
|
1330
|
+
"coveredRuleIds": [
|
|
1331
|
+
"theme-contract:#/$defs/paletteFollow/allOf/0/if/properties/key:enum",
|
|
1332
|
+
"theme-contract:#/$defs/paletteFollow/allOf/0/if:required:key",
|
|
1333
|
+
"theme-contract:#/$defs/paletteFollow/allOf/0/then/properties/dark:maxItems",
|
|
1334
|
+
"theme-contract:#/$defs/paletteFollow/allOf/0/then/properties/light:maxItems",
|
|
1335
|
+
"theme-contract:#/$defs/paletteFollow/allOf/1/if/properties/key:enum",
|
|
1336
|
+
"theme-contract:#/$defs/paletteFollow/allOf/1/if:required:key",
|
|
1337
|
+
"theme-contract:#/$defs/paletteFollow/allOf/1/then/properties/dark:maxItems",
|
|
1338
|
+
"theme-contract:#/$defs/paletteFollow/allOf/1/then/properties/light:maxItems",
|
|
1339
|
+
"theme-contract:#/$defs/paletteFollow/allOf/2/if/properties/key:enum",
|
|
1340
|
+
"theme-contract:#/$defs/paletteFollow/allOf/2/if:required:key",
|
|
1341
|
+
"theme-contract:#/$defs/paletteFollow/allOf/2/then/properties/dark:maxItems",
|
|
1342
|
+
"theme-contract:#/$defs/paletteFollow/allOf/2/then/properties/light:maxItems",
|
|
1343
|
+
"theme-contract:#/$defs/paletteFollow/allOf/3/if/properties/key:enum",
|
|
1344
|
+
"theme-contract:#/$defs/paletteFollow/allOf/3/if:required:key",
|
|
1345
|
+
"theme-contract:#/$defs/paletteFollow/allOf/3/then/properties/dark:maxItems",
|
|
1346
|
+
"theme-contract:#/$defs/paletteFollow/allOf/3/then/properties/light:maxItems",
|
|
1347
|
+
"theme-contract:#/$defs/paletteFollow/properties/dark/items:enum",
|
|
1348
|
+
"theme-contract:#/$defs/paletteFollow/properties/dark:maxItems",
|
|
1349
|
+
"theme-contract:#/$defs/paletteFollow/properties/dark:minItems",
|
|
1350
|
+
"theme-contract:#/$defs/paletteFollow/properties/dark:type",
|
|
1351
|
+
"theme-contract:#/$defs/paletteFollow/properties/key:enum",
|
|
1352
|
+
"theme-contract:#/$defs/paletteFollow/properties/light/items:enum",
|
|
1353
|
+
"theme-contract:#/$defs/paletteFollow/properties/light:maxItems",
|
|
1354
|
+
"theme-contract:#/$defs/paletteFollow/properties/light:minItems",
|
|
1355
|
+
"theme-contract:#/$defs/paletteFollow/properties/light:type",
|
|
1356
|
+
"theme-contract:#/$defs/paletteFollow:additionalProperties",
|
|
1357
|
+
"theme-contract:#/$defs/paletteFollow:required:dark",
|
|
1358
|
+
"theme-contract:#/$defs/paletteFollow:required:key",
|
|
1359
|
+
"theme-contract:#/$defs/paletteFollow:required:light",
|
|
1360
|
+
"theme-contract:#/$defs/paletteFollow:type"
|
|
1361
|
+
],
|
|
1362
|
+
"schemaId": "urn:gala:schema:theme-contract:2.0.0",
|
|
1363
|
+
"schemaPointer": "#/$defs/paletteFollow",
|
|
1364
|
+
"keyword": "additionalProperties",
|
|
1365
|
+
"instance": {
|
|
1366
|
+
"key": "border-button",
|
|
1367
|
+
"light": ["accent"],
|
|
1368
|
+
"dark": ["accent"],
|
|
1369
|
+
"unexpected": true
|
|
1370
|
+
},
|
|
1371
|
+
"expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
|
|
1372
|
+
},
|
|
1328
1373
|
{
|
|
1329
1374
|
"caseId": "theme-contract-unknown-e8970dd0fa90ec4a",
|
|
1330
1375
|
"coveredRuleIds": [
|
|
@@ -1396,5 +1441,29 @@
|
|
|
1396
1441
|
"unexpected": true
|
|
1397
1442
|
},
|
|
1398
1443
|
"expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
|
|
1444
|
+
},
|
|
1445
|
+
{
|
|
1446
|
+
"caseId": "theme-contract-unknown-fd3ae1f1085eb0ae",
|
|
1447
|
+
"coveredRuleIds": [
|
|
1448
|
+
"theme-contract:#/properties/palette/properties/follow:maxItems",
|
|
1449
|
+
"theme-contract:#/properties/palette/properties/follow:minItems",
|
|
1450
|
+
"theme-contract:#/properties/palette/properties/follow:type",
|
|
1451
|
+
"theme-contract:#/properties/palette/properties/profile:const",
|
|
1452
|
+
"theme-contract:#/properties/palette:additionalProperties",
|
|
1453
|
+
"theme-contract:#/properties/palette:required:follow",
|
|
1454
|
+
"theme-contract:#/properties/palette:required:profile",
|
|
1455
|
+
"theme-contract:#/properties/palette:type"
|
|
1456
|
+
],
|
|
1457
|
+
"schemaId": "urn:gala:schema:theme-contract:2.0.0",
|
|
1458
|
+
"schemaPointer": "#/properties/palette",
|
|
1459
|
+
"keyword": "additionalProperties",
|
|
1460
|
+
"instance": {
|
|
1461
|
+
"profile": "gala-palette-follow-v1",
|
|
1462
|
+
"follow": [
|
|
1463
|
+
{ "key": "border-button", "light": ["accent"], "dark": ["accent"] }
|
|
1464
|
+
],
|
|
1465
|
+
"unexpected": true
|
|
1466
|
+
},
|
|
1467
|
+
"expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
|
|
1399
1468
|
}
|
|
1400
1469
|
]
|