Fix 'isOauth' to 'isOAuth' in python template

This commit is contained in:
Takuro Wada 2016-06-07 08:30:17 +09:00
parent 895f13cc11
commit 3c919974a7
3 changed files with 11 additions and 3 deletions

View File

@ -219,7 +219,7 @@ class Configuration(object):
'key': 'Authorization',
'value': self.get_basic_auth_token()
},
{{/isBasic}}{{#isOauth}}
{{/isBasic}}{{#isOAuth}}
'{{name}}':
{
'type': 'oauth2',
@ -227,7 +227,7 @@ class Configuration(object):
'key': 'Authorization',
'value': 'Bearer ' + self.access_token
},
{{/isOauth}}{{/authMethods}}
{{/isOAuth}}{{/authMethods}}
}
def to_debug_report(self):

View File

@ -5,7 +5,7 @@ This Python package is automatically generated by the [Swagger Codegen](https://
- API version: 1.0.0
- Package version: 1.0.0
- Build date: 2016-06-05T23:15:10.095+09:00
- Build date: 2016-06-07T08:27:42.099+09:00
- Build package: class io.swagger.codegen.languages.PythonClientCodegen
## Requirements.

View File

@ -221,6 +221,14 @@ class Configuration(object):
:return: The Auth Settings information dict.
"""
return {
'petstore_auth':
{
'type': 'oauth2',
'in': 'header',
'key': 'Authorization',
'value': 'Bearer ' + self.access_token
},
'api_key':
{
'type': 'api_key',