From aa08cc1d18a0c08e86583642044350d9bdac1c0e Mon Sep 17 00:00:00 2001 From: Anders Fogh Eriksen Date: Wed, 9 Oct 2019 15:45:31 +0200 Subject: [PATCH 1/4] Disabling linting for typescript fetch --- .../src/main/resources/typescript-fetch/apis.mustache | 1 + .../src/main/resources/typescript-fetch/models.mustache | 1 + .../src/main/resources/typescript-fetch/runtime.mustache | 1 + 3 files changed, 3 insertions(+) diff --git a/modules/openapi-generator/src/main/resources/typescript-fetch/apis.mustache b/modules/openapi-generator/src/main/resources/typescript-fetch/apis.mustache index 73504161a163..8080ff02457c 100644 --- a/modules/openapi-generator/src/main/resources/typescript-fetch/apis.mustache +++ b/modules/openapi-generator/src/main/resources/typescript-fetch/apis.mustache @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable {{>licenseInfo}} import * as runtime from '../runtime'; diff --git a/modules/openapi-generator/src/main/resources/typescript-fetch/models.mustache b/modules/openapi-generator/src/main/resources/typescript-fetch/models.mustache index bb7d43bce3cf..87d5531951a2 100644 --- a/modules/openapi-generator/src/main/resources/typescript-fetch/models.mustache +++ b/modules/openapi-generator/src/main/resources/typescript-fetch/models.mustache @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable {{>licenseInfo}} {{#models}} {{#model}} diff --git a/modules/openapi-generator/src/main/resources/typescript-fetch/runtime.mustache b/modules/openapi-generator/src/main/resources/typescript-fetch/runtime.mustache index 8fb973acae64..33ecaa1197a3 100644 --- a/modules/openapi-generator/src/main/resources/typescript-fetch/runtime.mustache +++ b/modules/openapi-generator/src/main/resources/typescript-fetch/runtime.mustache @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable {{>licenseInfo}} export const BASE_PATH = "{{{basePath}}}".replace(/\/+$/, ""); From 52182020e7a0db5f0f71bfe2119984746e65089f Mon Sep 17 00:00:00 2001 From: Anders Fogh Eriksen Date: Wed, 9 Oct 2019 15:56:45 +0200 Subject: [PATCH 2/4] Update petstore --- .../builds/default/src/apis/PetApi.ts | 21 +++--- .../builds/default/src/apis/StoreApi.ts | 9 +-- .../builds/default/src/apis/UserApi.ts | 33 +++++----- .../builds/default/src/models/Category.ts | 1 + .../builds/default/src/models/InlineObject.ts | 65 +++++++++++++++++++ .../default/src/models/InlineObject1.ts | 65 +++++++++++++++++++ .../default/src/models/ModelApiResponse.ts | 1 + .../builds/default/src/models/Order.ts | 1 + .../builds/default/src/models/Pet.ts | 1 + .../builds/default/src/models/Tag.ts | 1 + .../builds/default/src/models/User.ts | 1 + .../builds/default/src/models/index.ts | 2 + .../builds/default/src/runtime.ts | 1 + 13 files changed, 172 insertions(+), 30 deletions(-) create mode 100644 samples/client/petstore/typescript-fetch/builds/default/src/models/InlineObject.ts create mode 100644 samples/client/petstore/typescript-fetch/builds/default/src/models/InlineObject1.ts diff --git a/samples/client/petstore/typescript-fetch/builds/default/src/apis/PetApi.ts b/samples/client/petstore/typescript-fetch/builds/default/src/apis/PetApi.ts index 1b59ed3ef08a..953cb90e79e6 100644 --- a/samples/client/petstore/typescript-fetch/builds/default/src/apis/PetApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/default/src/apis/PetApi.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. @@ -23,7 +24,7 @@ import { } from '../models'; export interface AddPetRequest { - body: Pet; + pet: Pet; } export interface DeletePetRequest { @@ -44,7 +45,7 @@ export interface GetPetByIdRequest { } export interface UpdatePetRequest { - body: Pet; + pet: Pet; } export interface UpdatePetWithFormRequest { @@ -68,8 +69,8 @@ export class PetApi extends runtime.BaseAPI { * Add a new pet to the store */ async addPetRaw(requestParameters: AddPetRequest): Promise> { - if (requestParameters.body === null || requestParameters.body === undefined) { - throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling addPet.'); + if (requestParameters.pet === null || requestParameters.pet === undefined) { + throw new runtime.RequiredError('pet','Required parameter requestParameters.pet was null or undefined when calling addPet.'); } const queryParameters: runtime.HTTPQuery = {}; @@ -92,7 +93,7 @@ export class PetApi extends runtime.BaseAPI { method: 'POST', headers: headerParameters, query: queryParameters, - body: PetToJSON(requestParameters.body), + body: PetToJSON(requestParameters.pet), }); return new runtime.VoidApiResponse(response); @@ -167,7 +168,7 @@ export class PetApi extends runtime.BaseAPI { if (this.configuration && this.configuration.accessToken) { // oauth required if (typeof this.configuration.accessToken === 'function') { - headerParameters["Authorization"] = this.configuration.accessToken("petstore_auth", ["write:pets", "read:pets"]); + headerParameters["Authorization"] = this.configuration.accessToken("petstore_auth", ["read:pets"]); } else { headerParameters["Authorization"] = this.configuration.accessToken; } @@ -212,7 +213,7 @@ export class PetApi extends runtime.BaseAPI { if (this.configuration && this.configuration.accessToken) { // oauth required if (typeof this.configuration.accessToken === 'function') { - headerParameters["Authorization"] = this.configuration.accessToken("petstore_auth", ["write:pets", "read:pets"]); + headerParameters["Authorization"] = this.configuration.accessToken("petstore_auth", ["read:pets"]); } else { headerParameters["Authorization"] = this.configuration.accessToken; } @@ -277,8 +278,8 @@ export class PetApi extends runtime.BaseAPI { * Update an existing pet */ async updatePetRaw(requestParameters: UpdatePetRequest): Promise> { - if (requestParameters.body === null || requestParameters.body === undefined) { - throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling updatePet.'); + if (requestParameters.pet === null || requestParameters.pet === undefined) { + throw new runtime.RequiredError('pet','Required parameter requestParameters.pet was null or undefined when calling updatePet.'); } const queryParameters: runtime.HTTPQuery = {}; @@ -301,7 +302,7 @@ export class PetApi extends runtime.BaseAPI { method: 'PUT', headers: headerParameters, query: queryParameters, - body: PetToJSON(requestParameters.body), + body: PetToJSON(requestParameters.pet), }); return new runtime.VoidApiResponse(response); diff --git a/samples/client/petstore/typescript-fetch/builds/default/src/apis/StoreApi.ts b/samples/client/petstore/typescript-fetch/builds/default/src/apis/StoreApi.ts index 4b645dea987e..05e7e093d16d 100644 --- a/samples/client/petstore/typescript-fetch/builds/default/src/apis/StoreApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/default/src/apis/StoreApi.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. @@ -28,7 +29,7 @@ export interface GetOrderByIdRequest { } export interface PlaceOrderRequest { - body: Order; + order: Order; } /** @@ -135,8 +136,8 @@ export class StoreApi extends runtime.BaseAPI { * Place an order for a pet */ async placeOrderRaw(requestParameters: PlaceOrderRequest): Promise> { - if (requestParameters.body === null || requestParameters.body === undefined) { - throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling placeOrder.'); + if (requestParameters.order === null || requestParameters.order === undefined) { + throw new runtime.RequiredError('order','Required parameter requestParameters.order was null or undefined when calling placeOrder.'); } const queryParameters: runtime.HTTPQuery = {}; @@ -150,7 +151,7 @@ export class StoreApi extends runtime.BaseAPI { method: 'POST', headers: headerParameters, query: queryParameters, - body: OrderToJSON(requestParameters.body), + body: OrderToJSON(requestParameters.order), }); return new runtime.JSONApiResponse(response, (jsonValue) => OrderFromJSON(jsonValue)); diff --git a/samples/client/petstore/typescript-fetch/builds/default/src/apis/UserApi.ts b/samples/client/petstore/typescript-fetch/builds/default/src/apis/UserApi.ts index 52d6f3d2e3d2..ae6c475f8532 100644 --- a/samples/client/petstore/typescript-fetch/builds/default/src/apis/UserApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/default/src/apis/UserApi.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. @@ -20,15 +21,15 @@ import { } from '../models'; export interface CreateUserRequest { - body: User; + user: User; } export interface CreateUsersWithArrayInputRequest { - body: Array; + user: Array; } export interface CreateUsersWithListInputRequest { - body: Array; + user: Array; } export interface DeleteUserRequest { @@ -46,7 +47,7 @@ export interface LoginUserRequest { export interface UpdateUserRequest { username: string; - body: User; + user: User; } /** @@ -59,8 +60,8 @@ export class UserApi extends runtime.BaseAPI { * Create user */ async createUserRaw(requestParameters: CreateUserRequest): Promise> { - if (requestParameters.body === null || requestParameters.body === undefined) { - throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling createUser.'); + if (requestParameters.user === null || requestParameters.user === undefined) { + throw new runtime.RequiredError('user','Required parameter requestParameters.user was null or undefined when calling createUser.'); } const queryParameters: runtime.HTTPQuery = {}; @@ -74,7 +75,7 @@ export class UserApi extends runtime.BaseAPI { method: 'POST', headers: headerParameters, query: queryParameters, - body: UserToJSON(requestParameters.body), + body: UserToJSON(requestParameters.user), }); return new runtime.VoidApiResponse(response); @@ -92,8 +93,8 @@ export class UserApi extends runtime.BaseAPI { * Creates list of users with given input array */ async createUsersWithArrayInputRaw(requestParameters: CreateUsersWithArrayInputRequest): Promise> { - if (requestParameters.body === null || requestParameters.body === undefined) { - throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling createUsersWithArrayInput.'); + if (requestParameters.user === null || requestParameters.user === undefined) { + throw new runtime.RequiredError('user','Required parameter requestParameters.user was null or undefined when calling createUsersWithArrayInput.'); } const queryParameters: runtime.HTTPQuery = {}; @@ -107,7 +108,7 @@ export class UserApi extends runtime.BaseAPI { method: 'POST', headers: headerParameters, query: queryParameters, - body: requestParameters.body.map(UserToJSON), + body: requestParameters.user.map(UserToJSON), }); return new runtime.VoidApiResponse(response); @@ -124,8 +125,8 @@ export class UserApi extends runtime.BaseAPI { * Creates list of users with given input array */ async createUsersWithListInputRaw(requestParameters: CreateUsersWithListInputRequest): Promise> { - if (requestParameters.body === null || requestParameters.body === undefined) { - throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling createUsersWithListInput.'); + if (requestParameters.user === null || requestParameters.user === undefined) { + throw new runtime.RequiredError('user','Required parameter requestParameters.user was null or undefined when calling createUsersWithListInput.'); } const queryParameters: runtime.HTTPQuery = {}; @@ -139,7 +140,7 @@ export class UserApi extends runtime.BaseAPI { method: 'POST', headers: headerParameters, query: queryParameters, - body: requestParameters.body.map(UserToJSON), + body: requestParameters.user.map(UserToJSON), }); return new runtime.VoidApiResponse(response); @@ -289,8 +290,8 @@ export class UserApi extends runtime.BaseAPI { throw new runtime.RequiredError('username','Required parameter requestParameters.username was null or undefined when calling updateUser.'); } - if (requestParameters.body === null || requestParameters.body === undefined) { - throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling updateUser.'); + if (requestParameters.user === null || requestParameters.user === undefined) { + throw new runtime.RequiredError('user','Required parameter requestParameters.user was null or undefined when calling updateUser.'); } const queryParameters: runtime.HTTPQuery = {}; @@ -304,7 +305,7 @@ export class UserApi extends runtime.BaseAPI { method: 'PUT', headers: headerParameters, query: queryParameters, - body: UserToJSON(requestParameters.body), + body: UserToJSON(requestParameters.user), }); return new runtime.VoidApiResponse(response); diff --git a/samples/client/petstore/typescript-fetch/builds/default/src/models/Category.ts b/samples/client/petstore/typescript-fetch/builds/default/src/models/Category.ts index 7e3076d412d2..936e0db23894 100644 --- a/samples/client/petstore/typescript-fetch/builds/default/src/models/Category.ts +++ b/samples/client/petstore/typescript-fetch/builds/default/src/models/Category.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/default/src/models/InlineObject.ts b/samples/client/petstore/typescript-fetch/builds/default/src/models/InlineObject.ts new file mode 100644 index 000000000000..6b422eccfd30 --- /dev/null +++ b/samples/client/petstore/typescript-fetch/builds/default/src/models/InlineObject.ts @@ -0,0 +1,65 @@ +// tslint:disable +// eslint-disable +/** + * OpenAPI Petstore + * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + * + * 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 { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface InlineObject + */ +export interface InlineObject { + /** + * Updated name of the pet + * @type {string} + * @memberof InlineObject + */ + name?: string; + /** + * Updated status of the pet + * @type {string} + * @memberof InlineObject + */ + status?: string; +} + +export function InlineObjectFromJSON(json: any): InlineObject { + return InlineObjectFromJSONTyped(json, false); +} + +export function InlineObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): InlineObject { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'name': !exists(json, 'name') ? undefined : json['name'], + 'status': !exists(json, 'status') ? undefined : json['status'], + }; +} + +export function InlineObjectToJSON(value?: InlineObject | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'name': value.name, + 'status': value.status, + }; +} + + diff --git a/samples/client/petstore/typescript-fetch/builds/default/src/models/InlineObject1.ts b/samples/client/petstore/typescript-fetch/builds/default/src/models/InlineObject1.ts new file mode 100644 index 000000000000..eadd8cde809f --- /dev/null +++ b/samples/client/petstore/typescript-fetch/builds/default/src/models/InlineObject1.ts @@ -0,0 +1,65 @@ +// tslint:disable +// eslint-disable +/** + * OpenAPI Petstore + * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + * + * 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 { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface InlineObject1 + */ +export interface InlineObject1 { + /** + * Additional data to pass to server + * @type {string} + * @memberof InlineObject1 + */ + additionalMetadata?: string; + /** + * file to upload + * @type {Blob} + * @memberof InlineObject1 + */ + file?: Blob; +} + +export function InlineObject1FromJSON(json: any): InlineObject1 { + return InlineObject1FromJSONTyped(json, false); +} + +export function InlineObject1FromJSONTyped(json: any, ignoreDiscriminator: boolean): InlineObject1 { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'additionalMetadata': !exists(json, 'additionalMetadata') ? undefined : json['additionalMetadata'], + 'file': !exists(json, 'file') ? undefined : json['file'], + }; +} + +export function InlineObject1ToJSON(value?: InlineObject1 | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'additionalMetadata': value.additionalMetadata, + 'file': value.file, + }; +} + + diff --git a/samples/client/petstore/typescript-fetch/builds/default/src/models/ModelApiResponse.ts b/samples/client/petstore/typescript-fetch/builds/default/src/models/ModelApiResponse.ts index c89b98fc62be..b897a9a57237 100644 --- a/samples/client/petstore/typescript-fetch/builds/default/src/models/ModelApiResponse.ts +++ b/samples/client/petstore/typescript-fetch/builds/default/src/models/ModelApiResponse.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/default/src/models/Order.ts b/samples/client/petstore/typescript-fetch/builds/default/src/models/Order.ts index da4ad33711d6..cae61335b783 100644 --- a/samples/client/petstore/typescript-fetch/builds/default/src/models/Order.ts +++ b/samples/client/petstore/typescript-fetch/builds/default/src/models/Order.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/default/src/models/Pet.ts b/samples/client/petstore/typescript-fetch/builds/default/src/models/Pet.ts index 8f921c6b159f..ecd7e174a209 100644 --- a/samples/client/petstore/typescript-fetch/builds/default/src/models/Pet.ts +++ b/samples/client/petstore/typescript-fetch/builds/default/src/models/Pet.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/default/src/models/Tag.ts b/samples/client/petstore/typescript-fetch/builds/default/src/models/Tag.ts index 5ea1fd63e818..efe3bb708792 100644 --- a/samples/client/petstore/typescript-fetch/builds/default/src/models/Tag.ts +++ b/samples/client/petstore/typescript-fetch/builds/default/src/models/Tag.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/default/src/models/User.ts b/samples/client/petstore/typescript-fetch/builds/default/src/models/User.ts index 302960bfef96..cfe1263dc651 100644 --- a/samples/client/petstore/typescript-fetch/builds/default/src/models/User.ts +++ b/samples/client/petstore/typescript-fetch/builds/default/src/models/User.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/default/src/models/index.ts b/samples/client/petstore/typescript-fetch/builds/default/src/models/index.ts index b07ddc8446a0..5eefa748f29f 100644 --- a/samples/client/petstore/typescript-fetch/builds/default/src/models/index.ts +++ b/samples/client/petstore/typescript-fetch/builds/default/src/models/index.ts @@ -1,4 +1,6 @@ export * from './Category'; +export * from './InlineObject'; +export * from './InlineObject1'; export * from './ModelApiResponse'; export * from './Order'; export * from './Pet'; diff --git a/samples/client/petstore/typescript-fetch/builds/default/src/runtime.ts b/samples/client/petstore/typescript-fetch/builds/default/src/runtime.ts index 8aa68ea78f3a..5a21387c25a1 100644 --- a/samples/client/petstore/typescript-fetch/builds/default/src/runtime.ts +++ b/samples/client/petstore/typescript-fetch/builds/default/src/runtime.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. From b61fe6e9c84de924efe2f21efda7e3b36bd3d491 Mon Sep 17 00:00:00 2001 From: Anders Fogh Eriksen Date: Wed, 9 Oct 2019 20:34:48 +0200 Subject: [PATCH 3/4] Update samples --- .../typescript-fetch/builds/es6-target/src/apis/PetApi.ts | 1 + .../typescript-fetch/builds/es6-target/src/apis/StoreApi.ts | 1 + .../typescript-fetch/builds/es6-target/src/apis/UserApi.ts | 1 + .../typescript-fetch/builds/es6-target/src/models/Category.ts | 1 + .../builds/es6-target/src/models/ModelApiResponse.ts | 1 + .../typescript-fetch/builds/es6-target/src/models/Order.ts | 1 + .../typescript-fetch/builds/es6-target/src/models/Pet.ts | 1 + .../typescript-fetch/builds/es6-target/src/models/Tag.ts | 1 + .../typescript-fetch/builds/es6-target/src/models/User.ts | 1 + .../petstore/typescript-fetch/builds/es6-target/src/runtime.ts | 1 + .../builds/multiple-parameters/src/apis/PetApi.ts | 1 + .../builds/multiple-parameters/src/apis/StoreApi.ts | 1 + .../builds/multiple-parameters/src/apis/UserApi.ts | 1 + .../builds/multiple-parameters/src/models/Category.ts | 1 + .../builds/multiple-parameters/src/models/ModelApiResponse.ts | 1 + .../builds/multiple-parameters/src/models/Order.ts | 1 + .../builds/multiple-parameters/src/models/Pet.ts | 1 + .../builds/multiple-parameters/src/models/Tag.ts | 1 + .../builds/multiple-parameters/src/models/User.ts | 1 + .../typescript-fetch/builds/multiple-parameters/src/runtime.ts | 1 + .../builds/prefix-parameter-interfaces/src/apis/PetApi.ts | 1 + .../builds/prefix-parameter-interfaces/src/apis/StoreApi.ts | 1 + .../builds/prefix-parameter-interfaces/src/apis/UserApi.ts | 1 + .../builds/prefix-parameter-interfaces/src/models/Category.ts | 1 + .../prefix-parameter-interfaces/src/models/ModelApiResponse.ts | 1 + .../builds/prefix-parameter-interfaces/src/models/Order.ts | 1 + .../builds/prefix-parameter-interfaces/src/models/Pet.ts | 1 + .../builds/prefix-parameter-interfaces/src/models/Tag.ts | 1 + .../builds/prefix-parameter-interfaces/src/models/User.ts | 1 + .../builds/prefix-parameter-interfaces/src/runtime.ts | 1 + .../builds/typescript-three-plus/src/apis/PetApi.ts | 1 + .../builds/typescript-three-plus/src/apis/StoreApi.ts | 1 + .../builds/typescript-three-plus/src/apis/UserApi.ts | 1 + .../builds/typescript-three-plus/src/models/Category.ts | 1 + .../builds/typescript-three-plus/src/models/ModelApiResponse.ts | 1 + .../builds/typescript-three-plus/src/models/Order.ts | 1 + .../builds/typescript-three-plus/src/models/Pet.ts | 1 + .../builds/typescript-three-plus/src/models/Tag.ts | 1 + .../builds/typescript-three-plus/src/models/User.ts | 1 + .../typescript-fetch/builds/typescript-three-plus/src/runtime.ts | 1 + .../typescript-fetch/builds/with-interfaces/src/apis/PetApi.ts | 1 + .../typescript-fetch/builds/with-interfaces/src/apis/StoreApi.ts | 1 + .../typescript-fetch/builds/with-interfaces/src/apis/UserApi.ts | 1 + .../builds/with-interfaces/src/models/Category.ts | 1 + .../builds/with-interfaces/src/models/ModelApiResponse.ts | 1 + .../typescript-fetch/builds/with-interfaces/src/models/Order.ts | 1 + .../typescript-fetch/builds/with-interfaces/src/models/Pet.ts | 1 + .../typescript-fetch/builds/with-interfaces/src/models/Tag.ts | 1 + .../typescript-fetch/builds/with-interfaces/src/models/User.ts | 1 + .../typescript-fetch/builds/with-interfaces/src/runtime.ts | 1 + .../typescript-fetch/builds/with-npm-version/src/apis/PetApi.ts | 1 + .../builds/with-npm-version/src/apis/StoreApi.ts | 1 + .../typescript-fetch/builds/with-npm-version/src/apis/UserApi.ts | 1 + .../builds/with-npm-version/src/models/Category.ts | 1 + .../builds/with-npm-version/src/models/ModelApiResponse.ts | 1 + .../typescript-fetch/builds/with-npm-version/src/models/Order.ts | 1 + .../typescript-fetch/builds/with-npm-version/src/models/Pet.ts | 1 + .../typescript-fetch/builds/with-npm-version/src/models/Tag.ts | 1 + .../typescript-fetch/builds/with-npm-version/src/models/User.ts | 1 + .../typescript-fetch/builds/with-npm-version/src/runtime.ts | 1 + 60 files changed, 60 insertions(+) diff --git a/samples/client/petstore/typescript-fetch/builds/es6-target/src/apis/PetApi.ts b/samples/client/petstore/typescript-fetch/builds/es6-target/src/apis/PetApi.ts index 1b59ed3ef08a..b0d3563297dd 100644 --- a/samples/client/petstore/typescript-fetch/builds/es6-target/src/apis/PetApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/es6-target/src/apis/PetApi.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/es6-target/src/apis/StoreApi.ts b/samples/client/petstore/typescript-fetch/builds/es6-target/src/apis/StoreApi.ts index 4b645dea987e..6a05a366c1ee 100644 --- a/samples/client/petstore/typescript-fetch/builds/es6-target/src/apis/StoreApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/es6-target/src/apis/StoreApi.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/es6-target/src/apis/UserApi.ts b/samples/client/petstore/typescript-fetch/builds/es6-target/src/apis/UserApi.ts index 52d6f3d2e3d2..48114f33057b 100644 --- a/samples/client/petstore/typescript-fetch/builds/es6-target/src/apis/UserApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/es6-target/src/apis/UserApi.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/Category.ts b/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/Category.ts index 7e3076d412d2..936e0db23894 100644 --- a/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/Category.ts +++ b/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/Category.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/ModelApiResponse.ts b/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/ModelApiResponse.ts index c89b98fc62be..b897a9a57237 100644 --- a/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/ModelApiResponse.ts +++ b/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/ModelApiResponse.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/Order.ts b/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/Order.ts index da4ad33711d6..cae61335b783 100644 --- a/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/Order.ts +++ b/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/Order.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/Pet.ts b/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/Pet.ts index 8f921c6b159f..ecd7e174a209 100644 --- a/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/Pet.ts +++ b/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/Pet.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/Tag.ts b/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/Tag.ts index 5ea1fd63e818..efe3bb708792 100644 --- a/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/Tag.ts +++ b/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/Tag.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/User.ts b/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/User.ts index 302960bfef96..cfe1263dc651 100644 --- a/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/User.ts +++ b/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/User.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/es6-target/src/runtime.ts b/samples/client/petstore/typescript-fetch/builds/es6-target/src/runtime.ts index 8aa68ea78f3a..5a21387c25a1 100644 --- a/samples/client/petstore/typescript-fetch/builds/es6-target/src/runtime.ts +++ b/samples/client/petstore/typescript-fetch/builds/es6-target/src/runtime.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/src/apis/PetApi.ts b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/src/apis/PetApi.ts index 28a239690b88..02971f4df7ea 100644 --- a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/src/apis/PetApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/src/apis/PetApi.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/src/apis/StoreApi.ts b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/src/apis/StoreApi.ts index e8635189f620..21bd734d4ab9 100644 --- a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/src/apis/StoreApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/src/apis/StoreApi.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/src/apis/UserApi.ts b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/src/apis/UserApi.ts index 008d458aca19..aeb81e01e284 100644 --- a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/src/apis/UserApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/src/apis/UserApi.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/src/models/Category.ts b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/src/models/Category.ts index 7e3076d412d2..936e0db23894 100644 --- a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/src/models/Category.ts +++ b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/src/models/Category.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/src/models/ModelApiResponse.ts b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/src/models/ModelApiResponse.ts index c89b98fc62be..b897a9a57237 100644 --- a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/src/models/ModelApiResponse.ts +++ b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/src/models/ModelApiResponse.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/src/models/Order.ts b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/src/models/Order.ts index da4ad33711d6..cae61335b783 100644 --- a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/src/models/Order.ts +++ b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/src/models/Order.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/src/models/Pet.ts b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/src/models/Pet.ts index 8f921c6b159f..ecd7e174a209 100644 --- a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/src/models/Pet.ts +++ b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/src/models/Pet.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/src/models/Tag.ts b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/src/models/Tag.ts index 5ea1fd63e818..efe3bb708792 100644 --- a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/src/models/Tag.ts +++ b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/src/models/Tag.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/src/models/User.ts b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/src/models/User.ts index 302960bfef96..cfe1263dc651 100644 --- a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/src/models/User.ts +++ b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/src/models/User.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/src/runtime.ts b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/src/runtime.ts index 8aa68ea78f3a..5a21387c25a1 100644 --- a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/src/runtime.ts +++ b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/src/runtime.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/apis/PetApi.ts b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/apis/PetApi.ts index 3bd5d9cf411d..5c45e3bb333e 100644 --- a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/apis/PetApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/apis/PetApi.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/apis/StoreApi.ts b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/apis/StoreApi.ts index cfe73a1da647..e119ddf0a38a 100644 --- a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/apis/StoreApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/apis/StoreApi.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/apis/UserApi.ts b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/apis/UserApi.ts index 7738fe82ea68..96b0eb672d82 100644 --- a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/apis/UserApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/apis/UserApi.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/Category.ts b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/Category.ts index 7e3076d412d2..936e0db23894 100644 --- a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/Category.ts +++ b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/Category.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/ModelApiResponse.ts b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/ModelApiResponse.ts index c89b98fc62be..b897a9a57237 100644 --- a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/ModelApiResponse.ts +++ b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/ModelApiResponse.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/Order.ts b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/Order.ts index da4ad33711d6..cae61335b783 100644 --- a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/Order.ts +++ b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/Order.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/Pet.ts b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/Pet.ts index 8f921c6b159f..ecd7e174a209 100644 --- a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/Pet.ts +++ b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/Pet.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/Tag.ts b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/Tag.ts index 5ea1fd63e818..efe3bb708792 100644 --- a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/Tag.ts +++ b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/Tag.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/User.ts b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/User.ts index 302960bfef96..cfe1263dc651 100644 --- a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/User.ts +++ b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/User.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/runtime.ts b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/runtime.ts index 8aa68ea78f3a..5a21387c25a1 100644 --- a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/runtime.ts +++ b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/runtime.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/typescript-three-plus/src/apis/PetApi.ts b/samples/client/petstore/typescript-fetch/builds/typescript-three-plus/src/apis/PetApi.ts index 1b59ed3ef08a..b0d3563297dd 100644 --- a/samples/client/petstore/typescript-fetch/builds/typescript-three-plus/src/apis/PetApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/typescript-three-plus/src/apis/PetApi.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/typescript-three-plus/src/apis/StoreApi.ts b/samples/client/petstore/typescript-fetch/builds/typescript-three-plus/src/apis/StoreApi.ts index 4b645dea987e..6a05a366c1ee 100644 --- a/samples/client/petstore/typescript-fetch/builds/typescript-three-plus/src/apis/StoreApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/typescript-three-plus/src/apis/StoreApi.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/typescript-three-plus/src/apis/UserApi.ts b/samples/client/petstore/typescript-fetch/builds/typescript-three-plus/src/apis/UserApi.ts index 52d6f3d2e3d2..48114f33057b 100644 --- a/samples/client/petstore/typescript-fetch/builds/typescript-three-plus/src/apis/UserApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/typescript-three-plus/src/apis/UserApi.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/typescript-three-plus/src/models/Category.ts b/samples/client/petstore/typescript-fetch/builds/typescript-three-plus/src/models/Category.ts index 7e3076d412d2..936e0db23894 100644 --- a/samples/client/petstore/typescript-fetch/builds/typescript-three-plus/src/models/Category.ts +++ b/samples/client/petstore/typescript-fetch/builds/typescript-three-plus/src/models/Category.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/typescript-three-plus/src/models/ModelApiResponse.ts b/samples/client/petstore/typescript-fetch/builds/typescript-three-plus/src/models/ModelApiResponse.ts index c89b98fc62be..b897a9a57237 100644 --- a/samples/client/petstore/typescript-fetch/builds/typescript-three-plus/src/models/ModelApiResponse.ts +++ b/samples/client/petstore/typescript-fetch/builds/typescript-three-plus/src/models/ModelApiResponse.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/typescript-three-plus/src/models/Order.ts b/samples/client/petstore/typescript-fetch/builds/typescript-three-plus/src/models/Order.ts index da4ad33711d6..cae61335b783 100644 --- a/samples/client/petstore/typescript-fetch/builds/typescript-three-plus/src/models/Order.ts +++ b/samples/client/petstore/typescript-fetch/builds/typescript-three-plus/src/models/Order.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/typescript-three-plus/src/models/Pet.ts b/samples/client/petstore/typescript-fetch/builds/typescript-three-plus/src/models/Pet.ts index 8f921c6b159f..ecd7e174a209 100644 --- a/samples/client/petstore/typescript-fetch/builds/typescript-three-plus/src/models/Pet.ts +++ b/samples/client/petstore/typescript-fetch/builds/typescript-three-plus/src/models/Pet.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/typescript-three-plus/src/models/Tag.ts b/samples/client/petstore/typescript-fetch/builds/typescript-three-plus/src/models/Tag.ts index 5ea1fd63e818..efe3bb708792 100644 --- a/samples/client/petstore/typescript-fetch/builds/typescript-three-plus/src/models/Tag.ts +++ b/samples/client/petstore/typescript-fetch/builds/typescript-three-plus/src/models/Tag.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/typescript-three-plus/src/models/User.ts b/samples/client/petstore/typescript-fetch/builds/typescript-three-plus/src/models/User.ts index 302960bfef96..cfe1263dc651 100644 --- a/samples/client/petstore/typescript-fetch/builds/typescript-three-plus/src/models/User.ts +++ b/samples/client/petstore/typescript-fetch/builds/typescript-three-plus/src/models/User.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/typescript-three-plus/src/runtime.ts b/samples/client/petstore/typescript-fetch/builds/typescript-three-plus/src/runtime.ts index 8fdddb5a69e4..20e067182478 100644 --- a/samples/client/petstore/typescript-fetch/builds/typescript-three-plus/src/runtime.ts +++ b/samples/client/petstore/typescript-fetch/builds/typescript-three-plus/src/runtime.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/with-interfaces/src/apis/PetApi.ts b/samples/client/petstore/typescript-fetch/builds/with-interfaces/src/apis/PetApi.ts index 1b59ed3ef08a..b0d3563297dd 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-interfaces/src/apis/PetApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-interfaces/src/apis/PetApi.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/with-interfaces/src/apis/StoreApi.ts b/samples/client/petstore/typescript-fetch/builds/with-interfaces/src/apis/StoreApi.ts index 4b645dea987e..6a05a366c1ee 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-interfaces/src/apis/StoreApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-interfaces/src/apis/StoreApi.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/with-interfaces/src/apis/UserApi.ts b/samples/client/petstore/typescript-fetch/builds/with-interfaces/src/apis/UserApi.ts index 52d6f3d2e3d2..48114f33057b 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-interfaces/src/apis/UserApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-interfaces/src/apis/UserApi.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/with-interfaces/src/models/Category.ts b/samples/client/petstore/typescript-fetch/builds/with-interfaces/src/models/Category.ts index 7e3076d412d2..936e0db23894 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-interfaces/src/models/Category.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-interfaces/src/models/Category.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/with-interfaces/src/models/ModelApiResponse.ts b/samples/client/petstore/typescript-fetch/builds/with-interfaces/src/models/ModelApiResponse.ts index c89b98fc62be..b897a9a57237 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-interfaces/src/models/ModelApiResponse.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-interfaces/src/models/ModelApiResponse.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/with-interfaces/src/models/Order.ts b/samples/client/petstore/typescript-fetch/builds/with-interfaces/src/models/Order.ts index da4ad33711d6..cae61335b783 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-interfaces/src/models/Order.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-interfaces/src/models/Order.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/with-interfaces/src/models/Pet.ts b/samples/client/petstore/typescript-fetch/builds/with-interfaces/src/models/Pet.ts index 8f921c6b159f..ecd7e174a209 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-interfaces/src/models/Pet.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-interfaces/src/models/Pet.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/with-interfaces/src/models/Tag.ts b/samples/client/petstore/typescript-fetch/builds/with-interfaces/src/models/Tag.ts index 5ea1fd63e818..efe3bb708792 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-interfaces/src/models/Tag.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-interfaces/src/models/Tag.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/with-interfaces/src/models/User.ts b/samples/client/petstore/typescript-fetch/builds/with-interfaces/src/models/User.ts index 302960bfef96..cfe1263dc651 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-interfaces/src/models/User.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-interfaces/src/models/User.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/with-interfaces/src/runtime.ts b/samples/client/petstore/typescript-fetch/builds/with-interfaces/src/runtime.ts index 8aa68ea78f3a..5a21387c25a1 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-interfaces/src/runtime.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-interfaces/src/runtime.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/apis/PetApi.ts b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/apis/PetApi.ts index 1b59ed3ef08a..b0d3563297dd 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/apis/PetApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/apis/PetApi.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/apis/StoreApi.ts b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/apis/StoreApi.ts index 4b645dea987e..6a05a366c1ee 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/apis/StoreApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/apis/StoreApi.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/apis/UserApi.ts b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/apis/UserApi.ts index 52d6f3d2e3d2..48114f33057b 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/apis/UserApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/apis/UserApi.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/Category.ts b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/Category.ts index 7e3076d412d2..936e0db23894 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/Category.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/Category.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/ModelApiResponse.ts b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/ModelApiResponse.ts index c89b98fc62be..b897a9a57237 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/ModelApiResponse.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/ModelApiResponse.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/Order.ts b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/Order.ts index da4ad33711d6..cae61335b783 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/Order.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/Order.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/Pet.ts b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/Pet.ts index 8f921c6b159f..ecd7e174a209 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/Pet.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/Pet.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/Tag.ts b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/Tag.ts index 5ea1fd63e818..efe3bb708792 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/Tag.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/Tag.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/User.ts b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/User.ts index 302960bfef96..cfe1263dc651 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/User.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/User.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. diff --git a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/runtime.ts b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/runtime.ts index 8aa68ea78f3a..5a21387c25a1 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/runtime.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/runtime.ts @@ -1,4 +1,5 @@ // tslint:disable +// eslint-disable /** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. From 593185239d05926690a5391477c8a8dc5d03e713 Mon Sep 17 00:00:00 2001 From: Anders Fogh Eriksen Date: Thu, 10 Oct 2019 12:48:40 +0200 Subject: [PATCH 4/4] Fix typescript-fetch samples --- .../builds/default/src/apis/PetApi.ts | 20 +++--- .../builds/default/src/apis/StoreApi.ts | 8 +-- .../builds/default/src/apis/UserApi.ts | 32 ++++----- .../builds/default/src/models/InlineObject.ts | 65 ------------------- .../default/src/models/InlineObject1.ts | 65 ------------------- .../builds/default/src/models/index.ts | 2 - 6 files changed, 30 insertions(+), 162 deletions(-) delete mode 100644 samples/client/petstore/typescript-fetch/builds/default/src/models/InlineObject.ts delete mode 100644 samples/client/petstore/typescript-fetch/builds/default/src/models/InlineObject1.ts diff --git a/samples/client/petstore/typescript-fetch/builds/default/src/apis/PetApi.ts b/samples/client/petstore/typescript-fetch/builds/default/src/apis/PetApi.ts index 953cb90e79e6..b0d3563297dd 100644 --- a/samples/client/petstore/typescript-fetch/builds/default/src/apis/PetApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/default/src/apis/PetApi.ts @@ -24,7 +24,7 @@ import { } from '../models'; export interface AddPetRequest { - pet: Pet; + body: Pet; } export interface DeletePetRequest { @@ -45,7 +45,7 @@ export interface GetPetByIdRequest { } export interface UpdatePetRequest { - pet: Pet; + body: Pet; } export interface UpdatePetWithFormRequest { @@ -69,8 +69,8 @@ export class PetApi extends runtime.BaseAPI { * Add a new pet to the store */ async addPetRaw(requestParameters: AddPetRequest): Promise> { - if (requestParameters.pet === null || requestParameters.pet === undefined) { - throw new runtime.RequiredError('pet','Required parameter requestParameters.pet was null or undefined when calling addPet.'); + if (requestParameters.body === null || requestParameters.body === undefined) { + throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling addPet.'); } const queryParameters: runtime.HTTPQuery = {}; @@ -93,7 +93,7 @@ export class PetApi extends runtime.BaseAPI { method: 'POST', headers: headerParameters, query: queryParameters, - body: PetToJSON(requestParameters.pet), + body: PetToJSON(requestParameters.body), }); return new runtime.VoidApiResponse(response); @@ -168,7 +168,7 @@ export class PetApi extends runtime.BaseAPI { if (this.configuration && this.configuration.accessToken) { // oauth required if (typeof this.configuration.accessToken === 'function') { - headerParameters["Authorization"] = this.configuration.accessToken("petstore_auth", ["read:pets"]); + headerParameters["Authorization"] = this.configuration.accessToken("petstore_auth", ["write:pets", "read:pets"]); } else { headerParameters["Authorization"] = this.configuration.accessToken; } @@ -213,7 +213,7 @@ export class PetApi extends runtime.BaseAPI { if (this.configuration && this.configuration.accessToken) { // oauth required if (typeof this.configuration.accessToken === 'function') { - headerParameters["Authorization"] = this.configuration.accessToken("petstore_auth", ["read:pets"]); + headerParameters["Authorization"] = this.configuration.accessToken("petstore_auth", ["write:pets", "read:pets"]); } else { headerParameters["Authorization"] = this.configuration.accessToken; } @@ -278,8 +278,8 @@ export class PetApi extends runtime.BaseAPI { * Update an existing pet */ async updatePetRaw(requestParameters: UpdatePetRequest): Promise> { - if (requestParameters.pet === null || requestParameters.pet === undefined) { - throw new runtime.RequiredError('pet','Required parameter requestParameters.pet was null or undefined when calling updatePet.'); + if (requestParameters.body === null || requestParameters.body === undefined) { + throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling updatePet.'); } const queryParameters: runtime.HTTPQuery = {}; @@ -302,7 +302,7 @@ export class PetApi extends runtime.BaseAPI { method: 'PUT', headers: headerParameters, query: queryParameters, - body: PetToJSON(requestParameters.pet), + body: PetToJSON(requestParameters.body), }); return new runtime.VoidApiResponse(response); diff --git a/samples/client/petstore/typescript-fetch/builds/default/src/apis/StoreApi.ts b/samples/client/petstore/typescript-fetch/builds/default/src/apis/StoreApi.ts index 05e7e093d16d..6a05a366c1ee 100644 --- a/samples/client/petstore/typescript-fetch/builds/default/src/apis/StoreApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/default/src/apis/StoreApi.ts @@ -29,7 +29,7 @@ export interface GetOrderByIdRequest { } export interface PlaceOrderRequest { - order: Order; + body: Order; } /** @@ -136,8 +136,8 @@ export class StoreApi extends runtime.BaseAPI { * Place an order for a pet */ async placeOrderRaw(requestParameters: PlaceOrderRequest): Promise> { - if (requestParameters.order === null || requestParameters.order === undefined) { - throw new runtime.RequiredError('order','Required parameter requestParameters.order was null or undefined when calling placeOrder.'); + if (requestParameters.body === null || requestParameters.body === undefined) { + throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling placeOrder.'); } const queryParameters: runtime.HTTPQuery = {}; @@ -151,7 +151,7 @@ export class StoreApi extends runtime.BaseAPI { method: 'POST', headers: headerParameters, query: queryParameters, - body: OrderToJSON(requestParameters.order), + body: OrderToJSON(requestParameters.body), }); return new runtime.JSONApiResponse(response, (jsonValue) => OrderFromJSON(jsonValue)); diff --git a/samples/client/petstore/typescript-fetch/builds/default/src/apis/UserApi.ts b/samples/client/petstore/typescript-fetch/builds/default/src/apis/UserApi.ts index ae6c475f8532..48114f33057b 100644 --- a/samples/client/petstore/typescript-fetch/builds/default/src/apis/UserApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/default/src/apis/UserApi.ts @@ -21,15 +21,15 @@ import { } from '../models'; export interface CreateUserRequest { - user: User; + body: User; } export interface CreateUsersWithArrayInputRequest { - user: Array; + body: Array; } export interface CreateUsersWithListInputRequest { - user: Array; + body: Array; } export interface DeleteUserRequest { @@ -47,7 +47,7 @@ export interface LoginUserRequest { export interface UpdateUserRequest { username: string; - user: User; + body: User; } /** @@ -60,8 +60,8 @@ export class UserApi extends runtime.BaseAPI { * Create user */ async createUserRaw(requestParameters: CreateUserRequest): Promise> { - if (requestParameters.user === null || requestParameters.user === undefined) { - throw new runtime.RequiredError('user','Required parameter requestParameters.user was null or undefined when calling createUser.'); + if (requestParameters.body === null || requestParameters.body === undefined) { + throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling createUser.'); } const queryParameters: runtime.HTTPQuery = {}; @@ -75,7 +75,7 @@ export class UserApi extends runtime.BaseAPI { method: 'POST', headers: headerParameters, query: queryParameters, - body: UserToJSON(requestParameters.user), + body: UserToJSON(requestParameters.body), }); return new runtime.VoidApiResponse(response); @@ -93,8 +93,8 @@ export class UserApi extends runtime.BaseAPI { * Creates list of users with given input array */ async createUsersWithArrayInputRaw(requestParameters: CreateUsersWithArrayInputRequest): Promise> { - if (requestParameters.user === null || requestParameters.user === undefined) { - throw new runtime.RequiredError('user','Required parameter requestParameters.user was null or undefined when calling createUsersWithArrayInput.'); + if (requestParameters.body === null || requestParameters.body === undefined) { + throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling createUsersWithArrayInput.'); } const queryParameters: runtime.HTTPQuery = {}; @@ -108,7 +108,7 @@ export class UserApi extends runtime.BaseAPI { method: 'POST', headers: headerParameters, query: queryParameters, - body: requestParameters.user.map(UserToJSON), + body: requestParameters.body.map(UserToJSON), }); return new runtime.VoidApiResponse(response); @@ -125,8 +125,8 @@ export class UserApi extends runtime.BaseAPI { * Creates list of users with given input array */ async createUsersWithListInputRaw(requestParameters: CreateUsersWithListInputRequest): Promise> { - if (requestParameters.user === null || requestParameters.user === undefined) { - throw new runtime.RequiredError('user','Required parameter requestParameters.user was null or undefined when calling createUsersWithListInput.'); + if (requestParameters.body === null || requestParameters.body === undefined) { + throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling createUsersWithListInput.'); } const queryParameters: runtime.HTTPQuery = {}; @@ -140,7 +140,7 @@ export class UserApi extends runtime.BaseAPI { method: 'POST', headers: headerParameters, query: queryParameters, - body: requestParameters.user.map(UserToJSON), + body: requestParameters.body.map(UserToJSON), }); return new runtime.VoidApiResponse(response); @@ -290,8 +290,8 @@ export class UserApi extends runtime.BaseAPI { throw new runtime.RequiredError('username','Required parameter requestParameters.username was null or undefined when calling updateUser.'); } - if (requestParameters.user === null || requestParameters.user === undefined) { - throw new runtime.RequiredError('user','Required parameter requestParameters.user was null or undefined when calling updateUser.'); + if (requestParameters.body === null || requestParameters.body === undefined) { + throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling updateUser.'); } const queryParameters: runtime.HTTPQuery = {}; @@ -305,7 +305,7 @@ export class UserApi extends runtime.BaseAPI { method: 'PUT', headers: headerParameters, query: queryParameters, - body: UserToJSON(requestParameters.user), + body: UserToJSON(requestParameters.body), }); return new runtime.VoidApiResponse(response); diff --git a/samples/client/petstore/typescript-fetch/builds/default/src/models/InlineObject.ts b/samples/client/petstore/typescript-fetch/builds/default/src/models/InlineObject.ts deleted file mode 100644 index 6b422eccfd30..000000000000 --- a/samples/client/petstore/typescript-fetch/builds/default/src/models/InlineObject.ts +++ /dev/null @@ -1,65 +0,0 @@ -// tslint:disable -// eslint-disable -/** - * OpenAPI Petstore - * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. - * - * 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 { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface InlineObject - */ -export interface InlineObject { - /** - * Updated name of the pet - * @type {string} - * @memberof InlineObject - */ - name?: string; - /** - * Updated status of the pet - * @type {string} - * @memberof InlineObject - */ - status?: string; -} - -export function InlineObjectFromJSON(json: any): InlineObject { - return InlineObjectFromJSONTyped(json, false); -} - -export function InlineObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): InlineObject { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'name': !exists(json, 'name') ? undefined : json['name'], - 'status': !exists(json, 'status') ? undefined : json['status'], - }; -} - -export function InlineObjectToJSON(value?: InlineObject | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'name': value.name, - 'status': value.status, - }; -} - - diff --git a/samples/client/petstore/typescript-fetch/builds/default/src/models/InlineObject1.ts b/samples/client/petstore/typescript-fetch/builds/default/src/models/InlineObject1.ts deleted file mode 100644 index eadd8cde809f..000000000000 --- a/samples/client/petstore/typescript-fetch/builds/default/src/models/InlineObject1.ts +++ /dev/null @@ -1,65 +0,0 @@ -// tslint:disable -// eslint-disable -/** - * OpenAPI Petstore - * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. - * - * 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 { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface InlineObject1 - */ -export interface InlineObject1 { - /** - * Additional data to pass to server - * @type {string} - * @memberof InlineObject1 - */ - additionalMetadata?: string; - /** - * file to upload - * @type {Blob} - * @memberof InlineObject1 - */ - file?: Blob; -} - -export function InlineObject1FromJSON(json: any): InlineObject1 { - return InlineObject1FromJSONTyped(json, false); -} - -export function InlineObject1FromJSONTyped(json: any, ignoreDiscriminator: boolean): InlineObject1 { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'additionalMetadata': !exists(json, 'additionalMetadata') ? undefined : json['additionalMetadata'], - 'file': !exists(json, 'file') ? undefined : json['file'], - }; -} - -export function InlineObject1ToJSON(value?: InlineObject1 | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'additionalMetadata': value.additionalMetadata, - 'file': value.file, - }; -} - - diff --git a/samples/client/petstore/typescript-fetch/builds/default/src/models/index.ts b/samples/client/petstore/typescript-fetch/builds/default/src/models/index.ts index 5eefa748f29f..b07ddc8446a0 100644 --- a/samples/client/petstore/typescript-fetch/builds/default/src/models/index.ts +++ b/samples/client/petstore/typescript-fetch/builds/default/src/models/index.ts @@ -1,6 +1,4 @@ export * from './Category'; -export * from './InlineObject'; -export * from './InlineObject1'; export * from './ModelApiResponse'; export * from './Order'; export * from './Pet';