Skip to content
Discussion options

You must be logged in to vote

IPvAnyAddressType is a type alias for IPv4Address | IPv6Address: https://github.com/pydantic/pydantic/blob/06448aa41764d0c1e1c2f9455b108c4b21012929/pydantic/networks.py#L1094

And, SQLModel doesn't currently support unions (only Optional-like unions like Union[SomeType, None] are supported).

See similar discussion that provides the solution: #847

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@limjh16
Comment options

Answer selected by YuriiMotov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
2 participants