Fix: oneOf and array issues

This commit is contained in:
Nicholas Wallace 2024-05-19 01:30:30 +00:00
parent 1068a68c23
commit f32ef3d01c
2 changed files with 12 additions and 6 deletions

View file

@ -273,9 +273,12 @@ paths:
content: content:
application/json: application/json:
schema: schema:
oneOf: type: object
- $ref: '../objects/entities/Author.yaml#/components/schemas/authorAsin' properties:
- $ref: '#/components/schemas/authorSearchName' q:
$ref: '#/components/schemas/authorSearchName'
asin:
$ref: '../objects/entities/Author.yaml#/components/schemas/authorAsin'
responses: responses:
'200': '200':
description: matchAuthorById OK description: matchAuthorById OK

View file

@ -301,9 +301,12 @@ paths:
content: content:
application/json: application/json:
schema: schema:
type: array type: object
items: properties:
$ref: '../objects/entities/Author.yaml#/components/schemas/authorExpanded' authors:
type: array
items:
$ref: '../objects/entities/Author.yaml#/components/schemas/authorExpanded'
'404': '404':
$ref: '#/components/responses/library404' $ref: '#/components/responses/library404'
/api/libraries/{id}/series: /api/libraries/{id}/series: