From 5631d3ccef6dd5af9ba6813d4be85b83b4db7166 Mon Sep 17 00:00:00 2001 From: Jakob Date: Tue, 12 Mar 2024 15:50:28 +0100 Subject: [PATCH] opensearchapi: revert node info OpensearchVersion type change (#483) 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 92e082939..e56c02bd6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,7 +11,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