💨 Fast, Async-ready, Openapi, type hints based framework for building APIs
7.34k
stars
437
forks
source link
[BUG] Same path apis with different method and async sync are mixed then all considered as async when testing #1347
Open
LeeJB-48 opened 4 hours ago
Describe the bug if same path with different method and async sync are mixed then they are all considered as async when testing
i use async for (GET) operation and use sync for (POST,DELETE,PUT,PATCH) operations but i got error when testing
example code is below
and it throws an error says
so i found PathView._async_view from
but i found that both callbacks are all PathView._async_view , even for the sync view (POST method)
and the reason is that when operations are added to Router() for same path , then even if one operation is async , then all considered async
i'm having a trouble because of that
is this a bug? or is there any purpose for that?
Versions (please complete the following information):