From 93737ffa399cea07122babba6d69ac7bc8cfbadb Mon Sep 17 00:00:00 2001 From: John Lin Date: Wed, 30 Jun 2021 12:56:56 +0800 Subject: [PATCH] Add required argument of APISpec: openapi_version Before this commit, running the sample code will throw: TypeError: __init__() missing 1 required positional argument: 'openapi_version' --- README.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/README.rst b/README.rst index 89e2356..6c9935c 100644 --- a/README.rst +++ b/README.rst @@ -95,6 +95,7 @@ Quickstart 'APISPEC_SPEC': APISpec( title='pets', version='v1', + openapi_version='3.0.3', plugins=[MarshmallowPlugin()], ), 'APISPEC_SWAGGER_URL': '/swagger/',