From 65f5a69bad4f61f561d36e105ad2cfa693c99508 Mon Sep 17 00:00:00 2001 From: Richard Date: Tue, 13 Jul 2021 22:49:06 +0100 Subject: [PATCH] fix openapi response in docs --- docs/source/extensions/actions.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/source/extensions/actions.rst b/docs/source/extensions/actions.rst index 5463ccfd..1a9fb2ac 100644 --- a/docs/source/extensions/actions.rst +++ b/docs/source/extensions/actions.rst @@ -22,7 +22,9 @@ Like properties, we use a special view class to identify a view as an action: `` # Our success response (200) returns an image (image/jpeg mimetype) responses = { - 200: {"content_type": "image/jpeg"} + 200: { + "content": { "image/jpeg": {} }, + } } def post(self, args):