chore(openapi): update the openapi spec for the manifest object (#972)

* Update the manifest openapi spec

* Make metadata nullable

Signed-off-by: Arnaud <arnaud@status.im>

---------

Signed-off-by: Arnaud <arnaud@status.im>
Co-authored-by: Giuliano Mega <giuliano.mega@gmail.com>
This commit is contained in:
Arnaud 2024-11-15 20:21:18 +07:00 committed by GitHub
parent d7ae8b734a
commit 9b7f3f4aaf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 3 deletions

View File

@ -344,10 +344,10 @@ components:
ManifestItem: ManifestItem:
type: object type: object
properties: properties:
rootHash: treeCid:
$ref: "#/components/schemas/Cid" $ref: "#/components/schemas/Cid"
description: "Root hash of the content" description: "Unique data identifier"
originalBytes: datasetSize:
type: integer type: integer
format: int64 format: int64
description: "Length of original content in bytes" description: "Length of original content in bytes"
@ -359,15 +359,18 @@ components:
description: "Indicates if content is protected by erasure-coding" description: "Indicates if content is protected by erasure-coding"
filename: filename:
type: string type: string
nullable: true
description: "The original name of the uploaded content (optional)" description: "The original name of the uploaded content (optional)"
example: codex.png example: codex.png
mimetype: mimetype:
type: string type: string
nullable: true
description: "The original mimetype of the uploaded content (optional)" description: "The original mimetype of the uploaded content (optional)"
example: image/png example: image/png
uploadedAt: uploadedAt:
type: integer type: integer
format: int64 format: int64
nullable: true
description: "The UTC upload timestamp in seconds" description: "The UTC upload timestamp in seconds"
example: 1729244192 example: 1729244192