Skip to content

Commit

Permalink
remove extra free-format object in create/index/delete operation from… (
Browse files Browse the repository at this point in the history
#582)

* remove extra free-format object in create/index/delete operation from bulk api

Signed-off-by: amberzsy <[email protected]>

* add CHANGELOG

Signed-off-by: amberzsy <[email protected]>

---------

Signed-off-by: amberzsy <[email protected]>
  • Loading branch information
amberzsy authored Sep 16, 2024
1 parent de28026 commit f167e0d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- Fixed `geo_bounding_box` and `geo_shape` queries ([#531](https://github.com/opensearch-project/opensearch-api-specification/pull/531))
- Fixed tasks namespace schemas ([#520](https://github.com/opensearch-project/opensearch-api-specification/pull/520))
- Fixed `/_plugins/_transform/_preview` ([#568](https://github.com/opensearch-project/opensearch-api-specification/pull/568))
- Fixed create/delete/index operation in `_bulk` ([#582](https://github.com/opensearch-project/opensearch-api-specification/pull/582))

### Security

Expand Down
12 changes: 3 additions & 9 deletions spec/schemas/_core.bulk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ components:
minProperties: 1
maxProperties: 1
IndexOperation:
allOf:
- $ref: '#/components/schemas/WriteOperation'
- type: object
$ref: '#/components/schemas/WriteOperation'
WriteOperation:
allOf:
- $ref: '#/components/schemas/OperationBase'
Expand Down Expand Up @@ -64,9 +62,7 @@ components:
version_type:
$ref: '_common.yaml#/components/schemas/VersionType'
CreateOperation:
allOf:
- $ref: '#/components/schemas/WriteOperation'
- type: object
$ref: '#/components/schemas/WriteOperation'
UpdateOperation:
allOf:
- $ref: '#/components/schemas/OperationBase'
Expand All @@ -78,9 +74,7 @@ components:
retry_on_conflict:
type: number
DeleteOperation:
allOf:
- $ref: '#/components/schemas/OperationBase'
- type: object
$ref: '#/components/schemas/OperationBase'
UpdateAction:
type: object
properties:
Expand Down

0 comments on commit f167e0d

Please sign in to comment.