Fix: response type should be string

This commit is contained in:
Nicholas Wallace 2024-05-12 05:36:00 +00:00
parent f92f5c31bc
commit a0a2fef54d

View file

@ -29,7 +29,7 @@ paths:
- $ref: './controllers/AuthorController.yaml#/components/parameters/authorInclude' - $ref: './controllers/AuthorController.yaml#/components/parameters/authorInclude'
- $ref: './controllers/AuthorController.yaml#/components/parameters/authorLibraryId' - $ref: './controllers/AuthorController.yaml#/components/parameters/authorLibraryId'
responses: responses:
200: '200':
description: getAuthorById OK description: getAuthorById OK
content: content:
application/json: application/json:
@ -38,7 +38,7 @@ paths:
- $ref: './objects/entities/Author.yaml#/components/schemas/author' - $ref: './objects/entities/Author.yaml#/components/schemas/author'
- $ref: './objects/entities/Author.yaml#/components/schemas/authorWithItems' - $ref: './objects/entities/Author.yaml#/components/schemas/authorWithItems'
- $ref: './objects/entities/Author.yaml#/components/schemas/authorWithSeries' - $ref: './objects/entities/Author.yaml#/components/schemas/authorWithSeries'
404: '404':
$ref: './controllers/AuthorController.yaml#/components/responses/author404' $ref: './controllers/AuthorController.yaml#/components/responses/author404'
patch: patch:
operationId: updateAuthorById operationId: updateAuthorById
@ -52,7 +52,7 @@ paths:
- $ref: './controllers/AuthorController.yaml#/components/parameters/authorDescription' - $ref: './controllers/AuthorController.yaml#/components/parameters/authorDescription'
- $ref: './controllers/AuthorController.yaml#/components/parameters/authorImagePath' - $ref: './controllers/AuthorController.yaml#/components/parameters/authorImagePath'
responses: responses:
200: '200':
description: updateAuthorById OK description: updateAuthorById OK
content: content:
application/json: application/json:
@ -66,7 +66,7 @@ paths:
description: Will only exist and be `true` if the author was merged with another author description: Will only exist and be `true` if the author was merged with another author
type: boolean type: boolean
nullable: true nullable: true
404: '404':
$ref: './controllers/AuthorController.yaml#/components/responses/author404' $ref: './controllers/AuthorController.yaml#/components/responses/author404'
delete: delete:
operationId: deleteAuthorById operationId: deleteAuthorById
@ -76,9 +76,9 @@ paths:
parameters: parameters:
- $ref: './controllers/AuthorController.yaml#/components/parameters/authorId' - $ref: './controllers/AuthorController.yaml#/components/parameters/authorId'
responses: responses:
200: '200':
$ref: '#/components/responses/ok200' $ref: '#/components/responses/ok200'
404: '404':
$ref: './controllers/AuthorController.yaml#/components/responses/author404' $ref: './controllers/AuthorController.yaml#/components/responses/author404'
/api/authors/{id}/image: /api/authors/{id}/image:
post: post:
@ -90,14 +90,14 @@ paths:
- $ref: './controllers/AuthorController.yaml#/components/parameters/authorId' - $ref: './controllers/AuthorController.yaml#/components/parameters/authorId'
- $ref: './controllers/AuthorController.yaml#/components/parameters/imageUrl' - $ref: './controllers/AuthorController.yaml#/components/parameters/imageUrl'
responses: responses:
200: '200':
description: setAuthorImageById OK description: setAuthorImageById OK
content: content:
application/json: application/json:
schema: schema:
oneOf: oneOf:
- $ref: './objects/entities/Author.yaml#/components/schemas/author' - $ref: './objects/entities/Author.yaml#/components/schemas/author'
404: '404':
$ref: './controllers/AuthorController.yaml#/components/responses/author404' $ref: './controllers/AuthorController.yaml#/components/responses/author404'
delete: delete:
operationId: deleteAuthorImageById operationId: deleteAuthorImageById
@ -107,9 +107,9 @@ paths:
parameters: parameters:
- $ref: './controllers/AuthorController.yaml#/components/parameters/authorId' - $ref: './controllers/AuthorController.yaml#/components/parameters/authorId'
responses: responses:
200: '200':
$ref: '#/components/responses/ok200' $ref: '#/components/responses/ok200'
404: '404':
$ref: './controllers/AuthorController.yaml#/components/responses/author404' $ref: './controllers/AuthorController.yaml#/components/responses/author404'
patch: patch:
operationId: getAuthorImageById operationId: getAuthorImageById
@ -123,14 +123,14 @@ paths:
- $ref: './controllers/AuthorController.yaml#/components/parameters/imageFormat' - $ref: './controllers/AuthorController.yaml#/components/parameters/imageFormat'
- $ref: './controllers/AuthorController.yaml#/components/parameters/imageRaw' - $ref: './controllers/AuthorController.yaml#/components/parameters/imageRaw'
responses: responses:
200: '200':
description: getAuthorImageById OK description: getAuthorImageById OK
content: content:
image/*: image/*:
schema: schema:
type: string type: string
format: binary format: binary
404: '404':
$ref: './controllers/AuthorController.yaml#/components/responses/author404' $ref: './controllers/AuthorController.yaml#/components/responses/author404'
/api/authors/{id}/match: /api/authors/{id}/match:
post: post:
@ -143,7 +143,7 @@ paths:
- $ref: './controllers/AuthorController.yaml#/components/parameters/asin' - $ref: './controllers/AuthorController.yaml#/components/parameters/asin'
- $ref: './controllers/AuthorController.yaml#/components/parameters/authorSearchName' - $ref: './controllers/AuthorController.yaml#/components/parameters/authorSearchName'
responses: responses:
200: '200':
description: matchAuthorById OK description: matchAuthorById OK
content: content:
application/json: application/json:
@ -151,7 +151,7 @@ paths:
allOf: allOf:
- $ref: './objects/entities/Author.yaml#/components/schemas/author' - $ref: './objects/entities/Author.yaml#/components/schemas/author'
- $ref: './controllers/AuthorController.yaml#/components/schemas/authorUpdated' - $ref: './controllers/AuthorController.yaml#/components/schemas/authorUpdated'
404: '404':
$ref: './controllers/AuthorController.yaml#/components/responses/author404' $ref: './controllers/AuthorController.yaml#/components/responses/author404'
/api/libraries: /api/libraries:
get: get:
@ -160,7 +160,7 @@ paths:
tags: tags:
- Libraries - Libraries
responses: responses:
200: '200':
description: getLibraries OK description: getLibraries OK
content: content:
application/json: application/json:
@ -181,7 +181,7 @@ paths:
- $ref: './controllers/LibraryController.yaml#/components/parameters/libraryProvider' - $ref: './controllers/LibraryController.yaml#/components/parameters/libraryProvider'
- $ref: './controllers/LibraryController.yaml#/components/parameters/librarySettings' - $ref: './controllers/LibraryController.yaml#/components/parameters/librarySettings'
responses: responses:
200: '200':
description: createLibrary OK description: createLibrary OK
content: content:
application/json: application/json: