Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support dependency overrides on the versioned app #33

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pshen-rp
Copy link

I ran into this issue, #19, and made an easy fix so clients can add the dependency overrides directly to the VersionedFastAPI. However, it doesn't work if they overwrite the dependency overrides altogether like so:

app = VersionedFastAPI(app)
app.dependency_overrides = {dependency: lambda: "patched"}

@MarvinSchenkel
Copy link

Is there any way we can get this PR merged? I would love to be able to use this out of the box

@leo-shao07
Copy link

@DeanWay can you please merge this, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants