You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Including validate_assignment = True in a model's config seems to cause assignment to change the field order when using dict(). This change was discovered when upgrading to 1.7.0 and also applies to 1.7.1, but was not present in prior versions.
Activity
fix: keep the order of the fields when `validate_assignment` is set
PrettyWood commentedon Oct 30, 2020
Hi @coldino
Thanks for reporting!
I just made a fix for this, which may well be added in v1.7.2 coming out in the next few days.
coldino commentedon Oct 30, 2020
Excellent. Thank you very much for all your hard work.
Upgrade pydantic temporarily to a bugfix branch
fix: keep the order of the fields when `validate_assignment` is set (#…