Skip to content

Commit 47fc15d

Browse files
committed
more fixups
1 parent 7cf934a commit 47fc15d

File tree

3 files changed

+61
-55
lines changed

3 files changed

+61
-55
lines changed

openapi_spec/paths/indexes/batch.yml

Lines changed: 24 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -12,33 +12,31 @@ post:
1212
content:
1313
application/json:
1414
schema:
15-
allOf:
16-
- $ref: "../../schemas/SearchParams.yml"
17-
- type: object
18-
properties:
19-
requests:
20-
type: array
21-
items:
22-
title: operation
15+
type: object
16+
properties:
17+
requests:
18+
type: array
19+
items:
20+
title: operation
21+
type: object
22+
additionalProperties: false
23+
properties:
24+
action:
25+
type: string
26+
enum:
27+
- "addObject"
28+
- "updateObject"
29+
- "partialUpdateObject"
30+
- "partialUpdateObjectNoCreate"
31+
- "deleteObject"
32+
- "delete"
33+
- "clear"
34+
description: type of operation
35+
body:
2336
type: object
24-
additionalProperties: false
25-
properties:
26-
action:
27-
type: string
28-
enum:
29-
- "addObject"
30-
- "updateObject"
31-
- "partialUpdateObject"
32-
- "partialUpdateObjectNoCreate"
33-
- "deleteObject"
34-
- "delete"
35-
- "clear"
36-
description: type of operation
37-
body:
38-
type: object
39-
# this could be a long oneOf with every possibilities
40-
additionalProperties: true
41-
description: arguments to the operation (depends on the type of the operation)
37+
# this could be a long oneOf with every possibilities
38+
additionalProperties: true
39+
description: arguments to the operation (depends on the type of the operation)
4240
responses:
4341
"200":
4442
description: OK

openapi_spec/paths/indexes/saveObject.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ post:
2424
type: object
2525
additionalProperties: false
2626
properties:
27+
createdAt:
28+
type: string
2729
taskID:
28-
type: number
30+
type: integer
2931
objectID:
3032
type: string
3133
"400":

openapi_spec/paths/indexes/searchMulti.yml

Lines changed: 34 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -11,35 +11,41 @@ post:
1111
content:
1212
application/json:
1313
schema:
14-
type: array
15-
items:
16-
title: multipleQueries
17-
type: object
18-
additionalProperties: false
19-
properties:
20-
indexName:
21-
type: string
22-
example: products
23-
description: The Algolia index name
24-
query:
25-
type: string
26-
description: The query to search for
27-
type:
28-
type: string
29-
enum: [default, facet]
30-
default: default
31-
description: Perform a search query with `default`, will search for facet values if `facet` is given
32-
facet:
33-
type: string
34-
description: The `facet` name
35-
params:
14+
type: object
15+
additionalProperties: false
16+
properties:
17+
requests:
18+
type: array
19+
items:
20+
title: multipleQueries
3621
type: object
37-
additionalProperties: true
38-
description: A key-value mapping of additional search parameters
39-
example:
40-
filters: "in_stock:true"
41-
required:
42-
- indexName
22+
additionalProperties: false
23+
properties:
24+
indexName:
25+
type: string
26+
example: products
27+
description: The Algolia index name
28+
query:
29+
type: string
30+
description: The query to search for
31+
type:
32+
type: string
33+
enum: [default, facet]
34+
default: default
35+
description: Perform a search query with `default`, will search for facet values if `facet` is given
36+
facet:
37+
type: string
38+
description: The `facet` name
39+
params:
40+
type: string
41+
description: A query string of search parameters
42+
required:
43+
- indexName
44+
strategy:
45+
type: string
46+
enum: ["none", "stopIfEnoughMatches"]
47+
required:
48+
- requests
4349
responses:
4450
"200":
4551
description: OK

0 commit comments

Comments
 (0)