We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 293aac9 commit 1317fadCopy full SHA for 1317fad
swagger_py_codegen/templates/sanic/blueprint.tpl
@@ -8,7 +8,7 @@ from .validators import security
8
9
10
@security.scopes_loader
11
-def current_scopes():
+def current_scopes(request):
12
return {{ scopes_supported }}
13
14
bp = Blueprint('{{ blueprint }}', __name__)
swagger_py_codegen/templates/sanic/schemas.tpl
@@ -41,7 +41,7 @@ class Security(object):
41
42
def __init__(self):
43
super(Security, self).__init__()
44
- self._loader = lambda: []
+ self._loader = lambda x: []
45
46
@property
47
def scopes(self):
0 commit comments