Skip to content

Commit

Permalink
some fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
millotp committed Nov 8, 2021
1 parent de4a124 commit 7cf934a
Show file tree
Hide file tree
Showing 2 changed files with 456 additions and 449 deletions.
49 changes: 27 additions & 22 deletions openapi_spec/paths/indexes/batch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,33 @@ post:
content:
application/json:
schema:
type: array
items:
title: operation
type: object
additionalProperties: false
properties:
action:
type: string
enum:
- "addObject"
- "updateObject"
- "partialUpdateObject"
- "partialUpdateObjectNoCreate"
- "deleteObject"
- "delete"
- "clear"
description: type of operation
body:
type: object
# this could be a long oneOf with every possibilities
additionalProperties: true
description: arguments to the operation (depends on the type of the operation)
allOf:
- $ref: "../../schemas/SearchParams.yml"
- type: object
properties:
requests:
type: array
items:
title: operation
type: object
additionalProperties: false
properties:
action:
type: string
enum:
- "addObject"
- "updateObject"
- "partialUpdateObject"
- "partialUpdateObjectNoCreate"
- "deleteObject"
- "delete"
- "clear"
description: type of operation
body:
type: object
# this could be a long oneOf with every possibilities
additionalProperties: true
description: arguments to the operation (depends on the type of the operation)
responses:
"200":
description: OK
Expand Down
Loading

0 comments on commit 7cf934a

Please sign in to comment.