mirror of
https://github.com/kennethreitz/pydantic.git
synced 2026-06-05 23:00:18 +00:00
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).
This commit is contained in:
@@ -0,0 +1 @@
|
||||
Fix validation of discriminated union fields with an alias when passing a model instance
|
||||
Reference in New Issue
Block a user