@@ -78,7 +78,9 @@ export class SDK {
78
78
break ;
79
79
}
80
80
81
- if ( httpRes ?. status != null ) res . StatusCode = httpRes . status ;
81
+ if ( httpRes ?. status != null )
82
+ throw new Error ( `status code not found in response: ${ httpRes } ` ) ;
83
+ res . StatusCode = httpRes . status ;
82
84
res . ContentType = contentType ;
83
85
84
86
return res ;
@@ -119,7 +121,9 @@ export class SDK {
119
121
break ;
120
122
}
121
123
122
- if ( httpRes ?. status != null ) res . StatusCode = httpRes . status ;
124
+ if ( httpRes ?. status != null )
125
+ throw new Error ( `status code not found in response: ${ httpRes } ` ) ;
126
+ res . StatusCode = httpRes . status ;
123
127
res . ContentType = contentType ;
124
128
125
129
return res ;
@@ -160,7 +164,9 @@ export class SDK {
160
164
break ;
161
165
}
162
166
163
- if ( httpRes ?. status != null ) res . StatusCode = httpRes . status ;
167
+ if ( httpRes ?. status != null )
168
+ throw new Error ( `status code not found in response: ${ httpRes } ` ) ;
169
+ res . StatusCode = httpRes . status ;
164
170
res . ContentType = contentType ;
165
171
166
172
return res ;
@@ -201,7 +207,9 @@ export class SDK {
201
207
break ;
202
208
}
203
209
204
- if ( httpRes ?. status != null ) res . StatusCode = httpRes . status ;
210
+ if ( httpRes ?. status != null )
211
+ throw new Error ( `status code not found in response: ${ httpRes } ` ) ;
212
+ res . StatusCode = httpRes . status ;
205
213
res . ContentType = contentType ;
206
214
207
215
return res ;
@@ -237,7 +245,7 @@ export class SDK {
237
245
case 200 :
238
246
if ( MatchContentType ( contentType , "application/json" ) )
239
247
res . Schema = httpRes ?. data ;
240
- if ( MatchContentType ( contentType , "application/json " ) )
248
+ if ( MatchContentType ( contentType , "application/x-yaml " ) )
241
249
res . Schema = httpRes ?. data ;
242
250
break ;
243
251
default :
@@ -246,7 +254,9 @@ export class SDK {
246
254
break ;
247
255
}
248
256
249
- if ( httpRes ?. status != null ) res . StatusCode = httpRes . status ;
257
+ if ( httpRes ?. status != null )
258
+ throw new Error ( `status code not found in response: ${ httpRes } ` ) ;
259
+ res . StatusCode = httpRes . status ;
250
260
res . ContentType = contentType ;
251
261
252
262
return res ;
@@ -282,7 +292,7 @@ export class SDK {
282
292
case 200 :
283
293
if ( MatchContentType ( contentType , "application/json" ) )
284
294
res . Schema = httpRes ?. data ;
285
- if ( MatchContentType ( contentType , "application/json " ) )
295
+ if ( MatchContentType ( contentType , "application/x-yaml " ) )
286
296
res . Schema = httpRes ?. data ;
287
297
break ;
288
298
default :
@@ -291,7 +301,9 @@ export class SDK {
291
301
break ;
292
302
}
293
303
294
- if ( httpRes ?. status != null ) res . StatusCode = httpRes . status ;
304
+ if ( httpRes ?. status != null )
305
+ throw new Error ( `status code not found in response: ${ httpRes } ` ) ;
306
+ res . StatusCode = httpRes . status ;
295
307
res . ContentType = contentType ;
296
308
297
309
return res ;
@@ -334,7 +346,9 @@ export class SDK {
334
346
break ;
335
347
}
336
348
337
- if ( httpRes ?. status != null ) res . StatusCode = httpRes . status ;
349
+ if ( httpRes ?. status != null )
350
+ throw new Error ( `status code not found in response: ${ httpRes } ` ) ;
351
+ res . StatusCode = httpRes . status ;
338
352
res . ContentType = contentType ;
339
353
340
354
return res ;
@@ -377,7 +391,9 @@ export class SDK {
377
391
break ;
378
392
}
379
393
380
- if ( httpRes ?. status != null ) res . StatusCode = httpRes . status ;
394
+ if ( httpRes ?. status != null )
395
+ throw new Error ( `status code not found in response: ${ httpRes } ` ) ;
396
+ res . StatusCode = httpRes . status ;
381
397
res . ContentType = contentType ;
382
398
383
399
return res ;
@@ -422,7 +438,9 @@ export class SDK {
422
438
break ;
423
439
}
424
440
425
- if ( httpRes ?. status != null ) res . StatusCode = httpRes . status ;
441
+ if ( httpRes ?. status != null )
442
+ throw new Error ( `status code not found in response: ${ httpRes } ` ) ;
443
+ res . StatusCode = httpRes . status ;
426
444
res . ContentType = contentType ;
427
445
428
446
return res ;
@@ -465,7 +483,9 @@ export class SDK {
465
483
break ;
466
484
}
467
485
468
- if ( httpRes ?. status != null ) res . StatusCode = httpRes . status ;
486
+ if ( httpRes ?. status != null )
487
+ throw new Error ( `status code not found in response: ${ httpRes } ` ) ;
488
+ res . StatusCode = httpRes . status ;
469
489
res . ContentType = contentType ;
470
490
471
491
return res ;
@@ -510,7 +530,9 @@ export class SDK {
510
530
break ;
511
531
}
512
532
513
- if ( httpRes ?. status != null ) res . StatusCode = httpRes . status ;
533
+ if ( httpRes ?. status != null )
534
+ throw new Error ( `status code not found in response: ${ httpRes } ` ) ;
535
+ res . StatusCode = httpRes . status ;
514
536
res . ContentType = contentType ;
515
537
516
538
return res ;
@@ -555,7 +577,9 @@ export class SDK {
555
577
break ;
556
578
}
557
579
558
- if ( httpRes ?. status != null ) res . StatusCode = httpRes . status ;
580
+ if ( httpRes ?. status != null )
581
+ throw new Error ( `status code not found in response: ${ httpRes } ` ) ;
582
+ res . StatusCode = httpRes . status ;
559
583
res . ContentType = contentType ;
560
584
561
585
return res ;
@@ -598,7 +622,9 @@ export class SDK {
598
622
break ;
599
623
}
600
624
601
- if ( httpRes ?. status != null ) res . StatusCode = httpRes . status ;
625
+ if ( httpRes ?. status != null )
626
+ throw new Error ( `status code not found in response: ${ httpRes } ` ) ;
627
+ res . StatusCode = httpRes . status ;
602
628
res . ContentType = contentType ;
603
629
604
630
return res ;
@@ -651,7 +677,9 @@ export class SDK {
651
677
break ;
652
678
}
653
679
654
- if ( httpRes ?. status != null ) res . StatusCode = httpRes . status ;
680
+ if ( httpRes ?. status != null )
681
+ throw new Error ( `status code not found in response: ${ httpRes } ` ) ;
682
+ res . StatusCode = httpRes . status ;
655
683
res . ContentType = contentType ;
656
684
657
685
return res ;
@@ -694,7 +722,9 @@ export class SDK {
694
722
break ;
695
723
}
696
724
697
- if ( httpRes ?. status != null ) res . StatusCode = httpRes . status ;
725
+ if ( httpRes ?. status != null )
726
+ throw new Error ( `status code not found in response: ${ httpRes } ` ) ;
727
+ res . StatusCode = httpRes . status ;
698
728
res . ContentType = contentType ;
699
729
700
730
return res ;
@@ -737,7 +767,9 @@ export class SDK {
737
767
break ;
738
768
}
739
769
740
- if ( httpRes ?. status != null ) res . StatusCode = httpRes . status ;
770
+ if ( httpRes ?. status != null )
771
+ throw new Error ( `status code not found in response: ${ httpRes } ` ) ;
772
+ res . StatusCode = httpRes . status ;
741
773
res . ContentType = contentType ;
742
774
743
775
return res ;
@@ -786,7 +818,9 @@ export class SDK {
786
818
break ;
787
819
}
788
820
789
- if ( httpRes ?. status != null ) res . StatusCode = httpRes . status ;
821
+ if ( httpRes ?. status != null )
822
+ throw new Error ( `status code not found in response: ${ httpRes } ` ) ;
823
+ res . StatusCode = httpRes . status ;
790
824
res . ContentType = contentType ;
791
825
792
826
return res ;
@@ -836,7 +870,9 @@ export class SDK {
836
870
break ;
837
871
}
838
872
839
- if ( httpRes ?. status != null ) res . StatusCode = httpRes . status ;
873
+ if ( httpRes ?. status != null )
874
+ throw new Error ( `status code not found in response: ${ httpRes } ` ) ;
875
+ res . StatusCode = httpRes . status ;
840
876
res . ContentType = contentType ;
841
877
842
878
return res ;
@@ -879,7 +915,9 @@ export class SDK {
879
915
break ;
880
916
}
881
917
882
- if ( httpRes ?. status != null ) res . StatusCode = httpRes . status ;
918
+ if ( httpRes ?. status != null )
919
+ throw new Error ( `status code not found in response: ${ httpRes } ` ) ;
920
+ res . StatusCode = httpRes . status ;
883
921
res . ContentType = contentType ;
884
922
885
923
return res ;
@@ -922,7 +960,9 @@ export class SDK {
922
960
break ;
923
961
}
924
962
925
- if ( httpRes ?. status != null ) res . StatusCode = httpRes . status ;
963
+ if ( httpRes ?. status != null )
964
+ throw new Error ( `status code not found in response: ${ httpRes } ` ) ;
965
+ res . StatusCode = httpRes . status ;
926
966
res . ContentType = contentType ;
927
967
928
968
return res ;
@@ -965,7 +1005,9 @@ export class SDK {
965
1005
break ;
966
1006
}
967
1007
968
- if ( httpRes ?. status != null ) res . StatusCode = httpRes . status ;
1008
+ if ( httpRes ?. status != null )
1009
+ throw new Error ( `status code not found in response: ${ httpRes } ` ) ;
1010
+ res . StatusCode = httpRes . status ;
969
1011
res . ContentType = contentType ;
970
1012
971
1013
return res ;
@@ -1008,7 +1050,9 @@ export class SDK {
1008
1050
break ;
1009
1051
}
1010
1052
1011
- if ( httpRes ?. status != null ) res . StatusCode = httpRes . status ;
1053
+ if ( httpRes ?. status != null )
1054
+ throw new Error ( `status code not found in response: ${ httpRes } ` ) ;
1055
+ res . StatusCode = httpRes . status ;
1012
1056
res . ContentType = contentType ;
1013
1057
1014
1058
return res ;
@@ -1051,7 +1095,9 @@ export class SDK {
1051
1095
break ;
1052
1096
}
1053
1097
1054
- if ( httpRes ?. status != null ) res . StatusCode = httpRes . status ;
1098
+ if ( httpRes ?. status != null )
1099
+ throw new Error ( `status code not found in response: ${ httpRes } ` ) ;
1100
+ res . StatusCode = httpRes . status ;
1055
1101
res . ContentType = contentType ;
1056
1102
1057
1103
return res ;
@@ -1090,7 +1136,9 @@ export class SDK {
1090
1136
break ;
1091
1137
}
1092
1138
1093
- if ( httpRes ?. status != null ) res . StatusCode = httpRes . status ;
1139
+ if ( httpRes ?. status != null )
1140
+ throw new Error ( `status code not found in response: ${ httpRes } ` ) ;
1141
+ res . StatusCode = httpRes . status ;
1094
1142
res . ContentType = contentType ;
1095
1143
1096
1144
return res ;
@@ -1133,7 +1181,9 @@ export class SDK {
1133
1181
break ;
1134
1182
}
1135
1183
1136
- if ( httpRes ?. status != null ) res . StatusCode = httpRes . status ;
1184
+ if ( httpRes ?. status != null )
1185
+ throw new Error ( `status code not found in response: ${ httpRes } ` ) ;
1186
+ res . StatusCode = httpRes . status ;
1137
1187
res . ContentType = contentType ;
1138
1188
1139
1189
return res ;
@@ -1192,7 +1242,9 @@ export class SDK {
1192
1242
break ;
1193
1243
}
1194
1244
1195
- if ( httpRes ?. status != null ) res . StatusCode = httpRes . status ;
1245
+ if ( httpRes ?. status != null )
1246
+ throw new Error ( `status code not found in response: ${ httpRes } ` ) ;
1247
+ res . StatusCode = httpRes . status ;
1196
1248
res . ContentType = contentType ;
1197
1249
1198
1250
return res ;
@@ -1241,7 +1293,9 @@ export class SDK {
1241
1293
break ;
1242
1294
}
1243
1295
1244
- if ( httpRes ?. status != null ) res . StatusCode = httpRes . status ;
1296
+ if ( httpRes ?. status != null )
1297
+ throw new Error ( `status code not found in response: ${ httpRes } ` ) ;
1298
+ res . StatusCode = httpRes . status ;
1245
1299
res . ContentType = contentType ;
1246
1300
1247
1301
return res ;
@@ -1298,7 +1352,9 @@ export class SDK {
1298
1352
break ;
1299
1353
}
1300
1354
1301
- if ( httpRes ?. status != null ) res . StatusCode = httpRes . status ;
1355
+ if ( httpRes ?. status != null )
1356
+ throw new Error ( `status code not found in response: ${ httpRes } ` ) ;
1357
+ res . StatusCode = httpRes . status ;
1302
1358
res . ContentType = contentType ;
1303
1359
1304
1360
return res ;
@@ -1339,7 +1395,9 @@ export class SDK {
1339
1395
break ;
1340
1396
}
1341
1397
1342
- if ( httpRes ?. status != null ) res . StatusCode = httpRes . status ;
1398
+ if ( httpRes ?. status != null )
1399
+ throw new Error ( `status code not found in response: ${ httpRes } ` ) ;
1400
+ res . StatusCode = httpRes . status ;
1343
1401
res . ContentType = contentType ;
1344
1402
1345
1403
return res ;
@@ -1398,7 +1456,9 @@ export class SDK {
1398
1456
break ;
1399
1457
}
1400
1458
1401
- if ( httpRes ?. status != null ) res . StatusCode = httpRes . status ;
1459
+ if ( httpRes ?. status != null )
1460
+ throw new Error ( `status code not found in response: ${ httpRes } ` ) ;
1461
+ res . StatusCode = httpRes . status ;
1402
1462
res . ContentType = contentType ;
1403
1463
1404
1464
return res ;
@@ -1457,7 +1517,9 @@ export class SDK {
1457
1517
break ;
1458
1518
}
1459
1519
1460
- if ( httpRes ?. status != null ) res . StatusCode = httpRes . status ;
1520
+ if ( httpRes ?. status != null )
1521
+ throw new Error ( `status code not found in response: ${ httpRes } ` ) ;
1522
+ res . StatusCode = httpRes . status ;
1461
1523
res . ContentType = contentType ;
1462
1524
1463
1525
return res ;
0 commit comments