Skip to content

Commit

Permalink
opensearchapi: changed cat indices Primary and Replica field to point…
Browse files Browse the repository at this point in the history
…er as it can be null

Signed-off-by: Jakob Hahn <jakob.hahn@hetzner.com>
  • Loading branch information
Jakob3xD committed Mar 14, 2024
1 parent bd45879 commit 7c15cdc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- Changed integration tests to work with secure and unsecure opensearch ([#488](https://github.com/opensearch-project/opensearch-go/pull/488))
- Moved functions from opensearch/internal/test to internal/test for more general test uses ([#488](https://github.com/opensearch-project/opensearch-go/pull/488))
- Changed custom_foldername field to pointer as it can be null ([#488](https://github.com/opensearch-project/opensearch-go/pull/488))
- Changed cat indices Primary and Replica field to pointer as it can be null ([#488](https://github.com/opensearch-project/opensearch-go/pull/488))
### Deprecated
### Removed
### Fixed
Expand Down
4 changes: 2 additions & 2 deletions opensearchapi/api_cat-indices.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ type CatIndexResp struct {
Status string `json:"status"`
Index string `json:"index"`
UUID string `json:"uuid"`
Primary int `json:"pri,string"`
Replica int `json:"rep,string"`
Primary *int `json:"pri,string"`
Replica *int `json:"rep,string"`
DocsCount *int `json:"docs.count,string"`
DocDeleted *int `json:"docs.deleted,string"`
CreationDate int `json:"creation.date,string"`
Expand Down

0 comments on commit 7c15cdc

Please sign in to comment.