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

Comments

Fix ann compat#14942

Draft
JavierSanchezCastro wants to merge 16 commits intofastapi:masterfrom
JavierSanchezCastro:fix_ann_compat
Draft

Fix ann compat#14942
JavierSanchezCastro wants to merge 16 commits intofastapi:masterfrom
JavierSanchezCastro:fix_ann_compat

Conversation

@JavierSanchezCastro
Copy link
Contributor

when we try to generate openapi schema we lose the info (meta) from annotated, the get_def extracts all and then rewrap in the modelfield (to avoid duplication in the schema??), now using the lenient_issubclass just basemodel are gonna be flatted, enums (currency from iso4217) are correctly handled (need tests!)

This probably is not needed if they declare correctly theget_pydantic_json_schema but I think that WithJsonSchema should be respectedhttps://docs.pydantic.dev/latest/api/json_schema/#pydantic.json_schema.WithJsonSchema

Javier Sánchezand others added16 commitsOctober 30, 2025 10:50
Co-authored-by: Motov Yurii <109919500+YuriiMotov@users.noreply.github.com>
Co-authored-by: Motov Yurii <109919500+YuriiMotov@users.noreply.github.com>
@codspeed-hq
Copy link

Merging this PR willnot alter performance

✅ 20 untouched benchmarks


ComparingJavierSanchezCastro:fix_ann_compat (c167985) withmaster (faee822)1

Open in CodSpeed

Footnotes

  1. No successful run was found onmaster (c441583) during the generation of this report, so faee822 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

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

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@JavierSanchezCastro@YuriiMotov

[8]ページ先頭

©2009-2026 Movatter.jp