mitchellh / mapstructure

Go library for decoding generic map values into native Go structures and vice versa.
https://gist.github.com/mitchellh/90029601268e59a29e64e55bab1c5bdc
MIT License
7.93k stars 677 forks source link

Feature/error namespace #331

Open lucaf opened 1 year ago

lucaf commented 1 year ago

Currently, the errors returned by mapstructure lack of structured details like the namepace and the value which caused them, which are essential to perform any post-decode action aimed to fix the problems. With this PR I address this issue by introducing the Namespace type and by refactoring the errors and their management.