From 66f24ccba0d36892cab53f2694c75c6b16f56fb6 Mon Sep 17 00:00:00 2001 From: Jakob Hahn Date: Mon, 11 Mar 2024 15:18:19 +0100 Subject: [PATCH] opensearchapi: revert node info OpensearchVersion type change Signed-off-by: Jakob Hahn --- CHANGELOG.md | 1 - opensearchapi/api_nodes-info.go | 18 +++++++++--------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f117e01c7..12e853086 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,7 +10,6 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) - Added new struct fields introduced by opensearch 2.12 ([#482](https://github.com/opensearch-project/opensearch-go/pull/482)) - Adds initial admin password environment variable and CI changes to support 2.12.0 release ([#449](https://github.com/opensearch-project/opensearch-go/pull/449)) ### Changed -- Changed field opensearch_version of type NodesInfoPlugin to json.RawMessage as opensearch 3.0.0 uses an array instead of string ([#482](https://github.com/opensearch-project/opensearch-go/pull/482)) ### Deprecated ### Removed ### Fixed diff --git a/opensearchapi/api_nodes-info.go b/opensearchapi/api_nodes-info.go index ec99cfc03..cfd3e68a6 100644 --- a/opensearchapi/api_nodes-info.go +++ b/opensearchapi/api_nodes-info.go @@ -161,15 +161,15 @@ type NodesInfoHTTP struct { // NodesInfoPlugin is a sub type of NodesInfo containing information about a plugin type NodesInfoPlugin struct { - Name string `json:"name"` - Version string `json:"version"` - OpensearchVersion json.RawMessage `json:"opensearch_version"` - JavaVersion string `json:"java_version"` - Description string `json:"description"` - Classname string `json:"classname"` - CustomFoldername string `json:"custom_foldername"` - ExtendedPlugins []string `json:"extended_plugins"` - HasNativeController bool `json:"has_native_controller"` + Name string `json:"name"` + Version string `json:"version"` + OpensearchVersion string `json:"opensearch_version"` + JavaVersion string `json:"java_version"` + Description string `json:"description"` + Classname string `json:"classname"` + CustomFoldername string `json:"custom_foldername"` + ExtendedPlugins []string `json:"extended_plugins"` + HasNativeController bool `json:"has_native_controller"` } // NodesInfoIngest is a sub type of NodesInfo containing information about ingest processors