Commit be596d0
committed
Fix nodes API compatibility with OpenSearch 3.1.0+ search pipelines
OpenSearch 3.1.0 introduced a new phase_results_processors field in the
search_pipelines section of the nodes info API response. The Go client's
NodesInfoSearchPipelines struct was missing this field, causing it to be
dropped during JSON marshalling/unmarshalling. This resulted in test
failures when comparing raw JSON with parsed JSON.
Add PhaseResultsProcessors field with omitempty tag to maintain backward
compatibility with older OpenSearch versions that don't have this field.
Signed-off-by: Sean Chittenden <sean.chittenden@crowdstrike.com>1 parent d85792a commit be596d0
2 files changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
190 | | - | |
191 | | - | |
192 | | - | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
193 | 194 | | |
194 | 195 | | |
195 | 196 | | |
| |||
0 commit comments