Skip to content

Commit c30258b

Browse files
authored
Allow separate API keys for multi-search; Add error and code fields to multi-search result definition. (#86)
1 parent e760aef commit c30258b

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

openapi.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2446,9 +2446,21 @@ components:
24462446
results:
24472447
type: array
24482448
items:
2449-
$ref: "#/components/schemas/SearchResult"
2449+
$ref: "#/components/schemas/MultiSearchResultItem"
24502450
conversation:
24512451
$ref: "#/components/schemas/SearchResultConversation"
2452+
MultiSearchResultItem:
2453+
allOf:
2454+
- $ref: "#/components/schemas/SearchResult"
2455+
- type: object
2456+
properties:
2457+
code:
2458+
type: integer
2459+
description: HTTP error code
2460+
format: int64
2461+
error:
2462+
type: string
2463+
description: Error description
24522464
SearchParameters:
24532465
type: object
24542466
properties:
@@ -3221,6 +3233,9 @@ components:
32213233
type: string
32223234
description: >
32233235
The collection to search in.
3236+
x-typesense-api-key:
3237+
type: string
3238+
description: A separate search API key for each search within a multi_search request
32243239
FacetCounts:
32253240
type: object
32263241
properties:

0 commit comments

Comments
 (0)