fix(fastapi): update fastapi version to remove need for workaround, remove starlette direct dependency#11270
Merged
Conversation
…ed func's "__global__" contents
Contributor
🌱 Seed Test SelectorSelect languages to run seed tests for:
How to use: Click the ⋯ menu above → "Edit" → check the boxes you want → click "Update comment". Tests will run automatically and snapshots will be committed to this PR. |
…and starlette to 0.40.0 as a breaking change
sukeerthik-fern
commented
Dec 17, 2025
…ct.toml for dep version inspection
…tive version through FastAPI
… and "no-custom-config" so we can track fastapi version dep changes (starlette is no longer included)
…version changelog for 2.0.0
Contributor
Author
|
@tjb9dc made some changes that should clean things up
|
sukeerthik-fern
commented
Dec 17, 2025
Contributor
Author
There was a problem hiding this comment.
In this file, you'll see the removal of starlette and the updated fastapi version requirement.
tjb9dc
reviewed
Dec 17, 2025
tjb9dc
approved these changes
Dec 17, 2025
…available in latest fastapi version update
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Linear ticket: Closes https://linear.app/buildwithfern/issue/FER-8014/candid-remove-fastapi-wrapper-patching
FastAPI couldn't find forward ref type hints (ex. "SomeModel") in a wrapped func (wrapped with
@functools.wraps) without this workaround that copies wrapped func's__globals__dictinto the wrapper's__global__dict (which fastapi inspects).FastAPI fixed the issue fastapi/fastapi#5077 so we no longer need to do this workaround.
Bump the following deps:
as well as
fernapi/fern-fastapi-serverto 2.0.0 to indicate major/breaking change.Changes Made
__globals__dictexamplestest fixture.Testing
generate-package-depsto fastapiexamplesto output pyproject.toml that shows removed starlette direct dep and fastapi version locked