Open fishjam opened 10 months ago
@router.get("/user/{name}", tags=["User"]) # , response_model=CommonResponse[list(User)]
async def query_user_by_name(self, name: str = Query(..., max_length=10)) -> CommonResponse:
You should use something like this
Describe the bug I create a
user.py
to check fastapi-utils, there are 4 method.when I try execute the query_by_name, seems it match to
/user/{user_id}
. and getHTTP/1.1 422 Unprocessable Entity
Error.Screenshots![image](https://github.com/dmontagu/fastapi-utils/assets/1870684/00db35ea-60e8-4937-87c7-732ea7f53974)
Environment:
Additional context BTW: I add log in
__init__
method, I found every I execute the rest api, the__init__
will execute, is it right?