We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 386a36d commit d575c0bCopy full SHA for d575c0b
examples/fastapi_usage.py
@@ -67,6 +67,7 @@ async def get_user(user_id: int = Path(..., description="The ID of the user")):
67
error_code=CustomExceptionCode.USER_NOT_FOUND,
68
http_status_code=404,
69
)
70
+
71
if user_id == 2:
72
raise TypeError("Invalid type provided.")
73
if user_id == 3:
0 commit comments