Make `to` and `from` optional?
radix opened this issue · 2 comments
radix commented
One thing that confused me when trying out this library is that I was trying to serialize some existing models I had. All I was getting back from to_dict
was {}
. I didn't realize that the to
and from
metadata were required. Would it be acceptable if they weren't, and instead defaulted to the equivalent of [attr_name]
? So a model that contained a field phone = attr.ib()
would be serialized as a dict with {"phone": ...}
?
jondot commented
hey, love your work BTW, just went over a few of your projects 😉