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
{{ message }}
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.
As the title says, when trying to decode a pointer of a pointer of any supported type to a map, mapstructure returns an error saying '' expected a map, got 'ptr'.
The following code reproduces the issue on the latest main branch:
The text was updated successfully, but these errors were encountered:
sagikazarmark
changed the title
Decoding structs to maps with multiple indirection results in an error
Decoding maps with multiple indirection results in an error
Dec 8, 2023
sagikazarmark
changed the title
Decoding maps with multiple indirection results in an error
Decoding to maps with multiple indirection results in an error
Dec 8, 2023
sagikazarmark
added a commit
to sagikazarmark/mapstructure
that referenced
this issue
Dec 8, 2023
As the title says, when trying to decode a pointer of a pointer of any supported type to a map, mapstructure returns an error saying
'' expected a map, got 'ptr'
.The following code reproduces the issue on the latest main branch:
The relevant code (here) checks for one level of indirection.
See spf13/viper#1706 for more details
The text was updated successfully, but these errors were encountered: