@@ -17,7 +17,7 @@ import * as url from "url";
17
17
import * as portableFetch from "portable-fetch" ;
18
18
import { Configuration } from "./configuration" ;
19
19
20
- const BASE_PATH = "https ://petstore.swagger.io/v2" . replace ( / \/ + $ / , "" ) ;
20
+ const BASE_PATH = "http ://petstore.swagger.io/v2" . replace ( / \/ + $ / , "" ) ;
21
21
22
22
/**
23
23
*
@@ -55,7 +55,7 @@ export interface FetchArgs {
55
55
* @class BaseAPI
56
56
*/
57
57
export class BaseAPI {
58
- protected configuration : Configuration ;
58
+ protected configuration ? : Configuration ;
59
59
60
60
constructor ( configuration ?: Configuration , protected basePath : string = BASE_PATH , protected fetch : FetchAPI = portableFetch ) {
61
61
if ( configuration ) {
@@ -72,7 +72,7 @@ export class BaseAPI {
72
72
* @extends {Error }
73
73
*/
74
74
export class RequiredError extends Error {
75
- name : "RequiredError"
75
+ name = "RequiredError"
76
76
constructor ( public field : string , msg ?: string ) {
77
77
super ( msg ) ;
78
78
}
@@ -386,7 +386,7 @@ export const PetApiFetchParamCreator = function (configuration?: Configuration)
386
386
387
387
localVarUrlObj . query = Object . assign ( { } , localVarUrlObj . query , localVarQueryParameter , options . query ) ;
388
388
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
389
- delete localVarUrlObj . search ;
389
+ localVarUrlObj . search = null ;
390
390
localVarRequestOptions . headers = Object . assign ( { } , localVarHeaderParameter , options . headers ) ;
391
391
const needsSerialization = ( < any > "Pet" !== "string" ) || localVarRequestOptions . headers [ 'Content-Type' ] === 'application/json' ;
392
392
localVarRequestOptions . body = needsSerialization ? JSON . stringify ( body || { } ) : ( body || "" ) ;
@@ -431,7 +431,7 @@ export const PetApiFetchParamCreator = function (configuration?: Configuration)
431
431
432
432
localVarUrlObj . query = Object . assign ( { } , localVarUrlObj . query , localVarQueryParameter , options . query ) ;
433
433
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
434
- delete localVarUrlObj . search ;
434
+ localVarUrlObj . search = null ;
435
435
localVarRequestOptions . headers = Object . assign ( { } , localVarHeaderParameter , options . headers ) ;
436
436
437
437
return {
@@ -472,7 +472,7 @@ export const PetApiFetchParamCreator = function (configuration?: Configuration)
472
472
473
473
localVarUrlObj . query = Object . assign ( { } , localVarUrlObj . query , localVarQueryParameter , options . query ) ;
474
474
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
475
- delete localVarUrlObj . search ;
475
+ localVarUrlObj . search = null ;
476
476
localVarRequestOptions . headers = Object . assign ( { } , localVarHeaderParameter , options . headers ) ;
477
477
478
478
return {
@@ -513,7 +513,7 @@ export const PetApiFetchParamCreator = function (configuration?: Configuration)
513
513
514
514
localVarUrlObj . query = Object . assign ( { } , localVarUrlObj . query , localVarQueryParameter , options . query ) ;
515
515
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
516
- delete localVarUrlObj . search ;
516
+ localVarUrlObj . search = null ;
517
517
localVarRequestOptions . headers = Object . assign ( { } , localVarHeaderParameter , options . headers ) ;
518
518
519
519
return {
@@ -550,7 +550,7 @@ export const PetApiFetchParamCreator = function (configuration?: Configuration)
550
550
551
551
localVarUrlObj . query = Object . assign ( { } , localVarUrlObj . query , localVarQueryParameter , options . query ) ;
552
552
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
553
- delete localVarUrlObj . search ;
553
+ localVarUrlObj . search = null ;
554
554
localVarRequestOptions . headers = Object . assign ( { } , localVarHeaderParameter , options . headers ) ;
555
555
556
556
return {
@@ -589,7 +589,7 @@ export const PetApiFetchParamCreator = function (configuration?: Configuration)
589
589
590
590
localVarUrlObj . query = Object . assign ( { } , localVarUrlObj . query , localVarQueryParameter , options . query ) ;
591
591
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
592
- delete localVarUrlObj . search ;
592
+ localVarUrlObj . search = null ;
593
593
localVarRequestOptions . headers = Object . assign ( { } , localVarHeaderParameter , options . headers ) ;
594
594
const needsSerialization = ( < any > "Pet" !== "string" ) || localVarRequestOptions . headers [ 'Content-Type' ] === 'application/json' ;
595
595
localVarRequestOptions . body = needsSerialization ? JSON . stringify ( body || { } ) : ( body || "" ) ;
@@ -642,7 +642,7 @@ export const PetApiFetchParamCreator = function (configuration?: Configuration)
642
642
643
643
localVarUrlObj . query = Object . assign ( { } , localVarUrlObj . query , localVarQueryParameter , options . query ) ;
644
644
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
645
- delete localVarUrlObj . search ;
645
+ localVarUrlObj . search = null ;
646
646
localVarRequestOptions . headers = Object . assign ( { } , localVarHeaderParameter , options . headers ) ;
647
647
localVarRequestOptions . body = localVarFormParams . toString ( ) ;
648
648
@@ -694,7 +694,7 @@ export const PetApiFetchParamCreator = function (configuration?: Configuration)
694
694
695
695
localVarUrlObj . query = Object . assign ( { } , localVarUrlObj . query , localVarQueryParameter , options . query ) ;
696
696
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
697
- delete localVarUrlObj . search ;
697
+ localVarUrlObj . search = null ;
698
698
localVarRequestOptions . headers = Object . assign ( { } , localVarHeaderParameter , options . headers ) ;
699
699
localVarRequestOptions . body = localVarFormParams . toString ( ) ;
700
700
@@ -1103,7 +1103,7 @@ export const StoreApiFetchParamCreator = function (configuration?: Configuration
1103
1103
1104
1104
localVarUrlObj . query = Object . assign ( { } , localVarUrlObj . query , localVarQueryParameter , options . query ) ;
1105
1105
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
1106
- delete localVarUrlObj . search ;
1106
+ localVarUrlObj . search = null ;
1107
1107
localVarRequestOptions . headers = Object . assign ( { } , localVarHeaderParameter , options . headers ) ;
1108
1108
1109
1109
return {
@@ -1134,7 +1134,7 @@ export const StoreApiFetchParamCreator = function (configuration?: Configuration
1134
1134
1135
1135
localVarUrlObj . query = Object . assign ( { } , localVarUrlObj . query , localVarQueryParameter , options . query ) ;
1136
1136
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
1137
- delete localVarUrlObj . search ;
1137
+ localVarUrlObj . search = null ;
1138
1138
localVarRequestOptions . headers = Object . assign ( { } , localVarHeaderParameter , options . headers ) ;
1139
1139
1140
1140
return {
@@ -1163,7 +1163,7 @@ export const StoreApiFetchParamCreator = function (configuration?: Configuration
1163
1163
1164
1164
localVarUrlObj . query = Object . assign ( { } , localVarUrlObj . query , localVarQueryParameter , options . query ) ;
1165
1165
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
1166
- delete localVarUrlObj . search ;
1166
+ localVarUrlObj . search = null ;
1167
1167
localVarRequestOptions . headers = Object . assign ( { } , localVarHeaderParameter , options . headers ) ;
1168
1168
1169
1169
return {
@@ -1193,7 +1193,7 @@ export const StoreApiFetchParamCreator = function (configuration?: Configuration
1193
1193
1194
1194
localVarUrlObj . query = Object . assign ( { } , localVarUrlObj . query , localVarQueryParameter , options . query ) ;
1195
1195
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
1196
- delete localVarUrlObj . search ;
1196
+ localVarUrlObj . search = null ;
1197
1197
localVarRequestOptions . headers = Object . assign ( { } , localVarHeaderParameter , options . headers ) ;
1198
1198
const needsSerialization = ( < any > "Order" !== "string" ) || localVarRequestOptions . headers [ 'Content-Type' ] === 'application/json' ;
1199
1199
localVarRequestOptions . body = needsSerialization ? JSON . stringify ( body || { } ) : ( body || "" ) ;
@@ -1422,7 +1422,7 @@ export const UserApiFetchParamCreator = function (configuration?: Configuration)
1422
1422
1423
1423
localVarUrlObj . query = Object . assign ( { } , localVarUrlObj . query , localVarQueryParameter , options . query ) ;
1424
1424
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
1425
- delete localVarUrlObj . search ;
1425
+ localVarUrlObj . search = null ;
1426
1426
localVarRequestOptions . headers = Object . assign ( { } , localVarHeaderParameter , options . headers ) ;
1427
1427
const needsSerialization = ( < any > "User" !== "string" ) || localVarRequestOptions . headers [ 'Content-Type' ] === 'application/json' ;
1428
1428
localVarRequestOptions . body = needsSerialization ? JSON . stringify ( body || { } ) : ( body || "" ) ;
@@ -1454,7 +1454,7 @@ export const UserApiFetchParamCreator = function (configuration?: Configuration)
1454
1454
1455
1455
localVarUrlObj . query = Object . assign ( { } , localVarUrlObj . query , localVarQueryParameter , options . query ) ;
1456
1456
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
1457
- delete localVarUrlObj . search ;
1457
+ localVarUrlObj . search = null ;
1458
1458
localVarRequestOptions . headers = Object . assign ( { } , localVarHeaderParameter , options . headers ) ;
1459
1459
const needsSerialization = ( < any > "Array<User>" !== "string" ) || localVarRequestOptions . headers [ 'Content-Type' ] === 'application/json' ;
1460
1460
localVarRequestOptions . body = needsSerialization ? JSON . stringify ( body || { } ) : ( body || "" ) ;
@@ -1486,7 +1486,7 @@ export const UserApiFetchParamCreator = function (configuration?: Configuration)
1486
1486
1487
1487
localVarUrlObj . query = Object . assign ( { } , localVarUrlObj . query , localVarQueryParameter , options . query ) ;
1488
1488
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
1489
- delete localVarUrlObj . search ;
1489
+ localVarUrlObj . search = null ;
1490
1490
localVarRequestOptions . headers = Object . assign ( { } , localVarHeaderParameter , options . headers ) ;
1491
1491
const needsSerialization = ( < any > "Array<User>" !== "string" ) || localVarRequestOptions . headers [ 'Content-Type' ] === 'application/json' ;
1492
1492
localVarRequestOptions . body = needsSerialization ? JSON . stringify ( body || { } ) : ( body || "" ) ;
@@ -1517,7 +1517,7 @@ export const UserApiFetchParamCreator = function (configuration?: Configuration)
1517
1517
1518
1518
localVarUrlObj . query = Object . assign ( { } , localVarUrlObj . query , localVarQueryParameter , options . query ) ;
1519
1519
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
1520
- delete localVarUrlObj . search ;
1520
+ localVarUrlObj . search = null ;
1521
1521
localVarRequestOptions . headers = Object . assign ( { } , localVarHeaderParameter , options . headers ) ;
1522
1522
1523
1523
return {
@@ -1546,7 +1546,7 @@ export const UserApiFetchParamCreator = function (configuration?: Configuration)
1546
1546
1547
1547
localVarUrlObj . query = Object . assign ( { } , localVarUrlObj . query , localVarQueryParameter , options . query ) ;
1548
1548
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
1549
- delete localVarUrlObj . search ;
1549
+ localVarUrlObj . search = null ;
1550
1550
localVarRequestOptions . headers = Object . assign ( { } , localVarHeaderParameter , options . headers ) ;
1551
1551
1552
1552
return {
@@ -1587,7 +1587,7 @@ export const UserApiFetchParamCreator = function (configuration?: Configuration)
1587
1587
1588
1588
localVarUrlObj . query = Object . assign ( { } , localVarUrlObj . query , localVarQueryParameter , options . query ) ;
1589
1589
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
1590
- delete localVarUrlObj . search ;
1590
+ localVarUrlObj . search = null ;
1591
1591
localVarRequestOptions . headers = Object . assign ( { } , localVarHeaderParameter , options . headers ) ;
1592
1592
1593
1593
return {
@@ -1610,7 +1610,7 @@ export const UserApiFetchParamCreator = function (configuration?: Configuration)
1610
1610
1611
1611
localVarUrlObj . query = Object . assign ( { } , localVarUrlObj . query , localVarQueryParameter , options . query ) ;
1612
1612
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
1613
- delete localVarUrlObj . search ;
1613
+ localVarUrlObj . search = null ;
1614
1614
localVarRequestOptions . headers = Object . assign ( { } , localVarHeaderParameter , options . headers ) ;
1615
1615
1616
1616
return {
@@ -1646,7 +1646,7 @@ export const UserApiFetchParamCreator = function (configuration?: Configuration)
1646
1646
1647
1647
localVarUrlObj . query = Object . assign ( { } , localVarUrlObj . query , localVarQueryParameter , options . query ) ;
1648
1648
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
1649
- delete localVarUrlObj . search ;
1649
+ localVarUrlObj . search = null ;
1650
1650
localVarRequestOptions . headers = Object . assign ( { } , localVarHeaderParameter , options . headers ) ;
1651
1651
const needsSerialization = ( < any > "User" !== "string" ) || localVarRequestOptions . headers [ 'Content-Type' ] === 'application/json' ;
1652
1652
localVarRequestOptions . body = needsSerialization ? JSON . stringify ( body || { } ) : ( body || "" ) ;
0 commit comments