mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-12 12:21:34 +00:00
Fix: oneOf and array issues
This commit is contained in:
parent
1068a68c23
commit
f32ef3d01c
2 changed files with 12 additions and 6 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue