From fa44eab228a119799d2ce702f2f31622911d9d03 Mon Sep 17 00:00:00 2001 From: Ivo Dai Date: Thu, 12 Sep 2019 10:08:24 +0800 Subject: [PATCH] change sanic template schemas.tpl to solve "NameError: name 'RefResolver' is not defined" --- swagger_py_codegen/templates/sanic/schemas.tpl | 1 + 1 file changed, 1 insertion(+) diff --git a/swagger_py_codegen/templates/sanic/schemas.tpl b/swagger_py_codegen/templates/sanic/schemas.tpl index fd90c23..747e195 100644 --- a/swagger_py_codegen/templates/sanic/schemas.tpl +++ b/swagger_py_codegen/templates/sanic/schemas.tpl @@ -4,6 +4,7 @@ {% include '_do_not_change.tpl' %} import six +from jsonschema import RefResolver base_path = '{{base_path}}'