Skip to content

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

Merged
tiangolo merged 2 commits intofastapi:masterfrom
lokomilo:master
Aug 15, 2024
Merged

📝 Fix inconsistent response code when item already exists in docs for testing#11818
tiangolo merged 2 commits intofastapi:masterfrom
lokomilo:master

Conversation

@lokomilo
Copy link
Copy Markdown

@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
Copy Markdown
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
Copy Markdown
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
black-redoc pushed a commit to black-redoc/fastapi that referenced this pull request Aug 16, 2024
… testing (fastapi#11818)

Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
black-redoc pushed a commit to black-redoc/fastapi that referenced this pull request Aug 17, 2024
… testing (fastapi#11818)

Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
s-rigaud pushed a commit to s-rigaud/fastapi that referenced this pull request Jan 23, 2025
… testing (fastapi#11818)

Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
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.

5 participants