Files
pydantic/changes/3846-chornsby.md
T
Charlie Hornsby cd439a4e8d fix: access discriminator field on BaseModel instance using key (#3847)
When validating a discriminated union where the union value has been
passed as a Pydantic model instance, we should access the discriminator
field value using the field name and not the field alias (whether one is
set or not).
2022-08-08 14:43:23 +01:00

89 B

Fix validation of discriminated union fields with an alias when passing a model instance