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