From b22823162d30bc17331f99c4db7f8e52f7072821 Mon Sep 17 00:00:00 2001 From: Yevhenii Hyzyla Date: Mon, 7 Feb 2022 10:05:03 +0000 Subject: [PATCH] Return AiohttpApiSpec for setup_aiohttp_apispec --- aiohttp_apispec/aiohttp_apispec.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aiohttp_apispec/aiohttp_apispec.py b/aiohttp_apispec/aiohttp_apispec.py index 98cf1b4..7160bdd 100644 --- a/aiohttp_apispec/aiohttp_apispec.py +++ b/aiohttp_apispec/aiohttp_apispec.py @@ -300,8 +300,10 @@ async def index(request): :param prefix: prefix to add to all registered routes :param schema_name_resolver: custom schema_name_resolver for MarshmallowPlugin. :param kwargs: any apispec.APISpec kwargs + :return: return instance of AiohttpApiSpec class + :rtype: AiohttpApiSpec """ - AiohttpApiSpec( + return AiohttpApiSpec( url, app, request_data_name,