Add: ebook file spec

This commit is contained in:
Nicholas Wallace 2024-05-12 04:35:05 +00:00
parent 242afb3d1a
commit f92f5c31bc
2 changed files with 18 additions and 1 deletions

View file

@ -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'

View file

@ -29,7 +29,7 @@ components:
items: items:
type: integer type: integer
ebookFile: ebookFile:
$ref: '#/components/schemas/ebookFile' $ref: '../files/EBookFile.yaml#/components/schemas/ebookFile'
bookMinified: bookMinified:
type: object type: object
description: Minified book schema. Does not depend on `bookBase` because there's pretty much no overlap. description: Minified book schema. Does not depend on `bookBase` because there's pretty much no overlap.