mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-08 19:33:55 +00:00
Fix 'isOauth' to 'isOAuth' in python template
This commit is contained in:
parent
895f13cc11
commit
3c919974a7
@ -219,7 +219,7 @@ class Configuration(object):
|
|||||||
'key': 'Authorization',
|
'key': 'Authorization',
|
||||||
'value': self.get_basic_auth_token()
|
'value': self.get_basic_auth_token()
|
||||||
},
|
},
|
||||||
{{/isBasic}}{{#isOauth}}
|
{{/isBasic}}{{#isOAuth}}
|
||||||
'{{name}}':
|
'{{name}}':
|
||||||
{
|
{
|
||||||
'type': 'oauth2',
|
'type': 'oauth2',
|
||||||
@ -227,7 +227,7 @@ class Configuration(object):
|
|||||||
'key': 'Authorization',
|
'key': 'Authorization',
|
||||||
'value': 'Bearer ' + self.access_token
|
'value': 'Bearer ' + self.access_token
|
||||||
},
|
},
|
||||||
{{/isOauth}}{{/authMethods}}
|
{{/isOAuth}}{{/authMethods}}
|
||||||
}
|
}
|
||||||
|
|
||||||
def to_debug_report(self):
|
def to_debug_report(self):
|
||||||
|
@ -5,7 +5,7 @@ This Python package is automatically generated by the [Swagger Codegen](https://
|
|||||||
|
|
||||||
- API version: 1.0.0
|
- API version: 1.0.0
|
||||||
- Package 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
|
- Build package: class io.swagger.codegen.languages.PythonClientCodegen
|
||||||
|
|
||||||
## Requirements.
|
## Requirements.
|
||||||
|
@ -221,6 +221,14 @@ class Configuration(object):
|
|||||||
:return: The Auth Settings information dict.
|
:return: The Auth Settings information dict.
|
||||||
"""
|
"""
|
||||||
return {
|
return {
|
||||||
|
|
||||||
|
'petstore_auth':
|
||||||
|
{
|
||||||
|
'type': 'oauth2',
|
||||||
|
'in': 'header',
|
||||||
|
'key': 'Authorization',
|
||||||
|
'value': 'Bearer ' + self.access_token
|
||||||
|
},
|
||||||
'api_key':
|
'api_key':
|
||||||
{
|
{
|
||||||
'type': 'api_key',
|
'type': 'api_key',
|
||||||
|
Loading…
Reference in New Issue
Block a user