Moved schemas into objects/ definitions

This commit is contained in:
Nicholas Wallace 2024-02-25 18:32:04 +00:00
parent cc37c3d41f
commit cc53f16185
30 changed files with 3380 additions and 3241 deletions

View file

@ -1,5 +1,29 @@
const uuidv4 = require("uuid").v4
/**
* @openapi
* components:
* schemas:
* folder:
* type: object
* properties:
* id:
* description: The ID of the folder. (Read Only)
* type: string
* example: fol_bev1zuxhb0j0s1wehr
* fullPath:
* description: The path on the server for the folder. (Read Only)
* type: string
* example: /podcasts
* libraryId:
* oneOf:
* - $ref: '#/components/schemas/oldLibraryId'
* - $ref: '#/components/schemas/newLibraryId'
* addedAt:
* description: The time (in ms since POSIX epoch) when the folder was added. (Read Only)
* type: integer
* example: 1650462940610
*/
class Folder {
constructor(folder = null) {
this.id = null