You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also note that we would like to generate the client from spec to catch all this kind of problems (#284), so would be great to check the spec for correctness for this API.
What is the bug?
MappingFieldResp struct is not parsed correctly.
How can one reproduce the bug?
A short snippet
prints
What is the expected behavior?
It should parse the data correctly
What is your host/environment?
Linux
Do you have any additional context?
The issue is that there is an additional
Indices
field which is there inside the struct which is not allowing the response to be parsed properly.Here:
opensearch-go/opensearchapi/api_indices-mapping.go
Line 63 in 6836d76
data.Indices
instead ofdata
.I am not sure how the unit tests are passing. But it seems like a pretty straightforward bug to me.
EDIT: Something like this works:
The text was updated successfully, but these errors were encountered: