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

📝 Fix inconsistent response code when item already exists in docs for testing #11818

Merged
merged 2 commits into from
Aug 15, 2024

Conversation

lokomilo
Copy link
Contributor

@lokomilo lokomilo commented Jul 10, 2024

In #4482, the response status code was changed to return 409 when the item already exists in non-Annotated examples, but it is 400 in the other examples created after that PR.

In #4482, the response status code was changed to return 409 when the item already exists in non-Annotated examples, but left as 400 in the others. Seems like an oversight, unless this was done intentionally for a reason I'm not aware of.
@tiangolo
Copy link
Member

📝 Docs preview for commit f3c1a2d at: https://7d76d610.fastapitiangolo.pages.dev

@alejsdev alejsdev added the docs Documentation about how to use FastAPI label Jul 10, 2024
@tiangolo
Copy link
Member

Good catch, thank you @lokomilo! 🔍 🚀

@tiangolo tiangolo enabled auto-merge (squash) August 15, 2024 22:29
@tiangolo tiangolo merged commit 2cb1333 into fastapi:master Aug 15, 2024
48 checks passed
black-redoc pushed a commit to black-redoc/fastapi that referenced this pull request Aug 16, 2024
black-redoc pushed a commit to black-redoc/fastapi that referenced this pull request Aug 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation about how to use FastAPI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants