added to bookBase metadata and added media to LibraryItemBase

This commit is contained in:
unl0ck 2024-11-12 21:25:32 +00:00
parent 2803f49d48
commit efc33fa369
2 changed files with 8 additions and 0 deletions

View File

@ -55,6 +55,12 @@ components:
type: boolean
mediaType:
$ref: './mediaTypes/media.yaml#/components/schemas/mediaType'
media:
type: object
description: The media of the library item.
oneOf:
- $ref: './mediaTypes/Book.yaml#/components/schemas/bookBase'
- $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.

View File

@ -23,6 +23,8 @@ components:
type: array
items:
$ref: '../metadata/BookMetadata.yaml#/components/schemas/bookChapter'
metadata:
$ref: '../metadata/BookMetadata.yaml#/components/schemas/bookMetadataBase'
missingParts:
description: Any parts missing from the book by track index.
type: array