New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Field(alias=...) not honored by validate_arguments decorator #2429
Comments
Related to #2176. I would argue that this is a feature request, rather than a bug, we don't say anywhere (AFAIK) that I do think support would make sense though. |
@samuelcolvin we are experiencing same issues. this started happening after our recent dependency update to previously, we had a chance to populate by alias or/and by resulting field name. now this feature is broken.
then both of this worked
now we receive:
we will rollback to |
@spawn-guy You just need to have a quick look at the changelog.
So just use |
It seems that is issue is already fixed by PR #3019. |
Checks
Bug
Output of
python -c "import pydantic.utils; print(pydantic.utils.version_info())"
:The following program:
fails with the following error:
The
alias
parameter toField
evidently has no effect when used withvalidate_arguments
. I can find no mention of this limitation in the docs, and so I assume it is a bug.The text was updated successfully, but these errors were encountered: