@rathnasgala2/schemas 2.16.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 +35 -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 +230 -19
- 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
|
@@ -113,9 +113,16 @@ export type ArtifactManifestManifestAsset = Readonly<{
|
|
|
113
113
|
| 'image/jpeg'
|
|
114
114
|
| 'image/webp'
|
|
115
115
|
| 'image/avif'
|
|
116
|
+
| 'image/gif'
|
|
116
117
|
| 'image/svg+xml'
|
|
117
118
|
| 'font/woff2'
|
|
118
|
-
| 'application/octet-stream'
|
|
119
|
+
| 'application/octet-stream'
|
|
120
|
+
| 'audio/mpeg'
|
|
121
|
+
| 'audio/mp4'
|
|
122
|
+
| 'audio/ogg'
|
|
123
|
+
| 'audio/wav'
|
|
124
|
+
| 'video/mp4'
|
|
125
|
+
| 'video/webm';
|
|
119
126
|
readonly path: ArtifactManifestRepoRelativePath;
|
|
120
127
|
readonly sha256: ArtifactManifestDigest;
|
|
121
128
|
}>;
|
|
@@ -258,9 +265,16 @@ export type ArtifactManifestManifestRoute = Readonly<{
|
|
|
258
265
|
| 'image/jpeg'
|
|
259
266
|
| 'image/webp'
|
|
260
267
|
| 'image/avif'
|
|
268
|
+
| 'image/gif'
|
|
261
269
|
| 'image/svg+xml'
|
|
262
270
|
| 'font/woff2'
|
|
263
|
-
| 'application/octet-stream'
|
|
271
|
+
| 'application/octet-stream'
|
|
272
|
+
| 'audio/mpeg'
|
|
273
|
+
| 'audio/mp4'
|
|
274
|
+
| 'audio/ogg'
|
|
275
|
+
| 'audio/wav'
|
|
276
|
+
| 'video/mp4'
|
|
277
|
+
| 'video/webm';
|
|
264
278
|
readonly path: ArtifactManifestRepoRelativePath;
|
|
265
279
|
readonly routeClass: 'html' | 'feed' | 'sitemap' | 'asset' | 'error';
|
|
266
280
|
readonly sha256: ArtifactManifestDigest;
|
|
@@ -84,11 +84,31 @@ export type BuildInputColorMode = Readonly<{
|
|
|
84
84
|
}> &
|
|
85
85
|
unknown;
|
|
86
86
|
|
|
87
|
+
export type BuildInputContentBuildMediaFile = Readonly<{
|
|
88
|
+
readonly byteLength: number;
|
|
89
|
+
readonly mediaType:
|
|
90
|
+
| 'image/png'
|
|
91
|
+
| 'image/jpeg'
|
|
92
|
+
| 'image/webp'
|
|
93
|
+
| 'image/avif'
|
|
94
|
+
| 'image/gif'
|
|
95
|
+
| 'audio/mpeg'
|
|
96
|
+
| 'audio/mp4'
|
|
97
|
+
| 'audio/ogg'
|
|
98
|
+
| 'audio/wav'
|
|
99
|
+
| 'video/mp4'
|
|
100
|
+
| 'video/webm';
|
|
101
|
+
readonly path: BuildInputRepoRelativePath;
|
|
102
|
+
readonly sourceDigest: BuildInputDigest;
|
|
103
|
+
}> &
|
|
104
|
+
unknown;
|
|
105
|
+
|
|
87
106
|
export type BuildInputContentBuildRecord = Readonly<{
|
|
88
107
|
readonly body: string;
|
|
89
108
|
readonly bodyDigest: BuildInputDigest;
|
|
90
109
|
readonly bodyMediaType: 'text/html';
|
|
91
110
|
readonly frontmatter: BuildInputContentFrontmatterNormalized;
|
|
111
|
+
readonly media?: ReadonlyArray<BuildInputContentBuildMediaFile>;
|
|
92
112
|
readonly renderPolicy: BuildInputManifestRenderPolicyIdentity;
|
|
93
113
|
readonly resolvedAuthorIds: ReadonlyArray<BuildInputStableId>;
|
|
94
114
|
readonly sourceDigest: BuildInputDigest;
|
|
@@ -113,9 +113,16 @@ export type BuildProvenanceManifestAsset = Readonly<{
|
|
|
113
113
|
| 'image/jpeg'
|
|
114
114
|
| 'image/webp'
|
|
115
115
|
| 'image/avif'
|
|
116
|
+
| 'image/gif'
|
|
116
117
|
| 'image/svg+xml'
|
|
117
118
|
| 'font/woff2'
|
|
118
|
-
| 'application/octet-stream'
|
|
119
|
+
| 'application/octet-stream'
|
|
120
|
+
| 'audio/mpeg'
|
|
121
|
+
| 'audio/mp4'
|
|
122
|
+
| 'audio/ogg'
|
|
123
|
+
| 'audio/wav'
|
|
124
|
+
| 'video/mp4'
|
|
125
|
+
| 'video/webm';
|
|
119
126
|
readonly path: BuildProvenanceRepoRelativePath;
|
|
120
127
|
readonly sha256: BuildProvenanceDigest;
|
|
121
128
|
}>;
|
|
@@ -258,9 +265,16 @@ export type BuildProvenanceManifestRoute = Readonly<{
|
|
|
258
265
|
| 'image/jpeg'
|
|
259
266
|
| 'image/webp'
|
|
260
267
|
| 'image/avif'
|
|
268
|
+
| 'image/gif'
|
|
261
269
|
| 'image/svg+xml'
|
|
262
270
|
| 'font/woff2'
|
|
263
|
-
| 'application/octet-stream'
|
|
271
|
+
| 'application/octet-stream'
|
|
272
|
+
| 'audio/mpeg'
|
|
273
|
+
| 'audio/mp4'
|
|
274
|
+
| 'audio/ogg'
|
|
275
|
+
| 'audio/wav'
|
|
276
|
+
| 'video/mp4'
|
|
277
|
+
| 'video/webm';
|
|
264
278
|
readonly path: BuildProvenanceRepoRelativePath;
|
|
265
279
|
readonly routeClass: 'html' | 'feed' | 'sitemap' | 'asset' | 'error';
|
|
266
280
|
readonly sha256: BuildProvenanceDigest;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "2.0.0",
|
|
3
3
|
"sourceDesignRevision": "a53052955ceb6c1aa10c886289dc832eedfe6de0a00004df07d353ac19c4403a",
|
|
4
|
-
"openApiDigest": "sha256:
|
|
4
|
+
"openApiDigest": "sha256:4fc11abc34a1de9a64eb669ed414ca4d508e5672aad79ecb6e1a88454627617b",
|
|
5
5
|
"operations": [
|
|
6
6
|
{
|
|
7
7
|
"operationId": "getInternalHealth",
|
|
@@ -1049,5 +1049,5 @@
|
|
|
1049
1049
|
"sourceFragment": "workloads"
|
|
1050
1050
|
}
|
|
1051
1051
|
],
|
|
1052
|
-
"digest": "sha256:
|
|
1052
|
+
"digest": "sha256:05dda5074e9fd6b5ca7b3f0675eaec96d0d99e8a43ba4b7636663ce20c9bb2a7"
|
|
1053
1053
|
}
|
package/openapi/openapi.yaml
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
components:
|
|
2
2
|
headers:
|
|
3
|
+
AcceptRanges:
|
|
4
|
+
description: Advertises byte-range support (SCHEMA-2.17.0), so a sound or video player can seek without downloading the whole file first.
|
|
5
|
+
required: true
|
|
6
|
+
schema:
|
|
7
|
+
pattern: ^bytes$
|
|
8
|
+
type: string
|
|
9
|
+
x-gala-const: bytes
|
|
3
10
|
CacheControlNoStore:
|
|
4
11
|
required: true
|
|
5
12
|
schema:
|
|
@@ -12,6 +19,12 @@ components:
|
|
|
12
19
|
pattern: ^inline$
|
|
13
20
|
type: string
|
|
14
21
|
x-gala-const: inline
|
|
22
|
+
ContentRange:
|
|
23
|
+
description: RFC 9110 `Content-Range`. `bytes <start>-<end>/<total>` on `206`; `bytes */<total>` on `416`, naming the asset's real total length so the caller can retry with a satisfiable range.
|
|
24
|
+
required: true
|
|
25
|
+
schema:
|
|
26
|
+
pattern: ^bytes (?:[0-9]+-[0-9]+|\*)/[0-9]+$
|
|
27
|
+
type: string
|
|
15
28
|
ETag:
|
|
16
29
|
required: true
|
|
17
30
|
schema:
|
|
@@ -95,6 +108,15 @@ components:
|
|
|
95
108
|
maximum: 100
|
|
96
109
|
minimum: 1
|
|
97
110
|
type: integer
|
|
111
|
+
Range:
|
|
112
|
+
description: RFC 9110 single-range `Range` request header (SCHEMA-2.17.0), honoured for sound and video so a player can seek. Absent means the whole asset. A multi-range request is not supported and is treated as absent.
|
|
113
|
+
example: bytes=0-1023
|
|
114
|
+
in: header
|
|
115
|
+
name: Range
|
|
116
|
+
required: false
|
|
117
|
+
schema:
|
|
118
|
+
pattern: ^bytes=[0-9]+-[0-9]*$
|
|
119
|
+
type: string
|
|
98
120
|
XCorrelationId:
|
|
99
121
|
example: 018f0000-0000-7000-8000-000000000001
|
|
100
122
|
in: header
|
|
@@ -294,14 +316,60 @@ components:
|
|
|
294
316
|
- bytesBase64
|
|
295
317
|
- contentType
|
|
296
318
|
- contentDigest
|
|
319
|
+
- if:
|
|
320
|
+
properties:
|
|
321
|
+
contentType:
|
|
322
|
+
enum:
|
|
323
|
+
- image/png
|
|
324
|
+
- image/jpeg
|
|
325
|
+
- image/webp
|
|
326
|
+
- image/gif
|
|
327
|
+
- image/avif
|
|
328
|
+
required:
|
|
329
|
+
- contentType
|
|
330
|
+
then:
|
|
331
|
+
properties:
|
|
332
|
+
bytesBase64:
|
|
333
|
+
maxLength: 6990512
|
|
334
|
+
- if:
|
|
335
|
+
properties:
|
|
336
|
+
contentType:
|
|
337
|
+
enum:
|
|
338
|
+
- audio/mpeg
|
|
339
|
+
- audio/mp4
|
|
340
|
+
- audio/ogg
|
|
341
|
+
- audio/wav
|
|
342
|
+
required:
|
|
343
|
+
- contentType
|
|
344
|
+
then:
|
|
345
|
+
properties:
|
|
346
|
+
bytesBase64:
|
|
347
|
+
maxLength: 27962032
|
|
348
|
+
- if:
|
|
349
|
+
properties:
|
|
350
|
+
contentType:
|
|
351
|
+
enum:
|
|
352
|
+
- video/mp4
|
|
353
|
+
- video/webm
|
|
354
|
+
required:
|
|
355
|
+
- contentType
|
|
356
|
+
then:
|
|
357
|
+
properties:
|
|
358
|
+
bytesBase64:
|
|
359
|
+
maxLength: 69905072
|
|
297
360
|
description: |
|
|
298
361
|
One asset write or delete inside a batch `content-changes:plan`
|
|
299
|
-
request
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
362
|
+
request -- an article's cover image, or an image, sound or video
|
|
363
|
+
file referenced from its body (pass-through: copied unchanged into
|
|
364
|
+
the built site, no resizing and no derived formats for in-text
|
|
365
|
+
media). `bytesBase64` is base64 over the raw asset bytes; the
|
|
366
|
+
per-category bound (image 5 MiB, sound 20 MiB, video 50 MiB) is
|
|
367
|
+
measured on the decoded byte length, not this field's text length,
|
|
368
|
+
and `bytesBase64`'s own `maxLength` is the base64 ceiling for that
|
|
369
|
+
same decoded bound. `contentType` is the closed vocabulary the asset
|
|
370
|
+
read declares; `image/svg+xml` is deliberately absent everywhere in
|
|
371
|
+
this contract (an SVG can carry script). `DELETE` names only the
|
|
372
|
+
path it removes and carries none of the write-only members.
|
|
305
373
|
properties:
|
|
306
374
|
action:
|
|
307
375
|
enum:
|
|
@@ -309,7 +377,7 @@ components:
|
|
|
309
377
|
- DELETE
|
|
310
378
|
type: string
|
|
311
379
|
bytesBase64:
|
|
312
|
-
maxLength:
|
|
380
|
+
maxLength: 69905072
|
|
313
381
|
pattern: ^[A-Za-z0-9+/]+={0,2}$
|
|
314
382
|
type: string
|
|
315
383
|
contentDigest:
|
|
@@ -322,6 +390,12 @@ components:
|
|
|
322
390
|
- image/webp
|
|
323
391
|
- image/gif
|
|
324
392
|
- image/avif
|
|
393
|
+
- audio/mpeg
|
|
394
|
+
- audio/mp4
|
|
395
|
+
- audio/ogg
|
|
396
|
+
- audio/wav
|
|
397
|
+
- video/mp4
|
|
398
|
+
- video/webm
|
|
325
399
|
type: string
|
|
326
400
|
path:
|
|
327
401
|
maxLength: 512
|
|
@@ -9715,20 +9789,22 @@ components:
|
|
|
9715
9789
|
(`path`, `contentDigest`, `expectedHead`) plans one document write
|
|
9716
9790
|
against the exact expected head. The additive batch shape
|
|
9717
9791
|
(`baseRevision` and at least one of `documents`/`assets`) plans up
|
|
9718
|
-
to 20 documents and
|
|
9792
|
+
to 20 documents and 40 assets -- each `PUT` with its own text or
|
|
9719
9793
|
bytes and digest, each `DELETE` naming only its path -- in one
|
|
9720
9794
|
change, against the exact expected main-branch head asserted as
|
|
9721
9795
|
`baseRevision`. A request mixing the two shapes, or a batch request
|
|
9722
9796
|
naming neither `documents` nor `assets`, is `422 VALIDATION_FAILED`.
|
|
9723
|
-
The change's total serialized size must not exceed
|
|
9797
|
+
The change's total serialized size must not exceed 100 MiB;
|
|
9724
9798
|
`assets[].bytesBase64` is base64 over raw bytes, so what counts
|
|
9725
|
-
against the
|
|
9726
|
-
|
|
9799
|
+
against the per-asset and 100 MiB per-change bounds is the decoded
|
|
9800
|
+
byte length, not this field's text length. Per-asset, by media
|
|
9801
|
+
category: image 5 MiB, sound 20 MiB, video 50 MiB (documents are
|
|
9802
|
+
unchanged since 2.14.0: 20 documents, 1 MiB text each).
|
|
9727
9803
|
properties:
|
|
9728
9804
|
assets:
|
|
9729
9805
|
items:
|
|
9730
9806
|
$ref: "#/components/schemas/ContentChangeAssetEntry"
|
|
9731
|
-
maxItems:
|
|
9807
|
+
maxItems: 40
|
|
9732
9808
|
type: array
|
|
9733
9809
|
baseRevision:
|
|
9734
9810
|
pattern: ^(?:sha1:[0-9a-f]{40}|sha256:[0-9a-f]{64})$
|
|
@@ -20601,12 +20677,29 @@ paths:
|
|
|
20601
20677
|
/v2/organizations/{organizationId}/publications/{publicationId}/content/assets:
|
|
20602
20678
|
get:
|
|
20603
20679
|
description: |
|
|
20604
|
-
Bytes of one image under a declared asset root
|
|
20605
|
-
|
|
20606
|
-
|
|
20607
|
-
|
|
20608
|
-
|
|
20609
|
-
|
|
20680
|
+
Bytes of one image, sound or video file under a declared asset root
|
|
20681
|
+
(an article's cover image, or a file referenced from its body,
|
|
20682
|
+
copied through unchanged: no resizing, no derived formats), with the
|
|
20683
|
+
same `revision` rule as the document read. `Content-Type` is
|
|
20684
|
+
sniffed from the asset's own bytes rather than trusted from what was
|
|
20685
|
+
written at plan time, with `X-Content-Type-Options: nosniff` and
|
|
20686
|
+
`Content-Disposition: inline` so a browser renders it and never
|
|
20687
|
+
executes it. This operation serves eleven types. `image/svg+xml`
|
|
20688
|
+
remains in the `200` response's declared content-type list only
|
|
20689
|
+
because it was published there since SCHEMA-2.14.0, and removing it
|
|
20690
|
+
would not be additive; no server version has ever answered with it.
|
|
20691
|
+
A stored SVG is refused with the declared `422` on read exactly as
|
|
20692
|
+
on write (`content-changes:plan`'s `ContentChangeAssetEntry` never
|
|
20693
|
+
accepts it either): an SVG can carry script, and this operation
|
|
20694
|
+
answers `Content-Disposition: inline` from the application's own
|
|
20695
|
+
origin, so serving one would let a file in a repository run script
|
|
20696
|
+
in a signed-in person's session. Every response declares
|
|
20697
|
+
`Accept-Ranges: bytes` and honours a single-range `Range` request
|
|
20698
|
+
header for sound and video, so a player can seek: a satisfiable
|
|
20699
|
+
range is `206` with `Content-Range`; an unsatisfiable one is `416`
|
|
20700
|
+
with `Content-Range: bytes */<total>`. An asset over its
|
|
20701
|
+
per-category bound (image 5 MiB, sound 20 MiB, video 50 MiB), or
|
|
20702
|
+
whose sniffed type is not one of the eleven served types, is
|
|
20610
20703
|
`422 VALIDATION_FAILED` pointed at `/path`.
|
|
20611
20704
|
operationId: getOrganizationsByOrganizationIdPublicationsByPublicationIdContentAssets
|
|
20612
20705
|
parameters:
|
|
@@ -20643,9 +20736,26 @@ paths:
|
|
|
20643
20736
|
schema:
|
|
20644
20737
|
pattern: ^(?:sha1:[0-9a-f]{40}|sha256:[0-9a-f]{64})$
|
|
20645
20738
|
type: string
|
|
20739
|
+
- $ref: "#/components/parameters/Range"
|
|
20646
20740
|
responses:
|
|
20647
20741
|
"200":
|
|
20648
20742
|
content:
|
|
20743
|
+
audio/mp4:
|
|
20744
|
+
schema:
|
|
20745
|
+
format: binary
|
|
20746
|
+
type: string
|
|
20747
|
+
audio/mpeg:
|
|
20748
|
+
schema:
|
|
20749
|
+
format: binary
|
|
20750
|
+
type: string
|
|
20751
|
+
audio/ogg:
|
|
20752
|
+
schema:
|
|
20753
|
+
format: binary
|
|
20754
|
+
type: string
|
|
20755
|
+
audio/wav:
|
|
20756
|
+
schema:
|
|
20757
|
+
format: binary
|
|
20758
|
+
type: string
|
|
20649
20759
|
image/avif:
|
|
20650
20760
|
schema:
|
|
20651
20761
|
format: binary
|
|
@@ -20670,12 +20780,82 @@ paths:
|
|
|
20670
20780
|
schema:
|
|
20671
20781
|
format: binary
|
|
20672
20782
|
type: string
|
|
20783
|
+
video/mp4:
|
|
20784
|
+
schema:
|
|
20785
|
+
format: binary
|
|
20786
|
+
type: string
|
|
20787
|
+
video/webm:
|
|
20788
|
+
schema:
|
|
20789
|
+
format: binary
|
|
20790
|
+
type: string
|
|
20673
20791
|
description: read one content asset succeeded
|
|
20674
20792
|
headers:
|
|
20793
|
+
Accept-Ranges:
|
|
20794
|
+
$ref: "#/components/headers/AcceptRanges"
|
|
20795
|
+
Cache-Control:
|
|
20796
|
+
$ref: "#/components/headers/CacheControlNoStore"
|
|
20797
|
+
Content-Disposition:
|
|
20798
|
+
$ref: "#/components/headers/ContentDispositionInline"
|
|
20799
|
+
X-Content-Type-Options:
|
|
20800
|
+
$ref: "#/components/headers/XContentTypeOptionsNosniff"
|
|
20801
|
+
X-Correlation-Id:
|
|
20802
|
+
$ref: "#/components/headers/XCorrelationId"
|
|
20803
|
+
"206":
|
|
20804
|
+
content:
|
|
20805
|
+
audio/mp4:
|
|
20806
|
+
schema:
|
|
20807
|
+
format: binary
|
|
20808
|
+
type: string
|
|
20809
|
+
audio/mpeg:
|
|
20810
|
+
schema:
|
|
20811
|
+
format: binary
|
|
20812
|
+
type: string
|
|
20813
|
+
audio/ogg:
|
|
20814
|
+
schema:
|
|
20815
|
+
format: binary
|
|
20816
|
+
type: string
|
|
20817
|
+
audio/wav:
|
|
20818
|
+
schema:
|
|
20819
|
+
format: binary
|
|
20820
|
+
type: string
|
|
20821
|
+
image/avif:
|
|
20822
|
+
schema:
|
|
20823
|
+
format: binary
|
|
20824
|
+
type: string
|
|
20825
|
+
image/gif:
|
|
20826
|
+
schema:
|
|
20827
|
+
format: binary
|
|
20828
|
+
type: string
|
|
20829
|
+
image/jpeg:
|
|
20830
|
+
schema:
|
|
20831
|
+
format: binary
|
|
20832
|
+
type: string
|
|
20833
|
+
image/png:
|
|
20834
|
+
schema:
|
|
20835
|
+
format: binary
|
|
20836
|
+
type: string
|
|
20837
|
+
image/webp:
|
|
20838
|
+
schema:
|
|
20839
|
+
format: binary
|
|
20840
|
+
type: string
|
|
20841
|
+
video/mp4:
|
|
20842
|
+
schema:
|
|
20843
|
+
format: binary
|
|
20844
|
+
type: string
|
|
20845
|
+
video/webm:
|
|
20846
|
+
schema:
|
|
20847
|
+
format: binary
|
|
20848
|
+
type: string
|
|
20849
|
+
description: read a satisfiable byte range of one content asset succeeded
|
|
20850
|
+
headers:
|
|
20851
|
+
Accept-Ranges:
|
|
20852
|
+
$ref: "#/components/headers/AcceptRanges"
|
|
20675
20853
|
Cache-Control:
|
|
20676
20854
|
$ref: "#/components/headers/CacheControlNoStore"
|
|
20677
20855
|
Content-Disposition:
|
|
20678
20856
|
$ref: "#/components/headers/ContentDispositionInline"
|
|
20857
|
+
Content-Range:
|
|
20858
|
+
$ref: "#/components/headers/ContentRange"
|
|
20679
20859
|
X-Content-Type-Options:
|
|
20680
20860
|
$ref: "#/components/headers/XContentTypeOptionsNosniff"
|
|
20681
20861
|
X-Correlation-Id:
|
|
@@ -20788,6 +20968,37 @@ paths:
|
|
|
20788
20968
|
$ref: "#/components/headers/XCorrelationId"
|
|
20789
20969
|
x-gala-problem-codes:
|
|
20790
20970
|
- RESOURCE_NOT_FOUND
|
|
20971
|
+
"416":
|
|
20972
|
+
content:
|
|
20973
|
+
application/problem+json:
|
|
20974
|
+
examples:
|
|
20975
|
+
VALIDATION_FAILED:
|
|
20976
|
+
summary: VALIDATION_FAILED
|
|
20977
|
+
value:
|
|
20978
|
+
code: VALIDATION_FAILED
|
|
20979
|
+
correlationId: 018f0000-0000-7000-8000-000000000001
|
|
20980
|
+
detail: The requested Range is not satisfiable against this asset's real length, named on Content-Range. See the operation contract.
|
|
20981
|
+
errors:
|
|
20982
|
+
- code: VALIDATION_FAILED
|
|
20983
|
+
pointer: /
|
|
20984
|
+
retryable: false
|
|
20985
|
+
schemaId: urn:gala:schema:problem:2.0.0
|
|
20986
|
+
schemaVersion: 2.0.0
|
|
20987
|
+
status: 416
|
|
20988
|
+
title: VALIDATION_FAILED
|
|
20989
|
+
type: urn:gala:problem:validation-failed
|
|
20990
|
+
schema:
|
|
20991
|
+
$ref: "#/components/schemas/Problem"
|
|
20992
|
+
description: VALIDATION_FAILED
|
|
20993
|
+
headers:
|
|
20994
|
+
Cache-Control:
|
|
20995
|
+
$ref: "#/components/headers/CacheControlNoStore"
|
|
20996
|
+
Content-Range:
|
|
20997
|
+
$ref: "#/components/headers/ContentRange"
|
|
20998
|
+
X-Correlation-Id:
|
|
20999
|
+
$ref: "#/components/headers/XCorrelationId"
|
|
21000
|
+
x-gala-problem-codes:
|
|
21001
|
+
- VALIDATION_FAILED
|
|
20791
21002
|
"422":
|
|
20792
21003
|
content:
|
|
20793
21004
|
application/problem+json:
|
|
@@ -20797,7 +21008,7 @@ paths:
|
|
|
20797
21008
|
value:
|
|
20798
21009
|
code: VALIDATION_FAILED
|
|
20799
21010
|
correlationId: 018f0000-0000-7000-8000-000000000001
|
|
20800
|
-
detail: The asset exceeds
|
|
21011
|
+
detail: The asset exceeds its per-category read bound (image 5 MiB, sound 20 MiB, video 50 MiB), its sniffed content type is not one of the eleven served types, or it is image/svg+xml (never served, script risk). See the operation contract.
|
|
20801
21012
|
errors:
|
|
20802
21013
|
- code: VALIDATION_FAILED
|
|
20803
21014
|
pointer: /path
|
package/package.json
CHANGED
package/sbom.cdx.json
CHANGED
|
@@ -97,8 +97,8 @@
|
|
|
97
97
|
"type": "library",
|
|
98
98
|
"name": "schemas",
|
|
99
99
|
"group": "@rathnasgala2",
|
|
100
|
-
"version": "2.
|
|
101
|
-
"bom-ref": "@rathnasgala2/schemas@2.
|
|
100
|
+
"version": "2.17.0",
|
|
101
|
+
"bom-ref": "@rathnasgala2/schemas@2.17.0",
|
|
102
102
|
"description": "Executable JSON Schema and OpenAPI contracts for Galascribe",
|
|
103
103
|
"licenses": [
|
|
104
104
|
{
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
],
|
|
111
|
-
"purl": "pkg:npm/%40rathnasgala2/schemas@2.
|
|
111
|
+
"purl": "pkg:npm/%40rathnasgala2/schemas@2.17.0?vcs_url=git%2Bhttps%3A%2F%2Fgithub.com%2Frathnasgala2%2Fschema.git",
|
|
112
112
|
"externalReferences": [
|
|
113
113
|
{
|
|
114
114
|
"url": "https://github.com/rathnasgala2/schema/issues",
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
"type": "library",
|
|
154
154
|
"name": "ajv-formats",
|
|
155
155
|
"version": "3.0.1",
|
|
156
|
-
"bom-ref": "@rathnasgala2/schemas@2.
|
|
156
|
+
"bom-ref": "@rathnasgala2/schemas@2.17.0|ajv-formats@3.0.1",
|
|
157
157
|
"licenses": [
|
|
158
158
|
{
|
|
159
159
|
"license": {
|
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
"type": "library",
|
|
188
188
|
"name": "ajv",
|
|
189
189
|
"version": "8.20.0",
|
|
190
|
-
"bom-ref": "@rathnasgala2/schemas@2.
|
|
190
|
+
"bom-ref": "@rathnasgala2/schemas@2.17.0|ajv@8.20.0",
|
|
191
191
|
"licenses": [
|
|
192
192
|
{
|
|
193
193
|
"license": {
|
|
@@ -221,7 +221,7 @@
|
|
|
221
221
|
"type": "library",
|
|
222
222
|
"name": "fast-deep-equal",
|
|
223
223
|
"version": "3.1.3",
|
|
224
|
-
"bom-ref": "@rathnasgala2/schemas@2.
|
|
224
|
+
"bom-ref": "@rathnasgala2/schemas@2.17.0|fast-deep-equal@3.1.3",
|
|
225
225
|
"licenses": [
|
|
226
226
|
{
|
|
227
227
|
"license": {
|
|
@@ -255,7 +255,7 @@
|
|
|
255
255
|
"type": "library",
|
|
256
256
|
"name": "fast-uri",
|
|
257
257
|
"version": "3.1.7",
|
|
258
|
-
"bom-ref": "@rathnasgala2/schemas@2.
|
|
258
|
+
"bom-ref": "@rathnasgala2/schemas@2.17.0|fast-uri@3.1.7",
|
|
259
259
|
"licenses": [
|
|
260
260
|
{
|
|
261
261
|
"license": {
|
|
@@ -289,7 +289,7 @@
|
|
|
289
289
|
"type": "library",
|
|
290
290
|
"name": "json-schema-traverse",
|
|
291
291
|
"version": "1.0.0",
|
|
292
|
-
"bom-ref": "@rathnasgala2/schemas@2.
|
|
292
|
+
"bom-ref": "@rathnasgala2/schemas@2.17.0|json-schema-traverse@1.0.0",
|
|
293
293
|
"licenses": [
|
|
294
294
|
{
|
|
295
295
|
"license": {
|
|
@@ -323,7 +323,7 @@
|
|
|
323
323
|
"type": "library",
|
|
324
324
|
"name": "require-from-string",
|
|
325
325
|
"version": "2.0.2",
|
|
326
|
-
"bom-ref": "@rathnasgala2/schemas@2.
|
|
326
|
+
"bom-ref": "@rathnasgala2/schemas@2.17.0|require-from-string@2.0.2",
|
|
327
327
|
"licenses": [
|
|
328
328
|
{
|
|
329
329
|
"license": {
|
|
@@ -1064,10 +1064,10 @@
|
|
|
1064
1064
|
],
|
|
1065
1065
|
"dependencies": [
|
|
1066
1066
|
{
|
|
1067
|
-
"ref": "@rathnasgala2/schemas@2.
|
|
1067
|
+
"ref": "@rathnasgala2/schemas@2.17.0",
|
|
1068
1068
|
"dependsOn": [
|
|
1069
|
-
"@rathnasgala2/schemas@2.
|
|
1070
|
-
"@rathnasgala2/schemas@2.
|
|
1069
|
+
"@rathnasgala2/schemas@2.17.0|ajv-formats@3.0.1",
|
|
1070
|
+
"@rathnasgala2/schemas@2.17.0|ajv@8.20.0",
|
|
1071
1071
|
"pkg:npm/semver@7.8.5",
|
|
1072
1072
|
"urn:gala:source-data:iana-ipv4-special-registry",
|
|
1073
1073
|
"urn:gala:source-data:iana-ipv6-special-registry",
|
|
@@ -1089,31 +1089,31 @@
|
|
|
1089
1089
|
]
|
|
1090
1090
|
},
|
|
1091
1091
|
{
|
|
1092
|
-
"ref": "@rathnasgala2/schemas@2.
|
|
1092
|
+
"ref": "@rathnasgala2/schemas@2.17.0|ajv-formats@3.0.1",
|
|
1093
1093
|
"dependsOn": [
|
|
1094
|
-
"@rathnasgala2/schemas@2.
|
|
1094
|
+
"@rathnasgala2/schemas@2.17.0|ajv@8.20.0"
|
|
1095
1095
|
]
|
|
1096
1096
|
},
|
|
1097
1097
|
{
|
|
1098
|
-
"ref": "@rathnasgala2/schemas@2.
|
|
1098
|
+
"ref": "@rathnasgala2/schemas@2.17.0|ajv@8.20.0",
|
|
1099
1099
|
"dependsOn": [
|
|
1100
|
-
"@rathnasgala2/schemas@2.
|
|
1101
|
-
"@rathnasgala2/schemas@2.
|
|
1102
|
-
"@rathnasgala2/schemas@2.
|
|
1103
|
-
"@rathnasgala2/schemas@2.
|
|
1100
|
+
"@rathnasgala2/schemas@2.17.0|fast-deep-equal@3.1.3",
|
|
1101
|
+
"@rathnasgala2/schemas@2.17.0|fast-uri@3.1.7",
|
|
1102
|
+
"@rathnasgala2/schemas@2.17.0|json-schema-traverse@1.0.0",
|
|
1103
|
+
"@rathnasgala2/schemas@2.17.0|require-from-string@2.0.2"
|
|
1104
1104
|
]
|
|
1105
1105
|
},
|
|
1106
1106
|
{
|
|
1107
|
-
"ref": "@rathnasgala2/schemas@2.
|
|
1107
|
+
"ref": "@rathnasgala2/schemas@2.17.0|fast-deep-equal@3.1.3"
|
|
1108
1108
|
},
|
|
1109
1109
|
{
|
|
1110
|
-
"ref": "@rathnasgala2/schemas@2.
|
|
1110
|
+
"ref": "@rathnasgala2/schemas@2.17.0|fast-uri@3.1.7"
|
|
1111
1111
|
},
|
|
1112
1112
|
{
|
|
1113
|
-
"ref": "@rathnasgala2/schemas@2.
|
|
1113
|
+
"ref": "@rathnasgala2/schemas@2.17.0|json-schema-traverse@1.0.0"
|
|
1114
1114
|
},
|
|
1115
1115
|
{
|
|
1116
|
-
"ref": "@rathnasgala2/schemas@2.
|
|
1116
|
+
"ref": "@rathnasgala2/schemas@2.17.0|require-from-string@2.0.2"
|
|
1117
1117
|
},
|
|
1118
1118
|
{
|
|
1119
1119
|
"ref": "pkg:npm/semver@7.8.5"
|
|
@@ -570,9 +570,16 @@
|
|
|
570
570
|
"image/jpeg",
|
|
571
571
|
"image/webp",
|
|
572
572
|
"image/avif",
|
|
573
|
+
"image/gif",
|
|
573
574
|
"image/svg+xml",
|
|
574
575
|
"font/woff2",
|
|
575
|
-
"application/octet-stream"
|
|
576
|
+
"application/octet-stream",
|
|
577
|
+
"audio/mpeg",
|
|
578
|
+
"audio/mp4",
|
|
579
|
+
"audio/ogg",
|
|
580
|
+
"audio/wav",
|
|
581
|
+
"video/mp4",
|
|
582
|
+
"video/webm"
|
|
576
583
|
]
|
|
577
584
|
},
|
|
578
585
|
"byteLength": { "$ref": "#/$defs/nonNegativeInt64" },
|
|
@@ -604,9 +611,16 @@
|
|
|
604
611
|
"image/jpeg",
|
|
605
612
|
"image/webp",
|
|
606
613
|
"image/avif",
|
|
614
|
+
"image/gif",
|
|
607
615
|
"image/svg+xml",
|
|
608
616
|
"font/woff2",
|
|
609
|
-
"application/octet-stream"
|
|
617
|
+
"application/octet-stream",
|
|
618
|
+
"audio/mpeg",
|
|
619
|
+
"audio/mp4",
|
|
620
|
+
"audio/ogg",
|
|
621
|
+
"audio/wav",
|
|
622
|
+
"video/mp4",
|
|
623
|
+
"video/webm"
|
|
610
624
|
]
|
|
611
625
|
},
|
|
612
626
|
"byteLength": { "$ref": "#/$defs/nonNegativeInt64" },
|