@@ -35,13 +35,12 @@ def self.updatePet (body, opts={})
35
35
# header parameters
36
36
headers = { }
37
37
38
- _header_accept = 'application/json, application/xml' ;
39
- if ( _header_accept != '' ) {
40
- headerParams [ 'Accept' ] = _header_accept ;
41
- }
42
- _header_content_type = [ ( 'application/json' , 'application/xml' , ) ;
43
- headerParams [ 'Content-Type' ] = _header_content_type . length > 0 ? _header_content_type [ 0 ] : 'application/json' ;
44
-
38
+ _header_accept = 'application/json, application/xml'
39
+ if _header_accept != ''
40
+ headerParams [ 'Accept' ] = _header_accept
41
+ end
42
+ _header_content_type = [ 'application/json' , 'application/xml' , ]
43
+ headerParams [ 'Content-Type' ] = _header_content_type . length > 0 ? _header_content_type [ 0 ] : 'application/json'
45
44
46
45
47
46
@@ -104,13 +103,12 @@ def self.addPet (body, opts={})
104
103
# header parameters
105
104
headers = { }
106
105
107
- _header_accept = 'application/json, application/xml' ;
108
- if ( _header_accept != '' ) {
109
- headerParams [ 'Accept' ] = _header_accept ;
110
- }
111
- _header_content_type = [ ( 'application/json' , 'application/xml' , ) ;
112
- headerParams [ 'Content-Type' ] = _header_content_type . length > 0 ? _header_content_type [ 0 ] : 'application/json' ;
113
-
106
+ _header_accept = 'application/json, application/xml'
107
+ if _header_accept != ''
108
+ headerParams [ 'Accept' ] = _header_accept
109
+ end
110
+ _header_content_type = [ 'application/json' , 'application/xml' , ]
111
+ headerParams [ 'Content-Type' ] = _header_content_type . length > 0 ? _header_content_type [ 0 ] : 'application/json'
114
112
115
113
116
114
@@ -173,13 +171,12 @@ def self.findPetsByStatus (status, opts={})
173
171
# header parameters
174
172
headers = { }
175
173
176
- _header_accept = 'application/json, application/xml' ;
177
- if ( _header_accept != '' ) {
178
- headerParams [ 'Accept' ] = _header_accept ;
179
- }
180
- _header_content_type = [ ( ) ;
181
- headerParams [ 'Content-Type' ] = _header_content_type . length > 0 ? _header_content_type [ 0 ] : 'application/json' ;
182
-
174
+ _header_accept = 'application/json, application/xml'
175
+ if _header_accept != ''
176
+ headerParams [ 'Accept' ] = _header_accept
177
+ end
178
+ _header_content_type = [ ]
179
+ headerParams [ 'Content-Type' ] = _header_content_type . length > 0 ? _header_content_type [ 0 ] : 'application/json'
183
180
184
181
185
182
@@ -224,13 +221,12 @@ def self.findPetsByTags (tags, opts={})
224
221
# header parameters
225
222
headers = { }
226
223
227
- _header_accept = 'application/json, application/xml' ;
228
- if ( _header_accept != '' ) {
229
- headerParams [ 'Accept' ] = _header_accept ;
230
- }
231
- _header_content_type = [ ( ) ;
232
- headerParams [ 'Content-Type' ] = _header_content_type . length > 0 ? _header_content_type [ 0 ] : 'application/json' ;
233
-
224
+ _header_accept = 'application/json, application/xml'
225
+ if _header_accept != ''
226
+ headerParams [ 'Accept' ] = _header_accept
227
+ end
228
+ _header_content_type = [ ]
229
+ headerParams [ 'Content-Type' ] = _header_content_type . length > 0 ? _header_content_type [ 0 ] : 'application/json'
234
230
235
231
236
232
@@ -276,13 +272,12 @@ def self.getPetById (pet_id, opts={})
276
272
# header parameters
277
273
headers = { }
278
274
279
- _header_accept = 'application/json, application/xml' ;
280
- if ( _header_accept != '' ) {
281
- headerParams [ 'Accept' ] = _header_accept ;
282
- }
283
- _header_content_type = [ ( ) ;
284
- headerParams [ 'Content-Type' ] = _header_content_type . length > 0 ? _header_content_type [ 0 ] : 'application/json' ;
285
-
275
+ _header_accept = 'application/json, application/xml'
276
+ if _header_accept != ''
277
+ headerParams [ 'Accept' ] = _header_accept
278
+ end
279
+ _header_content_type = [ ]
280
+ headerParams [ 'Content-Type' ] = _header_content_type . length > 0 ? _header_content_type [ 0 ] : 'application/json'
286
281
287
282
288
283
@@ -331,13 +326,12 @@ def self.updatePetWithForm (pet_id, name, status, opts={})
331
326
# header parameters
332
327
headers = { }
333
328
334
- _header_accept = 'application/json, application/xml' ;
335
- if ( _header_accept != '' ) {
336
- headerParams [ 'Accept' ] = _header_accept ;
337
- }
338
- _header_content_type = [ ( 'application/x-www-form-urlencoded' , ) ;
339
- headerParams [ 'Content-Type' ] = _header_content_type . length > 0 ? _header_content_type [ 0 ] : 'application/json' ;
340
-
329
+ _header_accept = 'application/json, application/xml'
330
+ if _header_accept != ''
331
+ headerParams [ 'Accept' ] = _header_accept
332
+ end
333
+ _header_content_type = [ 'application/x-www-form-urlencoded' , ]
334
+ headerParams [ 'Content-Type' ] = _header_content_type . length > 0 ? _header_content_type [ 0 ] : 'application/json'
341
335
342
336
343
337
@@ -385,13 +379,12 @@ def self.deletePet (api_key, pet_id, opts={})
385
379
# header parameters
386
380
headers = { }
387
381
388
- _header_accept = 'application/json, application/xml' ;
389
- if ( _header_accept != '' ) {
390
- headerParams [ 'Accept' ] = _header_accept ;
391
- }
392
- _header_content_type = [ ( ) ;
393
- headerParams [ 'Content-Type' ] = _header_content_type . length > 0 ? _header_content_type [ 0 ] : 'application/json' ;
394
-
382
+ _header_accept = 'application/json, application/xml'
383
+ if _header_accept != ''
384
+ headerParams [ 'Accept' ] = _header_accept
385
+ end
386
+ _header_content_type = [ ]
387
+ headerParams [ 'Content-Type' ] = _header_content_type . length > 0 ? _header_content_type [ 0 ] : 'application/json'
395
388
396
389
397
390
headers [ :'api_key' ] = api_key
@@ -439,13 +432,12 @@ def self.uploadFile (pet_id, additional_metadata, file, opts={})
439
432
# header parameters
440
433
headers = { }
441
434
442
- _header_accept = 'application/json, application/xml' ;
443
- if ( _header_accept != '' ) {
444
- headerParams [ 'Accept' ] = _header_accept ;
445
- }
446
- _header_content_type = [ ( 'multipart/form-data' , ) ;
447
- headerParams [ 'Content-Type' ] = _header_content_type . length > 0 ? _header_content_type [ 0 ] : 'application/json' ;
448
-
435
+ _header_accept = 'application/json, application/xml'
436
+ if _header_accept != ''
437
+ headerParams [ 'Accept' ] = _header_accept
438
+ end
439
+ _header_content_type = [ 'multipart/form-data' , ]
440
+ headerParams [ 'Content-Type' ] = _header_content_type . length > 0 ? _header_content_type [ 0 ] : 'application/json'
449
441
450
442
451
443
0 commit comments