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.