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):