mapstructure v1.5.0 Release Notes
-
- ๐ New option
IgnoreUntaggedFields
to ignore decoding to any fields withoutmapstructure
(or the configured tag name) set [GH-277] - ๐ New option
ErrorUnset
which makes it an error if any fields in a target struct are not set by the decoding process. [GH-225] - ๐ New function
OrComposeDecodeHookFunc
to help compose decode hooks. [GH-240] - Decoding to slice from array no longer crashes [GH-265]
- Decode nested struct pointers to map [GH-271]
- ๐ Fix issue where
,squash
was ignored ifSquash
option was set. [GH-280] - ๐ Fix issue where fields with
,omitempty
would sometimes decode into a map with an empty string key [GH-281]
- ๐ New option