Files
connexion/tests/fakeapi/aiohttp_handlers_async_def.py
Diogo Dutra b02023ce1c fix on utils.has_coroutine function (#600)
Fixed coroutinefunction verification when has async def.
   It is necessary because there's no @asyncio.coroutine decorator to validate
2018-09-13 11:57:39 +02:00

6 lines
149 B
Python

from connexion.lifecycle import ConnexionResponse
async def aiohttp_validate_responses():
return ConnexionResponse(body=b'{"validate": true}')