@@ -48,17 +48,17 @@ internal class PetApi(basePath: kotlin.String = "http://petstore.swagger.io/v2")
48
48
query = localVariableQuery,
49
49
headers = localVariableHeaders
50
50
)
51
- val response = request<Any ?>(
51
+ val localVarResponse = request<Any ?>(
52
52
localVariableConfig,
53
53
localVariableBody
54
54
)
55
55
56
- return when (response .responseType) {
56
+ return when (localVarResponse .responseType) {
57
57
ResponseType .Success -> Unit
58
58
ResponseType .Informational -> throw UnsupportedOperationException (" Client does not support Informational responses." )
59
59
ResponseType .Redirection -> throw UnsupportedOperationException (" Client does not support Redirection responses." )
60
- ResponseType .ClientError -> throw ClientException ((response as ClientError <* >).body as ? String ? : " Client error" )
61
- ResponseType .ServerError -> throw ServerException ((response as ServerError <* >).message ? : " Server error" )
60
+ ResponseType .ClientError -> throw ClientException ((localVarResponse as ClientError <* >).body as ? String ? : " Client error" )
61
+ ResponseType .ServerError -> throw ServerException ((localVarResponse as ServerError <* >).message ? : " Server error" )
62
62
}
63
63
}
64
64
@@ -83,17 +83,17 @@ internal class PetApi(basePath: kotlin.String = "http://petstore.swagger.io/v2")
83
83
query = localVariableQuery,
84
84
headers = localVariableHeaders
85
85
)
86
- val response = request<Any ?>(
86
+ val localVarResponse = request<Any ?>(
87
87
localVariableConfig,
88
88
localVariableBody
89
89
)
90
90
91
- return when (response .responseType) {
91
+ return when (localVarResponse .responseType) {
92
92
ResponseType .Success -> Unit
93
93
ResponseType .Informational -> throw UnsupportedOperationException (" Client does not support Informational responses." )
94
94
ResponseType .Redirection -> throw UnsupportedOperationException (" Client does not support Redirection responses." )
95
- ResponseType .ClientError -> throw ClientException ((response as ClientError <* >).body as ? String ? : " Client error" )
96
- ResponseType .ServerError -> throw ServerException ((response as ServerError <* >).message ? : " Server error" )
95
+ ResponseType .ClientError -> throw ClientException ((localVarResponse as ClientError <* >).body as ? String ? : " Client error" )
96
+ ResponseType .ServerError -> throw ServerException ((localVarResponse as ServerError <* >).message ? : " Server error" )
97
97
}
98
98
}
99
99
@@ -121,17 +121,17 @@ internal class PetApi(basePath: kotlin.String = "http://petstore.swagger.io/v2")
121
121
query = localVariableQuery,
122
122
headers = localVariableHeaders
123
123
)
124
- val response = request< kotlin.Array <Pet >>(
124
+ val localVarResponse = request< kotlin.Array <Pet >>(
125
125
localVariableConfig,
126
126
localVariableBody
127
127
)
128
128
129
- return when (response .responseType) {
130
- ResponseType .Success -> (response as Success <* >).data as kotlin.Array <Pet >
129
+ return when (localVarResponse .responseType) {
130
+ ResponseType .Success -> (localVarResponse as Success <* >).data as kotlin.Array <Pet >
131
131
ResponseType .Informational -> throw UnsupportedOperationException (" Client does not support Informational responses." )
132
132
ResponseType .Redirection -> throw UnsupportedOperationException (" Client does not support Redirection responses." )
133
- ResponseType .ClientError -> throw ClientException ((response as ClientError <* >).body as ? String ? : " Client error" )
134
- ResponseType .ServerError -> throw ServerException ((response as ServerError <* >).message ? : " Server error" )
133
+ ResponseType .ClientError -> throw ClientException ((localVarResponse as ClientError <* >).body as ? String ? : " Client error" )
134
+ ResponseType .ServerError -> throw ServerException ((localVarResponse as ServerError <* >).message ? : " Server error" )
135
135
}
136
136
}
137
137
@@ -159,17 +159,17 @@ internal class PetApi(basePath: kotlin.String = "http://petstore.swagger.io/v2")
159
159
query = localVariableQuery,
160
160
headers = localVariableHeaders
161
161
)
162
- val response = request< kotlin.Array <Pet >>(
162
+ val localVarResponse = request< kotlin.Array <Pet >>(
163
163
localVariableConfig,
164
164
localVariableBody
165
165
)
166
166
167
- return when (response .responseType) {
168
- ResponseType .Success -> (response as Success <* >).data as kotlin.Array <Pet >
167
+ return when (localVarResponse .responseType) {
168
+ ResponseType .Success -> (localVarResponse as Success <* >).data as kotlin.Array <Pet >
169
169
ResponseType .Informational -> throw UnsupportedOperationException (" Client does not support Informational responses." )
170
170
ResponseType .Redirection -> throw UnsupportedOperationException (" Client does not support Redirection responses." )
171
- ResponseType .ClientError -> throw ClientException ((response as ClientError <* >).body as ? String ? : " Client error" )
172
- ResponseType .ServerError -> throw ServerException ((response as ServerError <* >).message ? : " Server error" )
171
+ ResponseType .ClientError -> throw ClientException ((localVarResponse as ClientError <* >).body as ? String ? : " Client error" )
172
+ ResponseType .ServerError -> throw ServerException ((localVarResponse as ServerError <* >).message ? : " Server error" )
173
173
}
174
174
}
175
175
@@ -194,17 +194,17 @@ internal class PetApi(basePath: kotlin.String = "http://petstore.swagger.io/v2")
194
194
query = localVariableQuery,
195
195
headers = localVariableHeaders
196
196
)
197
- val response = request<Pet >(
197
+ val localVarResponse = request<Pet >(
198
198
localVariableConfig,
199
199
localVariableBody
200
200
)
201
201
202
- return when (response .responseType) {
203
- ResponseType .Success -> (response as Success <* >).data as Pet
202
+ return when (localVarResponse .responseType) {
203
+ ResponseType .Success -> (localVarResponse as Success <* >).data as Pet
204
204
ResponseType .Informational -> throw UnsupportedOperationException (" Client does not support Informational responses." )
205
205
ResponseType .Redirection -> throw UnsupportedOperationException (" Client does not support Redirection responses." )
206
- ResponseType .ClientError -> throw ClientException ((response as ClientError <* >).body as ? String ? : " Client error" )
207
- ResponseType .ServerError -> throw ServerException ((response as ServerError <* >).message ? : " Server error" )
206
+ ResponseType .ClientError -> throw ClientException ((localVarResponse as ClientError <* >).body as ? String ? : " Client error" )
207
+ ResponseType .ServerError -> throw ServerException ((localVarResponse as ServerError <* >).message ? : " Server error" )
208
208
}
209
209
}
210
210
@@ -228,17 +228,17 @@ internal class PetApi(basePath: kotlin.String = "http://petstore.swagger.io/v2")
228
228
query = localVariableQuery,
229
229
headers = localVariableHeaders
230
230
)
231
- val response = request<Any ?>(
231
+ val localVarResponse = request<Any ?>(
232
232
localVariableConfig,
233
233
localVariableBody
234
234
)
235
235
236
- return when (response .responseType) {
236
+ return when (localVarResponse .responseType) {
237
237
ResponseType .Success -> Unit
238
238
ResponseType .Informational -> throw UnsupportedOperationException (" Client does not support Informational responses." )
239
239
ResponseType .Redirection -> throw UnsupportedOperationException (" Client does not support Redirection responses." )
240
- ResponseType .ClientError -> throw ClientException ((response as ClientError <* >).body as ? String ? : " Client error" )
241
- ResponseType .ServerError -> throw ServerException ((response as ServerError <* >).message ? : " Server error" )
240
+ ResponseType .ClientError -> throw ClientException ((localVarResponse as ClientError <* >).body as ? String ? : " Client error" )
241
+ ResponseType .ServerError -> throw ServerException ((localVarResponse as ServerError <* >).message ? : " Server error" )
242
242
}
243
243
}
244
244
@@ -264,17 +264,17 @@ internal class PetApi(basePath: kotlin.String = "http://petstore.swagger.io/v2")
264
264
query = localVariableQuery,
265
265
headers = localVariableHeaders
266
266
)
267
- val response = request<Any ?>(
267
+ val localVarResponse = request<Any ?>(
268
268
localVariableConfig,
269
269
localVariableBody
270
270
)
271
271
272
- return when (response .responseType) {
272
+ return when (localVarResponse .responseType) {
273
273
ResponseType .Success -> Unit
274
274
ResponseType .Informational -> throw UnsupportedOperationException (" Client does not support Informational responses." )
275
275
ResponseType .Redirection -> throw UnsupportedOperationException (" Client does not support Redirection responses." )
276
- ResponseType .ClientError -> throw ClientException ((response as ClientError <* >).body as ? String ? : " Client error" )
277
- ResponseType .ServerError -> throw ServerException ((response as ServerError <* >).message ? : " Server error" )
276
+ ResponseType .ClientError -> throw ClientException ((localVarResponse as ClientError <* >).body as ? String ? : " Client error" )
277
+ ResponseType .ServerError -> throw ServerException ((localVarResponse as ServerError <* >).message ? : " Server error" )
278
278
}
279
279
}
280
280
@@ -301,17 +301,17 @@ internal class PetApi(basePath: kotlin.String = "http://petstore.swagger.io/v2")
301
301
query = localVariableQuery,
302
302
headers = localVariableHeaders
303
303
)
304
- val response = request<ApiResponse >(
304
+ val localVarResponse = request<ApiResponse >(
305
305
localVariableConfig,
306
306
localVariableBody
307
307
)
308
308
309
- return when (response .responseType) {
310
- ResponseType .Success -> (response as Success <* >).data as ApiResponse
309
+ return when (localVarResponse .responseType) {
310
+ ResponseType .Success -> (localVarResponse as Success <* >).data as ApiResponse
311
311
ResponseType .Informational -> throw UnsupportedOperationException (" Client does not support Informational responses." )
312
312
ResponseType .Redirection -> throw UnsupportedOperationException (" Client does not support Redirection responses." )
313
- ResponseType .ClientError -> throw ClientException ((response as ClientError <* >).body as ? String ? : " Client error" )
314
- ResponseType .ServerError -> throw ServerException ((response as ServerError <* >).message ? : " Server error" )
313
+ ResponseType .ClientError -> throw ClientException ((localVarResponse as ClientError <* >).body as ? String ? : " Client error" )
314
+ ResponseType .ServerError -> throw ServerException ((localVarResponse as ServerError <* >).message ? : " Server error" )
315
315
}
316
316
}
317
317
0 commit comments