Closed alexejk closed 6 months ago
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
100.0% Coverage on New Code
0.0% Duplication on New Code
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 77.91%. Comparing base (
96e03e7
) to head (1f615e0
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Fixes an issues where responses that have an outer array with a nested struct and other mixed types would not be decoded correctly, throwing a panic.
Example response:
Correct way of mapping this response is to
Main issue with decoding this response prior to this PR, would be that
any
in array type is not assignable as is with decoded types. This PR changes the logic to detect if an interface is mapped when attempting to decode a<struct>
and assign amap[string]any
to the field instead.Fixes #84