Fix: match post operation

This commit is contained in:
Nicholas Wallace 2024-05-17 04:37:59 +00:00
parent 88ef453b56
commit 771895de68

View file

@ -350,15 +350,17 @@ paths:
application/json: application/json:
schema: schema:
oneOf: oneOf:
- $ref: '#/components/requestBody/asin' asin:
- $ref: '#/components/requestBody/authorSearchName' $ref: '#/components/requestBody/asin'
q:
$ref: '#/components/requestBody/authorSearchName'
responses: responses:
'200': '200':
description: matchAuthorById OK description: matchAuthorById OK
content: content:
application/json: application/json:
schema: schema:
allOf: oneOf:
- $ref: '../objects/entities/Author.yaml#/components/schemas/author' - $ref: '../objects/entities/Author.yaml#/components/schemas/author'
- $ref: '#/components/schemas/authorUpdated' - $ref: '#/components/schemas/authorUpdated'
'404': '404':