Skip to content

Commit

Permalink
chore(openapi): update the openapi spec for the manifest object (#972)
Browse files Browse the repository at this point in the history
* Update the manifest openapi spec

* Make metadata nullable

Signed-off-by: Arnaud <[email protected]>

---------

Signed-off-by: Arnaud <[email protected]>
Co-authored-by: Giuliano Mega <[email protected]>
  • Loading branch information
2-towns and gmega authored Nov 15, 2024
1 parent d7ae8b7 commit 9b7f3f4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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

Expand Down

0 comments on commit 9b7f3f4

Please sign in to comment.