@rathnasgala2/schemas 2.16.0 → 2.18.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 +240 -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:f7384651f46757a1a8274b0ff26186e28f77ce114672c35f331518bc1e742d14",
|
|
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:5d5ea7eb78e21a892b0945d5cc18bccc798e79c8d1e43633d579f8bec7fde2cc"
|
|
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
|
|
@@ -766,9 +840,12 @@ components:
|
|
|
766
840
|
type:
|
|
767
841
|
- string
|
|
768
842
|
- "null"
|
|
843
|
+
pagesVisibilityPolicy:
|
|
844
|
+
$ref: "#/components/schemas/GithubPagesVisibilityPolicy"
|
|
769
845
|
required:
|
|
770
846
|
- items
|
|
771
847
|
- hasMore
|
|
848
|
+
- pagesVisibilityPolicy
|
|
772
849
|
type: object
|
|
773
850
|
GetGithubInstallationsResponse:
|
|
774
851
|
additionalProperties: false
|
|
@@ -1974,6 +2051,13 @@ components:
|
|
|
1974
2051
|
- accountId
|
|
1975
2052
|
- accountLogin
|
|
1976
2053
|
type: object
|
|
2054
|
+
GithubPagesVisibilityPolicy:
|
|
2055
|
+
description: GitHub Pages repository visibility available to the selected account. `PUBLIC_REQUIRED` and `PUBLIC_OR_PRIVATE` are provider-observed facts; `UNKNOWN` means GitHub did not disclose enough plan information and clients must not claim that the account is free or paid.
|
|
2056
|
+
enum:
|
|
2057
|
+
- PUBLIC_REQUIRED
|
|
2058
|
+
- PUBLIC_OR_PRIVATE
|
|
2059
|
+
- UNKNOWN
|
|
2060
|
+
type: string
|
|
1977
2061
|
GithubRepositoryStartFrom:
|
|
1978
2062
|
description: |
|
|
1979
2063
|
What a created repository starts from. `USER_TEMPLATE` (the default)
|
|
@@ -9715,20 +9799,22 @@ components:
|
|
|
9715
9799
|
(`path`, `contentDigest`, `expectedHead`) plans one document write
|
|
9716
9800
|
against the exact expected head. The additive batch shape
|
|
9717
9801
|
(`baseRevision` and at least one of `documents`/`assets`) plans up
|
|
9718
|
-
to 20 documents and
|
|
9802
|
+
to 20 documents and 40 assets -- each `PUT` with its own text or
|
|
9719
9803
|
bytes and digest, each `DELETE` naming only its path -- in one
|
|
9720
9804
|
change, against the exact expected main-branch head asserted as
|
|
9721
9805
|
`baseRevision`. A request mixing the two shapes, or a batch request
|
|
9722
9806
|
naming neither `documents` nor `assets`, is `422 VALIDATION_FAILED`.
|
|
9723
|
-
The change's total serialized size must not exceed
|
|
9807
|
+
The change's total serialized size must not exceed 100 MiB;
|
|
9724
9808
|
`assets[].bytesBase64` is base64 over raw bytes, so what counts
|
|
9725
|
-
against the
|
|
9726
|
-
|
|
9809
|
+
against the per-asset and 100 MiB per-change bounds is the decoded
|
|
9810
|
+
byte length, not this field's text length. Per-asset, by media
|
|
9811
|
+
category: image 5 MiB, sound 20 MiB, video 50 MiB (documents are
|
|
9812
|
+
unchanged since 2.14.0: 20 documents, 1 MiB text each).
|
|
9727
9813
|
properties:
|
|
9728
9814
|
assets:
|
|
9729
9815
|
items:
|
|
9730
9816
|
$ref: "#/components/schemas/ContentChangeAssetEntry"
|
|
9731
|
-
maxItems:
|
|
9817
|
+
maxItems: 40
|
|
9732
9818
|
type: array
|
|
9733
9819
|
baseRevision:
|
|
9734
9820
|
pattern: ^(?:sha1:[0-9a-f]{40}|sha256:[0-9a-f]{64})$
|
|
@@ -20601,12 +20687,29 @@ paths:
|
|
|
20601
20687
|
/v2/organizations/{organizationId}/publications/{publicationId}/content/assets:
|
|
20602
20688
|
get:
|
|
20603
20689
|
description: |
|
|
20604
|
-
Bytes of one image under a declared asset root
|
|
20605
|
-
|
|
20606
|
-
|
|
20607
|
-
|
|
20608
|
-
|
|
20609
|
-
|
|
20690
|
+
Bytes of one image, sound or video file under a declared asset root
|
|
20691
|
+
(an article's cover image, or a file referenced from its body,
|
|
20692
|
+
copied through unchanged: no resizing, no derived formats), with the
|
|
20693
|
+
same `revision` rule as the document read. `Content-Type` is
|
|
20694
|
+
sniffed from the asset's own bytes rather than trusted from what was
|
|
20695
|
+
written at plan time, with `X-Content-Type-Options: nosniff` and
|
|
20696
|
+
`Content-Disposition: inline` so a browser renders it and never
|
|
20697
|
+
executes it. This operation serves eleven types. `image/svg+xml`
|
|
20698
|
+
remains in the `200` response's declared content-type list only
|
|
20699
|
+
because it was published there since SCHEMA-2.14.0, and removing it
|
|
20700
|
+
would not be additive; no server version has ever answered with it.
|
|
20701
|
+
A stored SVG is refused with the declared `422` on read exactly as
|
|
20702
|
+
on write (`content-changes:plan`'s `ContentChangeAssetEntry` never
|
|
20703
|
+
accepts it either): an SVG can carry script, and this operation
|
|
20704
|
+
answers `Content-Disposition: inline` from the application's own
|
|
20705
|
+
origin, so serving one would let a file in a repository run script
|
|
20706
|
+
in a signed-in person's session. Every response declares
|
|
20707
|
+
`Accept-Ranges: bytes` and honours a single-range `Range` request
|
|
20708
|
+
header for sound and video, so a player can seek: a satisfiable
|
|
20709
|
+
range is `206` with `Content-Range`; an unsatisfiable one is `416`
|
|
20710
|
+
with `Content-Range: bytes */<total>`. An asset over its
|
|
20711
|
+
per-category bound (image 5 MiB, sound 20 MiB, video 50 MiB), or
|
|
20712
|
+
whose sniffed type is not one of the eleven served types, is
|
|
20610
20713
|
`422 VALIDATION_FAILED` pointed at `/path`.
|
|
20611
20714
|
operationId: getOrganizationsByOrganizationIdPublicationsByPublicationIdContentAssets
|
|
20612
20715
|
parameters:
|
|
@@ -20643,9 +20746,26 @@ paths:
|
|
|
20643
20746
|
schema:
|
|
20644
20747
|
pattern: ^(?:sha1:[0-9a-f]{40}|sha256:[0-9a-f]{64})$
|
|
20645
20748
|
type: string
|
|
20749
|
+
- $ref: "#/components/parameters/Range"
|
|
20646
20750
|
responses:
|
|
20647
20751
|
"200":
|
|
20648
20752
|
content:
|
|
20753
|
+
audio/mp4:
|
|
20754
|
+
schema:
|
|
20755
|
+
format: binary
|
|
20756
|
+
type: string
|
|
20757
|
+
audio/mpeg:
|
|
20758
|
+
schema:
|
|
20759
|
+
format: binary
|
|
20760
|
+
type: string
|
|
20761
|
+
audio/ogg:
|
|
20762
|
+
schema:
|
|
20763
|
+
format: binary
|
|
20764
|
+
type: string
|
|
20765
|
+
audio/wav:
|
|
20766
|
+
schema:
|
|
20767
|
+
format: binary
|
|
20768
|
+
type: string
|
|
20649
20769
|
image/avif:
|
|
20650
20770
|
schema:
|
|
20651
20771
|
format: binary
|
|
@@ -20670,8 +20790,18 @@ paths:
|
|
|
20670
20790
|
schema:
|
|
20671
20791
|
format: binary
|
|
20672
20792
|
type: string
|
|
20793
|
+
video/mp4:
|
|
20794
|
+
schema:
|
|
20795
|
+
format: binary
|
|
20796
|
+
type: string
|
|
20797
|
+
video/webm:
|
|
20798
|
+
schema:
|
|
20799
|
+
format: binary
|
|
20800
|
+
type: string
|
|
20673
20801
|
description: read one content asset succeeded
|
|
20674
20802
|
headers:
|
|
20803
|
+
Accept-Ranges:
|
|
20804
|
+
$ref: "#/components/headers/AcceptRanges"
|
|
20675
20805
|
Cache-Control:
|
|
20676
20806
|
$ref: "#/components/headers/CacheControlNoStore"
|
|
20677
20807
|
Content-Disposition:
|
|
@@ -20680,6 +20810,66 @@ paths:
|
|
|
20680
20810
|
$ref: "#/components/headers/XContentTypeOptionsNosniff"
|
|
20681
20811
|
X-Correlation-Id:
|
|
20682
20812
|
$ref: "#/components/headers/XCorrelationId"
|
|
20813
|
+
"206":
|
|
20814
|
+
content:
|
|
20815
|
+
audio/mp4:
|
|
20816
|
+
schema:
|
|
20817
|
+
format: binary
|
|
20818
|
+
type: string
|
|
20819
|
+
audio/mpeg:
|
|
20820
|
+
schema:
|
|
20821
|
+
format: binary
|
|
20822
|
+
type: string
|
|
20823
|
+
audio/ogg:
|
|
20824
|
+
schema:
|
|
20825
|
+
format: binary
|
|
20826
|
+
type: string
|
|
20827
|
+
audio/wav:
|
|
20828
|
+
schema:
|
|
20829
|
+
format: binary
|
|
20830
|
+
type: string
|
|
20831
|
+
image/avif:
|
|
20832
|
+
schema:
|
|
20833
|
+
format: binary
|
|
20834
|
+
type: string
|
|
20835
|
+
image/gif:
|
|
20836
|
+
schema:
|
|
20837
|
+
format: binary
|
|
20838
|
+
type: string
|
|
20839
|
+
image/jpeg:
|
|
20840
|
+
schema:
|
|
20841
|
+
format: binary
|
|
20842
|
+
type: string
|
|
20843
|
+
image/png:
|
|
20844
|
+
schema:
|
|
20845
|
+
format: binary
|
|
20846
|
+
type: string
|
|
20847
|
+
image/webp:
|
|
20848
|
+
schema:
|
|
20849
|
+
format: binary
|
|
20850
|
+
type: string
|
|
20851
|
+
video/mp4:
|
|
20852
|
+
schema:
|
|
20853
|
+
format: binary
|
|
20854
|
+
type: string
|
|
20855
|
+
video/webm:
|
|
20856
|
+
schema:
|
|
20857
|
+
format: binary
|
|
20858
|
+
type: string
|
|
20859
|
+
description: read a satisfiable byte range of one content asset succeeded
|
|
20860
|
+
headers:
|
|
20861
|
+
Accept-Ranges:
|
|
20862
|
+
$ref: "#/components/headers/AcceptRanges"
|
|
20863
|
+
Cache-Control:
|
|
20864
|
+
$ref: "#/components/headers/CacheControlNoStore"
|
|
20865
|
+
Content-Disposition:
|
|
20866
|
+
$ref: "#/components/headers/ContentDispositionInline"
|
|
20867
|
+
Content-Range:
|
|
20868
|
+
$ref: "#/components/headers/ContentRange"
|
|
20869
|
+
X-Content-Type-Options:
|
|
20870
|
+
$ref: "#/components/headers/XContentTypeOptionsNosniff"
|
|
20871
|
+
X-Correlation-Id:
|
|
20872
|
+
$ref: "#/components/headers/XCorrelationId"
|
|
20683
20873
|
"400":
|
|
20684
20874
|
content:
|
|
20685
20875
|
application/problem+json:
|
|
@@ -20788,6 +20978,37 @@ paths:
|
|
|
20788
20978
|
$ref: "#/components/headers/XCorrelationId"
|
|
20789
20979
|
x-gala-problem-codes:
|
|
20790
20980
|
- RESOURCE_NOT_FOUND
|
|
20981
|
+
"416":
|
|
20982
|
+
content:
|
|
20983
|
+
application/problem+json:
|
|
20984
|
+
examples:
|
|
20985
|
+
VALIDATION_FAILED:
|
|
20986
|
+
summary: VALIDATION_FAILED
|
|
20987
|
+
value:
|
|
20988
|
+
code: VALIDATION_FAILED
|
|
20989
|
+
correlationId: 018f0000-0000-7000-8000-000000000001
|
|
20990
|
+
detail: The requested Range is not satisfiable against this asset's real length, named on Content-Range. See the operation contract.
|
|
20991
|
+
errors:
|
|
20992
|
+
- code: VALIDATION_FAILED
|
|
20993
|
+
pointer: /
|
|
20994
|
+
retryable: false
|
|
20995
|
+
schemaId: urn:gala:schema:problem:2.0.0
|
|
20996
|
+
schemaVersion: 2.0.0
|
|
20997
|
+
status: 416
|
|
20998
|
+
title: VALIDATION_FAILED
|
|
20999
|
+
type: urn:gala:problem:validation-failed
|
|
21000
|
+
schema:
|
|
21001
|
+
$ref: "#/components/schemas/Problem"
|
|
21002
|
+
description: VALIDATION_FAILED
|
|
21003
|
+
headers:
|
|
21004
|
+
Cache-Control:
|
|
21005
|
+
$ref: "#/components/headers/CacheControlNoStore"
|
|
21006
|
+
Content-Range:
|
|
21007
|
+
$ref: "#/components/headers/ContentRange"
|
|
21008
|
+
X-Correlation-Id:
|
|
21009
|
+
$ref: "#/components/headers/XCorrelationId"
|
|
21010
|
+
x-gala-problem-codes:
|
|
21011
|
+
- VALIDATION_FAILED
|
|
20791
21012
|
"422":
|
|
20792
21013
|
content:
|
|
20793
21014
|
application/problem+json:
|
|
@@ -20797,7 +21018,7 @@ paths:
|
|
|
20797
21018
|
value:
|
|
20798
21019
|
code: VALIDATION_FAILED
|
|
20799
21020
|
correlationId: 018f0000-0000-7000-8000-000000000001
|
|
20800
|
-
detail: The asset exceeds
|
|
21021
|
+
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
21022
|
errors:
|
|
20802
21023
|
- code: VALIDATION_FAILED
|
|
20803
21024
|
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" },
|