diff --git a/docs/objects/LibraryItem.yaml b/docs/objects/LibraryItem.yaml index 107ba9f3f..0e9ade14d 100644 --- a/docs/objects/LibraryItem.yaml +++ b/docs/objects/LibraryItem.yaml @@ -55,6 +55,10 @@ components: type: boolean mediaType: $ref: './mediaTypes/media.yaml#/components/schemas/mediaType' + media: + oneOf: + - $ref: './mediaTypes/Book.yaml#/components/schemas/bookMinified' + - $ref: './mediaTypes/Podcast.yaml#/components/schemas/Podcast' libraryItemMinified: type: object description: A single item on the server, like a book or podcast. Minified media format. diff --git a/docs/objects/mediaTypes/Book.yaml b/docs/objects/mediaTypes/Book.yaml index ebe2b63d9..a4191d5a7 100644 --- a/docs/objects/mediaTypes/Book.yaml +++ b/docs/objects/mediaTypes/Book.yaml @@ -68,3 +68,11 @@ components: description: The format of ebook of the book. Will be null if the book is an audiobook. type: string nullable: true + book: + allOf: + - $ref: '#/components/schemas/bookBase' + - type: object + properties: + metadata: + $ref: '../metadata/BookMetadata.yaml#/components/schemas/bookMetadata' + diff --git a/docs/objects/metadata/BookMetadata.yaml b/docs/objects/metadata/BookMetadata.yaml index faa054ac3..6f4769d17 100644 --- a/docs/objects/metadata/BookMetadata.yaml +++ b/docs/objects/metadata/BookMetadata.yaml @@ -124,3 +124,17 @@ components: description: The title of the chapter. type: string example: Wizards First Rule 01 Chapter 1 + bookMetadata: + allOf: + - $ref: '#/components/schemas/bookMetadataBase' + - type: object + properties: + authors: + type: array + items: + $ref: '../entities/Author.yaml#/components/schemas/author' + series: + type: array + items: + $ref: '../entities/Series.yaml#/components/schemas/series' + diff --git a/docs/openapi.json b/docs/openapi.json index 5a2f61347..c161925af 100644 Binary files a/docs/openapi.json and b/docs/openapi.json differ