dacite
dacite copied to clipboard
Better error messages for nested structs
- dicts now have the key name in them
- lists/tuples now have the index in them
Old error message:
dacite.exceptions.WrongTypeError: wrong value type for field "t.t2.name" - should be "str" instead of value "1" of type "int"
New error message:
dacite.exceptions.WrongTypeError: wrong value type for field "t[name].t2[0].name" - should be "str" instead of value "1" of type "int"