From e96db8b4fd97c27987c3f117a87350ffed99b2fb Mon Sep 17 00:00:00 2001 From: Matteo Marangoni Date: Thu, 3 Dec 2020 01:36:19 +0100 Subject: [PATCH] Fixes response validation error when description is not provided. --- aiohttp_apispec/decorators/response.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiohttp_apispec/decorators/response.py b/aiohttp_apispec/decorators/response.py index df2f8ea..970cbba 100644 --- a/aiohttp_apispec/decorators/response.py +++ b/aiohttp_apispec/decorators/response.py @@ -33,7 +33,7 @@ def wrapper(func): func.__apispec__["responses"]["%s" % code] = { "schema": schema, "required": required, - "description": description, + "description": description or "", } return func