Skip to content

Commit

Permalink
Fixes response validation error when description is not provided.
Browse files Browse the repository at this point in the history
  • Loading branch information
mat-work committed Dec 3, 2020
1 parent 9b110f7 commit e96db8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aiohttp_apispec/decorators/response.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def wrapper(func):
func.__apispec__["responses"]["%s" % code] = {
"schema": schema,
"required": required,
"description": description,
"description": description or "",
}
return func

Expand Down

0 comments on commit e96db8b

Please sign in to comment.