off_by_onee

Results 5 comments of off_by_onee

Has there been any progress on this feature?

For anyone else who needs this in the meantime, here's an example of how to do it with type_hooks like @emosenkis mentioned. ```py from dataclasses import dataclass import enum from...

I recently ran into a use-case for this as well. It'd be a great addition. It looks like it can be supported as a standard union (haven't looked into tagged)...

The suggested change above was generating an invalid Avro schema. The following patch provides support for converting a JSON discriminated union to an Avro union ``` diff --git a/src/pydantic_avro/base.py b/src/pydantic_avro/base.py...

@timvancann @ffinfo What do you think? Would this be a welcome change?