Cleaned up mediaType schema

This commit is contained in:
Nicholas Wallace 2024-02-19 21:52:00 +00:00
parent 4fff661834
commit fe33b4c6a8

View file

@ -15,6 +15,10 @@
* format: uuid * format: uuid
* example: * example:
* - e4bb1afb-4a4f-4dd6-8be0-e615d233185b * - e4bb1afb-4a4f-4dd6-8be0-e615d233185b
* mediaType:
* type: string
* description: What kind of media the library item contains. Will be book or podcast.
* enum: [book, podcast]
* library: * library:
* type: object * type: object
* properties: * properties:
@ -43,10 +47,7 @@
* example: * example:
* - audiobookshelf * - audiobookshelf
* mediaType: * mediaType:
* type: string * - $ref: '#/components/schemas/mediaType'
* description: The type of media that the library contains. Will be book or podcast. (Read Only)
* example:
* - book
* provider: * provider:
* type: string * type: string
* description: Preferred metadata provider for the library. See [Metadata Providers](https://api.audiobookshelf.org/#metadata-providers) for a list of possible providers. * description: Preferred metadata provider for the library. See [Metadata Providers](https://api.audiobookshelf.org/#metadata-providers) for a list of possible providers.
@ -211,8 +212,7 @@
* description: Whether the library item was scanned and no longer has media files. * description: Whether the library item was scanned and no longer has media files.
* type: boolean * type: boolean
* mediaType: * mediaType:
* description: What kind of media the library item contains. Will be book or podcast. * - $ref: '#/components/schemas/mediaType'
* type: string
* media: * media:
* description: The media of the library item. * description: The media of the library item.
* oneOf: * oneOf:
@ -296,10 +296,7 @@
* example: * example:
* - false * - false
* mediaType: * mediaType:
* description: What kind of media the library item contains. Will be book or podcast. * - $ref: '#/components/schemas/mediaType'
* type: string
* example:
* - book
* media: * media:
* description: The media of the library item. * description: The media of the library item.
* type: object * type: object
@ -400,10 +397,7 @@
* example: * example:
* - false * - false
* mediaType: * mediaType:
* description: What kind of media the library item contains. Will be book or podcast. * - $ref: '#/components/schemas/mediaType'
* type: string
* example:
* - book
* media: * media:
* description: The media of the library item. * description: The media of the library item.
* type: object * type: object
@ -2551,10 +2545,7 @@
* example: * example:
* - ep_lh6ko39pumnrma3dhv * - ep_lh6ko39pumnrma3dhv
* mediaType: * mediaType:
* description: The media type of the library item. Will be book or podcast. * - $ref: '#/components/schemas/mediaType'
* type: string
* example:
* - podcast
* mediaMetadata: * mediaMetadata:
* description: The metadata of the library item's media. * description: The metadata of the library item's media.
* type: object * type: object
@ -2668,10 +2659,7 @@
* example: * example:
* - ep_lh6ko39pumnrma3dhv * - ep_lh6ko39pumnrma3dhv
* mediaType: * mediaType:
* description: The media type of the library item. Will be book or podcast. * - $ref: '#/components/schemas/mediaType'
* type: string
* example:
* - podcast
* mediaMetadata: * mediaMetadata:
* description: The metadata of the library item's media. * description: The metadata of the library item's media.
* type: object * type: object