From 888e4a907282acd109b9e98380d5fe4f675ada50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=9D=8F=E6=9D=91?= Date: Sat, 7 Sep 2019 18:10:35 +0800 Subject: [PATCH] Update schemas.tpl --- swagger_py_codegen/templates/sanic/schemas.tpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/swagger_py_codegen/templates/sanic/schemas.tpl b/swagger_py_codegen/templates/sanic/schemas.tpl index fd90c23..69a0d14 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 +import jsonschema base_path = '{{base_path}}' @@ -28,7 +29,7 @@ scopes = { } -resolver = RefResolver.from_schema(definitions) +resolver = jsonschema.RefResolver.from_schema(definitions) class Current(object):