Browse Source
When using from __future__ import annotations with Annotated[Potato, Depends(...)], the annotation can reach analyze_param as a ForwardRef. Previously only str was resolved; ForwardRef was returned as-is, causing Depends to be missed and the param to be treated as a Query param. This led to PydanticUserError during OpenAPI schema generation. Extend get_typed_annotation to also resolve ForwardRef before returning.pull/15142/head
1 changed files with 1 additions and 0 deletions
Loading…
Reference in new issue