From c9832cab9930ee0f1a13326d9abbb5bdb93102e8 Mon Sep 17 00:00:00 2001 From: Nicholas Wallace Date: Sun, 25 Feb 2024 18:42:20 +0000 Subject: [PATCH] Generic `libraryId` --- server/objects/Library.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/server/objects/Library.js b/server/objects/Library.js index a4deff154..5f2e1d6ba 100644 --- a/server/objects/Library.js +++ b/server/objects/Library.js @@ -20,13 +20,16 @@ const { filePathToPOSIX } = require('../utils/fileUtils') * description: The library ID for any libraries after 2.3.0. * format: uuid * example: e4bb1afb-4a4f-4dd6-8be0-e615d233185b + * libraryId: + * type: string + * anyOf: + * - $ref: '#/components/schemas/oldLibraryId' + * - $ref: '#/components/schemas/newLibraryId' * library: * type: object * properties: * id: - * oneOf: - * - $ref: '#/components/schemas/oldLibraryId' - * - $ref: '#/components/schemas/newLibraryId' + * $ref: '#/components/schemas/libraryId' * name: * type: string * description: The name of the library.