8000 fix: added schema for new tests to openapi json · fastapi/fastapi@3c79e5b · GitHub
[go: up one dir, main page]

Skip to content

Commit 3c79e5b

Browse files
committed
fix: added schema for new tests to openapi json
1 parent f96a078 commit 3c79e5b

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

tests/test_starlette_exception.py

< 8000 div class="d-flex flex-row flex-justify-end flex-items-center gap-2 flex-1 DiffFileHeader-module__container-flex-order--YkBrw">
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,36 @@ async def read_starlette_item(item_id: str):
4343
"openapi": "3.0.2",
4444
"info": {"title": "FastAPI", "version": "0.1.0"},
4545
"paths": {
46+
"/http-no-body-statuscode-exception": {
47+
"get": {
48+
"operationId": "no_body_status_code_exception_http_no_body_statuscode_exception_get",
49+
"responses": {
50+
"200": {
51+
"content": {"application/json": {"schema": {}}},
52+
"description": "Successful " "Response",
53+
}
54+
},
55+
"summary": "No Body " "Status " "Code " "Exception",
56+
}
57+
},
58+
"/http-no-body-statuscode-with-detail-exception": {
59+
"get": {
60+
"operationId": "no_body_status_code_with_detail_exception_http_no_body_statuscode_with_detail_exception_get",
61+
"responses": {
62+
"200": {
63+
"content": {"application/json": {"schema": {}}},
64+
"description": "Successful " "Response",
65+
}
66+
},
67+
"summary": "No "
68+
"Body "
69+
"Status "
70+
"Code "
71+
"With "
72+
"Detail "
73+
"Exception",
74+
}
75+
},
4676
"/items/{item_id}": {
4777
"get": {
4878
"responses": {

0 commit comments

Comments
 (0)
0