Skip to content
Discussion options

You must be logged in to vote

@fnep Yes, you are right. I think this regression problem lies in this line. I think this should be

if value is not None:
    values[field.alias] = value

because alias in first_field_info is set to alias if we specified in Form(alias=...), and if not, field name is set to alias in first_field_info. Can you patch a local fastapi install with that change and give it a try?

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@fnep
Comment options

@tonnico
Comment options

@tiangolo
Comment options

Answer selected by fnep
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question or problem
4 participants