Describe the bug
When calling an endpoint that can return multiple errors (for example the event batch endpoint), RESTY can't parse the error into the error struct.
The error is:
WARN RESTY Cannot unmarshal response body: json: cannot unmarshal object into Go struct field Error.error_details of type []string
Describe the bug When calling an endpoint that can return multiple errors (for example the event batch endpoint), RESTY can't parse the error into the error struct.
The error is:
The JSON response of the error:
To Reproduce Call the event batch endpoint with multiple events that already exist.
Expected behavior Receiving an error struct that contains all the errors in the response.