marshmallow
marshmallow copied to clipboard
Add type mapping from IP* fields to ipaddress
See https://github.com/lovasoa/marshmallow_dataclass/issues/114
IP, IPv4 and IPv6 fields have no mapping declared in the TYPES_MAPPING dict. At least IPv4 and IPv6 could be mapped to respectively ipaddress.IPv4Address and ipaddress.IPv6Address to transparently handle these data types with annotations. I'm unsure on how to do it for IP.
Seems reasonable to add those to TYPE_MAPPING. PRs welcome!