From f167e0d42395b920c389a7799fe97aff2b9b447d Mon Sep 17 00:00:00 2001 From: Shuyi Z <159193473+amberzsy@users.noreply.github.com> Date: Sun, 15 Sep 2024 22:39:35 -0700 Subject: [PATCH] =?UTF-8?q?remove=20extra=20free-format=20object=20in=20cr?= =?UTF-8?q?eate/index/delete=20operation=20from=E2=80=A6=20(#582)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * remove extra free-format object in create/index/delete operation from bulk api Signed-off-by: amberzsy * add CHANGELOG Signed-off-by: amberzsy --------- Signed-off-by: amberzsy --- CHANGELOG.md | 1 + spec/schemas/_core.bulk.yaml | 12 +++--------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dc837e953..9886bd69b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/spec/schemas/_core.bulk.yaml b/spec/schemas/_core.bulk.yaml index 9006cfe23..417d1ffd4 100644 --- a/spec/schemas/_core.bulk.yaml +++ b/spec/schemas/_core.bulk.yaml @@ -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' @@ -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' @@ -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: