The response should be unmarshalled correctly, returning an LogEvent object
What is the actual behavior?
An error is returned
Reproduction Steps?
Call ListLogEvents(), from the okta.SystemLogAPI client
Additional Information?
The response looks something like:
"detailEntry":{"expires":"2024-05-15T14:58:13.000Z","hash":"SOME_HASH"}}
however, in okta/model_log_target.go, the DetailEntry field is defined as: map[string]map[string]interface{}
I believe the correct field type is: map[string]string
Describe the bug?
When calling ListLogEvents of the SystemLogAPI, an error is returned:
json: cannot unmarshal string into Go struct field _LogEvent.target of type map[string]interface {}
See: https://developer.okta.com/docs/reference/api/system-log/#logevent-object
What is expected to happen?
The response should be unmarshalled correctly, returning an LogEvent object
What is the actual behavior?
An error is returned
Reproduction Steps?
Call ListLogEvents(), from the okta.SystemLogAPI client
Additional Information?
The response looks something like: "detailEntry":{"expires":"2024-05-15T14:58:13.000Z","hash":"SOME_HASH"}}
however, in okta/model_log_target.go, the DetailEntry field is defined as: map[string]map[string]interface{} I believe the correct field type is: map[string]string
Golang Version
go version go1.22.1 darwin/arm64
SDK Version
v4.1.0
OS version
No response