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:
parent
d7ae8b734a
commit
9b7f3f4aaf
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue