diff --git a/bin/configs/typescript-axios-test-petstore.yaml b/bin/configs/typescript-axios-test-petstore.yaml
new file mode 100644
index 00000000000..7873b2854fe
--- /dev/null
+++ b/bin/configs/typescript-axios-test-petstore.yaml
@@ -0,0 +1,4 @@
+generatorName: typescript-axios
+outputDir: samples/client/petstore/typescript-axios/builds/test-petstore
+inputSpec: modules/openapi-generator/src/test/resources/3_0/java/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml
+templateDir: modules/openapi-generator/src/main/resources/typescript-axios
\ No newline at end of file
diff --git a/docs/generators/typescript-axios.md b/docs/generators/typescript-axios.md
index 3e9f31aed5f..8dfc77b52df 100644
--- a/docs/generators/typescript-axios.md
+++ b/docs/generators/typescript-axios.md
@@ -13,7 +13,6 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|enumNameSuffix|Suffix that will be appended to all enum names.| |Enum|
|enumPropertyNaming|Naming convention for enum properties: 'camelCase', 'PascalCase', 'snake_case', 'UPPERCASE', and 'original'| |PascalCase|
|legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|
**true** The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document. **false** The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing. |true|
-|modelPropertyNaming|Naming convention for the property: 'camelCase', 'PascalCase', 'snake_case' and 'original', which keeps the original name. Only change it if you provide your own run-time code for (de-)serialization of models| |original|
|npmName|The name under which you want to publish generated npm package. Required to generate a full package| |null|
|npmRepository|Use this property to set an url of your private npmRepo in the package.json| |null|
|npmVersion|The version of your npm package. If not provided, using the version from the OpenAPI specification file.| |1.0.0|
diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptAxiosClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptAxiosClientCodegen.java
index 243b6e10db1..171b0e254e0 100644
--- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptAxiosClientCodegen.java
+++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptAxiosClientCodegen.java
@@ -55,6 +55,8 @@ public class TypeScriptAxiosClientCodegen extends AbstractTypeScriptClientCodege
this.cliOptions.add(new CliOption(SEPARATE_MODELS_AND_API, "Put the model and api in separate folders and in separate classes", SchemaTypeUtil.BOOLEAN_TYPE).defaultValue(Boolean.FALSE.toString()));
this.cliOptions.add(new CliOption(WITHOUT_PREFIX_ENUMS, "Don't prefix enum names with class names", SchemaTypeUtil.BOOLEAN_TYPE).defaultValue(Boolean.FALSE.toString()));
this.cliOptions.add(new CliOption(USE_SINGLE_REQUEST_PARAMETER, "Setting this property to true will generate functions with a single argument containing all API endpoint parameters instead of one argument per parameter.", SchemaTypeUtil.BOOLEAN_TYPE).defaultValue(Boolean.FALSE.toString()));
+ // Templates have no mapping between formatted property names and original base names so use only "original" and remove this option
+ removeOption(CodegenConstants.MODEL_PROPERTY_NAMING);
}
@Override
diff --git a/modules/openapi-generator/src/main/resources/typescript-axios/api.mustache b/modules/openapi-generator/src/main/resources/typescript-axios/api.mustache
index da873845d8a..140801103b7 100644
--- a/modules/openapi-generator/src/main/resources/typescript-axios/api.mustache
+++ b/modules/openapi-generator/src/main/resources/typescript-axios/api.mustache
@@ -4,7 +4,7 @@
{{^withSeparateModelsAndApi}}
import { Configuration } from './configuration';
-import globalAxios, { AxiosPromise, AxiosInstance } from 'axios';
+import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
// Some imports not used depending on template conditions
// @ts-ignore
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
diff --git a/modules/openapi-generator/src/main/resources/typescript-axios/apiInner.mustache b/modules/openapi-generator/src/main/resources/typescript-axios/apiInner.mustache
index c265be5b3d7..3b974480c81 100644
--- a/modules/openapi-generator/src/main/resources/typescript-axios/apiInner.mustache
+++ b/modules/openapi-generator/src/main/resources/typescript-axios/apiInner.mustache
@@ -3,7 +3,7 @@
/* eslint-disable */
{{>licenseInfo}}
-import globalAxios, { AxiosPromise, AxiosInstance } from 'axios';
+import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
import { Configuration } from '{{apiRelativeToRoot}}configuration';
// Some imports not used depending on template conditions
// @ts-ignore
@@ -38,7 +38,7 @@ export const {{classname}}AxiosParamCreator = function (configuration?: Configur
* @deprecated{{/isDeprecated}}
* @throws {RequiredError}
*/
- {{nickname}}: async ({{#allParams}}{{paramName}}{{^required}}?{{/required}}: {{{dataType}}}, {{/allParams}}options: any = {}): Promise => {
+ {{nickname}}: async ({{#allParams}}{{paramName}}{{^required}}?{{/required}}: {{{dataType}}}, {{/allParams}}options: AxiosRequestConfig = {}): Promise => {
{{#allParams}}
{{#required}}
// verify required parameter '{{paramName}}' is not null or undefined
@@ -222,7 +222,7 @@ export const {{classname}}Fp = function(configuration?: Configuration) {
* @deprecated{{/isDeprecated}}
* @throws {RequiredError}
*/
- async {{nickname}}({{#allParams}}{{paramName}}{{^required}}?{{/required}}: {{{dataType}}}, {{/allParams}}options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{{{returnType}}}{{^returnType}}void{{/returnType}}>> {
+ async {{nickname}}({{#allParams}}{{paramName}}{{^required}}?{{/required}}: {{{dataType}}}, {{/allParams}}options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{{{returnType}}}{{^returnType}}void{{/returnType}}>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.{{nickname}}({{#allParams}}{{paramName}}, {{/allParams}}options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
@@ -280,7 +280,7 @@ export interface {{classname}}Interface {
* @throws {RequiredError}
* @memberof {{classname}}Interface
*/
- {{nickname}}({{#allParams}}{{paramName}}{{^required}}?{{/required}}: {{{dataType}}}, {{/allParams}}options?: any): AxiosPromise<{{{returnType}}}{{^returnType}}void{{/returnType}}>;
+ {{nickname}}({{#allParams}}{{paramName}}{{^required}}?{{/required}}: {{{dataType}}}, {{/allParams}}options?: AxiosRequestConfig): AxiosPromise<{{{returnType}}}{{^returnType}}void{{/returnType}}>;
{{/operation}}
}
@@ -346,12 +346,12 @@ export class {{classname}} extends BaseAPI {
* @memberof {{classname}}
*/
{{#useSingleRequestParameter}}
- public {{nickname}}({{#allParams.0}}requestParameters: {{classname}}{{operationIdCamelCase}}Request{{^hasRequiredParams}} = {}{{/hasRequiredParams}}, {{/allParams.0}}options?: any) {
+ public {{nickname}}({{#allParams.0}}requestParameters: {{classname}}{{operationIdCamelCase}}Request{{^hasRequiredParams}} = {}{{/hasRequiredParams}}, {{/allParams.0}}options?: AxiosRequestConfig) {
return {{classname}}Fp(this.configuration).{{nickname}}({{#allParams.0}}{{#allParams}}requestParameters.{{paramName}}, {{/allParams}}{{/allParams.0}}options).then((request) => request(this.axios, this.basePath));
}
{{/useSingleRequestParameter}}
{{^useSingleRequestParameter}}
- public {{nickname}}({{#allParams}}{{paramName}}{{^required}}?{{/required}}: {{{dataType}}}, {{/allParams}}options?: any) {
+ public {{nickname}}({{#allParams}}{{paramName}}{{^required}}?{{/required}}: {{{dataType}}}, {{/allParams}}options?: AxiosRequestConfig) {
return {{classname}}Fp(this.configuration).{{nickname}}({{#allParams}}{{paramName}}, {{/allParams}}options).then((request) => request(this.axios, this.basePath));
}
{{/useSingleRequestParameter}}
diff --git a/modules/openapi-generator/src/main/resources/typescript-axios/baseApi.mustache b/modules/openapi-generator/src/main/resources/typescript-axios/baseApi.mustache
index 519b7c7d948..94fcf213f3d 100644
--- a/modules/openapi-generator/src/main/resources/typescript-axios/baseApi.mustache
+++ b/modules/openapi-generator/src/main/resources/typescript-axios/baseApi.mustache
@@ -5,7 +5,7 @@
import { Configuration } from "./configuration";
// Some imports not used depending on template conditions
// @ts-ignore
-import globalAxios, { AxiosPromise, AxiosInstance } from 'axios';
+import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
export const BASE_PATH = "{{{basePath}}}".replace(/\/+$/, "");
@@ -27,7 +27,7 @@ export const COLLECTION_FORMATS = {
*/
export interface RequestArgs {
url: string;
- options: any;
+ options: AxiosRequestConfig;
}
/**
diff --git a/modules/openapi-generator/src/main/resources/typescript-axios/modelGeneric.mustache b/modules/openapi-generator/src/main/resources/typescript-axios/modelGeneric.mustache
index ea299c07d96..b64c34e2cc9 100644
--- a/modules/openapi-generator/src/main/resources/typescript-axios/modelGeneric.mustache
+++ b/modules/openapi-generator/src/main/resources/typescript-axios/modelGeneric.mustache
@@ -17,7 +17,7 @@ export interface {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{
* @deprecated
{{/deprecated}}
*/
- {{name}}{{^required}}?{{/required}}: {{#isEnum}}{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{#isNullable}} | null{{/isNullable}}{{/isEnum}};
+ '{{baseName}}'{{^required}}?{{/required}}: {{#isEnum}}{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{#isNullable}} | null{{/isNullable}}{{/isEnum}};
{{/vars}}
}{{#hasEnums}}
diff --git a/samples/client/petstore/typescript-axios/builds/composed-schemas/api.ts b/samples/client/petstore/typescript-axios/builds/composed-schemas/api.ts
index 0de89784bd0..2962f7c498d 100644
--- a/samples/client/petstore/typescript-axios/builds/composed-schemas/api.ts
+++ b/samples/client/petstore/typescript-axios/builds/composed-schemas/api.ts
@@ -14,7 +14,7 @@
import { Configuration } from './configuration';
-import globalAxios, { AxiosPromise, AxiosInstance } from 'axios';
+import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
// Some imports not used depending on template conditions
// @ts-ignore
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
@@ -32,13 +32,13 @@ export interface Cat {
* @type {boolean}
* @memberof Cat
*/
- hunts?: boolean;
+ 'hunts'?: boolean;
/**
*
* @type {number}
* @memberof Cat
*/
- age?: number;
+ 'age'?: number;
}
/**
*
@@ -51,13 +51,13 @@ export interface CatAllOf {
* @type {boolean}
* @memberof CatAllOf
*/
- hunts?: boolean;
+ 'hunts'?: boolean;
/**
*
* @type {number}
* @memberof CatAllOf
*/
- age?: number;
+ 'age'?: number;
}
/**
*
@@ -70,13 +70,13 @@ export interface Dog {
* @type {boolean}
* @memberof Dog
*/
- bark?: boolean;
+ 'bark'?: boolean;
/**
*
* @type {string}
* @memberof Dog
*/
- breed?: DogBreedEnum;
+ 'breed'?: DogBreedEnum;
}
/**
@@ -101,13 +101,13 @@ export interface DogAllOf {
* @type {boolean}
* @memberof DogAllOf
*/
- bark?: boolean;
+ 'bark'?: boolean;
/**
*
* @type {string}
* @memberof DogAllOf
*/
- breed?: DogAllOfBreedEnum;
+ 'breed'?: DogAllOfBreedEnum;
}
/**
@@ -132,7 +132,7 @@ export interface InlineObject {
* @type {any}
* @memberof InlineObject
*/
- file?: any;
+ 'file'?: any;
}
/**
*
@@ -145,13 +145,13 @@ export interface PetByAge {
* @type {number}
* @memberof PetByAge
*/
- age: number;
+ 'age': number;
/**
*
* @type {string}
* @memberof PetByAge
*/
- nickname?: string;
+ 'nickname'?: string;
}
/**
*
@@ -164,13 +164,13 @@ export interface PetByType {
* @type {string}
* @memberof PetByType
*/
- pet_type: PetByTypePetTypeEnum;
+ 'pet_type': PetByTypePetTypeEnum;
/**
*
* @type {boolean}
* @memberof PetByType
*/
- hunts?: boolean;
+ 'hunts'?: boolean;
}
/**
@@ -195,7 +195,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- filePost: async (inlineObject?: InlineObject, options: any = {}): Promise => {
+ filePost: async (inlineObject?: InlineObject, options: AxiosRequestConfig = {}): Promise => {
const localVarPath = `/file`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -228,7 +228,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- petsFilteredPatch: async (petByAgePetByType?: PetByAge | PetByType, options: any = {}): Promise => {
+ petsFilteredPatch: async (petByAgePetByType?: PetByAge | PetByType, options: AxiosRequestConfig = {}): Promise => {
const localVarPath = `/pets-filtered`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -261,7 +261,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- petsPatch: async (catDog?: Cat | Dog, options: any = {}): Promise => {
+ petsPatch: async (catDog?: Cat | Dog, options: AxiosRequestConfig = {}): Promise => {
const localVarPath = `/pets`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -304,7 +304,7 @@ export const DefaultApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async filePost(inlineObject?: InlineObject, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ async filePost(inlineObject?: InlineObject, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
const localVarAxiosArgs = await localVarAxiosParamCreator.filePost(inlineObject, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
@@ -314,7 +314,7 @@ export const DefaultApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async petsFilteredPatch(petByAgePetByType?: PetByAge | PetByType, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ async petsFilteredPatch(petByAgePetByType?: PetByAge | PetByType, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
const localVarAxiosArgs = await localVarAxiosParamCreator.petsFilteredPatch(petByAgePetByType, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
@@ -324,7 +324,7 @@ export const DefaultApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async petsPatch(catDog?: Cat | Dog, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ async petsPatch(catDog?: Cat | Dog, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
const localVarAxiosArgs = await localVarAxiosParamCreator.petsPatch(catDog, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
@@ -382,7 +382,7 @@ export class DefaultApi extends BaseAPI {
* @throws {RequiredError}
* @memberof DefaultApi
*/
- public filePost(inlineObject?: InlineObject, options?: any) {
+ public filePost(inlineObject?: InlineObject, options?: AxiosRequestConfig) {
return DefaultApiFp(this.configuration).filePost(inlineObject, options).then((request) => request(this.axios, this.basePath));
}
@@ -393,7 +393,7 @@ export class DefaultApi extends BaseAPI {
* @throws {RequiredError}
* @memberof DefaultApi
*/
- public petsFilteredPatch(petByAgePetByType?: PetByAge | PetByType, options?: any) {
+ public petsFilteredPatch(petByAgePetByType?: PetByAge | PetByType, options?: AxiosRequestConfig) {
return DefaultApiFp(this.configuration).petsFilteredPatch(petByAgePetByType, options).then((request) => request(this.axios, this.basePath));
}
@@ -404,7 +404,7 @@ export class DefaultApi extends BaseAPI {
* @throws {RequiredError}
* @memberof DefaultApi
*/
- public petsPatch(catDog?: Cat | Dog, options?: any) {
+ public petsPatch(catDog?: Cat | Dog, options?: AxiosRequestConfig) {
return DefaultApiFp(this.configuration).petsPatch(catDog, options).then((request) => request(this.axios, this.basePath));
}
}
diff --git a/samples/client/petstore/typescript-axios/builds/composed-schemas/base.ts b/samples/client/petstore/typescript-axios/builds/composed-schemas/base.ts
index ce4043f006b..316a0beeecf 100644
--- a/samples/client/petstore/typescript-axios/builds/composed-schemas/base.ts
+++ b/samples/client/petstore/typescript-axios/builds/composed-schemas/base.ts
@@ -16,7 +16,7 @@
import { Configuration } from "./configuration";
// Some imports not used depending on template conditions
// @ts-ignore
-import globalAxios, { AxiosPromise, AxiosInstance } from 'axios';
+import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
export const BASE_PATH = "http://api.example.xyz/v1".replace(/\/+$/, "");
@@ -38,7 +38,7 @@ export const COLLECTION_FORMATS = {
*/
export interface RequestArgs {
url: string;
- options: any;
+ options: AxiosRequestConfig;
}
/**
diff --git a/samples/client/petstore/typescript-axios/builds/default/api.ts b/samples/client/petstore/typescript-axios/builds/default/api.ts
index 0ce81cf1174..094dfebb9fc 100644
--- a/samples/client/petstore/typescript-axios/builds/default/api.ts
+++ b/samples/client/petstore/typescript-axios/builds/default/api.ts
@@ -14,7 +14,7 @@
import { Configuration } from './configuration';
-import globalAxios, { AxiosPromise, AxiosInstance } from 'axios';
+import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
// Some imports not used depending on template conditions
// @ts-ignore
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
@@ -32,19 +32,19 @@ export interface ApiResponse {
* @type {number}
* @memberof ApiResponse
*/
- code?: number;
+ 'code'?: number;
/**
*
* @type {string}
* @memberof ApiResponse
*/
- type?: string;
+ 'type'?: string;
/**
*
* @type {string}
* @memberof ApiResponse
*/
- message?: string;
+ 'message'?: string;
}
/**
* A category for a pet
@@ -57,13 +57,13 @@ export interface Category {
* @type {number}
* @memberof Category
*/
- id?: number;
+ 'id'?: number;
/**
*
* @type {string}
* @memberof Category
*/
- name?: string;
+ 'name'?: string;
}
/**
* An order for a pets from the pet store
@@ -76,37 +76,37 @@ export interface Order {
* @type {number}
* @memberof Order
*/
- id?: number;
+ 'id'?: number;
/**
*
* @type {number}
* @memberof Order
*/
- petId?: number;
+ 'petId'?: number;
/**
*
* @type {number}
* @memberof Order
*/
- quantity?: number;
+ 'quantity'?: number;
/**
*
* @type {string}
* @memberof Order
*/
- shipDate?: string;
+ 'shipDate'?: string;
/**
* Order Status
* @type {string}
* @memberof Order
*/
- status?: OrderStatusEnum;
+ 'status'?: OrderStatusEnum;
/**
*
* @type {boolean}
* @memberof Order
*/
- complete?: boolean;
+ 'complete'?: boolean;
}
/**
@@ -130,37 +130,37 @@ export interface Pet {
* @type {number}
* @memberof Pet
*/
- id?: number;
+ 'id'?: number;
/**
*
* @type {Category}
* @memberof Pet
*/
- category?: Category;
+ 'category'?: Category;
/**
*
* @type {string}
* @memberof Pet
*/
- name: string;
+ 'name': string;
/**
*
* @type {Array}
* @memberof Pet
*/
- photoUrls: Array;
+ 'photoUrls': Array;
/**
*
* @type {Array}
* @memberof Pet
*/
- tags?: Array;
+ 'tags'?: Array;
/**
* pet status in the store
* @type {string}
* @memberof Pet
*/
- status?: PetStatusEnum;
+ 'status'?: PetStatusEnum;
}
/**
@@ -184,13 +184,13 @@ export interface Tag {
* @type {number}
* @memberof Tag
*/
- id?: number;
+ 'id'?: number;
/**
*
* @type {string}
* @memberof Tag
*/
- name?: string;
+ 'name'?: string;
}
/**
* A User who is purchasing from the pet store
@@ -203,49 +203,49 @@ export interface User {
* @type {number}
* @memberof User
*/
- id?: number;
+ 'id'?: number;
/**
*
* @type {string}
* @memberof User
*/
- username?: string;
+ 'username'?: string;
/**
*
* @type {string}
* @memberof User
*/
- firstName?: string;
+ 'firstName'?: string;
/**
*
* @type {string}
* @memberof User
*/
- lastName?: string;
+ 'lastName'?: string;
/**
*
* @type {string}
* @memberof User
*/
- email?: string;
+ 'email'?: string;
/**
*
* @type {string}
* @memberof User
*/
- password?: string;
+ 'password'?: string;
/**
*
* @type {string}
* @memberof User
*/
- phone?: string;
+ 'phone'?: string;
/**
* User Status
* @type {number}
* @memberof User
*/
- userStatus?: number;
+ 'userStatus'?: number;
}
/**
@@ -261,7 +261,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- addPet: async (body: Pet, options: any = {}): Promise => {
+ addPet: async (body: Pet, options: AxiosRequestConfig = {}): Promise => {
// verify required parameter 'body' is not null or undefined
assertParamExists('addPet', 'body', body)
const localVarPath = `/pet`;
@@ -302,7 +302,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- deletePet: async (petId: number, apiKey?: string, options: any = {}): Promise => {
+ deletePet: async (petId: number, apiKey?: string, options: AxiosRequestConfig = {}): Promise => {
// verify required parameter 'petId' is not null or undefined
assertParamExists('deletePet', 'petId', petId)
const localVarPath = `/pet/{petId}`
@@ -344,7 +344,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- findPetsByStatus: async (status: Array<'available' | 'pending' | 'sold'>, options: any = {}): Promise => {
+ findPetsByStatus: async (status: Array<'available' | 'pending' | 'sold'>, options: AxiosRequestConfig = {}): Promise => {
// verify required parameter 'status' is not null or undefined
assertParamExists('findPetsByStatus', 'status', status)
const localVarPath = `/pet/findByStatus`;
@@ -386,7 +386,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
* @deprecated
* @throws {RequiredError}
*/
- findPetsByTags: async (tags: Array, options: any = {}): Promise => {
+ findPetsByTags: async (tags: Array, options: AxiosRequestConfig = {}): Promise => {
// verify required parameter 'tags' is not null or undefined
assertParamExists('findPetsByTags', 'tags', tags)
const localVarPath = `/pet/findByTags`;
@@ -427,7 +427,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getPetById: async (petId: number, options: any = {}): Promise => {
+ getPetById: async (petId: number, options: AxiosRequestConfig = {}): Promise => {
// verify required parameter 'petId' is not null or undefined
assertParamExists('getPetById', 'petId', petId)
const localVarPath = `/pet/{petId}`
@@ -464,7 +464,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- updatePet: async (body: Pet, options: any = {}): Promise => {
+ updatePet: async (body: Pet, options: AxiosRequestConfig = {}): Promise => {
// verify required parameter 'body' is not null or undefined
assertParamExists('updatePet', 'body', body)
const localVarPath = `/pet`;
@@ -506,7 +506,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- updatePetWithForm: async (petId: number, name?: string, status?: string, options: any = {}): Promise => {
+ updatePetWithForm: async (petId: number, name?: string, status?: string, options: AxiosRequestConfig = {}): Promise => {
// verify required parameter 'petId' is not null or undefined
assertParamExists('updatePetWithForm', 'petId', petId)
const localVarPath = `/pet/{petId}`
@@ -558,7 +558,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- uploadFile: async (petId: number, additionalMetadata?: string, file?: any, options: any = {}): Promise => {
+ uploadFile: async (petId: number, additionalMetadata?: string, file?: any, options: AxiosRequestConfig = {}): Promise => {
// verify required parameter 'petId' is not null or undefined
assertParamExists('uploadFile', 'petId', petId)
const localVarPath = `/pet/{petId}/uploadImage`
@@ -618,7 +618,7 @@ export const PetApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async addPet(body: Pet, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ async addPet(body: Pet, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
const localVarAxiosArgs = await localVarAxiosParamCreator.addPet(body, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
@@ -630,7 +630,7 @@ export const PetApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async deletePet(petId: number, apiKey?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ async deletePet(petId: number, apiKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
const localVarAxiosArgs = await localVarAxiosParamCreator.deletePet(petId, apiKey, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
@@ -641,7 +641,7 @@ export const PetApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async findPetsByStatus(status: Array<'available' | 'pending' | 'sold'>, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {
+ async findPetsByStatus(status: Array<'available' | 'pending' | 'sold'>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.findPetsByStatus(status, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
@@ -653,7 +653,7 @@ export const PetApiFp = function(configuration?: Configuration) {
* @deprecated
* @throws {RequiredError}
*/
- async findPetsByTags(tags: Array, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {
+ async findPetsByTags(tags: Array, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.findPetsByTags(tags, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
@@ -664,7 +664,7 @@ export const PetApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async getPetById(petId: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ async getPetById(petId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
const localVarAxiosArgs = await localVarAxiosParamCreator.getPetById(petId, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
@@ -675,7 +675,7 @@ export const PetApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async updatePet(body: Pet, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ async updatePet(body: Pet, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
const localVarAxiosArgs = await localVarAxiosParamCreator.updatePet(body, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
@@ -688,7 +688,7 @@ export const PetApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async updatePetWithForm(petId: number, name?: string, status?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ async updatePetWithForm(petId: number, name?: string, status?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
const localVarAxiosArgs = await localVarAxiosParamCreator.updatePetWithForm(petId, name, status, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
@@ -701,7 +701,7 @@ export const PetApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async uploadFile(petId: number, additionalMetadata?: string, file?: any, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ async uploadFile(petId: number, additionalMetadata?: string, file?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFile(petId, additionalMetadata, file, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
@@ -819,7 +819,7 @@ export class PetApi extends BaseAPI {
* @throws {RequiredError}
* @memberof PetApi
*/
- public addPet(body: Pet, options?: any) {
+ public addPet(body: Pet, options?: AxiosRequestConfig) {
return PetApiFp(this.configuration).addPet(body, options).then((request) => request(this.axios, this.basePath));
}
@@ -832,7 +832,7 @@ export class PetApi extends BaseAPI {
* @throws {RequiredError}
* @memberof PetApi
*/
- public deletePet(petId: number, apiKey?: string, options?: any) {
+ public deletePet(petId: number, apiKey?: string, options?: AxiosRequestConfig) {
return PetApiFp(this.configuration).deletePet(petId, apiKey, options).then((request) => request(this.axios, this.basePath));
}
@@ -844,7 +844,7 @@ export class PetApi extends BaseAPI {
* @throws {RequiredError}
* @memberof PetApi
*/
- public findPetsByStatus(status: Array<'available' | 'pending' | 'sold'>, options?: any) {
+ public findPetsByStatus(status: Array<'available' | 'pending' | 'sold'>, options?: AxiosRequestConfig) {
return PetApiFp(this.configuration).findPetsByStatus(status, options).then((request) => request(this.axios, this.basePath));
}
@@ -857,7 +857,7 @@ export class PetApi extends BaseAPI {
* @throws {RequiredError}
* @memberof PetApi
*/
- public findPetsByTags(tags: Array, options?: any) {
+ public findPetsByTags(tags: Array, options?: AxiosRequestConfig) {
return PetApiFp(this.configuration).findPetsByTags(tags, options).then((request) => request(this.axios, this.basePath));
}
@@ -869,7 +869,7 @@ export class PetApi extends BaseAPI {
* @throws {RequiredError}
* @memberof PetApi
*/
- public getPetById(petId: number, options?: any) {
+ public getPetById(petId: number, options?: AxiosRequestConfig) {
return PetApiFp(this.configuration).getPetById(petId, options).then((request) => request(this.axios, this.basePath));
}
@@ -881,7 +881,7 @@ export class PetApi extends BaseAPI {
* @throws {RequiredError}
* @memberof PetApi
*/
- public updatePet(body: Pet, options?: any) {
+ public updatePet(body: Pet, options?: AxiosRequestConfig) {
return PetApiFp(this.configuration).updatePet(body, options).then((request) => request(this.axios, this.basePath));
}
@@ -895,7 +895,7 @@ export class PetApi extends BaseAPI {
* @throws {RequiredError}
* @memberof PetApi
*/
- public updatePetWithForm(petId: number, name?: string, status?: string, options?: any) {
+ public updatePetWithForm(petId: number, name?: string, status?: string, options?: AxiosRequestConfig) {
return PetApiFp(this.configuration).updatePetWithForm(petId, name, status, options).then((request) => request(this.axios, this.basePath));
}
@@ -909,7 +909,7 @@ export class PetApi extends BaseAPI {
* @throws {RequiredError}
* @memberof PetApi
*/
- public uploadFile(petId: number, additionalMetadata?: string, file?: any, options?: any) {
+ public uploadFile(petId: number, additionalMetadata?: string, file?: any, options?: AxiosRequestConfig) {
return PetApiFp(this.configuration).uploadFile(petId, additionalMetadata, file, options).then((request) => request(this.axios, this.basePath));
}
}
@@ -928,7 +928,7 @@ export const StoreApiAxiosParamCreator = function (configuration?: Configuration
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- deleteOrder: async (orderId: string, options: any = {}): Promise => {
+ deleteOrder: async (orderId: string, options: AxiosRequestConfig = {}): Promise => {
// verify required parameter 'orderId' is not null or undefined
assertParamExists('deleteOrder', 'orderId', orderId)
const localVarPath = `/store/order/{orderId}`
@@ -961,7 +961,7 @@ export const StoreApiAxiosParamCreator = function (configuration?: Configuration
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getInventory: async (options: any = {}): Promise => {
+ getInventory: async (options: AxiosRequestConfig = {}): Promise => {
const localVarPath = `/store/inventory`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -995,7 +995,7 @@ export const StoreApiAxiosParamCreator = function (configuration?: Configuration
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getOrderById: async (orderId: number, options: any = {}): Promise => {
+ getOrderById: async (orderId: number, options: AxiosRequestConfig = {}): Promise => {
// verify required parameter 'orderId' is not null or undefined
assertParamExists('getOrderById', 'orderId', orderId)
const localVarPath = `/store/order/{orderId}`
@@ -1029,7 +1029,7 @@ export const StoreApiAxiosParamCreator = function (configuration?: Configuration
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- placeOrder: async (body: Order, options: any = {}): Promise => {
+ placeOrder: async (body: Order, options: AxiosRequestConfig = {}): Promise => {
// verify required parameter 'body' is not null or undefined
assertParamExists('placeOrder', 'body', body)
const localVarPath = `/store/order`;
@@ -1075,7 +1075,7 @@ export const StoreApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async deleteOrder(orderId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ async deleteOrder(orderId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteOrder(orderId, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
@@ -1085,7 +1085,7 @@ export const StoreApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async getInventory(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: number; }>> {
+ async getInventory(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: number; }>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.getInventory(options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
@@ -1096,7 +1096,7 @@ export const StoreApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async getOrderById(orderId: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ async getOrderById(orderId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrderById(orderId, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
@@ -1107,7 +1107,7 @@ export const StoreApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async placeOrder(body: Order, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ async placeOrder(body: Order, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
const localVarAxiosArgs = await localVarAxiosParamCreator.placeOrder(body, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
@@ -1178,7 +1178,7 @@ export class StoreApi extends BaseAPI {
* @throws {RequiredError}
* @memberof StoreApi
*/
- public deleteOrder(orderId: string, options?: any) {
+ public deleteOrder(orderId: string, options?: AxiosRequestConfig) {
return StoreApiFp(this.configuration).deleteOrder(orderId, options).then((request) => request(this.axios, this.basePath));
}
@@ -1189,7 +1189,7 @@ export class StoreApi extends BaseAPI {
* @throws {RequiredError}
* @memberof StoreApi
*/
- public getInventory(options?: any) {
+ public getInventory(options?: AxiosRequestConfig) {
return StoreApiFp(this.configuration).getInventory(options).then((request) => request(this.axios, this.basePath));
}
@@ -1201,7 +1201,7 @@ export class StoreApi extends BaseAPI {
* @throws {RequiredError}
* @memberof StoreApi
*/
- public getOrderById(orderId: number, options?: any) {
+ public getOrderById(orderId: number, options?: AxiosRequestConfig) {
return StoreApiFp(this.configuration).getOrderById(orderId, options).then((request) => request(this.axios, this.basePath));
}
@@ -1213,7 +1213,7 @@ export class StoreApi extends BaseAPI {
* @throws {RequiredError}
* @memberof StoreApi
*/
- public placeOrder(body: Order, options?: any) {
+ public placeOrder(body: Order, options?: AxiosRequestConfig) {
return StoreApiFp(this.configuration).placeOrder(body, options).then((request) => request(this.axios, this.basePath));
}
}
@@ -1232,7 +1232,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- createUser: async (body: User, options: any = {}): Promise => {
+ createUser: async (body: User, options: AxiosRequestConfig = {}): Promise => {
// verify required parameter 'body' is not null or undefined
assertParamExists('createUser', 'body', body)
const localVarPath = `/user`;
@@ -1268,7 +1268,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- createUsersWithArrayInput: async (body: Array, options: any = {}): Promise => {
+ createUsersWithArrayInput: async (body: Array, options: AxiosRequestConfig = {}): Promise => {
// verify required parameter 'body' is not null or undefined
assertParamExists('createUsersWithArrayInput', 'body', body)
const localVarPath = `/user/createWithArray`;
@@ -1304,7 +1304,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- createUsersWithListInput: async (body: Array, options: any = {}): Promise => {
+ createUsersWithListInput: async (body: Array, options: AxiosRequestConfig = {}): Promise => {
// verify required parameter 'body' is not null or undefined
assertParamExists('createUsersWithListInput', 'body', body)
const localVarPath = `/user/createWithList`;
@@ -1340,7 +1340,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- deleteUser: async (username: string, options: any = {}): Promise => {
+ deleteUser: async (username: string, options: AxiosRequestConfig = {}): Promise => {
// verify required parameter 'username' is not null or undefined
assertParamExists('deleteUser', 'username', username)
const localVarPath = `/user/{username}`
@@ -1374,7 +1374,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getUserByName: async (username: string, options: any = {}): Promise => {
+ getUserByName: async (username: string, options: AxiosRequestConfig = {}): Promise => {
// verify required parameter 'username' is not null or undefined
assertParamExists('getUserByName', 'username', username)
const localVarPath = `/user/{username}`
@@ -1409,7 +1409,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- loginUser: async (username: string, password: string, options: any = {}): Promise => {
+ loginUser: async (username: string, password: string, options: AxiosRequestConfig = {}): Promise => {
// verify required parameter 'username' is not null or undefined
assertParamExists('loginUser', 'username', username)
// verify required parameter 'password' is not null or undefined
@@ -1451,7 +1451,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- logoutUser: async (options: any = {}): Promise => {
+ logoutUser: async (options: AxiosRequestConfig = {}): Promise => {
const localVarPath = `/user/logout`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -1483,7 +1483,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- updateUser: async (username: string, body: User, options: any = {}): Promise => {
+ updateUser: async (username: string, body: User, options: AxiosRequestConfig = {}): Promise => {
// verify required parameter 'username' is not null or undefined
assertParamExists('updateUser', 'username', username)
// verify required parameter 'body' is not null or undefined
@@ -1532,7 +1532,7 @@ export const UserApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async createUser(body: User, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ async createUser(body: User, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
const localVarAxiosArgs = await localVarAxiosParamCreator.createUser(body, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
@@ -1543,7 +1543,7 @@ export const UserApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async createUsersWithArrayInput(body: Array, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ async createUsersWithArrayInput(body: Array, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
const localVarAxiosArgs = await localVarAxiosParamCreator.createUsersWithArrayInput(body, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
@@ -1554,7 +1554,7 @@ export const UserApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async createUsersWithListInput(body: Array, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ async createUsersWithListInput(body: Array, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
const localVarAxiosArgs = await localVarAxiosParamCreator.createUsersWithListInput(body, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
@@ -1565,7 +1565,7 @@ export const UserApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async deleteUser(username: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ async deleteUser(username: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUser(username, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
@@ -1576,7 +1576,7 @@ export const UserApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async getUserByName(username: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ async getUserByName(username: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserByName(username, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
@@ -1588,7 +1588,7 @@ export const UserApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async loginUser(username: string, password: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ async loginUser(username: string, password: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
const localVarAxiosArgs = await localVarAxiosParamCreator.loginUser(username, password, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
@@ -1598,7 +1598,7 @@ export const UserApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async logoutUser(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ async logoutUser(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
const localVarAxiosArgs = await localVarAxiosParamCreator.logoutUser(options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
@@ -1610,7 +1610,7 @@ export const UserApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async updateUser(username: string, body: User, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ async updateUser(username: string, body: User, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
const localVarAxiosArgs = await localVarAxiosParamCreator.updateUser(username, body, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
@@ -1723,7 +1723,7 @@ export class UserApi extends BaseAPI {
* @throws {RequiredError}
* @memberof UserApi
*/
- public createUser(body: User, options?: any) {
+ public createUser(body: User, options?: AxiosRequestConfig) {
return UserApiFp(this.configuration).createUser(body, options).then((request) => request(this.axios, this.basePath));
}
@@ -1735,7 +1735,7 @@ export class UserApi extends BaseAPI {
* @throws {RequiredError}
* @memberof UserApi
*/
- public createUsersWithArrayInput(body: Array, options?: any) {
+ public createUsersWithArrayInput(body: Array, options?: AxiosRequestConfig) {
return UserApiFp(this.configuration).createUsersWithArrayInput(body, options).then((request) => request(this.axios, this.basePath));
}
@@ -1747,7 +1747,7 @@ export class UserApi extends BaseAPI {
* @throws {RequiredError}
* @memberof UserApi
*/
- public createUsersWithListInput(body: Array, options?: any) {
+ public createUsersWithListInput(body: Array, options?: AxiosRequestConfig) {
return UserApiFp(this.configuration).createUsersWithListInput(body, options).then((request) => request(this.axios, this.basePath));
}
@@ -1759,7 +1759,7 @@ export class UserApi extends BaseAPI {
* @throws {RequiredError}
* @memberof UserApi
*/
- public deleteUser(username: string, options?: any) {
+ public deleteUser(username: string, options?: AxiosRequestConfig) {
return UserApiFp(this.configuration).deleteUser(username, options).then((request) => request(this.axios, this.basePath));
}
@@ -1771,7 +1771,7 @@ export class UserApi extends BaseAPI {
* @throws {RequiredError}
* @memberof UserApi
*/
- public getUserByName(username: string, options?: any) {
+ public getUserByName(username: string, options?: AxiosRequestConfig) {
return UserApiFp(this.configuration).getUserByName(username, options).then((request) => request(this.axios, this.basePath));
}
@@ -1784,7 +1784,7 @@ export class UserApi extends BaseAPI {
* @throws {RequiredError}
* @memberof UserApi
*/
- public loginUser(username: string, password: string, options?: any) {
+ public loginUser(username: string, password: string, options?: AxiosRequestConfig) {
return UserApiFp(this.configuration).loginUser(username, password, options).then((request) => request(this.axios, this.basePath));
}
@@ -1795,7 +1795,7 @@ export class UserApi extends BaseAPI {
* @throws {RequiredError}
* @memberof UserApi
*/
- public logoutUser(options?: any) {
+ public logoutUser(options?: AxiosRequestConfig) {
return UserApiFp(this.configuration).logoutUser(options).then((request) => request(this.axios, this.basePath));
}
@@ -1808,7 +1808,7 @@ export class UserApi extends BaseAPI {
* @throws {RequiredError}
* @memberof UserApi
*/
- public updateUser(username: string, body: User, options?: any) {
+ public updateUser(username: string, body: User, options?: AxiosRequestConfig) {
return UserApiFp(this.configuration).updateUser(username, body, options).then((request) => request(this.axios, this.basePath));
}
}
diff --git a/samples/client/petstore/typescript-axios/builds/default/base.ts b/samples/client/petstore/typescript-axios/builds/default/base.ts
index c7eaf57bf47..e23d972eeb0 100644
--- a/samples/client/petstore/typescript-axios/builds/default/base.ts
+++ b/samples/client/petstore/typescript-axios/builds/default/base.ts
@@ -16,7 +16,7 @@
import { Configuration } from "./configuration";
// Some imports not used depending on template conditions
// @ts-ignore
-import globalAxios, { AxiosPromise, AxiosInstance } from 'axios';
+import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
export const BASE_PATH = "http://petstore.swagger.io/v2".replace(/\/+$/, "");
@@ -38,7 +38,7 @@ export const COLLECTION_FORMATS = {
*/
export interface RequestArgs {
url: string;
- options: any;
+ options: AxiosRequestConfig;
}
/**
diff --git a/samples/client/petstore/typescript-axios/builds/es6-target/api.ts b/samples/client/petstore/typescript-axios/builds/es6-target/api.ts
index 0ce81cf1174..094dfebb9fc 100644
--- a/samples/client/petstore/typescript-axios/builds/es6-target/api.ts
+++ b/samples/client/petstore/typescript-axios/builds/es6-target/api.ts
@@ -14,7 +14,7 @@
import { Configuration } from './configuration';
-import globalAxios, { AxiosPromise, AxiosInstance } from 'axios';
+import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
// Some imports not used depending on template conditions
// @ts-ignore
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
@@ -32,19 +32,19 @@ export interface ApiResponse {
* @type {number}
* @memberof ApiResponse
*/
- code?: number;
+ 'code'?: number;
/**
*
* @type {string}
* @memberof ApiResponse
*/
- type?: string;
+ 'type'?: string;
/**
*
* @type {string}
* @memberof ApiResponse
*/
- message?: string;
+ 'message'?: string;
}
/**
* A category for a pet
@@ -57,13 +57,13 @@ export interface Category {
* @type {number}
* @memberof Category
*/
- id?: number;
+ 'id'?: number;
/**
*
* @type {string}
* @memberof Category
*/
- name?: string;
+ 'name'?: string;
}
/**
* An order for a pets from the pet store
@@ -76,37 +76,37 @@ export interface Order {
* @type {number}
* @memberof Order
*/
- id?: number;
+ 'id'?: number;
/**
*
* @type {number}
* @memberof Order
*/
- petId?: number;
+ 'petId'?: number;
/**
*
* @type {number}
* @memberof Order
*/
- quantity?: number;
+ 'quantity'?: number;
/**
*
* @type {string}
* @memberof Order
*/
- shipDate?: string;
+ 'shipDate'?: string;
/**
* Order Status
* @type {string}
* @memberof Order
*/
- status?: OrderStatusEnum;
+ 'status'?: OrderStatusEnum;
/**
*
* @type {boolean}
* @memberof Order
*/
- complete?: boolean;
+ 'complete'?: boolean;
}
/**
@@ -130,37 +130,37 @@ export interface Pet {
* @type {number}
* @memberof Pet
*/
- id?: number;
+ 'id'?: number;
/**
*
* @type {Category}
* @memberof Pet
*/
- category?: Category;
+ 'category'?: Category;
/**
*
* @type {string}
* @memberof Pet
*/
- name: string;
+ 'name': string;
/**
*
* @type {Array}
* @memberof Pet
*/
- photoUrls: Array;
+ 'photoUrls': Array;
/**
*
* @type {Array}
* @memberof Pet
*/
- tags?: Array;
+ 'tags'?: Array;
/**
* pet status in the store
* @type {string}
* @memberof Pet
*/
- status?: PetStatusEnum;
+ 'status'?: PetStatusEnum;
}
/**
@@ -184,13 +184,13 @@ export interface Tag {
* @type {number}
* @memberof Tag
*/
- id?: number;
+ 'id'?: number;
/**
*
* @type {string}
* @memberof Tag
*/
- name?: string;
+ 'name'?: string;
}
/**
* A User who is purchasing from the pet store
@@ -203,49 +203,49 @@ export interface User {
* @type {number}
* @memberof User
*/
- id?: number;
+ 'id'?: number;
/**
*
* @type {string}
* @memberof User
*/
- username?: string;
+ 'username'?: string;
/**
*
* @type {string}
* @memberof User
*/
- firstName?: string;
+ 'firstName'?: string;
/**
*
* @type {string}
* @memberof User
*/
- lastName?: string;
+ 'lastName'?: string;
/**
*
* @type {string}
* @memberof User
*/
- email?: string;
+ 'email'?: string;
/**
*
* @type {string}
* @memberof User
*/
- password?: string;
+ 'password'?: string;
/**
*
* @type {string}
* @memberof User
*/
- phone?: string;
+ 'phone'?: string;
/**
* User Status
* @type {number}
* @memberof User
*/
- userStatus?: number;
+ 'userStatus'?: number;
}
/**
@@ -261,7 +261,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- addPet: async (body: Pet, options: any = {}): Promise => {
+ addPet: async (body: Pet, options: AxiosRequestConfig = {}): Promise => {
// verify required parameter 'body' is not null or undefined
assertParamExists('addPet', 'body', body)
const localVarPath = `/pet`;
@@ -302,7 +302,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- deletePet: async (petId: number, apiKey?: string, options: any = {}): Promise => {
+ deletePet: async (petId: number, apiKey?: string, options: AxiosRequestConfig = {}): Promise => {
// verify required parameter 'petId' is not null or undefined
assertParamExists('deletePet', 'petId', petId)
const localVarPath = `/pet/{petId}`
@@ -344,7 +344,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- findPetsByStatus: async (status: Array<'available' | 'pending' | 'sold'>, options: any = {}): Promise => {
+ findPetsByStatus: async (status: Array<'available' | 'pending' | 'sold'>, options: AxiosRequestConfig = {}): Promise => {
// verify required parameter 'status' is not null or undefined
assertParamExists('findPetsByStatus', 'status', status)
const localVarPath = `/pet/findByStatus`;
@@ -386,7 +386,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
* @deprecated
* @throws {RequiredError}
*/
- findPetsByTags: async (tags: Array, options: any = {}): Promise => {
+ findPetsByTags: async (tags: Array, options: AxiosRequestConfig = {}): Promise => {
// verify required parameter 'tags' is not null or undefined
assertParamExists('findPetsByTags', 'tags', tags)
const localVarPath = `/pet/findByTags`;
@@ -427,7 +427,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getPetById: async (petId: number, options: any = {}): Promise => {
+ getPetById: async (petId: number, options: AxiosRequestConfig = {}): Promise => {
// verify required parameter 'petId' is not null or undefined
assertParamExists('getPetById', 'petId', petId)
const localVarPath = `/pet/{petId}`
@@ -464,7 +464,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- updatePet: async (body: Pet, options: any = {}): Promise => {
+ updatePet: async (body: Pet, options: AxiosRequestConfig = {}): Promise => {
// verify required parameter 'body' is not null or undefined
assertParamExists('updatePet', 'body', body)
const localVarPath = `/pet`;
@@ -506,7 +506,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- updatePetWithForm: async (petId: number, name?: string, status?: string, options: any = {}): Promise => {
+ updatePetWithForm: async (petId: number, name?: string, status?: string, options: AxiosRequestConfig = {}): Promise => {
// verify required parameter 'petId' is not null or undefined
assertParamExists('updatePetWithForm', 'petId', petId)
const localVarPath = `/pet/{petId}`
@@ -558,7 +558,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- uploadFile: async (petId: number, additionalMetadata?: string, file?: any, options: any = {}): Promise => {
+ uploadFile: async (petId: number, additionalMetadata?: string, file?: any, options: AxiosRequestConfig = {}): Promise => {
// verify required parameter 'petId' is not null or undefined
assertParamExists('uploadFile', 'petId', petId)
const localVarPath = `/pet/{petId}/uploadImage`
@@ -618,7 +618,7 @@ export const PetApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async addPet(body: Pet, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ async addPet(body: Pet, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
const localVarAxiosArgs = await localVarAxiosParamCreator.addPet(body, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
@@ -630,7 +630,7 @@ export const PetApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async deletePet(petId: number, apiKey?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ async deletePet(petId: number, apiKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
const localVarAxiosArgs = await localVarAxiosParamCreator.deletePet(petId, apiKey, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
@@ -641,7 +641,7 @@ export const PetApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async findPetsByStatus(status: Array<'available' | 'pending' | 'sold'>, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {
+ async findPetsByStatus(status: Array<'available' | 'pending' | 'sold'>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.findPetsByStatus(status, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
@@ -653,7 +653,7 @@ export const PetApiFp = function(configuration?: Configuration) {
* @deprecated
* @throws {RequiredError}
*/
- async findPetsByTags(tags: Array, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {
+ async findPetsByTags(tags: Array, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.findPetsByTags(tags, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
@@ -664,7 +664,7 @@ export const PetApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async getPetById(petId: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ async getPetById(petId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
const localVarAxiosArgs = await localVarAxiosParamCreator.getPetById(petId, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
@@ -675,7 +675,7 @@ export const PetApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async updatePet(body: Pet, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ async updatePet(body: Pet, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
const localVarAxiosArgs = await localVarAxiosParamCreator.updatePet(body, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
@@ -688,7 +688,7 @@ export const PetApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async updatePetWithForm(petId: number, name?: string, status?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ async updatePetWithForm(petId: number, name?: string, status?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
const localVarAxiosArgs = await localVarAxiosParamCreator.updatePetWithForm(petId, name, status, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
@@ -701,7 +701,7 @@ export const PetApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async uploadFile(petId: number, additionalMetadata?: string, file?: any, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ async uploadFile(petId: number, additionalMetadata?: string, file?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFile(petId, additionalMetadata, file, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
@@ -819,7 +819,7 @@ export class PetApi extends BaseAPI {
* @throws {RequiredError}
* @memberof PetApi
*/
- public addPet(body: Pet, options?: any) {
+ public addPet(body: Pet, options?: AxiosRequestConfig) {
return PetApiFp(this.configuration).addPet(body, options).then((request) => request(this.axios, this.basePath));
}
@@ -832,7 +832,7 @@ export class PetApi extends BaseAPI {
* @throws {RequiredError}
* @memberof PetApi
*/
- public deletePet(petId: number, apiKey?: string, options?: any) {
+ public deletePet(petId: number, apiKey?: string, options?: AxiosRequestConfig) {
return PetApiFp(this.configuration).deletePet(petId, apiKey, options).then((request) => request(this.axios, this.basePath));
}
@@ -844,7 +844,7 @@ export class PetApi extends BaseAPI {
* @throws {RequiredError}
* @memberof PetApi
*/
- public findPetsByStatus(status: Array<'available' | 'pending' | 'sold'>, options?: any) {
+ public findPetsByStatus(status: Array<'available' | 'pending' | 'sold'>, options?: AxiosRequestConfig) {
return PetApiFp(this.configuration).findPetsByStatus(status, options).then((request) => request(this.axios, this.basePath));
}
@@ -857,7 +857,7 @@ export class PetApi extends BaseAPI {
* @throws {RequiredError}
* @memberof PetApi
*/
- public findPetsByTags(tags: Array, options?: any) {
+ public findPetsByTags(tags: Array, options?: AxiosRequestConfig) {
return PetApiFp(this.configuration).findPetsByTags(tags, options).then((request) => request(this.axios, this.basePath));
}
@@ -869,7 +869,7 @@ export class PetApi extends BaseAPI {
* @throws {RequiredError}
* @memberof PetApi
*/
- public getPetById(petId: number, options?: any) {
+ public getPetById(petId: number, options?: AxiosRequestConfig) {
return PetApiFp(this.configuration).getPetById(petId, options).then((request) => request(this.axios, this.basePath));
}
@@ -881,7 +881,7 @@ export class PetApi extends BaseAPI {
* @throws {RequiredError}
* @memberof PetApi
*/
- public updatePet(body: Pet, options?: any) {
+ public updatePet(body: Pet, options?: AxiosRequestConfig) {
return PetApiFp(this.configuration).updatePet(body, options).then((request) => request(this.axios, this.basePath));
}
@@ -895,7 +895,7 @@ export class PetApi extends BaseAPI {
* @throws {RequiredError}
* @memberof PetApi
*/
- public updatePetWithForm(petId: number, name?: string, status?: string, options?: any) {
+ public updatePetWithForm(petId: number, name?: string, status?: string, options?: AxiosRequestConfig) {
return PetApiFp(this.configuration).updatePetWithForm(petId, name, status, options).then((request) => request(this.axios, this.basePath));
}
@@ -909,7 +909,7 @@ export class PetApi extends BaseAPI {
* @throws {RequiredError}
* @memberof PetApi
*/
- public uploadFile(petId: number, additionalMetadata?: string, file?: any, options?: any) {
+ public uploadFile(petId: number, additionalMetadata?: string, file?: any, options?: AxiosRequestConfig) {
return PetApiFp(this.configuration).uploadFile(petId, additionalMetadata, file, options).then((request) => request(this.axios, this.basePath));
}
}
@@ -928,7 +928,7 @@ export const StoreApiAxiosParamCreator = function (configuration?: Configuration
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- deleteOrder: async (orderId: string, options: any = {}): Promise => {
+ deleteOrder: async (orderId: string, options: AxiosRequestConfig = {}): Promise => {
// verify required parameter 'orderId' is not null or undefined
assertParamExists('deleteOrder', 'orderId', orderId)
const localVarPath = `/store/order/{orderId}`
@@ -961,7 +961,7 @@ export const StoreApiAxiosParamCreator = function (configuration?: Configuration
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getInventory: async (options: any = {}): Promise => {
+ getInventory: async (options: AxiosRequestConfig = {}): Promise => {
const localVarPath = `/store/inventory`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -995,7 +995,7 @@ export const StoreApiAxiosParamCreator = function (configuration?: Configuration
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getOrderById: async (orderId: number, options: any = {}): Promise => {
+ getOrderById: async (orderId: number, options: AxiosRequestConfig = {}): Promise => {
// verify required parameter 'orderId' is not null or undefined
assertParamExists('getOrderById', 'orderId', orderId)
const localVarPath = `/store/order/{orderId}`
@@ -1029,7 +1029,7 @@ export const StoreApiAxiosParamCreator = function (configuration?: Configuration
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- placeOrder: async (body: Order, options: any = {}): Promise => {
+ placeOrder: async (body: Order, options: AxiosRequestConfig = {}): Promise => {
// verify required parameter 'body' is not null or undefined
assertParamExists('placeOrder', 'body', body)
const localVarPath = `/store/order`;
@@ -1075,7 +1075,7 @@ export const StoreApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async deleteOrder(orderId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ async deleteOrder(orderId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteOrder(orderId, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
@@ -1085,7 +1085,7 @@ export const StoreApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async getInventory(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: number; }>> {
+ async getInventory(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: number; }>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.getInventory(options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
@@ -1096,7 +1096,7 @@ export const StoreApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async getOrderById(orderId: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ async getOrderById(orderId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrderById(orderId, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
@@ -1107,7 +1107,7 @@ export const StoreApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async placeOrder(body: Order, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ async placeOrder(body: Order, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
const localVarAxiosArgs = await localVarAxiosParamCreator.placeOrder(body, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
@@ -1178,7 +1178,7 @@ export class StoreApi extends BaseAPI {
* @throws {RequiredError}
* @memberof StoreApi
*/
- public deleteOrder(orderId: string, options?: any) {
+ public deleteOrder(orderId: string, options?: AxiosRequestConfig) {
return StoreApiFp(this.configuration).deleteOrder(orderId, options).then((request) => request(this.axios, this.basePath));
}
@@ -1189,7 +1189,7 @@ export class StoreApi extends BaseAPI {
* @throws {RequiredError}
* @memberof StoreApi
*/
- public getInventory(options?: any) {
+ public getInventory(options?: AxiosRequestConfig) {
return StoreApiFp(this.configuration).getInventory(options).then((request) => request(this.axios, this.basePath));
}
@@ -1201,7 +1201,7 @@ export class StoreApi extends BaseAPI {
* @throws {RequiredError}
* @memberof StoreApi
*/
- public getOrderById(orderId: number, options?: any) {
+ public getOrderById(orderId: number, options?: AxiosRequestConfig) {
return StoreApiFp(this.configuration).getOrderById(orderId, options).then((request) => request(this.axios, this.basePath));
}
@@ -1213,7 +1213,7 @@ export class StoreApi extends BaseAPI {
* @throws {RequiredError}
* @memberof StoreApi
*/
- public placeOrder(body: Order, options?: any) {
+ public placeOrder(body: Order, options?: AxiosRequestConfig) {
return StoreApiFp(this.configuration).placeOrder(body, options).then((request) => request(this.axios, this.basePath));
}
}
@@ -1232,7 +1232,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- createUser: async (body: User, options: any = {}): Promise => {
+ createUser: async (body: User, options: AxiosRequestConfig = {}): Promise => {
// verify required parameter 'body' is not null or undefined
assertParamExists('createUser', 'body', body)
const localVarPath = `/user`;
@@ -1268,7 +1268,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- createUsersWithArrayInput: async (body: Array, options: any = {}): Promise => {
+ createUsersWithArrayInput: async (body: Array, options: AxiosRequestConfig = {}): Promise => {
// verify required parameter 'body' is not null or undefined
assertParamExists('createUsersWithArrayInput', 'body', body)
const localVarPath = `/user/createWithArray`;
@@ -1304,7 +1304,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- createUsersWithListInput: async (body: Array, options: any = {}): Promise => {
+ createUsersWithListInput: async (body: Array, options: AxiosRequestConfig = {}): Promise => {
// verify required parameter 'body' is not null or undefined
assertParamExists('createUsersWithListInput', 'body', body)
const localVarPath = `/user/createWithList`;
@@ -1340,7 +1340,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- deleteUser: async (username: string, options: any = {}): Promise => {
+ deleteUser: async (username: string, options: AxiosRequestConfig = {}): Promise => {
// verify required parameter 'username' is not null or undefined
assertParamExists('deleteUser', 'username', username)
const localVarPath = `/user/{username}`
@@ -1374,7 +1374,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getUserByName: async (username: string, options: any = {}): Promise => {
+ getUserByName: async (username: string, options: AxiosRequestConfig = {}): Promise => {
// verify required parameter 'username' is not null or undefined
assertParamExists('getUserByName', 'username', username)
const localVarPath = `/user/{username}`
@@ -1409,7 +1409,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- loginUser: async (username: string, password: string, options: any = {}): Promise => {
+ loginUser: async (username: string, password: string, options: AxiosRequestConfig = {}): Promise => {
// verify required parameter 'username' is not null or undefined
assertParamExists('loginUser', 'username', username)
// verify required parameter 'password' is not null or undefined
@@ -1451,7 +1451,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- logoutUser: async (options: any = {}): Promise => {
+ logoutUser: async (options: AxiosRequestConfig = {}): Promise => {
const localVarPath = `/user/logout`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -1483,7 +1483,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- updateUser: async (username: string, body: User, options: any = {}): Promise => {
+ updateUser: async (username: string, body: User, options: AxiosRequestConfig = {}): Promise => {
// verify required parameter 'username' is not null or undefined
assertParamExists('updateUser', 'username', username)
// verify required parameter 'body' is not null or undefined
@@ -1532,7 +1532,7 @@ export const UserApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async createUser(body: User, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ async createUser(body: User, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
const localVarAxiosArgs = await localVarAxiosParamCreator.createUser(body, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
@@ -1543,7 +1543,7 @@ export const UserApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async createUsersWithArrayInput(body: Array, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ async createUsersWithArrayInput(body: Array, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
const localVarAxiosArgs = await localVarAxiosParamCreator.createUsersWithArrayInput(body, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
@@ -1554,7 +1554,7 @@ export const UserApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async createUsersWithListInput(body: Array, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ async createUsersWithListInput(body: Array, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
const localVarAxiosArgs = await localVarAxiosParamCreator.createUsersWithListInput(body, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
@@ -1565,7 +1565,7 @@ export const UserApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async deleteUser(username: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ async deleteUser(username: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUser(username, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
@@ -1576,7 +1576,7 @@ export const UserApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async getUserByName(username: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ async getUserByName(username: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserByName(username, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
@@ -1588,7 +1588,7 @@ export const UserApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async loginUser(username: string, password: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ async loginUser(username: string, password: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
const localVarAxiosArgs = await localVarAxiosParamCreator.loginUser(username, password, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
@@ -1598,7 +1598,7 @@ export const UserApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async logoutUser(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ async logoutUser(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
const localVarAxiosArgs = await localVarAxiosParamCreator.logoutUser(options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
@@ -1610,7 +1610,7 @@ export const UserApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async updateUser(username: string, body: User, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ async updateUser(username: string, body: User, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
const localVarAxiosArgs = await localVarAxiosParamCreator.updateUser(username, body, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
@@ -1723,7 +1723,7 @@ export class UserApi extends BaseAPI {
* @throws {RequiredError}
* @memberof UserApi
*/
- public createUser(body: User, options?: any) {
+ public createUser(body: User, options?: AxiosRequestConfig) {
return UserApiFp(this.configuration).createUser(body, options).then((request) => request(this.axios, this.basePath));
}
@@ -1735,7 +1735,7 @@ export class UserApi extends BaseAPI {
* @throws {RequiredError}
* @memberof UserApi
*/
- public createUsersWithArrayInput(body: Array, options?: any) {
+ public createUsersWithArrayInput(body: Array, options?: AxiosRequestConfig) {
return UserApiFp(this.configuration).createUsersWithArrayInput(body, options).then((request) => request(this.axios, this.basePath));
}
@@ -1747,7 +1747,7 @@ export class UserApi extends BaseAPI {
* @throws {RequiredError}
* @memberof UserApi
*/
- public createUsersWithListInput(body: Array, options?: any) {
+ public createUsersWithListInput(body: Array, options?: AxiosRequestConfig) {
return UserApiFp(this.configuration).createUsersWithListInput(body, options).then((request) => request(this.axios, this.basePath));
}
@@ -1759,7 +1759,7 @@ export class UserApi extends BaseAPI {
* @throws {RequiredError}
* @memberof UserApi
*/
- public deleteUser(username: string, options?: any) {
+ public deleteUser(username: string, options?: AxiosRequestConfig) {
return UserApiFp(this.configuration).deleteUser(username, options).then((request) => request(this.axios, this.basePath));
}
@@ -1771,7 +1771,7 @@ export class UserApi extends BaseAPI {
* @throws {RequiredError}
* @memberof UserApi
*/
- public getUserByName(username: string, options?: any) {
+ public getUserByName(username: string, options?: AxiosRequestConfig) {
return UserApiFp(this.configuration).getUserByName(username, options).then((request) => request(this.axios, this.basePath));
}
@@ -1784,7 +1784,7 @@ export class UserApi extends BaseAPI {
* @throws {RequiredError}
* @memberof UserApi
*/
- public loginUser(username: string, password: string, options?: any) {
+ public loginUser(username: string, password: string, options?: AxiosRequestConfig) {
return UserApiFp(this.configuration).loginUser(username, password, options).then((request) => request(this.axios, this.basePath));
}
@@ -1795,7 +1795,7 @@ export class UserApi extends BaseAPI {
* @throws {RequiredError}
* @memberof UserApi
*/
- public logoutUser(options?: any) {
+ public logoutUser(options?: AxiosRequestConfig) {
return UserApiFp(this.configuration).logoutUser(options).then((request) => request(this.axios, this.basePath));
}
@@ -1808,7 +1808,7 @@ export class UserApi extends BaseAPI {
* @throws {RequiredError}
* @memberof UserApi
*/
- public updateUser(username: string, body: User, options?: any) {
+ public updateUser(username: string, body: User, options?: AxiosRequestConfig) {
return UserApiFp(this.configuration).updateUser(username, body, options).then((request) => request(this.axios, this.basePath));
}
}
diff --git a/samples/client/petstore/typescript-axios/builds/es6-target/base.ts b/samples/client/petstore/typescript-axios/builds/es6-target/base.ts
index c7eaf57bf47..e23d972eeb0 100644
--- a/samples/client/petstore/typescript-axios/builds/es6-target/base.ts
+++ b/samples/client/petstore/typescript-axios/builds/es6-target/base.ts
@@ -16,7 +16,7 @@
import { Configuration } from "./configuration";
// Some imports not used depending on template conditions
// @ts-ignore
-import globalAxios, { AxiosPromise, AxiosInstance } from 'axios';
+import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
export const BASE_PATH = "http://petstore.swagger.io/v2".replace(/\/+$/, "");
@@ -38,7 +38,7 @@ export const COLLECTION_FORMATS = {
*/
export interface RequestArgs {
url: string;
- options: any;
+ options: AxiosRequestConfig;
}
/**
diff --git a/samples/client/petstore/typescript-axios/builds/test-petstore/.gitignore b/samples/client/petstore/typescript-axios/builds/test-petstore/.gitignore
new file mode 100644
index 00000000000..149b5765472
--- /dev/null
+++ b/samples/client/petstore/typescript-axios/builds/test-petstore/.gitignore
@@ -0,0 +1,4 @@
+wwwroot/*.js
+node_modules
+typings
+dist
diff --git a/samples/client/petstore/typescript-axios/builds/test-petstore/.npmignore b/samples/client/petstore/typescript-axios/builds/test-petstore/.npmignore
new file mode 100644
index 00000000000..999d88df693
--- /dev/null
+++ b/samples/client/petstore/typescript-axios/builds/test-petstore/.npmignore
@@ -0,0 +1 @@
+# empty npmignore to ensure all required files (e.g., in the dist folder) are published by npm
\ No newline at end of file
diff --git a/samples/client/petstore/typescript-axios/builds/test-petstore/.openapi-generator-ignore b/samples/client/petstore/typescript-axios/builds/test-petstore/.openapi-generator-ignore
new file mode 100644
index 00000000000..7484ee590a3
--- /dev/null
+++ b/samples/client/petstore/typescript-axios/builds/test-petstore/.openapi-generator-ignore
@@ -0,0 +1,23 @@
+# OpenAPI Generator Ignore
+# Generated by openapi-generator https://github.com/openapitools/openapi-generator
+
+# Use this file to prevent files from being overwritten by the generator.
+# The patterns follow closely to .gitignore or .dockerignore.
+
+# As an example, the C# client generator defines ApiClient.cs.
+# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
+#ApiClient.cs
+
+# You can match any string of characters against a directory, file or extension with a single asterisk (*):
+#foo/*/qux
+# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
+
+# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
+#foo/**/qux
+# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
+
+# You can also negate patterns with an exclamation (!).
+# For example, you can ignore all files in a docs folder with the file extension .md:
+#docs/*.md
+# Then explicitly reverse the ignore rule for a single file:
+#!docs/README.md
diff --git a/samples/client/petstore/typescript-axios/builds/test-petstore/.openapi-generator/FILES b/samples/client/petstore/typescript-axios/builds/test-petstore/.openapi-generator/FILES
new file mode 100644
index 00000000000..a80cd4f07b0
--- /dev/null
+++ b/samples/client/petstore/typescript-axios/builds/test-petstore/.openapi-generator/FILES
@@ -0,0 +1,8 @@
+.gitignore
+.npmignore
+api.ts
+base.ts
+common.ts
+configuration.ts
+git_push.sh
+index.ts
diff --git a/samples/client/petstore/typescript-axios/builds/test-petstore/.openapi-generator/VERSION b/samples/client/petstore/typescript-axios/builds/test-petstore/.openapi-generator/VERSION
new file mode 100644
index 00000000000..4b448de535c
--- /dev/null
+++ b/samples/client/petstore/typescript-axios/builds/test-petstore/.openapi-generator/VERSION
@@ -0,0 +1 @@
+5.3.0-SNAPSHOT
\ No newline at end of file
diff --git a/samples/client/petstore/typescript-axios/builds/test-petstore/api.ts b/samples/client/petstore/typescript-axios/builds/test-petstore/api.ts
new file mode 100644
index 00000000000..5a6a0ea393c
--- /dev/null
+++ b/samples/client/petstore/typescript-axios/builds/test-petstore/api.ts
@@ -0,0 +1,5035 @@
+/* tslint:disable */
+/* eslint-disable */
+/**
+ * OpenAPI Petstore
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * The version of the OpenAPI document: 1.0.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+
+import { Configuration } from './configuration';
+import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
+// Some imports not used depending on template conditions
+// @ts-ignore
+import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
+// @ts-ignore
+import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
+
+/**
+ *
+ * @export
+ * @interface AdditionalPropertiesClass
+ */
+export interface AdditionalPropertiesClass {
+ /**
+ *
+ * @type {{ [key: string]: string; }}
+ * @memberof AdditionalPropertiesClass
+ */
+ 'map_property'?: { [key: string]: string; };
+ /**
+ *
+ * @type {{ [key: string]: { [key: string]: string; }; }}
+ * @memberof AdditionalPropertiesClass
+ */
+ 'map_of_map_property'?: { [key: string]: { [key: string]: string; }; };
+ /**
+ *
+ * @type {any}
+ * @memberof AdditionalPropertiesClass
+ */
+ 'anytype_1'?: any;
+ /**
+ *
+ * @type {object}
+ * @memberof AdditionalPropertiesClass
+ */
+ 'map_with_undeclared_properties_anytype_1'?: object;
+ /**
+ *
+ * @type {object}
+ * @memberof AdditionalPropertiesClass
+ */
+ 'map_with_undeclared_properties_anytype_2'?: object;
+ /**
+ *
+ * @type {{ [key: string]: object; }}
+ * @memberof AdditionalPropertiesClass
+ */
+ 'map_with_undeclared_properties_anytype_3'?: { [key: string]: object; };
+ /**
+ * an object with no declared properties and no undeclared properties, hence it\'s an empty map.
+ * @type {object}
+ * @memberof AdditionalPropertiesClass
+ */
+ 'empty_map'?: object;
+ /**
+ *
+ * @type {{ [key: string]: string; }}
+ * @memberof AdditionalPropertiesClass
+ */
+ 'map_with_undeclared_properties_string'?: { [key: string]: string; };
+}
+/**
+ *
+ * @export
+ * @interface Animal
+ */
+export interface Animal {
+ /**
+ *
+ * @type {string}
+ * @memberof Animal
+ */
+ 'className': string;
+ /**
+ *
+ * @type {string}
+ * @memberof Animal
+ */
+ 'color'?: string;
+}
+/**
+ *
+ * @export
+ * @interface ApiResponse
+ */
+export interface ApiResponse {
+ /**
+ *
+ * @type {number}
+ * @memberof ApiResponse
+ */
+ 'code'?: number;
+ /**
+ *
+ * @type {string}
+ * @memberof ApiResponse
+ */
+ 'type'?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof ApiResponse
+ */
+ 'message'?: string;
+}
+/**
+ *
+ * @export
+ * @interface Apple
+ */
+export interface Apple {
+ /**
+ *
+ * @type {string}
+ * @memberof Apple
+ */
+ 'cultivar'?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof Apple
+ */
+ 'origin'?: string;
+}
+/**
+ *
+ * @export
+ * @interface AppleReq
+ */
+export interface AppleReq {
+ /**
+ *
+ * @type {string}
+ * @memberof AppleReq
+ */
+ 'cultivar': string;
+ /**
+ *
+ * @type {boolean}
+ * @memberof AppleReq
+ */
+ 'mealy'?: boolean;
+}
+/**
+ *
+ * @export
+ * @interface ArrayOfArrayOfNumberOnly
+ */
+export interface ArrayOfArrayOfNumberOnly {
+ /**
+ *
+ * @type {Array>}
+ * @memberof ArrayOfArrayOfNumberOnly
+ */
+ 'ArrayArrayNumber'?: Array>;
+}
+/**
+ *
+ * @export
+ * @interface ArrayOfNumberOnly
+ */
+export interface ArrayOfNumberOnly {
+ /**
+ *
+ * @type {Array}
+ * @memberof ArrayOfNumberOnly
+ */
+ 'ArrayNumber'?: Array;
+}
+/**
+ *
+ * @export
+ * @interface ArrayTest
+ */
+export interface ArrayTest {
+ /**
+ *
+ * @type {Array}
+ * @memberof ArrayTest
+ */
+ 'array_of_string'?: Array;
+ /**
+ *
+ * @type {Array>}
+ * @memberof ArrayTest
+ */
+ 'array_array_of_integer'?: Array>;
+ /**
+ *
+ * @type {Array>}
+ * @memberof ArrayTest
+ */
+ 'array_array_of_model'?: Array>;
+}
+/**
+ *
+ * @export
+ * @interface Banana
+ */
+export interface Banana {
+ /**
+ *
+ * @type {number}
+ * @memberof Banana
+ */
+ 'lengthCm'?: number;
+}
+/**
+ *
+ * @export
+ * @interface BananaReq
+ */
+export interface BananaReq {
+ /**
+ *
+ * @type {number}
+ * @memberof BananaReq
+ */
+ 'lengthCm': number;
+ /**
+ *
+ * @type {boolean}
+ * @memberof BananaReq
+ */
+ 'sweet'?: boolean;
+}
+/**
+ *
+ * @export
+ * @interface BasquePig
+ */
+export interface BasquePig {
+ /**
+ *
+ * @type {string}
+ * @memberof BasquePig
+ */
+ 'className': string;
+}
+/**
+ *
+ * @export
+ * @interface Capitalization
+ */
+export interface Capitalization {
+ /**
+ *
+ * @type {string}
+ * @memberof Capitalization
+ */
+ 'smallCamel'?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof Capitalization
+ */
+ 'CapitalCamel'?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof Capitalization
+ */
+ 'small_Snake'?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof Capitalization
+ */
+ 'Capital_Snake'?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof Capitalization
+ */
+ 'SCA_ETH_Flow_Points'?: string;
+ /**
+ * Name of the pet
+ * @type {string}
+ * @memberof Capitalization
+ */
+ 'ATT_NAME'?: string;
+}
+/**
+ *
+ * @export
+ * @interface Cat
+ */
+export interface Cat extends Animal {
+ /**
+ *
+ * @type {boolean}
+ * @memberof Cat
+ */
+ 'declawed'?: boolean;
+}
+/**
+ *
+ * @export
+ * @interface CatAllOf
+ */
+export interface CatAllOf {
+ /**
+ *
+ * @type {boolean}
+ * @memberof CatAllOf
+ */
+ 'declawed'?: boolean;
+}
+/**
+ *
+ * @export
+ * @interface Category
+ */
+export interface Category {
+ /**
+ *
+ * @type {number}
+ * @memberof Category
+ */
+ 'id'?: number;
+ /**
+ *
+ * @type {string}
+ * @memberof Category
+ */
+ 'name': string;
+}
+/**
+ *
+ * @export
+ * @interface ChildCat
+ */
+export interface ChildCat extends ParentPet {
+ /**
+ *
+ * @type {string}
+ * @memberof ChildCat
+ */
+ 'name'?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof ChildCat
+ */
+ 'pet_type': ChildCatPetTypeEnum;
+}
+
+/**
+ * @export
+ * @enum {string}
+ */
+export enum ChildCatPetTypeEnum {
+ ChildCat = 'ChildCat'
+}
+
+/**
+ *
+ * @export
+ * @interface ChildCatAllOf
+ */
+export interface ChildCatAllOf {
+ /**
+ *
+ * @type {string}
+ * @memberof ChildCatAllOf
+ */
+ 'name'?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof ChildCatAllOf
+ */
+ 'pet_type'?: ChildCatAllOfPetTypeEnum;
+}
+
+/**
+ * @export
+ * @enum {string}
+ */
+export enum ChildCatAllOfPetTypeEnum {
+ ChildCat = 'ChildCat'
+}
+
+/**
+ * Model for testing model with \"_class\" property
+ * @export
+ * @interface ClassModel
+ */
+export interface ClassModel {
+ /**
+ *
+ * @type {string}
+ * @memberof ClassModel
+ */
+ '_class'?: string;
+}
+/**
+ *
+ * @export
+ * @interface Client
+ */
+export interface Client {
+ /**
+ *
+ * @type {string}
+ * @memberof Client
+ */
+ 'client'?: string;
+}
+/**
+ *
+ * @export
+ * @interface ComplexQuadrilateral
+ */
+export interface ComplexQuadrilateral {
+ /**
+ *
+ * @type {string}
+ * @memberof ComplexQuadrilateral
+ */
+ 'shapeType': string;
+ /**
+ *
+ * @type {string}
+ * @memberof ComplexQuadrilateral
+ */
+ 'quadrilateralType': string;
+}
+/**
+ *
+ * @export
+ * @interface DanishPig
+ */
+export interface DanishPig {
+ /**
+ *
+ * @type {string}
+ * @memberof DanishPig
+ */
+ 'className': string;
+}
+/**
+ *
+ * @export
+ * @interface DeprecatedObject
+ */
+export interface DeprecatedObject {
+ /**
+ *
+ * @type {string}
+ * @memberof DeprecatedObject
+ */
+ 'name'?: string;
+}
+/**
+ *
+ * @export
+ * @interface Dog
+ */
+export interface Dog extends Animal {
+ /**
+ *
+ * @type {string}
+ * @memberof Dog
+ */
+ 'breed'?: string;
+}
+/**
+ *
+ * @export
+ * @interface DogAllOf
+ */
+export interface DogAllOf {
+ /**
+ *
+ * @type {string}
+ * @memberof DogAllOf
+ */
+ 'breed'?: string;
+}
+/**
+ *
+ * @export
+ * @interface Drawing
+ */
+export interface Drawing {
+ [key: string]: Fruit | any;
+
+ /**
+ *
+ * @type {Shape}
+ * @memberof Drawing
+ */
+ 'mainShape'?: Shape;
+ /**
+ *
+ * @type {ShapeOrNull}
+ * @memberof Drawing
+ */
+ 'shapeOrNull'?: ShapeOrNull;
+ /**
+ *
+ * @type {NullableShape}
+ * @memberof Drawing
+ */
+ 'nullableShape'?: NullableShape | null;
+ /**
+ *
+ * @type {Array}
+ * @memberof Drawing
+ */
+ 'shapes'?: Array;
+}
+/**
+ *
+ * @export
+ * @interface EnumArrays
+ */
+export interface EnumArrays {
+ /**
+ *
+ * @type {string}
+ * @memberof EnumArrays
+ */
+ 'just_symbol'?: EnumArraysJustSymbolEnum;
+ /**
+ *
+ * @type {Array}
+ * @memberof EnumArrays
+ */
+ 'array_enum'?: Array;
+}
+
+/**
+ * @export
+ * @enum {string}
+ */
+export enum EnumArraysJustSymbolEnum {
+ GreaterThanOrEqualTo = '>=',
+ Dollar = '$'
+}
+/**
+ * @export
+ * @enum {string}
+ */
+export enum EnumArraysArrayEnumEnum {
+ Fish = 'fish',
+ Crab = 'crab'
+}
+
+/**
+ *
+ * @export
+ * @enum {string}
+ */
+
+export enum EnumClass {
+ Abc = '_abc',
+ Efg = '-efg',
+ Xyz = '(xyz)'
+}
+
+/**
+ *
+ * @export
+ * @interface EnumTest
+ */
+export interface EnumTest {
+ /**
+ *
+ * @type {string}
+ * @memberof EnumTest
+ */
+ 'enum_string'?: EnumTestEnumStringEnum;
+ /**
+ *
+ * @type {string}
+ * @memberof EnumTest
+ */
+ 'enum_string_required': EnumTestEnumStringRequiredEnum;
+ /**
+ *
+ * @type {number}
+ * @memberof EnumTest
+ */
+ 'enum_integer'?: EnumTestEnumIntegerEnum;
+ /**
+ *
+ * @type {number}
+ * @memberof EnumTest
+ */
+ 'enum_integer_only'?: EnumTestEnumIntegerOnlyEnum;
+ /**
+ *
+ * @type {number}
+ * @memberof EnumTest
+ */
+ 'enum_number'?: EnumTestEnumNumberEnum;
+ /**
+ *
+ * @type {OuterEnum}
+ * @memberof EnumTest
+ */
+ 'outerEnum'?: OuterEnum | null;
+ /**
+ *
+ * @type {OuterEnumInteger}
+ * @memberof EnumTest
+ */
+ 'outerEnumInteger'?: OuterEnumInteger;
+ /**
+ *
+ * @type {OuterEnumDefaultValue}
+ * @memberof EnumTest
+ */
+ 'outerEnumDefaultValue'?: OuterEnumDefaultValue;
+ /**
+ *
+ * @type {OuterEnumIntegerDefaultValue}
+ * @memberof EnumTest
+ */
+ 'outerEnumIntegerDefaultValue'?: OuterEnumIntegerDefaultValue;
+}
+
+/**
+ * @export
+ * @enum {string}
+ */
+export enum EnumTestEnumStringEnum {
+ Upper = 'UPPER',
+ Lower = 'lower',
+ Empty = ''
+}
+/**
+ * @export
+ * @enum {string}
+ */
+export enum EnumTestEnumStringRequiredEnum {
+ Upper = 'UPPER',
+ Lower = 'lower',
+ Empty = ''
+}
+/**
+ * @export
+ * @enum {string}
+ */
+export enum EnumTestEnumIntegerEnum {
+ NUMBER_1 = 1,
+ NUMBER_MINUS_1 = -1
+}
+/**
+ * @export
+ * @enum {string}
+ */
+export enum EnumTestEnumIntegerOnlyEnum {
+ NUMBER_2 = 2,
+ NUMBER_MINUS_2 = -2
+}
+/**
+ * @export
+ * @enum {string}
+ */
+export enum EnumTestEnumNumberEnum {
+ NUMBER_1_DOT_1 = 1.1,
+ NUMBER_MINUS_1_DOT_2 = -1.2
+}
+
+/**
+ *
+ * @export
+ * @interface EquilateralTriangle
+ */
+export interface EquilateralTriangle {
+ /**
+ *
+ * @type {string}
+ * @memberof EquilateralTriangle
+ */
+ 'shapeType': string;
+ /**
+ *
+ * @type {string}
+ * @memberof EquilateralTriangle
+ */
+ 'triangleType': string;
+}
+/**
+ *
+ * @export
+ * @interface FileSchemaTestClass
+ */
+export interface FileSchemaTestClass {
+ /**
+ *
+ * @type {any}
+ * @memberof FileSchemaTestClass
+ */
+ 'file'?: any;
+ /**
+ *
+ * @type {Array}
+ * @memberof FileSchemaTestClass
+ */
+ 'files'?: Array;
+}
+/**
+ *
+ * @export
+ * @interface Foo
+ */
+export interface Foo {
+ /**
+ *
+ * @type {string}
+ * @memberof Foo
+ */
+ 'bar'?: string;
+}
+/**
+ *
+ * @export
+ * @interface FormatTest
+ */
+export interface FormatTest {
+ /**
+ *
+ * @type {number}
+ * @memberof FormatTest
+ */
+ 'integer'?: number;
+ /**
+ *
+ * @type {number}
+ * @memberof FormatTest
+ */
+ 'int32'?: number;
+ /**
+ *
+ * @type {number}
+ * @memberof FormatTest
+ */
+ 'int64'?: number;
+ /**
+ *
+ * @type {number}
+ * @memberof FormatTest
+ */
+ 'number': number;
+ /**
+ *
+ * @type {number}
+ * @memberof FormatTest
+ */
+ 'float'?: number;
+ /**
+ *
+ * @type {number}
+ * @memberof FormatTest
+ */
+ 'double'?: number;
+ /**
+ *
+ * @type {Decimal}
+ * @memberof FormatTest
+ */
+ 'decimal'?: Decimal;
+ /**
+ *
+ * @type {string}
+ * @memberof FormatTest
+ */
+ 'string'?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof FormatTest
+ */
+ 'byte': string;
+ /**
+ *
+ * @type {any}
+ * @memberof FormatTest
+ */
+ 'binary'?: any;
+ /**
+ *
+ * @type {string}
+ * @memberof FormatTest
+ */
+ 'date': string;
+ /**
+ *
+ * @type {string}
+ * @memberof FormatTest
+ */
+ 'dateTime'?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof FormatTest
+ */
+ 'uuid'?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof FormatTest
+ */
+ 'password': string;
+ /**
+ * A string that is a 10 digit number. Can have leading zeros.
+ * @type {string}
+ * @memberof FormatTest
+ */
+ 'pattern_with_digits'?: string;
+ /**
+ * A string starting with \'image_\' (case insensitive) and one to three digits following i.e. Image_01.
+ * @type {string}
+ * @memberof FormatTest
+ */
+ 'pattern_with_digits_and_delimiter'?: string;
+}
+/**
+ * @type Fruit
+ * @export
+ */
+export type Fruit = Apple | Banana;
+
+/**
+ * @type FruitReq
+ * @export
+ */
+export type FruitReq = AppleReq | BananaReq | Null;
+
+/**
+ *
+ * @export
+ * @interface GmFruit
+ */
+export interface GmFruit {
+ /**
+ *
+ * @type {string}
+ * @memberof GmFruit
+ */
+ 'color'?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof GmFruit
+ */
+ 'cultivar'?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof GmFruit
+ */
+ 'origin'?: string;
+ /**
+ *
+ * @type {number}
+ * @memberof GmFruit
+ */
+ 'lengthCm'?: number;
+}
+/**
+ *
+ * @export
+ * @interface GrandparentAnimal
+ */
+export interface GrandparentAnimal {
+ /**
+ *
+ * @type {string}
+ * @memberof GrandparentAnimal
+ */
+ 'pet_type': string;
+}
+/**
+ *
+ * @export
+ * @interface HasOnlyReadOnly
+ */
+export interface HasOnlyReadOnly {
+ /**
+ *
+ * @type {string}
+ * @memberof HasOnlyReadOnly
+ */
+ 'bar'?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof HasOnlyReadOnly
+ */
+ 'foo'?: string;
+}
+/**
+ * Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model.
+ * @export
+ * @interface HealthCheckResult
+ */
+export interface HealthCheckResult {
+ /**
+ *
+ * @type {string}
+ * @memberof HealthCheckResult
+ */
+ 'NullableMessage'?: string | null;
+}
+/**
+ *
+ * @export
+ * @interface InlineResponseDefault
+ */
+export interface InlineResponseDefault {
+ /**
+ *
+ * @type {Foo}
+ * @memberof InlineResponseDefault
+ */
+ 'string'?: Foo;
+}
+/**
+ *
+ * @export
+ * @interface IsoscelesTriangle
+ */
+export interface IsoscelesTriangle {
+ /**
+ *
+ * @type {string}
+ * @memberof IsoscelesTriangle
+ */
+ 'shapeType': string;
+ /**
+ *
+ * @type {string}
+ * @memberof IsoscelesTriangle
+ */
+ 'triangleType': string;
+}
+/**
+ *
+ * @export
+ * @interface List
+ */
+export interface List {
+ /**
+ *
+ * @type {string}
+ * @memberof List
+ */
+ '123-list'?: string;
+}
+/**
+ * @type Mammal
+ * @export
+ */
+export type Mammal = Pig | Whale | Zebra;
+
+/**
+ *
+ * @export
+ * @interface MapTest
+ */
+export interface MapTest {
+ /**
+ *
+ * @type {{ [key: string]: { [key: string]: string; }; }}
+ * @memberof MapTest
+ */
+ 'map_map_of_string'?: { [key: string]: { [key: string]: string; }; };
+ /**
+ *
+ * @type {{ [key: string]: string; }}
+ * @memberof MapTest
+ */
+ 'map_of_enum_string'?: { [key: string]: string; };
+ /**
+ *
+ * @type {{ [key: string]: boolean; }}
+ * @memberof MapTest
+ */
+ 'direct_map'?: { [key: string]: boolean; };
+ /**
+ *
+ * @type {{ [key: string]: boolean; }}
+ * @memberof MapTest
+ */
+ 'indirect_map'?: { [key: string]: boolean; };
+}
+
+/**
+ * @export
+ * @enum {string}
+ */
+export enum MapTestMapOfEnumStringEnum {
+ Upper = 'UPPER',
+ Lower = 'lower'
+}
+
+/**
+ *
+ * @export
+ * @interface MixedPropertiesAndAdditionalPropertiesClass
+ */
+export interface MixedPropertiesAndAdditionalPropertiesClass {
+ /**
+ *
+ * @type {string}
+ * @memberof MixedPropertiesAndAdditionalPropertiesClass
+ */
+ 'uuid'?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof MixedPropertiesAndAdditionalPropertiesClass
+ */
+ 'dateTime'?: string;
+ /**
+ *
+ * @type {{ [key: string]: Animal; }}
+ * @memberof MixedPropertiesAndAdditionalPropertiesClass
+ */
+ 'map'?: { [key: string]: Animal; };
+}
+/**
+ * Model for testing model name starting with number
+ * @export
+ * @interface Model200Response
+ */
+export interface Model200Response {
+ /**
+ *
+ * @type {number}
+ * @memberof Model200Response
+ */
+ 'name'?: number;
+ /**
+ *
+ * @type {string}
+ * @memberof Model200Response
+ */
+ 'class'?: string;
+}
+/**
+ * Must be named `File` for test.
+ * @export
+ * @interface ModelFile
+ */
+export interface ModelFile {
+ /**
+ * Test capitalization
+ * @type {string}
+ * @memberof ModelFile
+ */
+ 'sourceURI'?: string;
+}
+/**
+ * Model for testing model name same as property name
+ * @export
+ * @interface Name
+ */
+export interface Name {
+ /**
+ *
+ * @type {number}
+ * @memberof Name
+ */
+ 'name': number;
+ /**
+ *
+ * @type {number}
+ * @memberof Name
+ */
+ 'snake_case'?: number;
+ /**
+ *
+ * @type {string}
+ * @memberof Name
+ */
+ 'property'?: string;
+ /**
+ *
+ * @type {number}
+ * @memberof Name
+ */
+ '123Number'?: number;
+}
+/**
+ *
+ * @export
+ * @interface NullableClass
+ */
+export interface NullableClass {
+ [key: string]: object | any;
+
+ /**
+ *
+ * @type {number}
+ * @memberof NullableClass
+ */
+ 'integer_prop'?: number | null;
+ /**
+ *
+ * @type {number}
+ * @memberof NullableClass
+ */
+ 'number_prop'?: number | null;
+ /**
+ *
+ * @type {boolean}
+ * @memberof NullableClass
+ */
+ 'boolean_prop'?: boolean | null;
+ /**
+ *
+ * @type {string}
+ * @memberof NullableClass
+ */
+ 'string_prop'?: string | null;
+ /**
+ *
+ * @type {string}
+ * @memberof NullableClass
+ */
+ 'date_prop'?: string | null;
+ /**
+ *
+ * @type {string}
+ * @memberof NullableClass
+ */
+ 'datetime_prop'?: string | null;
+ /**
+ *
+ * @type {Array}
+ * @memberof NullableClass
+ */
+ 'array_nullable_prop'?: Array | null;
+ /**
+ *
+ * @type {Array}
+ * @memberof NullableClass
+ */
+ 'array_and_items_nullable_prop'?: Array | null;
+ /**
+ *
+ * @type {Array}
+ * @memberof NullableClass
+ */
+ 'array_items_nullable'?: Array;
+ /**
+ *
+ * @type {{ [key: string]: object; }}
+ * @memberof NullableClass
+ */
+ 'object_nullable_prop'?: { [key: string]: object; } | null;
+ /**
+ *
+ * @type {{ [key: string]: object; }}
+ * @memberof NullableClass
+ */
+ 'object_and_items_nullable_prop'?: { [key: string]: object; } | null;
+ /**
+ *
+ * @type {{ [key: string]: object; }}
+ * @memberof NullableClass
+ */
+ 'object_items_nullable'?: { [key: string]: object; };
+}
+/**
+ * @type NullableShape
+ * The value may be a shape or the \'null\' value. The \'nullable\' attribute was introduced in OAS schema >= 3.0 and has been deprecated in OAS schema >= 3.1.
+ * @export
+ */
+export type NullableShape = Quadrilateral | Triangle;
+
+/**
+ *
+ * @export
+ * @interface NumberOnly
+ */
+export interface NumberOnly {
+ /**
+ *
+ * @type {number}
+ * @memberof NumberOnly
+ */
+ 'JustNumber'?: number;
+}
+/**
+ *
+ * @export
+ * @interface ObjectWithDeprecatedFields
+ */
+export interface ObjectWithDeprecatedFields {
+ /**
+ *
+ * @type {string}
+ * @memberof ObjectWithDeprecatedFields
+ */
+ 'uuid'?: string;
+ /**
+ *
+ * @type {number}
+ * @memberof ObjectWithDeprecatedFields
+ * @deprecated
+ */
+ 'id'?: number;
+ /**
+ *
+ * @type {DeprecatedObject}
+ * @memberof ObjectWithDeprecatedFields
+ * @deprecated
+ */
+ 'deprecatedRef'?: DeprecatedObject;
+ /**
+ *
+ * @type {Array}
+ * @memberof ObjectWithDeprecatedFields
+ * @deprecated
+ */
+ 'bars'?: Array;
+}
+/**
+ *
+ * @export
+ * @interface Order
+ */
+export interface Order {
+ /**
+ *
+ * @type {number}
+ * @memberof Order
+ */
+ 'id'?: number;
+ /**
+ *
+ * @type {number}
+ * @memberof Order
+ */
+ 'petId'?: number;
+ /**
+ *
+ * @type {number}
+ * @memberof Order
+ */
+ 'quantity'?: number;
+ /**
+ *
+ * @type {string}
+ * @memberof Order
+ */
+ 'shipDate'?: string;
+ /**
+ * Order Status
+ * @type {string}
+ * @memberof Order
+ */
+ 'status'?: OrderStatusEnum;
+ /**
+ *
+ * @type {boolean}
+ * @memberof Order
+ */
+ 'complete'?: boolean;
+}
+
+/**
+ * @export
+ * @enum {string}
+ */
+export enum OrderStatusEnum {
+ Placed = 'placed',
+ Approved = 'approved',
+ Delivered = 'delivered'
+}
+
+/**
+ *
+ * @export
+ * @interface OuterComposite
+ */
+export interface OuterComposite {
+ /**
+ *
+ * @type {number}
+ * @memberof OuterComposite
+ */
+ 'my_number'?: number;
+ /**
+ *
+ * @type {string}
+ * @memberof OuterComposite
+ */
+ 'my_string'?: string;
+ /**
+ *
+ * @type {boolean}
+ * @memberof OuterComposite
+ */
+ 'my_boolean'?: boolean;
+}
+/**
+ *
+ * @export
+ * @enum {string}
+ */
+
+export enum OuterEnum {
+ Placed = 'placed',
+ Approved = 'approved',
+ Delivered = 'delivered'
+}
+
+/**
+ *
+ * @export
+ * @enum {string}
+ */
+
+export enum OuterEnumDefaultValue {
+ Placed = 'placed',
+ Approved = 'approved',
+ Delivered = 'delivered'
+}
+
+/**
+ *
+ * @export
+ * @enum {string}
+ */
+
+export enum OuterEnumInteger {
+ NUMBER_0 = 0,
+ NUMBER_1 = 1,
+ NUMBER_2 = 2
+}
+
+/**
+ *
+ * @export
+ * @enum {string}
+ */
+
+export enum OuterEnumIntegerDefaultValue {
+ NUMBER_0 = 0,
+ NUMBER_1 = 1,
+ NUMBER_2 = 2
+}
+
+/**
+ *
+ * @export
+ * @interface ParentPet
+ */
+export interface ParentPet extends GrandparentAnimal {
+}
+/**
+ *
+ * @export
+ * @interface Pet
+ */
+export interface Pet {
+ /**
+ *
+ * @type {number}
+ * @memberof Pet
+ */
+ 'id'?: number;
+ /**
+ *
+ * @type {Category}
+ * @memberof Pet
+ */
+ 'category'?: Category;
+ /**
+ *
+ * @type {string}
+ * @memberof Pet
+ */
+ 'name': string;
+ /**
+ *
+ * @type {Array}
+ * @memberof Pet
+ */
+ 'photoUrls': Array;
+ /**
+ *
+ * @type {Array}
+ * @memberof Pet
+ */
+ 'tags'?: Array;
+ /**
+ * pet status in the store
+ * @type {string}
+ * @memberof Pet
+ */
+ 'status'?: PetStatusEnum;
+}
+
+/**
+ * @export
+ * @enum {string}
+ */
+export enum PetStatusEnum {
+ Available = 'available',
+ Pending = 'pending',
+ Sold = 'sold'
+}
+
+/**
+ * @type Pig
+ * @export
+ */
+export type Pig = BasquePig | DanishPig;
+
+/**
+ * @type Quadrilateral
+ * @export
+ */
+export type Quadrilateral = ComplexQuadrilateral | SimpleQuadrilateral;
+
+/**
+ *
+ * @export
+ * @interface QuadrilateralInterface
+ */
+export interface QuadrilateralInterface {
+ /**
+ *
+ * @type {string}
+ * @memberof QuadrilateralInterface
+ */
+ 'quadrilateralType': string;
+}
+/**
+ *
+ * @export
+ * @interface ReadOnlyFirst
+ */
+export interface ReadOnlyFirst {
+ /**
+ *
+ * @type {string}
+ * @memberof ReadOnlyFirst
+ */
+ 'bar'?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof ReadOnlyFirst
+ */
+ 'baz'?: string;
+}
+/**
+ * Model for testing reserved words
+ * @export
+ * @interface Return
+ */
+export interface Return {
+ /**
+ *
+ * @type {number}
+ * @memberof Return
+ */
+ 'return'?: number;
+}
+/**
+ *
+ * @export
+ * @interface ScaleneTriangle
+ */
+export interface ScaleneTriangle {
+ /**
+ *
+ * @type {string}
+ * @memberof ScaleneTriangle
+ */
+ 'shapeType': string;
+ /**
+ *
+ * @type {string}
+ * @memberof ScaleneTriangle
+ */
+ 'triangleType': string;
+}
+/**
+ * @type Shape
+ * @export
+ */
+export type Shape = Quadrilateral | Triangle;
+
+/**
+ *
+ * @export
+ * @interface ShapeInterface
+ */
+export interface ShapeInterface {
+ /**
+ *
+ * @type {string}
+ * @memberof ShapeInterface
+ */
+ 'shapeType': string;
+}
+/**
+ * @type ShapeOrNull
+ * The value may be a shape or the \'null\' value. This is introduced in OAS schema >= 3.1.
+ * @export
+ */
+export type ShapeOrNull = Null | Quadrilateral | Triangle;
+
+/**
+ *
+ * @export
+ * @interface SimpleQuadrilateral
+ */
+export interface SimpleQuadrilateral {
+ /**
+ *
+ * @type {string}
+ * @memberof SimpleQuadrilateral
+ */
+ 'shapeType': string;
+ /**
+ *
+ * @type {string}
+ * @memberof SimpleQuadrilateral
+ */
+ 'quadrilateralType': string;
+}
+/**
+ *
+ * @export
+ * @interface SpecialModelName
+ */
+export interface SpecialModelName {
+ /**
+ *
+ * @type {number}
+ * @memberof SpecialModelName
+ */
+ '$special[property.name]'?: number;
+ /**
+ *
+ * @type {string}
+ * @memberof SpecialModelName
+ */
+ '_special_model.name_'?: string;
+}
+/**
+ *
+ * @export
+ * @interface Tag
+ */
+export interface Tag {
+ /**
+ *
+ * @type {number}
+ * @memberof Tag
+ */
+ 'id'?: number;
+ /**
+ *
+ * @type {string}
+ * @memberof Tag
+ */
+ 'name'?: string;
+}
+/**
+ * @type Triangle
+ * @export
+ */
+export type Triangle = EquilateralTriangle | IsoscelesTriangle | ScaleneTriangle;
+
+/**
+ *
+ * @export
+ * @interface TriangleInterface
+ */
+export interface TriangleInterface {
+ /**
+ *
+ * @type {string}
+ * @memberof TriangleInterface
+ */
+ 'triangleType': string;
+}
+/**
+ *
+ * @export
+ * @interface User
+ */
+export interface User {
+ /**
+ *
+ * @type {number}
+ * @memberof User
+ */
+ 'id'?: number;
+ /**
+ *
+ * @type {string}
+ * @memberof User
+ */
+ 'username'?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof User
+ */
+ 'firstName'?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof User
+ */
+ 'lastName'?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof User
+ */
+ 'email'?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof User
+ */
+ 'password'?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof User
+ */
+ 'phone'?: string;
+ /**
+ * User Status
+ * @type {number}
+ * @memberof User
+ */
+ 'userStatus'?: number;
+ /**
+ * test code generation for objects Value must be a map of strings to values. It cannot be the \'null\' value.
+ * @type {object}
+ * @memberof User
+ */
+ 'objectWithNoDeclaredProps'?: object;
+ /**
+ * test code generation for nullable objects. Value must be a map of strings to values or the \'null\' value.
+ * @type {object}
+ * @memberof User
+ */
+ 'objectWithNoDeclaredPropsNullable'?: object | null;
+ /**
+ * test code generation for any type Here the \'type\' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. See https://github.com/OAI/OpenAPI-Specification/issues/1389
+ * @type {any}
+ * @memberof User
+ */
+ 'anyTypeProp'?: any;
+ /**
+ * test code generation for any type Here the \'type\' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. The \'nullable\' attribute does not change the allowed values.
+ * @type {any}
+ * @memberof User
+ */
+ 'anyTypePropNullable'?: any | null;
+}
+/**
+ *
+ * @export
+ * @interface Whale
+ */
+export interface Whale {
+ /**
+ *
+ * @type {boolean}
+ * @memberof Whale
+ */
+ 'hasBaleen'?: boolean;
+ /**
+ *
+ * @type {boolean}
+ * @memberof Whale
+ */
+ 'hasTeeth'?: boolean;
+ /**
+ *
+ * @type {string}
+ * @memberof Whale
+ */
+ 'className': string;
+}
+/**
+ *
+ * @export
+ * @interface Zebra
+ */
+export interface Zebra {
+ [key: string]: object | any;
+
+ /**
+ *
+ * @type {string}
+ * @memberof Zebra
+ */
+ 'type'?: ZebraTypeEnum;
+ /**
+ *
+ * @type {string}
+ * @memberof Zebra
+ */
+ 'className': string;
+}
+
+/**
+ * @export
+ * @enum {string}
+ */
+export enum ZebraTypeEnum {
+ Plains = 'plains',
+ Mountain = 'mountain',
+ Grevys = 'grevys'
+}
+
+
+/**
+ * AnotherFakeApi - axios parameter creator
+ * @export
+ */
+export const AnotherFakeApiAxiosParamCreator = function (configuration?: Configuration) {
+ return {
+ /**
+ * To test special tags and operation ID starting with number
+ * @summary To test special tags
+ * @param {Client} client client model
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ _123testSpecialTags: async (client: Client, options: AxiosRequestConfig = {}): Promise => {
+ // verify required parameter 'client' is not null or undefined
+ assertParamExists('_123testSpecialTags', 'client', client)
+ const localVarPath = `/another-fake/dummy`;
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+
+
+ localVarHeaderParameter['Content-Type'] = 'application/json';
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+ localVarRequestOptions.data = serializeDataIfNeeded(client, localVarRequestOptions, configuration)
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ }
+};
+
+/**
+ * AnotherFakeApi - functional programming interface
+ * @export
+ */
+export const AnotherFakeApiFp = function(configuration?: Configuration) {
+ const localVarAxiosParamCreator = AnotherFakeApiAxiosParamCreator(configuration)
+ return {
+ /**
+ * To test special tags and operation ID starting with number
+ * @summary To test special tags
+ * @param {Client} client client model
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async _123testSpecialTags(client: Client, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator._123testSpecialTags(client, options);
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
+ },
+ }
+};
+
+/**
+ * AnotherFakeApi - factory interface
+ * @export
+ */
+export const AnotherFakeApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
+ const localVarFp = AnotherFakeApiFp(configuration)
+ return {
+ /**
+ * To test special tags and operation ID starting with number
+ * @summary To test special tags
+ * @param {Client} client client model
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ _123testSpecialTags(client: Client, options?: any): AxiosPromise {
+ return localVarFp._123testSpecialTags(client, options).then((request) => request(axios, basePath));
+ },
+ };
+};
+
+/**
+ * AnotherFakeApi - object-oriented interface
+ * @export
+ * @class AnotherFakeApi
+ * @extends {BaseAPI}
+ */
+export class AnotherFakeApi extends BaseAPI {
+ /**
+ * To test special tags and operation ID starting with number
+ * @summary To test special tags
+ * @param {Client} client client model
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof AnotherFakeApi
+ */
+ public _123testSpecialTags(client: Client, options?: AxiosRequestConfig) {
+ return AnotherFakeApiFp(this.configuration)._123testSpecialTags(client, options).then((request) => request(this.axios, this.basePath));
+ }
+}
+
+
+/**
+ * DefaultApi - axios parameter creator
+ * @export
+ */
+export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) {
+ return {
+ /**
+ *
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ fooGet: async (options: AxiosRequestConfig = {}): Promise => {
+ const localVarPath = `/foo`;
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ }
+};
+
+/**
+ * DefaultApi - functional programming interface
+ * @export
+ */
+export const DefaultApiFp = function(configuration?: Configuration) {
+ const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration)
+ return {
+ /**
+ *
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async fooGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fooGet(options);
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
+ },
+ }
+};
+
+/**
+ * DefaultApi - factory interface
+ * @export
+ */
+export const DefaultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
+ const localVarFp = DefaultApiFp(configuration)
+ return {
+ /**
+ *
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ fooGet(options?: any): AxiosPromise {
+ return localVarFp.fooGet(options).then((request) => request(axios, basePath));
+ },
+ };
+};
+
+/**
+ * DefaultApi - object-oriented interface
+ * @export
+ * @class DefaultApi
+ * @extends {BaseAPI}
+ */
+export class DefaultApi extends BaseAPI {
+ /**
+ *
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof DefaultApi
+ */
+ public fooGet(options?: AxiosRequestConfig) {
+ return DefaultApiFp(this.configuration).fooGet(options).then((request) => request(this.axios, this.basePath));
+ }
+}
+
+
+/**
+ * FakeApi - axios parameter creator
+ * @export
+ */
+export const FakeApiAxiosParamCreator = function (configuration?: Configuration) {
+ return {
+ /**
+ *
+ * @summary Health check endpoint
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ fakeHealthGet: async (options: AxiosRequestConfig = {}): Promise => {
+ const localVarPath = `/fake/health`;
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ * Test serialization of outer boolean types
+ * @param {boolean} [body] Input boolean as post body
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ fakeOuterBooleanSerialize: async (body?: boolean, options: AxiosRequestConfig = {}): Promise