From 9b7f3f4aaf0021758ad5837d7055fe07f036cc14 Mon Sep 17 00:00:00 2001 From: Arnaud Date: Fri, 15 Nov 2024 20:21:18 +0700 Subject: [PATCH] chore(openapi): update the openapi spec for the manifest object (#972) * Update the manifest openapi spec * Make metadata nullable Signed-off-by: Arnaud --------- Signed-off-by: Arnaud Co-authored-by: Giuliano Mega --- openapi.yaml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/openapi.yaml b/openapi.yaml index 37e5d37f..931ad7b1 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -344,10 +344,10 @@ components: ManifestItem: type: object properties: - rootHash: + treeCid: $ref: "#/components/schemas/Cid" - description: "Root hash of the content" - originalBytes: + description: "Unique data identifier" + datasetSize: type: integer format: int64 description: "Length of original content in bytes" @@ -359,15 +359,18 @@ components: description: "Indicates if content is protected by erasure-coding" filename: type: string + nullable: true description: "The original name of the uploaded content (optional)" example: codex.png mimetype: type: string + nullable: true description: "The original mimetype of the uploaded content (optional)" example: image/png uploadedAt: type: integer format: int64 + nullable: true description: "The UTC upload timestamp in seconds" example: 1729244192