File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed
modules/swagger-codegen/src/main/resources/python
samples/client/petstore/python Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -219,15 +219,15 @@ class Configuration(object):
219
219
' key' : ' Authorization' ,
220
220
' value' : self.get_basic_auth_token()
221
221
} ,
222
- { {/isBasic} }{ {#isOauth } }
222
+ { {/isBasic} }{ {#isOAuth } }
223
223
'{ {name} }':
224
224
{
225
225
' type' : ' oauth2' ,
226
226
' in' : ' header' ,
227
227
' key' : ' Authorization' ,
228
228
' value' : ' Bearer ' + self.access_token
229
229
} ,
230
- { {/isOauth } }{ {/authMethods} }
230
+ { {/isOAuth } }{ {/authMethods} }
231
231
}
232
232
233
233
def to_debug_report(self):
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ This Python package is automatically generated by the [Swagger Codegen](https://
5
5
6
6
- API version: 1.0.0
7
7
- Package version: 1.0.0
8
- - Build date: 2016-06-05T23:15:10.095 +09:00
8
+ - Build date: 2016-06-07T08:27:42.099 +09:00
9
9
- Build package: class io.swagger.codegen.languages.PythonClientCodegen
10
10
11
11
## Requirements.
Original file line number Diff line number Diff line change @@ -221,6 +221,14 @@ def auth_settings(self):
221
221
:return: The Auth Settings information dict.
222
222
"""
223
223
return {
224
+
225
+ 'petstore_auth' :
226
+ {
227
+ 'type' : 'oauth2' ,
228
+ 'in' : 'header' ,
229
+ 'key' : 'Authorization' ,
230
+ 'value' : 'Bearer ' + self .access_token
231
+ },
224
232
'api_key' :
225
233
{
226
234
'type' : 'api_key' ,
You can’t perform that action at this time.
0 commit comments