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,6 +301,9 @@ paths:
content: content:
application/json: application/json:
schema: schema:
type: object
properties:
authors:
type: array type: array
items: items:
$ref: '../objects/entities/Author.yaml#/components/schemas/authorExpanded' $ref: '../objects/entities/Author.yaml#/components/schemas/authorExpanded'