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

Sets response model to None for all delete endpoints to address breaking changes in FastAPI v0.80.0 #2472

Merged
merged 2 commits into from Aug 31, 2022

Conversation

mvilanova
Copy link
Contributor

In FastAPI versions 0.80.0 or newer, the server now raises an internal server error if you are using response_model with some type that doesn't include None, but the function is returning None. More details here.

This PR sets response_model for all delete endpoints to None to prevent errors, and fixes some typos, docstrings, and response messages.

@mvilanova mvilanova added the bug Something isn't working label Aug 31, 2022
@mvilanova mvilanova merged commit c6e037a into master Aug 31, 2022
@mvilanova mvilanova deleted the bugfix/fastapi-response-model-none branch August 31, 2022 17:28
@lgtm-com
Copy link

lgtm-com bot commented Aug 31, 2022

This pull request fixes 1 alert when merging 5daaa2f into 41f951e - view on LGTM.com

fixed alerts:

  • 1 for Unused import

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant