From a4f9038d8aa694122ffceab8d231fbb2b16b0fbe Mon Sep 17 00:00:00 2001 From: Thomas Farr Date: Wed, 12 Jun 2024 16:00:42 +1200 Subject: [PATCH] Add `distribution` field to `OpenSearchVersionInfo` Signed-off-by: Thomas Farr --- CHANGELOG.md | 3 ++- spec/schemas/_common.yaml | 3 +++ tools/src/OpenSearchHttpClient.ts | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b0db8178..d9e97f4e6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,7 +20,8 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) - Added linter to validate order of spec operations ([#325](https://github.com/opensearch-project/opensearch-api-specification/pull/326)) ([#326](https://github.com/opensearch-project/opensearch-api-specification/pull/326)) - Added support to read outputs from requests in tests([#324](https://github.com/opensearch-project/opensearch-api-specification/pull/324)) - Added `eslint-plugin-eslint-comments` ([#333](https://github.com/opensearch-project/opensearch-api-specification/pull/333)) - +- Added `distribution` field to `OpenSearchVersionInfo` ([#336](https://github.com/opensearch-project/opensearch-api-specification/pull/336)) + ### Changed - Replaced Smithy with a native OpenAPI spec ([#189](https://github.com/opensearch-project/opensearch-api-specification/issues/189)) diff --git a/spec/schemas/_common.yaml b/spec/schemas/_common.yaml index 47de285c2..149da5194 100644 --- a/spec/schemas/_common.yaml +++ b/spec/schemas/_common.yaml @@ -1800,6 +1800,8 @@ components: type: boolean build_type: type: string + distribution: + type: string lucene_version: $ref: '#/components/schemas/VersionString' minimum_index_compatibility_version: @@ -1813,6 +1815,7 @@ components: - build_hash - build_snapshot - build_type + - distribution - lucene_version - minimum_index_compatibility_version - minimum_wire_compatibility_version diff --git a/tools/src/OpenSearchHttpClient.ts b/tools/src/OpenSearchHttpClient.ts index cd5ce9cb2..08d039010 100644 --- a/tools/src/OpenSearchHttpClient.ts +++ b/tools/src/OpenSearchHttpClient.ts @@ -59,6 +59,7 @@ export interface OpenSearchInfo { build_hash: string build_snapshot: boolean build_type: string + distribution: string lucene_version: string minimum_index_compatibility_version: string minimum_wire_compatibility_version: string