Update: formatting

This commit is contained in:
Nicholas Wallace 2024-05-14 04:51:59 +00:00
parent 44a98a0061
commit a60f7463a7
3 changed files with 7 additions and 9 deletions

View file

@ -66,9 +66,7 @@ components:
description: The ID of the library.
required: true
schema:
type: string
format: uuid
example: e4bb1afb-4a4f-4dd6-8be0-e615d233185b
$ref: '../objects/Library.yaml#/components/schemas/libraryId'
responses:
library200:
description: Library found.
@ -104,6 +102,7 @@ paths:
operationId: createLibrary
summary: Create a new library on server
description: Create a new library on server.
required: [name, folders]
tags:
- Libraries
requestBody:
@ -114,7 +113,6 @@ paths:
$ref: '#/components/requestBody/libraryMediaType'
$ref: '#/components/requestBody/libraryProvider'
$ref: '#/components/requestBody/librarySettings'
required: [name, folders]
responses:
'200':
$ref: '#/components/responses/library200'

View file

@ -4,12 +4,12 @@ components:
type: string
description: The ID of the libraries created on server version 2.2.23 and before.
format: 'lib_[a-z0-9]{18}'
example: lib_o78uaoeuh78h6aoeif
example: 'lib_o78uaoeuh78h6aoeif'
libraryId:
type: string
description: The ID of the library.
format: uuid
example: e4bb1afb-4a4f-4dd6-8be0-e615d233185b
example: 'e4bb1afb-4a4f-4dd6-8be0-e615d233185b'
libraryName:
description: The name of the library.
type: string
@ -76,7 +76,7 @@ components:
description: The folders that belong to the library.
type: array
items:
$ref: 'Folder.yaml#/components/schemas/folder'
$ref: './Folder.yaml#/components/schemas/folder'
displayOrder:
description: Display position of the library in the list of libraries. Must be >= 1.
type: integer

View file

@ -22,9 +22,9 @@ components:
ino:
$ref: '../schemas.yaml#/components/schemas/inode'
libraryId:
$ref: 'Library.yaml#/components/schemas/libraryId'
$ref: './Library.yaml#/components/schemas/libraryId'
folderId:
$ref: 'Folder.yaml#/components/schemas/folderId'
$ref: './Folder.yaml#/components/schemas/folderId'
path:
description: The path of the library item on the server.
type: string