From f92f5c31bc4b3c177d6ce3b893de266bf5b7204a Mon Sep 17 00:00:00 2001 From: Nicholas Wallace Date: Sun, 12 May 2024 04:35:05 +0000 Subject: [PATCH] Add: ebook file spec --- docs/objects/files/EBookFile.yaml | 17 +++++++++++++++++ docs/objects/mediaTypes/Book.yaml | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 docs/objects/files/EBookFile.yaml diff --git a/docs/objects/files/EBookFile.yaml b/docs/objects/files/EBookFile.yaml new file mode 100644 index 000000000..50dbb44f9 --- /dev/null +++ b/docs/objects/files/EBookFile.yaml @@ -0,0 +1,17 @@ +components: + schemas: + ebookFile: + type: object + properties: + ino: + $ref: '../../schemas.yaml#/components/schemas/inode' + metadata: + $ref: '../metadata/FileMetadata.yaml#/components/schemas/fileMetadata' + ebookFormat: + description: The ebook format of the ebook file. + type: string + example: epub + addedAt: + $ref: '../../schemas.yaml#/components/schemas/addedAt' + updatedAt: + $ref: '../../schemas.yaml#/components/schemas/updatedAt' diff --git a/docs/objects/mediaTypes/Book.yaml b/docs/objects/mediaTypes/Book.yaml index 33f4747e2..ebe2b63d9 100644 --- a/docs/objects/mediaTypes/Book.yaml +++ b/docs/objects/mediaTypes/Book.yaml @@ -29,7 +29,7 @@ components: items: type: integer ebookFile: - $ref: '#/components/schemas/ebookFile' + $ref: '../files/EBookFile.yaml#/components/schemas/ebookFile' bookMinified: type: object description: Minified book schema. Does not depend on `bookBase` because there's pretty much no overlap.