As of now, pydantic2avro is crashing for most of the types in pydantic.networks, except for pydantic.networks.EmailStr. We can patch it quickly in about 5 minutes, but for a more elegant and reliable solution, we'll need to dive deeper. The idea is to include the specific type from pydantic.networks (like pydantic.networks.PostgresDsn) in the Avro schema as extra info. This approach will take a bit more experimentation, but it promises a more robust fix in the long run and can provide more insights to the reader of auto generated Avro schemas for debugging purposes.
Tasks:
[ ] Include the specific type from pydantic.networks (like pydantic.networks.PostgresDsn) in the Avro schema as extra info.
As of now,
pydantic2avro
is crashing for most of the types inpydantic.networks
, except forpydantic.networks.EmailStr
. We can patch it quickly in about 5 minutes, but for a more elegant and reliable solution, we'll need to dive deeper. The idea is to include the specific type frompydantic.networks
(likepydantic.networks.PostgresDsn
) in the Avro schema as extra info. This approach will take a bit more experimentation, but it promises a more robust fix in the long run and can provide more insights to the reader of auto generated Avro schemas for debugging purposes.Tasks:
pydantic.networks
(likepydantic.networks.PostgresDsn
) in the Avro schema as extra info.