@rathnasgala2/schemas 2.15.0 → 2.17.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/README.md +56 -0
- package/THIRD_PARTY_LICENSES.json +1 -1
- package/diagnostics/diagnostic-map.json +61 -0
- package/docs/catalogs/schema-inventory.json +5 -5
- package/examples/valid/build-input/rules.json +150 -0
- package/fixtures/boundary/build-input/rules.json +176 -0
- package/fixtures/invalid/build-input/REQUEST_FIELD_UNKNOWN/cases.json +17 -0
- package/fixtures/invalid/build-input/SCHEMA_ARRAY_TOO_LONG/cases.json +15 -0
- package/fixtures/invalid/build-input/SCHEMA_ENUM_INVALID/cases.json +44 -0
- package/fixtures/invalid/build-input/SCHEMA_NUMBER_TOO_LARGE/cases.json +33 -0
- package/fixtures/invalid/build-input/SCHEMA_NUMBER_TOO_SMALL/cases.json +11 -0
- package/fixtures/invalid/build-input/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +93 -0
- package/fixtures/invalid/build-input/SCHEMA_TYPE_INVALID/cases.json +31 -0
- package/fixtures/manifest.json +483 -4
- package/fixtures/unknown-field/build-input/rules.json +37 -0
- package/generated/browser/validator-core.mjs +3 -3
- package/generated/typescript/contracts/artifact-manifest.d.ts +16 -2
- package/generated/typescript/contracts/build-input.d.ts +20 -0
- package/generated/typescript/contracts/build-provenance.d.ts +16 -2
- package/openapi/http-catalog.json +2 -2
- package/openapi/openapi.yaml +299 -27
- package/package.json +1 -1
- package/sbom.cdx.json +23 -23
- package/schemas/artifact-manifest.schema.json +16 -2
- package/schemas/build-input.schema.json +71 -0
- package/schemas/build-provenance.schema.json +16 -2
|
@@ -58,6 +58,17 @@
|
|
|
58
58
|
"length": 512
|
|
59
59
|
}
|
|
60
60
|
},
|
|
61
|
+
{
|
|
62
|
+
"caseId": "build-input-boundary-082b9a414a1cc0eb",
|
|
63
|
+
"coveredRuleIds": [
|
|
64
|
+
"build-input:#/$defs/contentBuildMediaFile/properties/byteLength:minimum",
|
|
65
|
+
"build-input:#/$defs/contentBuildMediaFile/properties/byteLength:type"
|
|
66
|
+
],
|
|
67
|
+
"schemaId": "urn:gala:schema:build-input:2.0.0",
|
|
68
|
+
"schemaPointer": "#/$defs/contentBuildMediaFile/properties/byteLength",
|
|
69
|
+
"keyword": "minimum",
|
|
70
|
+
"instance": 1
|
|
71
|
+
},
|
|
61
72
|
{
|
|
62
73
|
"caseId": "build-input-boundary-09038d27f1dcc6f4",
|
|
63
74
|
"coveredRuleIds": [
|
|
@@ -90,6 +101,16 @@
|
|
|
90
101
|
"sourceDigest": "sha256:0000000000000000000000000000000000000000000000000000000000000001"
|
|
91
102
|
}
|
|
92
103
|
},
|
|
104
|
+
{
|
|
105
|
+
"caseId": "build-input-boundary-0a5e270f1791cb0a",
|
|
106
|
+
"coveredRuleIds": [
|
|
107
|
+
"build-input:#/$defs/contentBuildMediaFile/allOf/2/if:required:mediaType"
|
|
108
|
+
],
|
|
109
|
+
"schemaId": "urn:gala:schema:build-input:2.0.0",
|
|
110
|
+
"schemaPointer": "#/$defs/contentBuildMediaFile/allOf/2/if",
|
|
111
|
+
"keyword": "required",
|
|
112
|
+
"instance": { "mediaType": "video/mp4" }
|
|
113
|
+
},
|
|
93
114
|
{
|
|
94
115
|
"caseId": "build-input-boundary-0e79291d640235c8",
|
|
95
116
|
"coveredRuleIds": [
|
|
@@ -580,6 +601,16 @@
|
|
|
580
601
|
"keyword": "contains",
|
|
581
602
|
"instance": ["light"]
|
|
582
603
|
},
|
|
604
|
+
{
|
|
605
|
+
"caseId": "build-input-boundary-1f7595cb126b31f5",
|
|
606
|
+
"coveredRuleIds": [
|
|
607
|
+
"build-input:#/$defs/contentBuildMediaFile/properties/mediaType:enum"
|
|
608
|
+
],
|
|
609
|
+
"schemaId": "urn:gala:schema:build-input:2.0.0",
|
|
610
|
+
"schemaPointer": "#/$defs/contentBuildMediaFile/properties/mediaType",
|
|
611
|
+
"keyword": "enum",
|
|
612
|
+
"instance": "image/png"
|
|
613
|
+
},
|
|
583
614
|
{
|
|
584
615
|
"caseId": "build-input-boundary-21d490e9f18e9020",
|
|
585
616
|
"coveredRuleIds": [
|
|
@@ -775,6 +806,16 @@
|
|
|
775
806
|
"keyword": "required",
|
|
776
807
|
"instance": { "role": "decorative" }
|
|
777
808
|
},
|
|
809
|
+
{
|
|
810
|
+
"caseId": "build-input-boundary-2c8af4a5139e163c",
|
|
811
|
+
"coveredRuleIds": [
|
|
812
|
+
"build-input:#/$defs/contentBuildMediaFile/allOf/1/if/properties/mediaType:enum"
|
|
813
|
+
],
|
|
814
|
+
"schemaId": "urn:gala:schema:build-input:2.0.0",
|
|
815
|
+
"schemaPointer": "#/$defs/contentBuildMediaFile/allOf/1/if/properties/mediaType",
|
|
816
|
+
"keyword": "enum",
|
|
817
|
+
"instance": "audio/mpeg"
|
|
818
|
+
},
|
|
778
819
|
{
|
|
779
820
|
"caseId": "build-input-boundary-2f3a93f14dcf022a",
|
|
780
821
|
"coveredRuleIds": [
|
|
@@ -1147,6 +1188,16 @@
|
|
|
1147
1188
|
"keyword": "pattern",
|
|
1148
1189
|
"instance": "fixture-1"
|
|
1149
1190
|
},
|
|
1191
|
+
{
|
|
1192
|
+
"caseId": "build-input-boundary-495e81d1e5b4d5ca",
|
|
1193
|
+
"coveredRuleIds": [
|
|
1194
|
+
"build-input:#/$defs/contentBuildMediaFile/allOf/2/if/properties/mediaType:enum"
|
|
1195
|
+
],
|
|
1196
|
+
"schemaId": "urn:gala:schema:build-input:2.0.0",
|
|
1197
|
+
"schemaPointer": "#/$defs/contentBuildMediaFile/allOf/2/if/properties/mediaType",
|
|
1198
|
+
"keyword": "enum",
|
|
1199
|
+
"instance": "video/mp4"
|
|
1200
|
+
},
|
|
1150
1201
|
{
|
|
1151
1202
|
"caseId": "build-input-boundary-4992f9ca5a82874a",
|
|
1152
1203
|
"coveredRuleIds": [
|
|
@@ -1413,6 +1464,16 @@
|
|
|
1413
1464
|
"direction": "minimum"
|
|
1414
1465
|
}
|
|
1415
1466
|
},
|
|
1467
|
+
{
|
|
1468
|
+
"caseId": "build-input-boundary-626f222d5c22b718",
|
|
1469
|
+
"coveredRuleIds": [
|
|
1470
|
+
"build-input:#/$defs/contentBuildMediaFile/allOf/2/then/properties/byteLength:maximum"
|
|
1471
|
+
],
|
|
1472
|
+
"schemaId": "urn:gala:schema:build-input:2.0.0",
|
|
1473
|
+
"schemaPointer": "#/$defs/contentBuildMediaFile/allOf/2/then/properties/byteLength",
|
|
1474
|
+
"keyword": "maximum",
|
|
1475
|
+
"instance": 52428800
|
|
1476
|
+
},
|
|
1416
1477
|
{
|
|
1417
1478
|
"caseId": "build-input-boundary-63726a4f5d6169fe",
|
|
1418
1479
|
"coveredRuleIds": [
|
|
@@ -1837,6 +1898,26 @@
|
|
|
1837
1898
|
}
|
|
1838
1899
|
}
|
|
1839
1900
|
},
|
|
1901
|
+
{
|
|
1902
|
+
"caseId": "build-input-boundary-81cde2bb8d2fcff7",
|
|
1903
|
+
"coveredRuleIds": [
|
|
1904
|
+
"build-input:#/$defs/contentBuildMediaFile:additionalProperties",
|
|
1905
|
+
"build-input:#/$defs/contentBuildMediaFile:required:byteLength",
|
|
1906
|
+
"build-input:#/$defs/contentBuildMediaFile:required:mediaType",
|
|
1907
|
+
"build-input:#/$defs/contentBuildMediaFile:required:path",
|
|
1908
|
+
"build-input:#/$defs/contentBuildMediaFile:required:sourceDigest",
|
|
1909
|
+
"build-input:#/$defs/contentBuildMediaFile:type"
|
|
1910
|
+
],
|
|
1911
|
+
"schemaId": "urn:gala:schema:build-input:2.0.0",
|
|
1912
|
+
"schemaPointer": "#/$defs/contentBuildMediaFile",
|
|
1913
|
+
"keyword": "additionalProperties",
|
|
1914
|
+
"instance": {
|
|
1915
|
+
"path": "content/fixture-1.md",
|
|
1916
|
+
"sourceDigest": "sha256:0000000000000000000000000000000000000000000000000000000000000001",
|
|
1917
|
+
"mediaType": "image/png",
|
|
1918
|
+
"byteLength": 1
|
|
1919
|
+
}
|
|
1920
|
+
},
|
|
1840
1921
|
{
|
|
1841
1922
|
"caseId": "build-input-boundary-83ef50b3c971e4ce",
|
|
1842
1923
|
"coveredRuleIds": [
|
|
@@ -1858,6 +1939,20 @@
|
|
|
1858
1939
|
"keyword": "const",
|
|
1859
1940
|
"instance": "email"
|
|
1860
1941
|
},
|
|
1942
|
+
{
|
|
1943
|
+
"caseId": "build-input-boundary-884e3b3c7e59c6eb",
|
|
1944
|
+
"coveredRuleIds": [
|
|
1945
|
+
"build-input:#/$defs/contentBuildRecord/properties/media:minItems"
|
|
1946
|
+
],
|
|
1947
|
+
"schemaId": "urn:gala:schema:build-input:2.0.0",
|
|
1948
|
+
"schemaPointer": "#/$defs/contentBuildRecord/properties/media",
|
|
1949
|
+
"keyword": "minItems",
|
|
1950
|
+
"recipe": {
|
|
1951
|
+
"kind": "schema-array-boundary",
|
|
1952
|
+
"schemaPointer": "#/$defs/contentBuildRecord/properties/media",
|
|
1953
|
+
"length": 0
|
|
1954
|
+
}
|
|
1955
|
+
},
|
|
1861
1956
|
{
|
|
1862
1957
|
"caseId": "build-input-boundary-88947f29cadb1309",
|
|
1863
1958
|
"coveredRuleIds": [
|
|
@@ -1960,6 +2055,16 @@
|
|
|
1960
2055
|
"direction": "minimum"
|
|
1961
2056
|
}
|
|
1962
2057
|
},
|
|
2058
|
+
{
|
|
2059
|
+
"caseId": "build-input-boundary-935a655c02d893aa",
|
|
2060
|
+
"coveredRuleIds": [
|
|
2061
|
+
"build-input:#/$defs/contentBuildMediaFile/allOf/1/then/properties/byteLength:maximum"
|
|
2062
|
+
],
|
|
2063
|
+
"schemaId": "urn:gala:schema:build-input:2.0.0",
|
|
2064
|
+
"schemaPointer": "#/$defs/contentBuildMediaFile/allOf/1/then/properties/byteLength",
|
|
2065
|
+
"keyword": "maximum",
|
|
2066
|
+
"instance": 20971520
|
|
2067
|
+
},
|
|
1963
2068
|
{
|
|
1964
2069
|
"caseId": "build-input-boundary-93d0686891175779",
|
|
1965
2070
|
"coveredRuleIds": ["build-input:#/$defs/githubPositiveDecimal:maxLength"],
|
|
@@ -2100,6 +2205,20 @@
|
|
|
2100
2205
|
"direction": "maximum"
|
|
2101
2206
|
}
|
|
2102
2207
|
},
|
|
2208
|
+
{
|
|
2209
|
+
"caseId": "build-input-boundary-9ffd571368db88a9",
|
|
2210
|
+
"coveredRuleIds": [
|
|
2211
|
+
"build-input:#/$defs/contentBuildRecord/properties/media:maxItems"
|
|
2212
|
+
],
|
|
2213
|
+
"schemaId": "urn:gala:schema:build-input:2.0.0",
|
|
2214
|
+
"schemaPointer": "#/$defs/contentBuildRecord/properties/media",
|
|
2215
|
+
"keyword": "maxItems",
|
|
2216
|
+
"recipe": {
|
|
2217
|
+
"kind": "schema-array-boundary",
|
|
2218
|
+
"schemaPointer": "#/$defs/contentBuildRecord/properties/media",
|
|
2219
|
+
"length": 200
|
|
2220
|
+
}
|
|
2221
|
+
},
|
|
2103
2222
|
{
|
|
2104
2223
|
"caseId": "build-input-boundary-a14bda95f5cd1138",
|
|
2105
2224
|
"coveredRuleIds": [
|
|
@@ -2110,6 +2229,16 @@
|
|
|
2110
2229
|
"keyword": "const",
|
|
2111
2230
|
"instance": "dark"
|
|
2112
2231
|
},
|
|
2232
|
+
{
|
|
2233
|
+
"caseId": "build-input-boundary-a1fe5afd17fe635e",
|
|
2234
|
+
"coveredRuleIds": [
|
|
2235
|
+
"build-input:#/$defs/contentBuildMediaFile/allOf/0/then/properties/byteLength:maximum"
|
|
2236
|
+
],
|
|
2237
|
+
"schemaId": "urn:gala:schema:build-input:2.0.0",
|
|
2238
|
+
"schemaPointer": "#/$defs/contentBuildMediaFile/allOf/0/then/properties/byteLength",
|
|
2239
|
+
"keyword": "maximum",
|
|
2240
|
+
"instance": 5242880
|
|
2241
|
+
},
|
|
2113
2242
|
{
|
|
2114
2243
|
"caseId": "build-input-boundary-a2562b66dd95e622",
|
|
2115
2244
|
"coveredRuleIds": [
|
|
@@ -2120,6 +2249,16 @@
|
|
|
2120
2249
|
"keyword": "const",
|
|
2121
2250
|
"instance": "light"
|
|
2122
2251
|
},
|
|
2252
|
+
{
|
|
2253
|
+
"caseId": "build-input-boundary-a415546a8ab87529",
|
|
2254
|
+
"coveredRuleIds": [
|
|
2255
|
+
"build-input:#/$defs/contentBuildMediaFile/allOf/1/if:required:mediaType"
|
|
2256
|
+
],
|
|
2257
|
+
"schemaId": "urn:gala:schema:build-input:2.0.0",
|
|
2258
|
+
"schemaPointer": "#/$defs/contentBuildMediaFile/allOf/1/if",
|
|
2259
|
+
"keyword": "required",
|
|
2260
|
+
"instance": { "mediaType": "audio/mpeg" }
|
|
2261
|
+
},
|
|
2123
2262
|
{
|
|
2124
2263
|
"caseId": "build-input-boundary-a4ff54d1e4ec7222",
|
|
2125
2264
|
"coveredRuleIds": [
|
|
@@ -2213,6 +2352,23 @@
|
|
|
2213
2352
|
"length": 3
|
|
2214
2353
|
}
|
|
2215
2354
|
},
|
|
2355
|
+
{
|
|
2356
|
+
"caseId": "build-input-boundary-acc0d4fc1d862159",
|
|
2357
|
+
"coveredRuleIds": [
|
|
2358
|
+
"build-input:#/$defs/contentBuildRecord/properties/media:type"
|
|
2359
|
+
],
|
|
2360
|
+
"schemaId": "urn:gala:schema:build-input:2.0.0",
|
|
2361
|
+
"schemaPointer": "#/$defs/contentBuildRecord/properties/media",
|
|
2362
|
+
"keyword": "type",
|
|
2363
|
+
"instance": [
|
|
2364
|
+
{
|
|
2365
|
+
"path": "content/fixture-1.md",
|
|
2366
|
+
"sourceDigest": "sha256:0000000000000000000000000000000000000000000000000000000000000001",
|
|
2367
|
+
"mediaType": "image/png",
|
|
2368
|
+
"byteLength": 1
|
|
2369
|
+
}
|
|
2370
|
+
]
|
|
2371
|
+
},
|
|
2216
2372
|
{
|
|
2217
2373
|
"caseId": "build-input-boundary-b16096e9a6998b94",
|
|
2218
2374
|
"coveredRuleIds": [
|
|
@@ -2369,6 +2525,16 @@
|
|
|
2369
2525
|
"length": 32
|
|
2370
2526
|
}
|
|
2371
2527
|
},
|
|
2528
|
+
{
|
|
2529
|
+
"caseId": "build-input-boundary-bcd33a245c8a3074",
|
|
2530
|
+
"coveredRuleIds": [
|
|
2531
|
+
"build-input:#/$defs/contentBuildMediaFile/allOf/0/if/properties/mediaType:enum"
|
|
2532
|
+
],
|
|
2533
|
+
"schemaId": "urn:gala:schema:build-input:2.0.0",
|
|
2534
|
+
"schemaPointer": "#/$defs/contentBuildMediaFile/allOf/0/if/properties/mediaType",
|
|
2535
|
+
"keyword": "enum",
|
|
2536
|
+
"instance": "image/png"
|
|
2537
|
+
},
|
|
2372
2538
|
{
|
|
2373
2539
|
"caseId": "build-input-boundary-bcd733cdaa48a015",
|
|
2374
2540
|
"coveredRuleIds": [
|
|
@@ -3021,6 +3187,16 @@
|
|
|
3021
3187
|
"keyword": "type",
|
|
3022
3188
|
"instance": "fixture-1"
|
|
3023
3189
|
},
|
|
3190
|
+
{
|
|
3191
|
+
"caseId": "build-input-boundary-f7ecd9f50b2b42ba",
|
|
3192
|
+
"coveredRuleIds": [
|
|
3193
|
+
"build-input:#/$defs/contentBuildMediaFile/allOf/0/if:required:mediaType"
|
|
3194
|
+
],
|
|
3195
|
+
"schemaId": "urn:gala:schema:build-input:2.0.0",
|
|
3196
|
+
"schemaPointer": "#/$defs/contentBuildMediaFile/allOf/0/if",
|
|
3197
|
+
"keyword": "required",
|
|
3198
|
+
"instance": { "mediaType": "image/png" }
|
|
3199
|
+
},
|
|
3024
3200
|
{
|
|
3025
3201
|
"caseId": "build-input-boundary-f9783184683d71dc",
|
|
3026
3202
|
"coveredRuleIds": [
|
|
@@ -470,6 +470,23 @@
|
|
|
470
470
|
},
|
|
471
471
|
"expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
|
|
472
472
|
},
|
|
473
|
+
{
|
|
474
|
+
"caseId": "build-input-invalid-abb83cb489346ff6",
|
|
475
|
+
"coveredRuleIds": [
|
|
476
|
+
"build-input:#/$defs/contentBuildMediaFile:additionalProperties"
|
|
477
|
+
],
|
|
478
|
+
"schemaId": "urn:gala:schema:build-input:2.0.0",
|
|
479
|
+
"schemaPointer": "#/$defs/contentBuildMediaFile",
|
|
480
|
+
"keyword": "additionalProperties",
|
|
481
|
+
"instance": {
|
|
482
|
+
"path": "content/fixture-1.md",
|
|
483
|
+
"sourceDigest": "sha256:0000000000000000000000000000000000000000000000000000000000000001",
|
|
484
|
+
"mediaType": "image/png",
|
|
485
|
+
"byteLength": 1,
|
|
486
|
+
"unexpected": true
|
|
487
|
+
},
|
|
488
|
+
"expectedCodes": ["REQUEST_FIELD_UNKNOWN"]
|
|
489
|
+
},
|
|
473
490
|
{
|
|
474
491
|
"caseId": "build-input-invalid-b1719a271cd93fb0",
|
|
475
492
|
"coveredRuleIds": [
|
|
@@ -42,6 +42,21 @@
|
|
|
42
42
|
},
|
|
43
43
|
"expectedCodes": ["SCHEMA_ARRAY_TOO_LONG"]
|
|
44
44
|
},
|
|
45
|
+
{
|
|
46
|
+
"caseId": "build-input-invalid-114e453676c7b7a3",
|
|
47
|
+
"coveredRuleIds": [
|
|
48
|
+
"build-input:#/$defs/contentBuildRecord/properties/media:maxItems"
|
|
49
|
+
],
|
|
50
|
+
"schemaId": "urn:gala:schema:build-input:2.0.0",
|
|
51
|
+
"schemaPointer": "#/$defs/contentBuildRecord/properties/media",
|
|
52
|
+
"keyword": "maxItems",
|
|
53
|
+
"recipe": {
|
|
54
|
+
"kind": "schema-array-count",
|
|
55
|
+
"schemaPointer": "#/$defs/contentBuildRecord/properties/media",
|
|
56
|
+
"length": 201
|
|
57
|
+
},
|
|
58
|
+
"expectedCodes": ["SCHEMA_ARRAY_TOO_LONG"]
|
|
59
|
+
},
|
|
45
60
|
{
|
|
46
61
|
"caseId": "build-input-invalid-164694aef88c10a0",
|
|
47
62
|
"coveredRuleIds": [
|
|
@@ -74,6 +74,17 @@
|
|
|
74
74
|
"instance": "__invalid_enum__",
|
|
75
75
|
"expectedCodes": ["SCHEMA_ENUM_INVALID"]
|
|
76
76
|
},
|
|
77
|
+
{
|
|
78
|
+
"caseId": "build-input-invalid-b12389ca44d6e5b3",
|
|
79
|
+
"coveredRuleIds": [
|
|
80
|
+
"build-input:#/$defs/contentBuildMediaFile/allOf/2/if/properties/mediaType:enum"
|
|
81
|
+
],
|
|
82
|
+
"schemaId": "urn:gala:schema:build-input:2.0.0",
|
|
83
|
+
"schemaPointer": "#/$defs/contentBuildMediaFile/allOf/2/if/properties/mediaType",
|
|
84
|
+
"keyword": "enum",
|
|
85
|
+
"instance": "__invalid_enum__",
|
|
86
|
+
"expectedCodes": ["SCHEMA_ENUM_INVALID"]
|
|
87
|
+
},
|
|
77
88
|
{
|
|
78
89
|
"caseId": "build-input-invalid-b5cb7fee0e8a32e2",
|
|
79
90
|
"coveredRuleIds": [
|
|
@@ -116,6 +127,17 @@
|
|
|
116
127
|
"instance": "__invalid_enum__",
|
|
117
128
|
"expectedCodes": ["SCHEMA_ENUM_INVALID"]
|
|
118
129
|
},
|
|
130
|
+
{
|
|
131
|
+
"caseId": "build-input-invalid-ca371ffaea111a1d",
|
|
132
|
+
"coveredRuleIds": [
|
|
133
|
+
"build-input:#/$defs/contentBuildMediaFile/allOf/1/if/properties/mediaType:enum"
|
|
134
|
+
],
|
|
135
|
+
"schemaId": "urn:gala:schema:build-input:2.0.0",
|
|
136
|
+
"schemaPointer": "#/$defs/contentBuildMediaFile/allOf/1/if/properties/mediaType",
|
|
137
|
+
"keyword": "enum",
|
|
138
|
+
"instance": "__invalid_enum__",
|
|
139
|
+
"expectedCodes": ["SCHEMA_ENUM_INVALID"]
|
|
140
|
+
},
|
|
119
141
|
{
|
|
120
142
|
"caseId": "build-input-invalid-d14ae1223dc14265",
|
|
121
143
|
"coveredRuleIds": [
|
|
@@ -148,5 +170,27 @@
|
|
|
148
170
|
"keyword": "enum",
|
|
149
171
|
"instance": "__invalid_enum__",
|
|
150
172
|
"expectedCodes": ["SCHEMA_ENUM_INVALID"]
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"caseId": "build-input-invalid-e6c75454737afbd6",
|
|
176
|
+
"coveredRuleIds": [
|
|
177
|
+
"build-input:#/$defs/contentBuildMediaFile/properties/mediaType:enum"
|
|
178
|
+
],
|
|
179
|
+
"schemaId": "urn:gala:schema:build-input:2.0.0",
|
|
180
|
+
"schemaPointer": "#/$defs/contentBuildMediaFile/properties/mediaType",
|
|
181
|
+
"keyword": "enum",
|
|
182
|
+
"instance": "__invalid_enum__",
|
|
183
|
+
"expectedCodes": ["SCHEMA_ENUM_INVALID"]
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"caseId": "build-input-invalid-edc78504b95bfd31",
|
|
187
|
+
"coveredRuleIds": [
|
|
188
|
+
"build-input:#/$defs/contentBuildMediaFile/allOf/0/if/properties/mediaType:enum"
|
|
189
|
+
],
|
|
190
|
+
"schemaId": "urn:gala:schema:build-input:2.0.0",
|
|
191
|
+
"schemaPointer": "#/$defs/contentBuildMediaFile/allOf/0/if/properties/mediaType",
|
|
192
|
+
"keyword": "enum",
|
|
193
|
+
"instance": "__invalid_enum__",
|
|
194
|
+
"expectedCodes": ["SCHEMA_ENUM_INVALID"]
|
|
151
195
|
}
|
|
152
196
|
]
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"caseId": "build-input-invalid-2075cbd038f8406d",
|
|
4
|
+
"coveredRuleIds": [
|
|
5
|
+
"build-input:#/$defs/contentBuildMediaFile/allOf/2/then/properties/byteLength:maximum"
|
|
6
|
+
],
|
|
7
|
+
"schemaId": "urn:gala:schema:build-input:2.0.0",
|
|
8
|
+
"schemaPointer": "#/$defs/contentBuildMediaFile/allOf/2/then/properties/byteLength",
|
|
9
|
+
"keyword": "maximum",
|
|
10
|
+
"instance": 52428801,
|
|
11
|
+
"expectedCodes": ["SCHEMA_NUMBER_TOO_LARGE"]
|
|
12
|
+
},
|
|
2
13
|
{
|
|
3
14
|
"caseId": "build-input-invalid-b97973873c4a39b5",
|
|
4
15
|
"coveredRuleIds": [
|
|
@@ -9,5 +20,27 @@
|
|
|
9
20
|
"keyword": "maximum",
|
|
10
21
|
"instance": 1000001,
|
|
11
22
|
"expectedCodes": ["SCHEMA_NUMBER_TOO_LARGE"]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"caseId": "build-input-invalid-f5bc24b5544584e1",
|
|
26
|
+
"coveredRuleIds": [
|
|
27
|
+
"build-input:#/$defs/contentBuildMediaFile/allOf/0/then/properties/byteLength:maximum"
|
|
28
|
+
],
|
|
29
|
+
"schemaId": "urn:gala:schema:build-input:2.0.0",
|
|
30
|
+
"schemaPointer": "#/$defs/contentBuildMediaFile/allOf/0/then/properties/byteLength",
|
|
31
|
+
"keyword": "maximum",
|
|
32
|
+
"instance": 5242881,
|
|
33
|
+
"expectedCodes": ["SCHEMA_NUMBER_TOO_LARGE"]
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"caseId": "build-input-invalid-f5ebfd04c39c56ec",
|
|
37
|
+
"coveredRuleIds": [
|
|
38
|
+
"build-input:#/$defs/contentBuildMediaFile/allOf/1/then/properties/byteLength:maximum"
|
|
39
|
+
],
|
|
40
|
+
"schemaId": "urn:gala:schema:build-input:2.0.0",
|
|
41
|
+
"schemaPointer": "#/$defs/contentBuildMediaFile/allOf/1/then/properties/byteLength",
|
|
42
|
+
"keyword": "maximum",
|
|
43
|
+
"instance": 20971521,
|
|
44
|
+
"expectedCodes": ["SCHEMA_NUMBER_TOO_LARGE"]
|
|
12
45
|
}
|
|
13
46
|
]
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"caseId": "build-input-invalid-7d7008685fde4378",
|
|
4
|
+
"coveredRuleIds": [
|
|
5
|
+
"build-input:#/$defs/contentBuildMediaFile/properties/byteLength:minimum"
|
|
6
|
+
],
|
|
7
|
+
"schemaId": "urn:gala:schema:build-input:2.0.0",
|
|
8
|
+
"schemaPointer": "#/$defs/contentBuildMediaFile/properties/byteLength",
|
|
9
|
+
"keyword": "minimum",
|
|
10
|
+
"instance": 0,
|
|
11
|
+
"expectedCodes": ["SCHEMA_NUMBER_TOO_SMALL"]
|
|
12
|
+
},
|
|
2
13
|
{
|
|
3
14
|
"caseId": "build-input-invalid-f08214fcddcfb213",
|
|
4
15
|
"coveredRuleIds": [
|
|
@@ -737,6 +737,17 @@
|
|
|
737
737
|
},
|
|
738
738
|
"expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
|
|
739
739
|
},
|
|
740
|
+
{
|
|
741
|
+
"caseId": "build-input-invalid-0f6fa7aef85ce918",
|
|
742
|
+
"coveredRuleIds": [
|
|
743
|
+
"build-input:#/$defs/contentBuildMediaFile/allOf/1/if:required:mediaType"
|
|
744
|
+
],
|
|
745
|
+
"schemaId": "urn:gala:schema:build-input:2.0.0",
|
|
746
|
+
"schemaPointer": "#/$defs/contentBuildMediaFile/allOf/1/if",
|
|
747
|
+
"keyword": "required",
|
|
748
|
+
"instance": {},
|
|
749
|
+
"expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
|
|
750
|
+
},
|
|
740
751
|
{
|
|
741
752
|
"caseId": "build-input-invalid-12231956486980db",
|
|
742
753
|
"coveredRuleIds": [
|
|
@@ -960,6 +971,17 @@
|
|
|
960
971
|
"instance": { "language": "en-US", "displayName": "fixture-1" },
|
|
961
972
|
"expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
|
|
962
973
|
},
|
|
974
|
+
{
|
|
975
|
+
"caseId": "build-input-invalid-271bf42eea501fca",
|
|
976
|
+
"coveredRuleIds": [
|
|
977
|
+
"build-input:#/$defs/contentBuildMediaFile/allOf/0/if:required:mediaType"
|
|
978
|
+
],
|
|
979
|
+
"schemaId": "urn:gala:schema:build-input:2.0.0",
|
|
980
|
+
"schemaPointer": "#/$defs/contentBuildMediaFile/allOf/0/if",
|
|
981
|
+
"keyword": "required",
|
|
982
|
+
"instance": {},
|
|
983
|
+
"expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
|
|
984
|
+
},
|
|
963
985
|
{
|
|
964
986
|
"caseId": "build-input-invalid-27262ea441a965d7",
|
|
965
987
|
"coveredRuleIds": ["build-input:#:required:contractVersion"],
|
|
@@ -1343,6 +1365,21 @@
|
|
|
1343
1365
|
},
|
|
1344
1366
|
"expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
|
|
1345
1367
|
},
|
|
1368
|
+
{
|
|
1369
|
+
"caseId": "build-input-invalid-3c49f103d029be74",
|
|
1370
|
+
"coveredRuleIds": [
|
|
1371
|
+
"build-input:#/$defs/contentBuildMediaFile:required:path"
|
|
1372
|
+
],
|
|
1373
|
+
"schemaId": "urn:gala:schema:build-input:2.0.0",
|
|
1374
|
+
"schemaPointer": "#/$defs/contentBuildMediaFile",
|
|
1375
|
+
"keyword": "required",
|
|
1376
|
+
"instance": {
|
|
1377
|
+
"sourceDigest": "sha256:0000000000000000000000000000000000000000000000000000000000000001",
|
|
1378
|
+
"mediaType": "image/png",
|
|
1379
|
+
"byteLength": 1
|
|
1380
|
+
},
|
|
1381
|
+
"expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
|
|
1382
|
+
},
|
|
1346
1383
|
{
|
|
1347
1384
|
"caseId": "build-input-invalid-42deb5340a4f19d6",
|
|
1348
1385
|
"coveredRuleIds": [
|
|
@@ -2426,6 +2463,21 @@
|
|
|
2426
2463
|
},
|
|
2427
2464
|
"expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
|
|
2428
2465
|
},
|
|
2466
|
+
{
|
|
2467
|
+
"caseId": "build-input-invalid-702feb4bc269690c",
|
|
2468
|
+
"coveredRuleIds": [
|
|
2469
|
+
"build-input:#/$defs/contentBuildMediaFile:required:byteLength"
|
|
2470
|
+
],
|
|
2471
|
+
"schemaId": "urn:gala:schema:build-input:2.0.0",
|
|
2472
|
+
"schemaPointer": "#/$defs/contentBuildMediaFile",
|
|
2473
|
+
"keyword": "required",
|
|
2474
|
+
"instance": {
|
|
2475
|
+
"path": "content/fixture-1.md",
|
|
2476
|
+
"sourceDigest": "sha256:0000000000000000000000000000000000000000000000000000000000000001",
|
|
2477
|
+
"mediaType": "image/png"
|
|
2478
|
+
},
|
|
2479
|
+
"expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
|
|
2480
|
+
},
|
|
2429
2481
|
{
|
|
2430
2482
|
"caseId": "build-input-invalid-74052d83465c31db",
|
|
2431
2483
|
"coveredRuleIds": ["build-input:#/$defs/packageIdentity:required:registry"],
|
|
@@ -2815,6 +2867,21 @@
|
|
|
2815
2867
|
},
|
|
2816
2868
|
"expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
|
|
2817
2869
|
},
|
|
2870
|
+
{
|
|
2871
|
+
"caseId": "build-input-invalid-7e1ba5a79faf69cb",
|
|
2872
|
+
"coveredRuleIds": [
|
|
2873
|
+
"build-input:#/$defs/contentBuildMediaFile:required:sourceDigest"
|
|
2874
|
+
],
|
|
2875
|
+
"schemaId": "urn:gala:schema:build-input:2.0.0",
|
|
2876
|
+
"schemaPointer": "#/$defs/contentBuildMediaFile",
|
|
2877
|
+
"keyword": "required",
|
|
2878
|
+
"instance": {
|
|
2879
|
+
"path": "content/fixture-1.md",
|
|
2880
|
+
"mediaType": "image/png",
|
|
2881
|
+
"byteLength": 1
|
|
2882
|
+
},
|
|
2883
|
+
"expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
|
|
2884
|
+
},
|
|
2818
2885
|
{
|
|
2819
2886
|
"caseId": "build-input-invalid-7f080df943b1735b",
|
|
2820
2887
|
"coveredRuleIds": ["build-input:#/$defs/buildPackages:required:theme"],
|
|
@@ -3528,6 +3595,21 @@
|
|
|
3528
3595
|
"instance": { "path": "content/fixture-1.md" },
|
|
3529
3596
|
"expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
|
|
3530
3597
|
},
|
|
3598
|
+
{
|
|
3599
|
+
"caseId": "build-input-invalid-a12f8b5eb7882af4",
|
|
3600
|
+
"coveredRuleIds": [
|
|
3601
|
+
"build-input:#/$defs/contentBuildMediaFile:required:mediaType"
|
|
3602
|
+
],
|
|
3603
|
+
"schemaId": "urn:gala:schema:build-input:2.0.0",
|
|
3604
|
+
"schemaPointer": "#/$defs/contentBuildMediaFile",
|
|
3605
|
+
"keyword": "required",
|
|
3606
|
+
"instance": {
|
|
3607
|
+
"path": "content/fixture-1.md",
|
|
3608
|
+
"sourceDigest": "sha256:0000000000000000000000000000000000000000000000000000000000000001",
|
|
3609
|
+
"byteLength": 1
|
|
3610
|
+
},
|
|
3611
|
+
"expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
|
|
3612
|
+
},
|
|
3531
3613
|
{
|
|
3532
3614
|
"caseId": "build-input-invalid-a421980e1e477348",
|
|
3533
3615
|
"coveredRuleIds": [
|
|
@@ -4266,6 +4348,17 @@
|
|
|
4266
4348
|
},
|
|
4267
4349
|
"expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
|
|
4268
4350
|
},
|
|
4351
|
+
{
|
|
4352
|
+
"caseId": "build-input-invalid-bf5d9423887c90ba",
|
|
4353
|
+
"coveredRuleIds": [
|
|
4354
|
+
"build-input:#/$defs/contentBuildMediaFile/allOf/2/if:required:mediaType"
|
|
4355
|
+
],
|
|
4356
|
+
"schemaId": "urn:gala:schema:build-input:2.0.0",
|
|
4357
|
+
"schemaPointer": "#/$defs/contentBuildMediaFile/allOf/2/if",
|
|
4358
|
+
"keyword": "required",
|
|
4359
|
+
"instance": {},
|
|
4360
|
+
"expectedCodes": ["SCHEMA_REQUIRED_FIELD_MISSING"]
|
|
4361
|
+
},
|
|
4269
4362
|
{
|
|
4270
4363
|
"caseId": "build-input-invalid-c527ccec2e3fb796",
|
|
4271
4364
|
"coveredRuleIds": [
|
|
@@ -55,6 +55,17 @@
|
|
|
55
55
|
"instance": [],
|
|
56
56
|
"expectedCodes": ["SCHEMA_TYPE_INVALID"]
|
|
57
57
|
},
|
|
58
|
+
{
|
|
59
|
+
"caseId": "build-input-invalid-1570049c4e12bef4",
|
|
60
|
+
"coveredRuleIds": [
|
|
61
|
+
"build-input:#/$defs/contentBuildMediaFile/properties/byteLength:type"
|
|
62
|
+
],
|
|
63
|
+
"schemaId": "urn:gala:schema:build-input:2.0.0",
|
|
64
|
+
"schemaPointer": "#/$defs/contentBuildMediaFile/properties/byteLength",
|
|
65
|
+
"keyword": "type",
|
|
66
|
+
"instance": null,
|
|
67
|
+
"expectedCodes": ["SCHEMA_TYPE_INVALID"]
|
|
68
|
+
},
|
|
58
69
|
{
|
|
59
70
|
"caseId": "build-input-invalid-17b38a58f5a4685e",
|
|
60
71
|
"coveredRuleIds": [
|
|
@@ -155,6 +166,15 @@
|
|
|
155
166
|
"instance": {},
|
|
156
167
|
"expectedCodes": ["SCHEMA_TYPE_INVALID"]
|
|
157
168
|
},
|
|
169
|
+
{
|
|
170
|
+
"caseId": "build-input-invalid-36e9db4ce7dd612f",
|
|
171
|
+
"coveredRuleIds": ["build-input:#/$defs/contentBuildMediaFile:type"],
|
|
172
|
+
"schemaId": "urn:gala:schema:build-input:2.0.0",
|
|
173
|
+
"schemaPointer": "#/$defs/contentBuildMediaFile",
|
|
174
|
+
"keyword": "type",
|
|
175
|
+
"instance": [],
|
|
176
|
+
"expectedCodes": ["SCHEMA_TYPE_INVALID"]
|
|
177
|
+
},
|
|
158
178
|
{
|
|
159
179
|
"caseId": "build-input-invalid-386bbe967ee2a8e0",
|
|
160
180
|
"coveredRuleIds": ["build-input:#/$defs/colorMode:type"],
|
|
@@ -502,6 +522,17 @@
|
|
|
502
522
|
"instance": [],
|
|
503
523
|
"expectedCodes": ["SCHEMA_TYPE_INVALID"]
|
|
504
524
|
},
|
|
525
|
+
{
|
|
526
|
+
"caseId": "build-input-invalid-def733368f2c6da3",
|
|
527
|
+
"coveredRuleIds": [
|
|
528
|
+
"build-input:#/$defs/contentBuildRecord/properties/media:type"
|
|
529
|
+
],
|
|
530
|
+
"schemaId": "urn:gala:schema:build-input:2.0.0",
|
|
531
|
+
"schemaPointer": "#/$defs/contentBuildRecord/properties/media",
|
|
532
|
+
"keyword": "type",
|
|
533
|
+
"instance": {},
|
|
534
|
+
"expectedCodes": ["SCHEMA_TYPE_INVALID"]
|
|
535
|
+
},
|
|
505
536
|
{
|
|
506
537
|
"caseId": "build-input-invalid-e12b55823fcfa006",
|
|
507
538
|
"coveredRuleIds": ["build-input:#/$defs/colorMode/properties/allowed:type"],
|