Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

🐛 Fix parameter aliases#14371

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
YuriiMotov wants to merge2 commits intofastapi:master
base:master
Choose a base branch
Loading
fromYuriiMotov:fix-aliases

Conversation

@YuriiMotov
Copy link
Member

@YuriiMotovYuriiMotov commentedNov 19, 2025
edited
Loading

This PR fixes the rest of failing tests in#14358 (after applying other fixes).

I will update this PR after resolving other issues listed in#14358.

No tests so far, will add some tests if we decide not to merge tests from#14358

Note: forvalidation_aliases only string value is currently supported. We can later think of supportingAliasPath andAliasChoices

Will also fix issues:

@YuriiMotovYuriiMotov added the bugSomething isn't working labelNov 19, 2025
@YuriiMotovYuriiMotov marked this pull request as ready for reviewNovember 19, 2025 07:19
else:
kwargs["deprecated"]=deprecated
ifPYDANTIC_V2:
ifserialization_aliasin (_Unset,None)andisinstance(alias,str):
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

returnfinal_field


defget_validation_alias(field:ModelField)->str:
Copy link
MemberAuthor

@YuriiMotovYuriiMotovNov 19, 2025
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Should we add cache?

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

bugSomething isn't working

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@YuriiMotov

[8]ページ先頭

©2009-2025 Movatter.jp