Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit 45a1e22

Browse files
committed
openapi: Update missingContent
1 parent 79f9a35 commit 45a1e22

1 file changed

Lines changed: 40 additions & 5 deletions

File tree

crates/server/openapi.yaml

Lines changed: 40 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -700,12 +700,9 @@ components:
700700
enum: [sourcing]
701701
example: sourcing
702702
missingContent:
703-
type: array
704-
description: The array of content digests that are missing for the package record.
703+
"$ref": "#/components/schemas/MissingContentMap"
704+
description: The missing content for the package record.
705705
minItems: 1
706-
maxItems: 128
707-
items:
708-
"$ref": "#/components/schemas/AnyHash"
709706
ProcessingRecord:
710707
type: object
711708
description: A record that is being processed.
@@ -825,6 +822,44 @@ components:
825822
description: The algorithm-prefixed bytes of the signature (base64 encoded).
826823
pattern: ^[a-z0-9-]+:(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{4}|[A-Za-z0-9+\/]{3}=|[A-Za-z0-9+\/]{2}={2})$
827824
example: "ecdsa-p256:MEUCIQCzWZBW6ux9LecP66Y+hjmLZTP/hZVz7puzlPTXcRT2wwIgQZO7nxP0nugtw18MwHZ26ROFWcJmgCtKOguK031Y1D0="
825+
MissingContentMap:
826+
type: object
827+
description: The map of content digest to missing content info.
828+
patternProperties:
829+
"^[a-z0-9-]+:[a-f0-9]+$":
830+
"$ref": "#/components/schemas/MissingContent"
831+
example:
832+
? "sha256:7d865e959b2466918c9863afca942d0fb89d7c9ac0c99bafc3749504ded9773"
833+
: upload:
834+
- type: http-post
835+
url: https://example.com/7d865e959b2466918c9863afca942d0fb89d7c9ac0c99bafc3749504ded9773
836+
MissingContent:
837+
description: Information about missing content.
838+
properties:
839+
upload:
840+
description: Upload endpoint(s) for the missing content.
841+
type: array
842+
items:
843+
oneOf:
844+
- "$ref": "#/components/schemas/HttpPostUpload"
845+
discriminator:
846+
propertyName: type
847+
mapping:
848+
http-post: "#/components/schemas/HttpPostUpload"
849+
HttpPostUpload:
850+
type: object
851+
description: A HTTP POST upload endpoint.
852+
properties:
853+
type:
854+
type: string
855+
description: The type of upload endpoint.
856+
enum: [http-post]
857+
example: http-post
858+
url:
859+
type: string
860+
description: The URL of the upload endpoint.
861+
example: https://example.com/contents.wasm
862+
format: uri
828863
ContentSourceMap:
829864
type: object
830865
description: The map of content digest to sources.

0 commit comments

Comments
 (0)