New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for IpAddress #333
Comments
I guess This would be a great issue for anyone new keen to contribute to pydantic. |
@samuelcolvin |
yes please, reopened this. |
Is json serialization supposed to work for this field? Is it just a matter of adding it to ENCODERS_BY_TYPE?
|
ENCODERS_BY_TYPE: Dict[Type[Any], Callable[[Any], Any]] = {
IPv4Address: str,
IPv6Address: str,
IPv4Interface: str,
IPv6Interface: str,
IPv4Network: str,
IPv6Network: str,
... Unittests to |
Yes should be supported. @pilosus would be great if you could do this. |
I have error... |
* add s390x & ppc64le linux binaries * bump * setting interpreter and container
Feature Request
https://docs.python.org/3/library/ipaddress.html
Both the stdlib
IPv4Address
andIPv6Address
should work out of the box, also I guessIPAddress
orIPvXAddress
class will have to be included in pydantic which allows both v4 and v6 addresses. I guess this should inherit from_BaseAddress
inLib/ipaddress.py
The text was updated successfully, but these errors were encountered: