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:
application/json:
schema:
oneOf:
- $ref: '../objects/entities/Author.yaml#/components/schemas/authorAsin'
- $ref: '#/components/schemas/authorSearchName'
type: object
properties:
q:
$ref: '#/components/schemas/authorSearchName'
asin:
$ref: '../objects/entities/Author.yaml#/components/schemas/authorAsin'
responses:
'200':
description: matchAuthorById OK

View file

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