Skip to content

Commit 7cf934a

Browse files
committed
some fixups
1 parent de4a124 commit 7cf934a

File tree

2 files changed

+456
-449
lines changed

2 files changed

+456
-449
lines changed

openapi_spec/paths/indexes/batch.yml

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

0 commit comments

Comments
 (0)