diff --git a/samples/client/others/typescript/builds/with-unique-items/.openapi-generator/VERSION b/samples/client/others/typescript/builds/with-unique-items/.openapi-generator/VERSION index d6b4ec4aa78..4b448de535c 100644 --- a/samples/client/others/typescript/builds/with-unique-items/.openapi-generator/VERSION +++ b/samples/client/others/typescript/builds/with-unique-items/.openapi-generator/VERSION @@ -1 +1 @@ -6.3.0-SNAPSHOT \ No newline at end of file +5.3.0-SNAPSHOT \ No newline at end of file diff --git a/samples/client/others/typescript/builds/with-unique-items/README.md b/samples/client/others/typescript/builds/with-unique-items/README.md index 55d394653b9..c17de4ef3e5 100644 --- a/samples/client/others/typescript/builds/with-unique-items/README.md +++ b/samples/client/others/typescript/builds/with-unique-items/README.md @@ -16,7 +16,7 @@ First build the package then run ```npm publish``` ### Consuming -navigate to the folder of your consuming project and run one of the following commands. +Navigate to the folder of your consuming project and run one of the following commands. _published:_ @@ -28,3 +28,52 @@ _unPublished (not recommended):_ ``` npm install PATH_TO_GENERATED_PACKAGE --save + +### Usage + +Below code snippet shows exemplary usage of the configuration and the API based +on the typical `PetStore` example used for OpenAPI. + +``` +import * as your_api from 'your_api_package' + +// Covers all auth methods included in your OpenAPI yaml definition +const authConfig: your_api.AuthMethodsConfiguration = { + "api_key": "YOUR_API_KEY" +} + +// Implements a simple middleware to modify requests before (`pre`) they are sent +// and after (`post`) they have been received +class Test implements your_api.Middleware { + pre(context: your_api.RequestContext): Promise { + // Modify context here and return + return Promise.resolve(context); + } + + post(context: your_api.ResponseContext): Promise { + return Promise.resolve(context); + } + +} + +// Create configuration parameter object +const configurationParameters = { + httpApi: new your_api.JQueryHttpLibrary(), // Can also be ignored - default is usually fine + baseServer: your_api.servers[0], // First server is default + authMethods: authConfig, // No auth is default + promiseMiddleware: [new Test()], +} + +// Convert to actual configuration +const config = your_api.createConfiguration(configurationParameters); + +// Use configuration with your_api +const api = new your_api.PetApi(config); +your_api.Pet p = new your_api.Pet(); +p.name = "My new pet"; +p.photoUrls = []; +p.tags = []; +p.status = "available"; +Promise createdPet = api.addPet(p); + +``` \ No newline at end of file diff --git a/samples/client/others/typescript/builds/with-unique-items/apis/DefaultApi.ts b/samples/client/others/typescript/builds/with-unique-items/apis/DefaultApi.ts index 537b79f0789..233dca894f2 100644 --- a/samples/client/others/typescript/builds/with-unique-items/apis/DefaultApi.ts +++ b/samples/client/others/typescript/builds/with-unique-items/apis/DefaultApi.ts @@ -8,7 +8,7 @@ import {canConsumeForm, isCodeInRange} from '../util'; import {SecurityAuthentication} from '../auth/auth'; -import { Response } from '../models/Response'; +import { Response } from '/models/Response'; /** * no description diff --git a/samples/client/others/typescript/builds/with-unique-items/configuration.ts b/samples/client/others/typescript/builds/with-unique-items/configuration.ts index b78d85972a4..7acb56e6647 100644 --- a/samples/client/others/typescript/builds/with-unique-items/configuration.ts +++ b/samples/client/others/typescript/builds/with-unique-items/configuration.ts @@ -17,29 +17,45 @@ export interface Configuration { */ export interface ConfigurationParameters { /** - * Default server to use + * Default server to use - a list of available servers (according to the + * OpenAPI yaml definition) is included in the `servers` const in `./servers`. You can also + * create your own server with the `ServerConfiguration` class from the same + * file. */ baseServer?: BaseServerConfiguration; /** - * HTTP library to use e.g. IsomorphicFetch + * HTTP library to use e.g. IsomorphicFetch. This can usually be skipped as + * all generators come with a default library. + * If available, additional libraries can be imported from `./http/*` */ httpApi?: HttpLibrary; + /** - * The middlewares which will be applied to requests and responses + * The middlewares which will be applied to requests and responses. You can + * add any number of middleware components to modify requests before they + * are sent or before they are deserialized by implementing the `Middleware` + * interface defined in `./middleware` */ middleware?: Middleware[]; /** - * Configures all middlewares using the promise api instead of observables (which Middleware uses) + * Configures middleware functions that return promises instead of + * Observables (which are used by `middleware`). Otherwise allows for the + * same functionality as `middleware`, i.e., modifying requests before they + * are sent and before they are deserialized. */ promiseMiddleware?: PromiseMiddleware[]; /** - * Configuration for the available authentication methods + * Configuration for the available authentication methods (e.g., api keys) + * according to the OpenAPI yaml definition. For the definition, please refer to + * `./auth/auth` */ authMethods?: AuthMethodsConfiguration } /** - * Configuration factory function + * Provide your `ConfigurationParameters` to this function to get a `Configuration` + * object that can be used to configure your APIs (in the constructor or + * for each request individually). * * If a property is not included in conf, a default is used: * - baseServer: server1 diff --git a/samples/client/others/typescript/builds/with-unique-items/models/ObjectSerializer.ts b/samples/client/others/typescript/builds/with-unique-items/models/ObjectSerializer.ts index b833844acc1..34037a42274 100644 --- a/samples/client/others/typescript/builds/with-unique-items/models/ObjectSerializer.ts +++ b/samples/client/others/typescript/builds/with-unique-items/models/ObjectSerializer.ts @@ -1,6 +1,6 @@ -export * from '../models/Response'; +export * from '.models.Response'; -import { Response } from '../models/Response'; +import { Response } from '.models.Response'; /* tslint:disable:no-unused-variable */ let primitives = [ diff --git a/samples/client/others/typescript/builds/with-unique-items/models/Response.ts b/samples/client/others/typescript/builds/with-unique-items/models/Response.ts index 6a53fbd9f9d..9fc3feffd9b 100644 --- a/samples/client/others/typescript/builds/with-unique-items/models/Response.ts +++ b/samples/client/others/typescript/builds/with-unique-items/models/Response.ts @@ -10,6 +10,7 @@ * Do not edit the class manually. */ +import { Set } from 'Set'; import { HttpFile } from '../http/http'; export class Response { diff --git a/samples/client/others/typescript/builds/with-unique-items/models/all.ts b/samples/client/others/typescript/builds/with-unique-items/models/all.ts index fb6a6246f9a..1d494936899 100644 --- a/samples/client/others/typescript/builds/with-unique-items/models/all.ts +++ b/samples/client/others/typescript/builds/with-unique-items/models/all.ts @@ -1 +1 @@ -export * from '../models/Response' +export * from '.models.Response' diff --git a/samples/client/others/typescript/builds/with-unique-items/servers.ts b/samples/client/others/typescript/builds/with-unique-items/servers.ts index 9a2af09e84f..5975a0c5b32 100644 --- a/samples/client/others/typescript/builds/with-unique-items/servers.ts +++ b/samples/client/others/typescript/builds/with-unique-items/servers.ts @@ -14,9 +14,11 @@ export class ServerConfiguration implements public constructor(private url: string, private variableConfiguration: T) {} /** - * Sets the value of the variables of this server. + * Sets the value of the variables of this server. Variables are included in + * the `url` of this ServerConfiguration in the form `{variableName}` * - * @param variableConfiguration a partial variable configuration for the variables contained in the url + * @param variableConfiguration a partial variable configuration for the + * variables contained in the url */ public setVariables(variableConfiguration: Partial) { Object.assign(this.variableConfiguration, variableConfiguration); diff --git a/samples/client/others/typescript/builds/with-unique-items/types/ObjectParamAPI.ts b/samples/client/others/typescript/builds/with-unique-items/types/ObjectParamAPI.ts index fa8ba7a0a9b..fedb1e9e176 100644 --- a/samples/client/others/typescript/builds/with-unique-items/types/ObjectParamAPI.ts +++ b/samples/client/others/typescript/builds/with-unique-items/types/ObjectParamAPI.ts @@ -1,7 +1,7 @@ import { ResponseContext, RequestContext, HttpFile } from '../http/http'; import { Configuration} from '../configuration' -import { Response } from '../models/Response'; +import { Response } from '.models.Response'; import { ObservableDefaultApi } from "./ObservableAPI"; import { DefaultApiRequestFactory, DefaultApiResponseProcessor} from "../apis/DefaultApi"; diff --git a/samples/client/others/typescript/builds/with-unique-items/types/ObservableAPI.ts b/samples/client/others/typescript/builds/with-unique-items/types/ObservableAPI.ts index 683cd89061d..755727493b2 100644 --- a/samples/client/others/typescript/builds/with-unique-items/types/ObservableAPI.ts +++ b/samples/client/others/typescript/builds/with-unique-items/types/ObservableAPI.ts @@ -2,7 +2,7 @@ import { ResponseContext, RequestContext, HttpFile } from '../http/http'; import { Configuration} from '../configuration' import { Observable, of, from } from '../rxjsStub'; import {mergeMap, map} from '../rxjsStub'; -import { Response } from '../models/Response'; +import { Response } from '.models.Response'; import { DefaultApiRequestFactory, DefaultApiResponseProcessor} from "../apis/DefaultApi"; export class ObservableDefaultApi { diff --git a/samples/client/others/typescript/builds/with-unique-items/types/PromiseAPI.ts b/samples/client/others/typescript/builds/with-unique-items/types/PromiseAPI.ts index d0e502467ec..62c0282e303 100644 --- a/samples/client/others/typescript/builds/with-unique-items/types/PromiseAPI.ts +++ b/samples/client/others/typescript/builds/with-unique-items/types/PromiseAPI.ts @@ -1,7 +1,7 @@ import { ResponseContext, RequestContext, HttpFile } from '../http/http'; import { Configuration} from '../configuration' -import { Response } from '../models/Response'; +import { Response } from '.models.Response'; import { ObservableDefaultApi } from './ObservableAPI'; import { DefaultApiRequestFactory, DefaultApiResponseProcessor} from "../apis/DefaultApi"; diff --git a/samples/openapi3/client/petstore/typescript/builds/browser/.openapi-generator/VERSION b/samples/openapi3/client/petstore/typescript/builds/browser/.openapi-generator/VERSION index d6b4ec4aa78..4b448de535c 100644 --- a/samples/openapi3/client/petstore/typescript/builds/browser/.openapi-generator/VERSION +++ b/samples/openapi3/client/petstore/typescript/builds/browser/.openapi-generator/VERSION @@ -1 +1 @@ -6.3.0-SNAPSHOT \ No newline at end of file +5.3.0-SNAPSHOT \ No newline at end of file diff --git a/samples/openapi3/client/petstore/typescript/builds/browser/PetApi.md b/samples/openapi3/client/petstore/typescript/builds/browser/PetApi.md index 2aac946907b..2fe727d84fa 100644 --- a/samples/openapi3/client/petstore/typescript/builds/browser/PetApi.md +++ b/samples/openapi3/client/petstore/typescript/builds/browser/PetApi.md @@ -18,7 +18,6 @@ Method | HTTP request | Description > Pet addPet(pet) - ### Example @@ -90,7 +89,6 @@ Name | Type | Description | Notes > deletePet() - ### Example @@ -317,7 +315,6 @@ Name | Type | Description | Notes > Pet updatePet(pet) - ### Example @@ -391,7 +388,6 @@ Name | Type | Description | Notes > updatePetWithForm() - ### Example @@ -451,7 +447,6 @@ void (empty response body) > ApiResponse uploadFile() - ### Example diff --git a/samples/openapi3/client/petstore/typescript/builds/browser/README.md b/samples/openapi3/client/petstore/typescript/builds/browser/README.md index 24e614547f6..43a5d42634c 100644 --- a/samples/openapi3/client/petstore/typescript/builds/browser/README.md +++ b/samples/openapi3/client/petstore/typescript/builds/browser/README.md @@ -16,7 +16,7 @@ First build the package then run ```npm publish``` ### Consuming -navigate to the folder of your consuming project and run one of the following commands. +Navigate to the folder of your consuming project and run one of the following commands. _published:_ @@ -28,3 +28,52 @@ _unPublished (not recommended):_ ``` npm install PATH_TO_GENERATED_PACKAGE --save + +### Usage + +Below code snippet shows exemplary usage of the configuration and the API based +on the typical `PetStore` example used for OpenAPI. + +``` +import * as your_api from 'your_api_package' + +// Covers all auth methods included in your OpenAPI yaml definition +const authConfig: your_api.AuthMethodsConfiguration = { + "api_key": "YOUR_API_KEY" +} + +// Implements a simple middleware to modify requests before (`pre`) they are sent +// and after (`post`) they have been received +class Test implements your_api.Middleware { + pre(context: your_api.RequestContext): Promise { + // Modify context here and return + return Promise.resolve(context); + } + + post(context: your_api.ResponseContext): Promise { + return Promise.resolve(context); + } + +} + +// Create configuration parameter object +const configurationParameters = { + httpApi: new your_api.JQueryHttpLibrary(), // Can also be ignored - default is usually fine + baseServer: your_api.servers[0], // First server is default + authMethods: authConfig, // No auth is default + promiseMiddleware: [new Test()], +} + +// Convert to actual configuration +const config = your_api.createConfiguration(configurationParameters); + +// Use configuration with your_api +const api = new your_api.PetApi(config); +your_api.Pet p = new your_api.Pet(); +p.name = "My new pet"; +p.photoUrls = []; +p.tags = []; +p.status = "available"; +Promise createdPet = api.addPet(p); + +``` \ No newline at end of file diff --git a/samples/openapi3/client/petstore/typescript/builds/browser/StoreApi.md b/samples/openapi3/client/petstore/typescript/builds/browser/StoreApi.md index b7d89db061f..866f3c6ab97 100644 --- a/samples/openapi3/client/petstore/typescript/builds/browser/StoreApi.md +++ b/samples/openapi3/client/petstore/typescript/builds/browser/StoreApi.md @@ -173,7 +173,6 @@ No authorization required > Order placeOrder(order) - ### Example diff --git a/samples/openapi3/client/petstore/typescript/builds/browser/UserApi.md b/samples/openapi3/client/petstore/typescript/builds/browser/UserApi.md index c18f5d94896..3aa75a41422 100644 --- a/samples/openapi3/client/petstore/typescript/builds/browser/UserApi.md +++ b/samples/openapi3/client/petstore/typescript/builds/browser/UserApi.md @@ -81,7 +81,6 @@ void (empty response body) > createUsersWithArrayInput(user) - ### Example @@ -146,7 +145,6 @@ void (empty response body) > createUsersWithListInput(user) - ### Example @@ -266,7 +264,6 @@ void (empty response body) > User getUserByName() - ### Example @@ -322,7 +319,6 @@ No authorization required > string loginUser() - ### Example @@ -380,7 +376,6 @@ No authorization required > logoutUser() - ### Example diff --git a/samples/openapi3/client/petstore/typescript/builds/browser/apis/PetApi.ts b/samples/openapi3/client/petstore/typescript/builds/browser/apis/PetApi.ts index 514291812d2..f00c393797b 100644 --- a/samples/openapi3/client/petstore/typescript/builds/browser/apis/PetApi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/browser/apis/PetApi.ts @@ -8,8 +8,8 @@ import {canConsumeForm, isCodeInRange} from '../util'; import {SecurityAuthentication} from '../auth/auth'; -import { ApiResponse } from '../models/ApiResponse'; -import { Pet } from '../models/Pet'; +import { ApiResponse } from '/models/ApiResponse'; +import { Pet } from '/models/Pet'; /** * no description @@ -17,7 +17,6 @@ import { Pet } from '../models/Pet'; export class PetApiRequestFactory extends BaseAPIRequestFactory { /** - * * Add a new pet to the store * @param pet Pet object that needs to be added to the store */ @@ -67,7 +66,6 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { } /** - * * Deletes a pet * @param petId Pet id to delete * @param apiKey @@ -232,7 +230,6 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { } /** - * * Update an existing pet * @param pet Pet object that needs to be added to the store */ @@ -282,7 +279,6 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { } /** - * * Updates a pet in the store with form data * @param petId ID of pet that needs to be updated * @param name Updated name of the pet @@ -353,7 +349,6 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { } /** - * * uploads an image * @param petId ID of pet to update * @param additionalMetadata Additional data to pass to server diff --git a/samples/openapi3/client/petstore/typescript/builds/browser/apis/StoreApi.ts b/samples/openapi3/client/petstore/typescript/builds/browser/apis/StoreApi.ts index 31cf3aa1f55..9f8ed0298c5 100644 --- a/samples/openapi3/client/petstore/typescript/builds/browser/apis/StoreApi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/browser/apis/StoreApi.ts @@ -8,7 +8,7 @@ import {canConsumeForm, isCodeInRange} from '../util'; import {SecurityAuthentication} from '../auth/auth'; -import { Order } from '../models/Order'; +import { Order } from '/models/Order'; /** * no description @@ -110,7 +110,6 @@ export class StoreApiRequestFactory extends BaseAPIRequestFactory { } /** - * * Place an order for a pet * @param order order placed for purchasing the pet */ diff --git a/samples/openapi3/client/petstore/typescript/builds/browser/apis/UserApi.ts b/samples/openapi3/client/petstore/typescript/builds/browser/apis/UserApi.ts index 0331c7117d5..f014335f199 100644 --- a/samples/openapi3/client/petstore/typescript/builds/browser/apis/UserApi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/browser/apis/UserApi.ts @@ -8,7 +8,7 @@ import {canConsumeForm, isCodeInRange} from '../util'; import {SecurityAuthentication} from '../auth/auth'; -import { User } from '../models/User'; +import { User } from '/models/User'; /** * no description @@ -64,7 +64,6 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory { } /** - * * Creates list of users with given input array * @param user List of user object */ @@ -112,7 +111,6 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory { } /** - * * Creates list of users with given input array * @param user List of user object */ @@ -198,7 +196,6 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory { } /** - * * Get user by user name * @param username The name that needs to be fetched. Use user1 for testing. */ @@ -230,7 +227,6 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory { } /** - * * Logs user into the system * @param username The user name for login * @param password The password for login in clear text @@ -278,7 +274,6 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory { } /** - * * Logs out current logged in user session */ public async logoutUser(_options?: Configuration): Promise { diff --git a/samples/openapi3/client/petstore/typescript/builds/browser/configuration.ts b/samples/openapi3/client/petstore/typescript/builds/browser/configuration.ts index b78d85972a4..7acb56e6647 100644 --- a/samples/openapi3/client/petstore/typescript/builds/browser/configuration.ts +++ b/samples/openapi3/client/petstore/typescript/builds/browser/configuration.ts @@ -17,29 +17,45 @@ export interface Configuration { */ export interface ConfigurationParameters { /** - * Default server to use + * Default server to use - a list of available servers (according to the + * OpenAPI yaml definition) is included in the `servers` const in `./servers`. You can also + * create your own server with the `ServerConfiguration` class from the same + * file. */ baseServer?: BaseServerConfiguration; /** - * HTTP library to use e.g. IsomorphicFetch + * HTTP library to use e.g. IsomorphicFetch. This can usually be skipped as + * all generators come with a default library. + * If available, additional libraries can be imported from `./http/*` */ httpApi?: HttpLibrary; + /** - * The middlewares which will be applied to requests and responses + * The middlewares which will be applied to requests and responses. You can + * add any number of middleware components to modify requests before they + * are sent or before they are deserialized by implementing the `Middleware` + * interface defined in `./middleware` */ middleware?: Middleware[]; /** - * Configures all middlewares using the promise api instead of observables (which Middleware uses) + * Configures middleware functions that return promises instead of + * Observables (which are used by `middleware`). Otherwise allows for the + * same functionality as `middleware`, i.e., modifying requests before they + * are sent and before they are deserialized. */ promiseMiddleware?: PromiseMiddleware[]; /** - * Configuration for the available authentication methods + * Configuration for the available authentication methods (e.g., api keys) + * according to the OpenAPI yaml definition. For the definition, please refer to + * `./auth/auth` */ authMethods?: AuthMethodsConfiguration } /** - * Configuration factory function + * Provide your `ConfigurationParameters` to this function to get a `Configuration` + * object that can be used to configure your APIs (in the constructor or + * for each request individually). * * If a property is not included in conf, a default is used: * - baseServer: server1 diff --git a/samples/openapi3/client/petstore/typescript/builds/browser/models/ObjectSerializer.ts b/samples/openapi3/client/petstore/typescript/builds/browser/models/ObjectSerializer.ts index a5f5708b12c..28b6b13fd3e 100644 --- a/samples/openapi3/client/petstore/typescript/builds/browser/models/ObjectSerializer.ts +++ b/samples/openapi3/client/petstore/typescript/builds/browser/models/ObjectSerializer.ts @@ -1,16 +1,16 @@ -export * from '../models/ApiResponse'; -export * from '../models/Category'; -export * from '../models/Order'; -export * from '../models/Pet'; -export * from '../models/Tag'; -export * from '../models/User'; +export * from '.models.ApiResponse'; +export * from '.models.Category'; +export * from '.models.Order'; +export * from '.models.Pet'; +export * from '.models.Tag'; +export * from '.models.User'; -import { ApiResponse } from '../models/ApiResponse'; -import { Category } from '../models/Category'; -import { Order , OrderStatusEnum } from '../models/Order'; -import { Pet , PetStatusEnum } from '../models/Pet'; -import { Tag } from '../models/Tag'; -import { User } from '../models/User'; +import { ApiResponse } from '.models.ApiResponse'; +import { Category } from '.models.Category'; +import { Order , OrderStatusEnum } from '.models.Order'; +import { Pet , PetStatusEnum } from '.models.Pet'; +import { Tag } from '.models.Tag'; +import { User } from '.models.User'; /* tslint:disable:no-unused-variable */ let primitives = [ diff --git a/samples/openapi3/client/petstore/typescript/builds/browser/models/Pet.ts b/samples/openapi3/client/petstore/typescript/builds/browser/models/Pet.ts index b3a7ddb9f71..414f1be4944 100644 --- a/samples/openapi3/client/petstore/typescript/builds/browser/models/Pet.ts +++ b/samples/openapi3/client/petstore/typescript/builds/browser/models/Pet.ts @@ -10,8 +10,8 @@ * Do not edit the class manually. */ -import { Category } from '../models/Category'; -import { Tag } from '../models/Tag'; +import { Category } from 'Category'; +import { Tag } from 'Tag'; import { HttpFile } from '../http/http'; /** diff --git a/samples/openapi3/client/petstore/typescript/builds/browser/models/all.ts b/samples/openapi3/client/petstore/typescript/builds/browser/models/all.ts index d63b43c9674..e0118328c0f 100644 --- a/samples/openapi3/client/petstore/typescript/builds/browser/models/all.ts +++ b/samples/openapi3/client/petstore/typescript/builds/browser/models/all.ts @@ -1,6 +1,6 @@ -export * from '../models/ApiResponse' -export * from '../models/Category' -export * from '../models/Order' -export * from '../models/Pet' -export * from '../models/Tag' -export * from '../models/User' +export * from '.models.ApiResponse' +export * from '.models.Category' +export * from '.models.Order' +export * from '.models.Pet' +export * from '.models.Tag' +export * from '.models.User' diff --git a/samples/openapi3/client/petstore/typescript/builds/browser/servers.ts b/samples/openapi3/client/petstore/typescript/builds/browser/servers.ts index ce34c8714c0..b6b3e111acb 100644 --- a/samples/openapi3/client/petstore/typescript/builds/browser/servers.ts +++ b/samples/openapi3/client/petstore/typescript/builds/browser/servers.ts @@ -14,9 +14,11 @@ export class ServerConfiguration implements public constructor(private url: string, private variableConfiguration: T) {} /** - * Sets the value of the variables of this server. + * Sets the value of the variables of this server. Variables are included in + * the `url` of this ServerConfiguration in the form `{variableName}` * - * @param variableConfiguration a partial variable configuration for the variables contained in the url + * @param variableConfiguration a partial variable configuration for the + * variables contained in the url */ public setVariables(variableConfiguration: Partial) { Object.assign(this.variableConfiguration, variableConfiguration); diff --git a/samples/openapi3/client/petstore/typescript/builds/browser/types/ObjectParamAPI.ts b/samples/openapi3/client/petstore/typescript/builds/browser/types/ObjectParamAPI.ts index 41dfaebdde1..22e5983c7f2 100644 --- a/samples/openapi3/client/petstore/typescript/builds/browser/types/ObjectParamAPI.ts +++ b/samples/openapi3/client/petstore/typescript/builds/browser/types/ObjectParamAPI.ts @@ -1,12 +1,12 @@ import { ResponseContext, RequestContext, HttpFile } from '../http/http'; import { Configuration} from '../configuration' -import { ApiResponse } from '../models/ApiResponse'; -import { Category } from '../models/Category'; -import { Order } from '../models/Order'; -import { Pet } from '../models/Pet'; -import { Tag } from '../models/Tag'; -import { User } from '../models/User'; +import { ApiResponse } from '.models.ApiResponse'; +import { Category } from '.models.Category'; +import { Order } from '.models.Order'; +import { Pet } from '.models.Pet'; +import { Tag } from '.models.Tag'; +import { User } from '.models.User'; import { ObservablePetApi } from "./ObservableAPI"; import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi"; @@ -121,7 +121,6 @@ export class ObjectPetApi { } /** - * * Add a new pet to the store * @param param the request object */ @@ -130,7 +129,6 @@ export class ObjectPetApi { } /** - * * Deletes a pet * @param param the request object */ @@ -166,7 +164,6 @@ export class ObjectPetApi { } /** - * * Update an existing pet * @param param the request object */ @@ -175,7 +172,6 @@ export class ObjectPetApi { } /** - * * Updates a pet in the store with form data * @param param the request object */ @@ -184,7 +180,6 @@ export class ObjectPetApi { } /** - * * uploads an image * @param param the request object */ @@ -262,7 +257,6 @@ export class ObjectStoreApi { } /** - * * Place an order for a pet * @param param the request object */ @@ -370,7 +364,6 @@ export class ObjectUserApi { } /** - * * Creates list of users with given input array * @param param the request object */ @@ -379,7 +372,6 @@ export class ObjectUserApi { } /** - * * Creates list of users with given input array * @param param the request object */ @@ -397,7 +389,6 @@ export class ObjectUserApi { } /** - * * Get user by user name * @param param the request object */ @@ -406,7 +397,6 @@ export class ObjectUserApi { } /** - * * Logs user into the system * @param param the request object */ @@ -415,7 +405,6 @@ export class ObjectUserApi { } /** - * * Logs out current logged in user session * @param param the request object */ diff --git a/samples/openapi3/client/petstore/typescript/builds/browser/types/ObservableAPI.ts b/samples/openapi3/client/petstore/typescript/builds/browser/types/ObservableAPI.ts index 5e9397ea69f..5187367bc6c 100644 --- a/samples/openapi3/client/petstore/typescript/builds/browser/types/ObservableAPI.ts +++ b/samples/openapi3/client/petstore/typescript/builds/browser/types/ObservableAPI.ts @@ -2,12 +2,12 @@ import { ResponseContext, RequestContext, HttpFile } from '../http/http'; import { Configuration} from '../configuration' import { Observable, of, from } from '../rxjsStub'; import {mergeMap, map} from '../rxjsStub'; -import { ApiResponse } from '../models/ApiResponse'; -import { Category } from '../models/Category'; -import { Order } from '../models/Order'; -import { Pet } from '../models/Pet'; -import { Tag } from '../models/Tag'; -import { User } from '../models/User'; +import { ApiResponse } from '.models.ApiResponse'; +import { Category } from '.models.Category'; +import { Order } from '.models.Order'; +import { Pet } from '.models.Pet'; +import { Tag } from '.models.Tag'; +import { User } from '.models.User'; import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi"; export class ObservablePetApi { @@ -26,7 +26,6 @@ export class ObservablePetApi { } /** - * * Add a new pet to the store * @param pet Pet object that needs to be added to the store */ @@ -50,7 +49,6 @@ export class ObservablePetApi { } /** - * * Deletes a pet * @param petId Pet id to delete * @param apiKey @@ -147,7 +145,6 @@ export class ObservablePetApi { } /** - * * Update an existing pet * @param pet Pet object that needs to be added to the store */ @@ -171,7 +168,6 @@ export class ObservablePetApi { } /** - * * Updates a pet in the store with form data * @param petId ID of pet that needs to be updated * @param name Updated name of the pet @@ -197,7 +193,6 @@ export class ObservablePetApi { } /** - * * uploads an image * @param petId ID of pet to update * @param additionalMetadata Additional data to pass to server @@ -312,7 +307,6 @@ export class ObservableStoreApi { } /** - * * Place an order for a pet * @param order order placed for purchasing the pet */ @@ -378,7 +372,6 @@ export class ObservableUserApi { } /** - * * Creates list of users with given input array * @param user List of user object */ @@ -402,7 +395,6 @@ export class ObservableUserApi { } /** - * * Creates list of users with given input array * @param user List of user object */ @@ -450,7 +442,6 @@ export class ObservableUserApi { } /** - * * Get user by user name * @param username The name that needs to be fetched. Use user1 for testing. */ @@ -474,7 +465,6 @@ export class ObservableUserApi { } /** - * * Logs user into the system * @param username The user name for login * @param password The password for login in clear text @@ -499,7 +489,6 @@ export class ObservableUserApi { } /** - * * Logs out current logged in user session */ public logoutUser(_options?: Configuration): Observable { diff --git a/samples/openapi3/client/petstore/typescript/builds/browser/types/PromiseAPI.ts b/samples/openapi3/client/petstore/typescript/builds/browser/types/PromiseAPI.ts index c86ac4a84f3..423866f336c 100644 --- a/samples/openapi3/client/petstore/typescript/builds/browser/types/PromiseAPI.ts +++ b/samples/openapi3/client/petstore/typescript/builds/browser/types/PromiseAPI.ts @@ -1,12 +1,12 @@ import { ResponseContext, RequestContext, HttpFile } from '../http/http'; import { Configuration} from '../configuration' -import { ApiResponse } from '../models/ApiResponse'; -import { Category } from '../models/Category'; -import { Order } from '../models/Order'; -import { Pet } from '../models/Pet'; -import { Tag } from '../models/Tag'; -import { User } from '../models/User'; +import { ApiResponse } from '.models.ApiResponse'; +import { Category } from '.models.Category'; +import { Order } from '.models.Order'; +import { Pet } from '.models.Pet'; +import { Tag } from '.models.Tag'; +import { User } from '.models.User'; import { ObservablePetApi } from './ObservableAPI'; import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi"; @@ -22,7 +22,6 @@ export class PromisePetApi { } /** - * * Add a new pet to the store * @param pet Pet object that needs to be added to the store */ @@ -32,7 +31,6 @@ export class PromisePetApi { } /** - * * Deletes a pet * @param petId Pet id to delete * @param apiKey @@ -73,7 +71,6 @@ export class PromisePetApi { } /** - * * Update an existing pet * @param pet Pet object that needs to be added to the store */ @@ -83,7 +80,6 @@ export class PromisePetApi { } /** - * * Updates a pet in the store with form data * @param petId ID of pet that needs to be updated * @param name Updated name of the pet @@ -95,7 +91,6 @@ export class PromisePetApi { } /** - * * uploads an image * @param petId ID of pet to update * @param additionalMetadata Additional data to pass to server @@ -155,7 +150,6 @@ export class PromiseStoreApi { } /** - * * Place an order for a pet * @param order order placed for purchasing the pet */ @@ -194,7 +188,6 @@ export class PromiseUserApi { } /** - * * Creates list of users with given input array * @param user List of user object */ @@ -204,7 +197,6 @@ export class PromiseUserApi { } /** - * * Creates list of users with given input array * @param user List of user object */ @@ -224,7 +216,6 @@ export class PromiseUserApi { } /** - * * Get user by user name * @param username The name that needs to be fetched. Use user1 for testing. */ @@ -234,7 +225,6 @@ export class PromiseUserApi { } /** - * * Logs user into the system * @param username The user name for login * @param password The password for login in clear text @@ -245,7 +235,6 @@ export class PromiseUserApi { } /** - * * Logs out current logged in user session */ public logoutUser(_options?: Configuration): Promise { diff --git a/samples/openapi3/client/petstore/typescript/builds/composed-schemas/.openapi-generator/FILES b/samples/openapi3/client/petstore/typescript/builds/composed-schemas/.openapi-generator/FILES index a6a0ffe5e87..94616002ccf 100644 --- a/samples/openapi3/client/petstore/typescript/builds/composed-schemas/.openapi-generator/FILES +++ b/samples/openapi3/client/petstore/typescript/builds/composed-schemas/.openapi-generator/FILES @@ -15,12 +15,10 @@ models/Cat.ts models/CatAllOf.ts models/Dog.ts models/DogAllOf.ts -models/FilePostRequest.ts +models/InlineObject.ts models/ObjectSerializer.ts models/PetByAge.ts models/PetByType.ts -models/PetsFilteredPatchRequest.ts -models/PetsPatchRequest.ts models/all.ts package.json rxjsStub.ts diff --git a/samples/openapi3/client/petstore/typescript/builds/composed-schemas/.openapi-generator/VERSION b/samples/openapi3/client/petstore/typescript/builds/composed-schemas/.openapi-generator/VERSION index d6b4ec4aa78..4b448de535c 100644 --- a/samples/openapi3/client/petstore/typescript/builds/composed-schemas/.openapi-generator/VERSION +++ b/samples/openapi3/client/petstore/typescript/builds/composed-schemas/.openapi-generator/VERSION @@ -1 +1 @@ -6.3.0-SNAPSHOT \ No newline at end of file +5.3.0-SNAPSHOT \ No newline at end of file diff --git a/samples/openapi3/client/petstore/typescript/builds/composed-schemas/DefaultApi.md b/samples/openapi3/client/petstore/typescript/builds/composed-schemas/DefaultApi.md index 21992b8771f..a9df332ad47 100644 --- a/samples/openapi3/client/petstore/typescript/builds/composed-schemas/DefaultApi.md +++ b/samples/openapi3/client/petstore/typescript/builds/composed-schemas/DefaultApi.md @@ -24,9 +24,9 @@ const configuration = .createConfiguration(); const apiInstance = new .DefaultApi(configuration); let body:.DefaultApiFilePostRequest = { - // FilePostRequest (optional) - filePostRequest: { - file: null, + // InlineObject (optional) + inlineObject: { + file: , }, }; @@ -40,7 +40,7 @@ apiInstance.filePost(body).then((data:any) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **filePostRequest** | **FilePostRequest**| | + **inlineObject** | **InlineObject**| | ### Return type @@ -79,8 +79,8 @@ const configuration = .createConfiguration(); const apiInstance = new .DefaultApi(configuration); let body:.DefaultApiPetsFilteredPatchRequest = { - // PetsFilteredPatchRequest (optional) - petsFilteredPatchRequest: null, + // PetByAge | PetByType (optional) + petByAgePetByType: , }; apiInstance.petsFilteredPatch(body).then((data:any) => { @@ -93,7 +93,7 @@ apiInstance.petsFilteredPatch(body).then((data:any) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **petsFilteredPatchRequest** | **PetsFilteredPatchRequest**| | + **petByAgePetByType** | **PetByAge | PetByType**| | ### Return type @@ -132,8 +132,8 @@ const configuration = .createConfiguration(); const apiInstance = new .DefaultApi(configuration); let body:.DefaultApiPetsPatchRequest = { - // PetsPatchRequest (optional) - petsPatchRequest: null, + // Cat | Dog (optional) + catDog: , }; apiInstance.petsPatch(body).then((data:any) => { @@ -146,7 +146,7 @@ apiInstance.petsPatch(body).then((data:any) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **petsPatchRequest** | **PetsPatchRequest**| | + **catDog** | **Cat | Dog**| | ### Return type diff --git a/samples/openapi3/client/petstore/typescript/builds/composed-schemas/apis/DefaultApi.ts b/samples/openapi3/client/petstore/typescript/builds/composed-schemas/apis/DefaultApi.ts index 9f7c82dfb4a..718b2704717 100644 --- a/samples/openapi3/client/petstore/typescript/builds/composed-schemas/apis/DefaultApi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/composed-schemas/apis/DefaultApi.ts @@ -8,9 +8,11 @@ import {canConsumeForm, isCodeInRange} from '../util'; import {SecurityAuthentication} from '../auth/auth'; -import { FilePostRequest } from '../models/FilePostRequest'; -import { PetsFilteredPatchRequest } from '../models/PetsFilteredPatchRequest'; -import { PetsPatchRequest } from '../models/PetsPatchRequest'; +import { Cat } from '/models/Cat'; +import { Dog } from '/models/Dog'; +import { InlineObject } from '/models/InlineObject'; +import { PetByAge } from '/models/PetByAge'; +import { PetByType } from '/models/PetByType'; /** * no description @@ -18,9 +20,9 @@ import { PetsPatchRequest } from '../models/PetsPatchRequest'; export class DefaultApiRequestFactory extends BaseAPIRequestFactory { /** - * @param filePostRequest + * @param inlineObject */ - public async filePost(filePostRequest?: FilePostRequest, _options?: Configuration): Promise { + public async filePost(inlineObject?: InlineObject, _options?: Configuration): Promise { let _config = _options || this.configuration; @@ -38,7 +40,7 @@ export class DefaultApiRequestFactory extends BaseAPIRequestFactory { ]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(filePostRequest, "FilePostRequest", ""), + ObjectSerializer.serialize(inlineObject, "InlineObject", ""), contentType ); requestContext.setBody(serializedBody); @@ -53,9 +55,9 @@ export class DefaultApiRequestFactory extends BaseAPIRequestFactory { } /** - * @param petsFilteredPatchRequest + * @param petByAgePetByType */ - public async petsFilteredPatch(petsFilteredPatchRequest?: PetsFilteredPatchRequest, _options?: Configuration): Promise { + public async petsFilteredPatch(petByAgePetByType?: PetByAge | PetByType, _options?: Configuration): Promise { let _config = _options || this.configuration; @@ -73,7 +75,7 @@ export class DefaultApiRequestFactory extends BaseAPIRequestFactory { ]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(petsFilteredPatchRequest, "PetsFilteredPatchRequest", ""), + ObjectSerializer.serialize(petByAgePetByType, "PetByAge | PetByType", ""), contentType ); requestContext.setBody(serializedBody); @@ -88,9 +90,9 @@ export class DefaultApiRequestFactory extends BaseAPIRequestFactory { } /** - * @param petsPatchRequest + * @param catDog */ - public async petsPatch(petsPatchRequest?: PetsPatchRequest, _options?: Configuration): Promise { + public async petsPatch(catDog?: Cat | Dog, _options?: Configuration): Promise { let _config = _options || this.configuration; @@ -108,7 +110,7 @@ export class DefaultApiRequestFactory extends BaseAPIRequestFactory { ]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(petsPatchRequest, "PetsPatchRequest", ""), + ObjectSerializer.serialize(catDog, "Cat | Dog", ""), contentType ); requestContext.setBody(serializedBody); diff --git a/samples/openapi3/client/petstore/typescript/builds/composed-schemas/models/Cat.ts b/samples/openapi3/client/petstore/typescript/builds/composed-schemas/models/Cat.ts index 2790b653b55..c7feafbccb7 100644 --- a/samples/openapi3/client/petstore/typescript/builds/composed-schemas/models/Cat.ts +++ b/samples/openapi3/client/petstore/typescript/builds/composed-schemas/models/Cat.ts @@ -10,6 +10,7 @@ * Do not edit the class manually. */ +import { CatAllOf } from 'CatAllOf'; import { HttpFile } from '../http/http'; export class Cat { diff --git a/samples/openapi3/client/petstore/typescript/builds/composed-schemas/models/Dog.ts b/samples/openapi3/client/petstore/typescript/builds/composed-schemas/models/Dog.ts index dd2380572f6..ea1ed62647b 100644 --- a/samples/openapi3/client/petstore/typescript/builds/composed-schemas/models/Dog.ts +++ b/samples/openapi3/client/petstore/typescript/builds/composed-schemas/models/Dog.ts @@ -10,6 +10,7 @@ * Do not edit the class manually. */ +import { DogAllOf } from 'DogAllOf'; import { HttpFile } from '../http/http'; export class Dog { diff --git a/samples/openapi3/client/petstore/typescript/builds/composed-schemas/models/ObjectSerializer.ts b/samples/openapi3/client/petstore/typescript/builds/composed-schemas/models/ObjectSerializer.ts index 6317becfd98..265efbd162b 100644 --- a/samples/openapi3/client/petstore/typescript/builds/composed-schemas/models/ObjectSerializer.ts +++ b/samples/openapi3/client/petstore/typescript/builds/composed-schemas/models/ObjectSerializer.ts @@ -1,22 +1,18 @@ -export * from '../models/Cat'; -export * from '../models/CatAllOf'; -export * from '../models/Dog'; -export * from '../models/DogAllOf'; -export * from '../models/FilePostRequest'; -export * from '../models/PetByAge'; -export * from '../models/PetByType'; -export * from '../models/PetsFilteredPatchRequest'; -export * from '../models/PetsPatchRequest'; +export * from '.models.Cat'; +export * from '.models.CatAllOf'; +export * from '.models.Dog'; +export * from '.models.DogAllOf'; +export * from '.models.InlineObject'; +export * from '.models.PetByAge'; +export * from '.models.PetByType'; -import { Cat } from '../models/Cat'; -import { CatAllOf } from '../models/CatAllOf'; -import { Dog , DogBreedEnum } from '../models/Dog'; -import { DogAllOf , DogAllOfBreedEnum } from '../models/DogAllOf'; -import { FilePostRequest } from '../models/FilePostRequest'; -import { PetByAge } from '../models/PetByAge'; -import { PetByType, PetByTypePetTypeEnum } from '../models/PetByType'; -import { PetsFilteredPatchRequest , PetsFilteredPatchRequestPetTypeEnum } from '../models/PetsFilteredPatchRequest'; -import { PetsPatchRequest , PetsPatchRequestBreedEnum } from '../models/PetsPatchRequest'; +import { Cat } from '.models.Cat'; +import { CatAllOf } from '.models.CatAllOf'; +import { Dog , DogBreedEnum } from '.models.Dog'; +import { DogAllOf , DogAllOfBreedEnum } from '.models.DogAllOf'; +import { InlineObject } from '.models.InlineObject'; +import { PetByAge } from '.models.PetByAge'; +import { PetByType, PetByTypePetTypeEnum } from '.models.PetByType'; /* tslint:disable:no-unused-variable */ let primitives = [ @@ -41,8 +37,6 @@ let enumsMap: Set = new Set([ "DogBreedEnum", "DogAllOfBreedEnum", "PetByTypePetTypeEnum", - "PetsFilteredPatchRequestPetTypeEnum", - "PetsPatchRequestBreedEnum", ]); let typeMap: {[index: string]: any} = { @@ -50,11 +44,9 @@ let typeMap: {[index: string]: any} = { "CatAllOf": CatAllOf, "Dog": Dog, "DogAllOf": DogAllOf, - "FilePostRequest": FilePostRequest, + "InlineObject": InlineObject, "PetByAge": PetByAge, "PetByType": PetByType, - "PetsFilteredPatchRequest": PetsFilteredPatchRequest, - "PetsPatchRequest": PetsPatchRequest, } export class ObjectSerializer { diff --git a/samples/openapi3/client/petstore/typescript/builds/composed-schemas/models/all.ts b/samples/openapi3/client/petstore/typescript/builds/composed-schemas/models/all.ts index 029557b7a2a..b56506baf14 100644 --- a/samples/openapi3/client/petstore/typescript/builds/composed-schemas/models/all.ts +++ b/samples/openapi3/client/petstore/typescript/builds/composed-schemas/models/all.ts @@ -1,9 +1,7 @@ -export * from '../models/Cat' -export * from '../models/CatAllOf' -export * from '../models/Dog' -export * from '../models/DogAllOf' -export * from '../models/FilePostRequest' -export * from '../models/PetByAge' -export * from '../models/PetByType' -export * from '../models/PetsFilteredPatchRequest' -export * from '../models/PetsPatchRequest' +export * from '.models.Cat' +export * from '.models.CatAllOf' +export * from '.models.Dog' +export * from '.models.DogAllOf' +export * from '.models.InlineObject' +export * from '.models.PetByAge' +export * from '.models.PetByType' diff --git a/samples/openapi3/client/petstore/typescript/builds/composed-schemas/types/ObjectParamAPI.ts b/samples/openapi3/client/petstore/typescript/builds/composed-schemas/types/ObjectParamAPI.ts index 073f6550336..2b37e03003a 100644 --- a/samples/openapi3/client/petstore/typescript/builds/composed-schemas/types/ObjectParamAPI.ts +++ b/samples/openapi3/client/petstore/typescript/builds/composed-schemas/types/ObjectParamAPI.ts @@ -1,15 +1,13 @@ import { ResponseContext, RequestContext, HttpFile } from '../http/http'; import { Configuration} from '../configuration' -import { Cat } from '../models/Cat'; -import { CatAllOf } from '../models/CatAllOf'; -import { Dog } from '../models/Dog'; -import { DogAllOf } from '../models/DogAllOf'; -import { FilePostRequest } from '../models/FilePostRequest'; -import { PetByAge } from '../models/PetByAge'; -import { PetByType } from '../models/PetByType'; -import { PetsFilteredPatchRequest } from '../models/PetsFilteredPatchRequest'; -import { PetsPatchRequest } from '../models/PetsPatchRequest'; +import { Cat } from '.models.Cat'; +import { CatAllOf } from '.models.CatAllOf'; +import { Dog } from '.models.Dog'; +import { DogAllOf } from '.models.DogAllOf'; +import { InlineObject } from '.models.InlineObject'; +import { PetByAge } from '.models.PetByAge'; +import { PetByType } from '.models.PetByType'; import { ObservableDefaultApi } from "./ObservableAPI"; import { DefaultApiRequestFactory, DefaultApiResponseProcessor} from "../apis/DefaultApi"; @@ -17,28 +15,28 @@ import { DefaultApiRequestFactory, DefaultApiResponseProcessor} from "../apis/De export interface DefaultApiFilePostRequest { /** * - * @type FilePostRequest + * @type InlineObject * @memberof DefaultApifilePost */ - filePostRequest?: FilePostRequest + inlineObject?: InlineObject } export interface DefaultApiPetsFilteredPatchRequest { /** * - * @type PetsFilteredPatchRequest + * @type PetByAge | PetByType * @memberof DefaultApipetsFilteredPatch */ - petsFilteredPatchRequest?: PetsFilteredPatchRequest + petByAgePetByType?: PetByAge | PetByType } export interface DefaultApiPetsPatchRequest { /** * - * @type PetsPatchRequest + * @type Cat | Dog * @memberof DefaultApipetsPatch */ - petsPatchRequest?: PetsPatchRequest + catDog?: Cat | Dog } export class ObjectDefaultApi { @@ -52,21 +50,21 @@ export class ObjectDefaultApi { * @param param the request object */ public filePost(param: DefaultApiFilePostRequest = {}, options?: Configuration): Promise { - return this.api.filePost(param.filePostRequest, options).toPromise(); + return this.api.filePost(param.inlineObject, options).toPromise(); } /** * @param param the request object */ public petsFilteredPatch(param: DefaultApiPetsFilteredPatchRequest = {}, options?: Configuration): Promise { - return this.api.petsFilteredPatch(param.petsFilteredPatchRequest, options).toPromise(); + return this.api.petsFilteredPatch(param.petByAgePetByType, options).toPromise(); } /** * @param param the request object */ public petsPatch(param: DefaultApiPetsPatchRequest = {}, options?: Configuration): Promise { - return this.api.petsPatch(param.petsPatchRequest, options).toPromise(); + return this.api.petsPatch(param.catDog, options).toPromise(); } } diff --git a/samples/openapi3/client/petstore/typescript/builds/composed-schemas/types/ObservableAPI.ts b/samples/openapi3/client/petstore/typescript/builds/composed-schemas/types/ObservableAPI.ts index 52b5367f4b7..9c62b297c49 100644 --- a/samples/openapi3/client/petstore/typescript/builds/composed-schemas/types/ObservableAPI.ts +++ b/samples/openapi3/client/petstore/typescript/builds/composed-schemas/types/ObservableAPI.ts @@ -2,15 +2,13 @@ import { ResponseContext, RequestContext, HttpFile } from '../http/http'; import { Configuration} from '../configuration' import { Observable, of, from } from '../rxjsStub'; import {mergeMap, map} from '../rxjsStub'; -import { Cat } from '../models/Cat'; -import { CatAllOf } from '../models/CatAllOf'; -import { Dog } from '../models/Dog'; -import { DogAllOf } from '../models/DogAllOf'; -import { FilePostRequest } from '../models/FilePostRequest'; -import { PetByAge } from '../models/PetByAge'; -import { PetByType } from '../models/PetByType'; -import { PetsFilteredPatchRequest } from '../models/PetsFilteredPatchRequest'; -import { PetsPatchRequest } from '../models/PetsPatchRequest'; +import { Cat } from '.models.Cat'; +import { CatAllOf } from '.models.CatAllOf'; +import { Dog } from '.models.Dog'; +import { DogAllOf } from '.models.DogAllOf'; +import { InlineObject } from '.models.InlineObject'; +import { PetByAge } from '.models.PetByAge'; +import { PetByType } from '.models.PetByType'; import { DefaultApiRequestFactory, DefaultApiResponseProcessor} from "../apis/DefaultApi"; export class ObservableDefaultApi { @@ -29,10 +27,10 @@ export class ObservableDefaultApi { } /** - * @param filePostRequest + * @param inlineObject */ - public filePost(filePostRequest?: FilePostRequest, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.filePost(filePostRequest, _options); + public filePost(inlineObject?: InlineObject, _options?: Configuration): Observable { + const requestContextPromise = this.requestFactory.filePost(inlineObject, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -51,10 +49,10 @@ export class ObservableDefaultApi { } /** - * @param petsFilteredPatchRequest + * @param petByAgePetByType */ - public petsFilteredPatch(petsFilteredPatchRequest?: PetsFilteredPatchRequest, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.petsFilteredPatch(petsFilteredPatchRequest, _options); + public petsFilteredPatch(petByAgePetByType?: PetByAge | PetByType, _options?: Configuration): Observable { + const requestContextPromise = this.requestFactory.petsFilteredPatch(petByAgePetByType, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -73,10 +71,10 @@ export class ObservableDefaultApi { } /** - * @param petsPatchRequest + * @param catDog */ - public petsPatch(petsPatchRequest?: PetsPatchRequest, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.petsPatch(petsPatchRequest, _options); + public petsPatch(catDog?: Cat | Dog, _options?: Configuration): Observable { + const requestContextPromise = this.requestFactory.petsPatch(catDog, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); diff --git a/samples/openapi3/client/petstore/typescript/builds/composed-schemas/types/PromiseAPI.ts b/samples/openapi3/client/petstore/typescript/builds/composed-schemas/types/PromiseAPI.ts index a42cc756888..a7ea6f257ec 100644 --- a/samples/openapi3/client/petstore/typescript/builds/composed-schemas/types/PromiseAPI.ts +++ b/samples/openapi3/client/petstore/typescript/builds/composed-schemas/types/PromiseAPI.ts @@ -1,15 +1,13 @@ import { ResponseContext, RequestContext, HttpFile } from '../http/http'; import { Configuration} from '../configuration' -import { Cat } from '../models/Cat'; -import { CatAllOf } from '../models/CatAllOf'; -import { Dog } from '../models/Dog'; -import { DogAllOf } from '../models/DogAllOf'; -import { FilePostRequest } from '../models/FilePostRequest'; -import { PetByAge } from '../models/PetByAge'; -import { PetByType } from '../models/PetByType'; -import { PetsFilteredPatchRequest } from '../models/PetsFilteredPatchRequest'; -import { PetsPatchRequest } from '../models/PetsPatchRequest'; +import { Cat } from '.models.Cat'; +import { CatAllOf } from '.models.CatAllOf'; +import { Dog } from '.models.Dog'; +import { DogAllOf } from '.models.DogAllOf'; +import { InlineObject } from '.models.InlineObject'; +import { PetByAge } from '.models.PetByAge'; +import { PetByType } from '.models.PetByType'; import { ObservableDefaultApi } from './ObservableAPI'; import { DefaultApiRequestFactory, DefaultApiResponseProcessor} from "../apis/DefaultApi"; @@ -25,26 +23,26 @@ export class PromiseDefaultApi { } /** - * @param filePostRequest + * @param inlineObject */ - public filePost(filePostRequest?: FilePostRequest, _options?: Configuration): Promise { - const result = this.api.filePost(filePostRequest, _options); + public filePost(inlineObject?: InlineObject, _options?: Configuration): Promise { + const result = this.api.filePost(inlineObject, _options); return result.toPromise(); } /** - * @param petsFilteredPatchRequest + * @param petByAgePetByType */ - public petsFilteredPatch(petsFilteredPatchRequest?: PetsFilteredPatchRequest, _options?: Configuration): Promise { - const result = this.api.petsFilteredPatch(petsFilteredPatchRequest, _options); + public petsFilteredPatch(petByAgePetByType?: PetByAge | PetByType, _options?: Configuration): Promise { + const result = this.api.petsFilteredPatch(petByAgePetByType, _options); return result.toPromise(); } /** - * @param petsPatchRequest + * @param catDog */ - public petsPatch(petsPatchRequest?: PetsPatchRequest, _options?: Configuration): Promise { - const result = this.api.petsPatch(petsPatchRequest, _options); + public petsPatch(catDog?: Cat | Dog, _options?: Configuration): Promise { + const result = this.api.petsPatch(catDog, _options); return result.toPromise(); } diff --git a/samples/openapi3/client/petstore/typescript/builds/default/.openapi-generator/VERSION b/samples/openapi3/client/petstore/typescript/builds/default/.openapi-generator/VERSION index d6b4ec4aa78..4b448de535c 100644 --- a/samples/openapi3/client/petstore/typescript/builds/default/.openapi-generator/VERSION +++ b/samples/openapi3/client/petstore/typescript/builds/default/.openapi-generator/VERSION @@ -1 +1 @@ -6.3.0-SNAPSHOT \ No newline at end of file +5.3.0-SNAPSHOT \ No newline at end of file diff --git a/samples/openapi3/client/petstore/typescript/builds/default/PetApi.md b/samples/openapi3/client/petstore/typescript/builds/default/PetApi.md index 2aac946907b..2fe727d84fa 100644 --- a/samples/openapi3/client/petstore/typescript/builds/default/PetApi.md +++ b/samples/openapi3/client/petstore/typescript/builds/default/PetApi.md @@ -18,7 +18,6 @@ Method | HTTP request | Description > Pet addPet(pet) - ### Example @@ -90,7 +89,6 @@ Name | Type | Description | Notes > deletePet() - ### Example @@ -317,7 +315,6 @@ Name | Type | Description | Notes > Pet updatePet(pet) - ### Example @@ -391,7 +388,6 @@ Name | Type | Description | Notes > updatePetWithForm() - ### Example @@ -451,7 +447,6 @@ void (empty response body) > ApiResponse uploadFile() - ### Example diff --git a/samples/openapi3/client/petstore/typescript/builds/default/StoreApi.md b/samples/openapi3/client/petstore/typescript/builds/default/StoreApi.md index b7d89db061f..866f3c6ab97 100644 --- a/samples/openapi3/client/petstore/typescript/builds/default/StoreApi.md +++ b/samples/openapi3/client/petstore/typescript/builds/default/StoreApi.md @@ -173,7 +173,6 @@ No authorization required > Order placeOrder(order) - ### Example diff --git a/samples/openapi3/client/petstore/typescript/builds/default/UserApi.md b/samples/openapi3/client/petstore/typescript/builds/default/UserApi.md index c18f5d94896..3aa75a41422 100644 --- a/samples/openapi3/client/petstore/typescript/builds/default/UserApi.md +++ b/samples/openapi3/client/petstore/typescript/builds/default/UserApi.md @@ -81,7 +81,6 @@ void (empty response body) > createUsersWithArrayInput(user) - ### Example @@ -146,7 +145,6 @@ void (empty response body) > createUsersWithListInput(user) - ### Example @@ -266,7 +264,6 @@ void (empty response body) > User getUserByName() - ### Example @@ -322,7 +319,6 @@ No authorization required > string loginUser() - ### Example @@ -380,7 +376,6 @@ No authorization required > logoutUser() - ### Example diff --git a/samples/openapi3/client/petstore/typescript/builds/default/apis/PetApi.ts b/samples/openapi3/client/petstore/typescript/builds/default/apis/PetApi.ts index 5b3d37fe35a..2d5ee33a5e9 100644 --- a/samples/openapi3/client/petstore/typescript/builds/default/apis/PetApi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/default/apis/PetApi.ts @@ -10,8 +10,8 @@ import {canConsumeForm, isCodeInRange} from '../util'; import {SecurityAuthentication} from '../auth/auth'; -import { ApiResponse } from '../models/ApiResponse'; -import { Pet } from '../models/Pet'; +import { ApiResponse } from '/models/ApiResponse'; +import { Pet } from '/models/Pet'; /** * no description @@ -19,7 +19,6 @@ import { Pet } from '../models/Pet'; export class PetApiRequestFactory extends BaseAPIRequestFactory { /** - * * Add a new pet to the store * @param pet Pet object that needs to be added to the store */ @@ -69,7 +68,6 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { } /** - * * Deletes a pet * @param petId Pet id to delete * @param apiKey @@ -234,7 +232,6 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { } /** - * * Update an existing pet * @param pet Pet object that needs to be added to the store */ @@ -284,7 +281,6 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { } /** - * * Updates a pet in the store with form data * @param petId ID of pet that needs to be updated * @param name Updated name of the pet @@ -355,7 +351,6 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { } /** - * * uploads an image * @param petId ID of pet to update * @param additionalMetadata Additional data to pass to server diff --git a/samples/openapi3/client/petstore/typescript/builds/default/apis/StoreApi.ts b/samples/openapi3/client/petstore/typescript/builds/default/apis/StoreApi.ts index 3bb0a2de754..7b597dcf926 100644 --- a/samples/openapi3/client/petstore/typescript/builds/default/apis/StoreApi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/default/apis/StoreApi.ts @@ -10,7 +10,7 @@ import {canConsumeForm, isCodeInRange} from '../util'; import {SecurityAuthentication} from '../auth/auth'; -import { Order } from '../models/Order'; +import { Order } from '/models/Order'; /** * no description @@ -112,7 +112,6 @@ export class StoreApiRequestFactory extends BaseAPIRequestFactory { } /** - * * Place an order for a pet * @param order order placed for purchasing the pet */ diff --git a/samples/openapi3/client/petstore/typescript/builds/default/apis/UserApi.ts b/samples/openapi3/client/petstore/typescript/builds/default/apis/UserApi.ts index 352b499b378..b44bed69aff 100644 --- a/samples/openapi3/client/petstore/typescript/builds/default/apis/UserApi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/default/apis/UserApi.ts @@ -10,7 +10,7 @@ import {canConsumeForm, isCodeInRange} from '../util'; import {SecurityAuthentication} from '../auth/auth'; -import { User } from '../models/User'; +import { User } from '/models/User'; /** * no description @@ -66,7 +66,6 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory { } /** - * * Creates list of users with given input array * @param user List of user object */ @@ -114,7 +113,6 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory { } /** - * * Creates list of users with given input array * @param user List of user object */ @@ -200,7 +198,6 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory { } /** - * * Get user by user name * @param username The name that needs to be fetched. Use user1 for testing. */ @@ -232,7 +229,6 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory { } /** - * * Logs user into the system * @param username The user name for login * @param password The password for login in clear text @@ -280,7 +276,6 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory { } /** - * * Logs out current logged in user session */ public async logoutUser(_options?: Configuration): Promise { diff --git a/samples/openapi3/client/petstore/typescript/builds/default/models/ObjectSerializer.ts b/samples/openapi3/client/petstore/typescript/builds/default/models/ObjectSerializer.ts index a5f5708b12c..28b6b13fd3e 100644 --- a/samples/openapi3/client/petstore/typescript/builds/default/models/ObjectSerializer.ts +++ b/samples/openapi3/client/petstore/typescript/builds/default/models/ObjectSerializer.ts @@ -1,16 +1,16 @@ -export * from '../models/ApiResponse'; -export * from '../models/Category'; -export * from '../models/Order'; -export * from '../models/Pet'; -export * from '../models/Tag'; -export * from '../models/User'; +export * from '.models.ApiResponse'; +export * from '.models.Category'; +export * from '.models.Order'; +export * from '.models.Pet'; +export * from '.models.Tag'; +export * from '.models.User'; -import { ApiResponse } from '../models/ApiResponse'; -import { Category } from '../models/Category'; -import { Order , OrderStatusEnum } from '../models/Order'; -import { Pet , PetStatusEnum } from '../models/Pet'; -import { Tag } from '../models/Tag'; -import { User } from '../models/User'; +import { ApiResponse } from '.models.ApiResponse'; +import { Category } from '.models.Category'; +import { Order , OrderStatusEnum } from '.models.Order'; +import { Pet , PetStatusEnum } from '.models.Pet'; +import { Tag } from '.models.Tag'; +import { User } from '.models.User'; /* tslint:disable:no-unused-variable */ let primitives = [ diff --git a/samples/openapi3/client/petstore/typescript/builds/default/models/Pet.ts b/samples/openapi3/client/petstore/typescript/builds/default/models/Pet.ts index b3a7ddb9f71..414f1be4944 100644 --- a/samples/openapi3/client/petstore/typescript/builds/default/models/Pet.ts +++ b/samples/openapi3/client/petstore/typescript/builds/default/models/Pet.ts @@ -10,8 +10,8 @@ * Do not edit the class manually. */ -import { Category } from '../models/Category'; -import { Tag } from '../models/Tag'; +import { Category } from 'Category'; +import { Tag } from 'Tag'; import { HttpFile } from '../http/http'; /** diff --git a/samples/openapi3/client/petstore/typescript/builds/default/models/all.ts b/samples/openapi3/client/petstore/typescript/builds/default/models/all.ts index d63b43c9674..e0118328c0f 100644 --- a/samples/openapi3/client/petstore/typescript/builds/default/models/all.ts +++ b/samples/openapi3/client/petstore/typescript/builds/default/models/all.ts @@ -1,6 +1,6 @@ -export * from '../models/ApiResponse' -export * from '../models/Category' -export * from '../models/Order' -export * from '../models/Pet' -export * from '../models/Tag' -export * from '../models/User' +export * from '.models.ApiResponse' +export * from '.models.Category' +export * from '.models.Order' +export * from '.models.Pet' +export * from '.models.Tag' +export * from '.models.User' diff --git a/samples/openapi3/client/petstore/typescript/builds/default/types/ObjectParamAPI.ts b/samples/openapi3/client/petstore/typescript/builds/default/types/ObjectParamAPI.ts index 41dfaebdde1..22e5983c7f2 100644 --- a/samples/openapi3/client/petstore/typescript/builds/default/types/ObjectParamAPI.ts +++ b/samples/openapi3/client/petstore/typescript/builds/default/types/ObjectParamAPI.ts @@ -1,12 +1,12 @@ import { ResponseContext, RequestContext, HttpFile } from '../http/http'; import { Configuration} from '../configuration' -import { ApiResponse } from '../models/ApiResponse'; -import { Category } from '../models/Category'; -import { Order } from '../models/Order'; -import { Pet } from '../models/Pet'; -import { Tag } from '../models/Tag'; -import { User } from '../models/User'; +import { ApiResponse } from '.models.ApiResponse'; +import { Category } from '.models.Category'; +import { Order } from '.models.Order'; +import { Pet } from '.models.Pet'; +import { Tag } from '.models.Tag'; +import { User } from '.models.User'; import { ObservablePetApi } from "./ObservableAPI"; import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi"; @@ -121,7 +121,6 @@ export class ObjectPetApi { } /** - * * Add a new pet to the store * @param param the request object */ @@ -130,7 +129,6 @@ export class ObjectPetApi { } /** - * * Deletes a pet * @param param the request object */ @@ -166,7 +164,6 @@ export class ObjectPetApi { } /** - * * Update an existing pet * @param param the request object */ @@ -175,7 +172,6 @@ export class ObjectPetApi { } /** - * * Updates a pet in the store with form data * @param param the request object */ @@ -184,7 +180,6 @@ export class ObjectPetApi { } /** - * * uploads an image * @param param the request object */ @@ -262,7 +257,6 @@ export class ObjectStoreApi { } /** - * * Place an order for a pet * @param param the request object */ @@ -370,7 +364,6 @@ export class ObjectUserApi { } /** - * * Creates list of users with given input array * @param param the request object */ @@ -379,7 +372,6 @@ export class ObjectUserApi { } /** - * * Creates list of users with given input array * @param param the request object */ @@ -397,7 +389,6 @@ export class ObjectUserApi { } /** - * * Get user by user name * @param param the request object */ @@ -406,7 +397,6 @@ export class ObjectUserApi { } /** - * * Logs user into the system * @param param the request object */ @@ -415,7 +405,6 @@ export class ObjectUserApi { } /** - * * Logs out current logged in user session * @param param the request object */ diff --git a/samples/openapi3/client/petstore/typescript/builds/default/types/ObservableAPI.ts b/samples/openapi3/client/petstore/typescript/builds/default/types/ObservableAPI.ts index 5e9397ea69f..5187367bc6c 100644 --- a/samples/openapi3/client/petstore/typescript/builds/default/types/ObservableAPI.ts +++ b/samples/openapi3/client/petstore/typescript/builds/default/types/ObservableAPI.ts @@ -2,12 +2,12 @@ import { ResponseContext, RequestContext, HttpFile } from '../http/http'; import { Configuration} from '../configuration' import { Observable, of, from } from '../rxjsStub'; import {mergeMap, map} from '../rxjsStub'; -import { ApiResponse } from '../models/ApiResponse'; -import { Category } from '../models/Category'; -import { Order } from '../models/Order'; -import { Pet } from '../models/Pet'; -import { Tag } from '../models/Tag'; -import { User } from '../models/User'; +import { ApiResponse } from '.models.ApiResponse'; +import { Category } from '.models.Category'; +import { Order } from '.models.Order'; +import { Pet } from '.models.Pet'; +import { Tag } from '.models.Tag'; +import { User } from '.models.User'; import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi"; export class ObservablePetApi { @@ -26,7 +26,6 @@ export class ObservablePetApi { } /** - * * Add a new pet to the store * @param pet Pet object that needs to be added to the store */ @@ -50,7 +49,6 @@ export class ObservablePetApi { } /** - * * Deletes a pet * @param petId Pet id to delete * @param apiKey @@ -147,7 +145,6 @@ export class ObservablePetApi { } /** - * * Update an existing pet * @param pet Pet object that needs to be added to the store */ @@ -171,7 +168,6 @@ export class ObservablePetApi { } /** - * * Updates a pet in the store with form data * @param petId ID of pet that needs to be updated * @param name Updated name of the pet @@ -197,7 +193,6 @@ export class ObservablePetApi { } /** - * * uploads an image * @param petId ID of pet to update * @param additionalMetadata Additional data to pass to server @@ -312,7 +307,6 @@ export class ObservableStoreApi { } /** - * * Place an order for a pet * @param order order placed for purchasing the pet */ @@ -378,7 +372,6 @@ export class ObservableUserApi { } /** - * * Creates list of users with given input array * @param user List of user object */ @@ -402,7 +395,6 @@ export class ObservableUserApi { } /** - * * Creates list of users with given input array * @param user List of user object */ @@ -450,7 +442,6 @@ export class ObservableUserApi { } /** - * * Get user by user name * @param username The name that needs to be fetched. Use user1 for testing. */ @@ -474,7 +465,6 @@ export class ObservableUserApi { } /** - * * Logs user into the system * @param username The user name for login * @param password The password for login in clear text @@ -499,7 +489,6 @@ export class ObservableUserApi { } /** - * * Logs out current logged in user session */ public logoutUser(_options?: Configuration): Observable { diff --git a/samples/openapi3/client/petstore/typescript/builds/default/types/PromiseAPI.ts b/samples/openapi3/client/petstore/typescript/builds/default/types/PromiseAPI.ts index c86ac4a84f3..423866f336c 100644 --- a/samples/openapi3/client/petstore/typescript/builds/default/types/PromiseAPI.ts +++ b/samples/openapi3/client/petstore/typescript/builds/default/types/PromiseAPI.ts @@ -1,12 +1,12 @@ import { ResponseContext, RequestContext, HttpFile } from '../http/http'; import { Configuration} from '../configuration' -import { ApiResponse } from '../models/ApiResponse'; -import { Category } from '../models/Category'; -import { Order } from '../models/Order'; -import { Pet } from '../models/Pet'; -import { Tag } from '../models/Tag'; -import { User } from '../models/User'; +import { ApiResponse } from '.models.ApiResponse'; +import { Category } from '.models.Category'; +import { Order } from '.models.Order'; +import { Pet } from '.models.Pet'; +import { Tag } from '.models.Tag'; +import { User } from '.models.User'; import { ObservablePetApi } from './ObservableAPI'; import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi"; @@ -22,7 +22,6 @@ export class PromisePetApi { } /** - * * Add a new pet to the store * @param pet Pet object that needs to be added to the store */ @@ -32,7 +31,6 @@ export class PromisePetApi { } /** - * * Deletes a pet * @param petId Pet id to delete * @param apiKey @@ -73,7 +71,6 @@ export class PromisePetApi { } /** - * * Update an existing pet * @param pet Pet object that needs to be added to the store */ @@ -83,7 +80,6 @@ export class PromisePetApi { } /** - * * Updates a pet in the store with form data * @param petId ID of pet that needs to be updated * @param name Updated name of the pet @@ -95,7 +91,6 @@ export class PromisePetApi { } /** - * * uploads an image * @param petId ID of pet to update * @param additionalMetadata Additional data to pass to server @@ -155,7 +150,6 @@ export class PromiseStoreApi { } /** - * * Place an order for a pet * @param order order placed for purchasing the pet */ @@ -194,7 +188,6 @@ export class PromiseUserApi { } /** - * * Creates list of users with given input array * @param user List of user object */ @@ -204,7 +197,6 @@ export class PromiseUserApi { } /** - * * Creates list of users with given input array * @param user List of user object */ @@ -224,7 +216,6 @@ export class PromiseUserApi { } /** - * * Get user by user name * @param username The name that needs to be fetched. Use user1 for testing. */ @@ -234,7 +225,6 @@ export class PromiseUserApi { } /** - * * Logs user into the system * @param username The user name for login * @param password The password for login in clear text @@ -245,7 +235,6 @@ export class PromiseUserApi { } /** - * * Logs out current logged in user session */ public logoutUser(_options?: Configuration): Promise { diff --git a/samples/openapi3/client/petstore/typescript/builds/deno/.openapi-generator/VERSION b/samples/openapi3/client/petstore/typescript/builds/deno/.openapi-generator/VERSION index d6b4ec4aa78..4b448de535c 100644 --- a/samples/openapi3/client/petstore/typescript/builds/deno/.openapi-generator/VERSION +++ b/samples/openapi3/client/petstore/typescript/builds/deno/.openapi-generator/VERSION @@ -1 +1 @@ -6.3.0-SNAPSHOT \ No newline at end of file +5.3.0-SNAPSHOT \ No newline at end of file diff --git a/samples/openapi3/client/petstore/typescript/builds/deno/PetApi.md b/samples/openapi3/client/petstore/typescript/builds/deno/PetApi.md index 2aac946907b..2fe727d84fa 100644 --- a/samples/openapi3/client/petstore/typescript/builds/deno/PetApi.md +++ b/samples/openapi3/client/petstore/typescript/builds/deno/PetApi.md @@ -18,7 +18,6 @@ Method | HTTP request | Description > Pet addPet(pet) - ### Example @@ -90,7 +89,6 @@ Name | Type | Description | Notes > deletePet() - ### Example @@ -317,7 +315,6 @@ Name | Type | Description | Notes > Pet updatePet(pet) - ### Example @@ -391,7 +388,6 @@ Name | Type | Description | Notes > updatePetWithForm() - ### Example @@ -451,7 +447,6 @@ void (empty response body) > ApiResponse uploadFile() - ### Example diff --git a/samples/openapi3/client/petstore/typescript/builds/deno/StoreApi.md b/samples/openapi3/client/petstore/typescript/builds/deno/StoreApi.md index b7d89db061f..866f3c6ab97 100644 --- a/samples/openapi3/client/petstore/typescript/builds/deno/StoreApi.md +++ b/samples/openapi3/client/petstore/typescript/builds/deno/StoreApi.md @@ -173,7 +173,6 @@ No authorization required > Order placeOrder(order) - ### Example diff --git a/samples/openapi3/client/petstore/typescript/builds/deno/UserApi.md b/samples/openapi3/client/petstore/typescript/builds/deno/UserApi.md index c18f5d94896..3aa75a41422 100644 --- a/samples/openapi3/client/petstore/typescript/builds/deno/UserApi.md +++ b/samples/openapi3/client/petstore/typescript/builds/deno/UserApi.md @@ -81,7 +81,6 @@ void (empty response body) > createUsersWithArrayInput(user) - ### Example @@ -146,7 +145,6 @@ void (empty response body) > createUsersWithListInput(user) - ### Example @@ -266,7 +264,6 @@ void (empty response body) > User getUserByName() - ### Example @@ -322,7 +319,6 @@ No authorization required > string loginUser() - ### Example @@ -380,7 +376,6 @@ No authorization required > logoutUser() - ### Example diff --git a/samples/openapi3/client/petstore/typescript/builds/deno/apis/PetApi.ts b/samples/openapi3/client/petstore/typescript/builds/deno/apis/PetApi.ts index 8c2c2bf98b7..f00c393797b 100644 --- a/samples/openapi3/client/petstore/typescript/builds/deno/apis/PetApi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/deno/apis/PetApi.ts @@ -1,15 +1,15 @@ // TODO: better import syntax? -import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi.ts'; -import {Configuration} from '../configuration.ts'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http.ts'; -import {ObjectSerializer} from '../models/ObjectSerializer.ts'; -import {ApiException} from './exception.ts'; -import {canConsumeForm, isCodeInRange} from '../util.ts'; -import {SecurityAuthentication} from '../auth/auth.ts'; +import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; +import {Configuration} from '../configuration'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {ObjectSerializer} from '../models/ObjectSerializer'; +import {ApiException} from './exception'; +import {canConsumeForm, isCodeInRange} from '../util'; +import {SecurityAuthentication} from '../auth/auth'; -import { ApiResponse } from '../models/ApiResponse.ts'; -import { Pet } from '../models/Pet.ts'; +import { ApiResponse } from '/models/ApiResponse'; +import { Pet } from '/models/Pet'; /** * no description @@ -17,7 +17,6 @@ import { Pet } from '../models/Pet.ts'; export class PetApiRequestFactory extends BaseAPIRequestFactory { /** - * * Add a new pet to the store * @param pet Pet object that needs to be added to the store */ @@ -67,7 +66,6 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { } /** - * * Deletes a pet * @param petId Pet id to delete * @param apiKey @@ -232,7 +230,6 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { } /** - * * Update an existing pet * @param pet Pet object that needs to be added to the store */ @@ -282,7 +279,6 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { } /** - * * Updates a pet in the store with form data * @param petId ID of pet that needs to be updated * @param name Updated name of the pet @@ -353,7 +349,6 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { } /** - * * uploads an image * @param petId ID of pet to update * @param additionalMetadata Additional data to pass to server diff --git a/samples/openapi3/client/petstore/typescript/builds/deno/apis/StoreApi.ts b/samples/openapi3/client/petstore/typescript/builds/deno/apis/StoreApi.ts index 99e2f62d65e..9f8ed0298c5 100644 --- a/samples/openapi3/client/petstore/typescript/builds/deno/apis/StoreApi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/deno/apis/StoreApi.ts @@ -1,14 +1,14 @@ // TODO: better import syntax? -import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi.ts'; -import {Configuration} from '../configuration.ts'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http.ts'; -import {ObjectSerializer} from '../models/ObjectSerializer.ts'; -import {ApiException} from './exception.ts'; -import {canConsumeForm, isCodeInRange} from '../util.ts'; -import {SecurityAuthentication} from '../auth/auth.ts'; +import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; +import {Configuration} from '../configuration'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {ObjectSerializer} from '../models/ObjectSerializer'; +import {ApiException} from './exception'; +import {canConsumeForm, isCodeInRange} from '../util'; +import {SecurityAuthentication} from '../auth/auth'; -import { Order } from '../models/Order.ts'; +import { Order } from '/models/Order'; /** * no description @@ -110,7 +110,6 @@ export class StoreApiRequestFactory extends BaseAPIRequestFactory { } /** - * * Place an order for a pet * @param order order placed for purchasing the pet */ diff --git a/samples/openapi3/client/petstore/typescript/builds/deno/apis/UserApi.ts b/samples/openapi3/client/petstore/typescript/builds/deno/apis/UserApi.ts index cf96436616e..f014335f199 100644 --- a/samples/openapi3/client/petstore/typescript/builds/deno/apis/UserApi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/deno/apis/UserApi.ts @@ -1,14 +1,14 @@ // TODO: better import syntax? -import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi.ts'; -import {Configuration} from '../configuration.ts'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http.ts'; -import {ObjectSerializer} from '../models/ObjectSerializer.ts'; -import {ApiException} from './exception.ts'; -import {canConsumeForm, isCodeInRange} from '../util.ts'; -import {SecurityAuthentication} from '../auth/auth.ts'; +import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; +import {Configuration} from '../configuration'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {ObjectSerializer} from '../models/ObjectSerializer'; +import {ApiException} from './exception'; +import {canConsumeForm, isCodeInRange} from '../util'; +import {SecurityAuthentication} from '../auth/auth'; -import { User } from '../models/User.ts'; +import { User } from '/models/User'; /** * no description @@ -64,7 +64,6 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory { } /** - * * Creates list of users with given input array * @param user List of user object */ @@ -112,7 +111,6 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory { } /** - * * Creates list of users with given input array * @param user List of user object */ @@ -198,7 +196,6 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory { } /** - * * Get user by user name * @param username The name that needs to be fetched. Use user1 for testing. */ @@ -230,7 +227,6 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory { } /** - * * Logs user into the system * @param username The user name for login * @param password The password for login in clear text @@ -278,7 +274,6 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory { } /** - * * Logs out current logged in user session */ public async logoutUser(_options?: Configuration): Promise { diff --git a/samples/openapi3/client/petstore/typescript/builds/deno/apis/baseapi.ts b/samples/openapi3/client/petstore/typescript/builds/deno/apis/baseapi.ts index 46ed74bb556..ce1e2dbc47e 100644 --- a/samples/openapi3/client/petstore/typescript/builds/deno/apis/baseapi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/deno/apis/baseapi.ts @@ -1,4 +1,4 @@ -import { Configuration } from '../configuration.ts' +import { Configuration } from '../configuration' /** * diff --git a/samples/openapi3/client/petstore/typescript/builds/deno/auth/auth.ts b/samples/openapi3/client/petstore/typescript/builds/deno/auth/auth.ts index 2f891fb94ea..7c393656367 100644 --- a/samples/openapi3/client/petstore/typescript/builds/deno/auth/auth.ts +++ b/samples/openapi3/client/petstore/typescript/builds/deno/auth/auth.ts @@ -1,4 +1,4 @@ -import { RequestContext } from "../http/http.ts"; +import { RequestContext } from "../http/http"; /** * Interface authentication schemes. diff --git a/samples/openapi3/client/petstore/typescript/builds/deno/configuration.ts b/samples/openapi3/client/petstore/typescript/builds/deno/configuration.ts index 0a170f0d507..7acb56e6647 100644 --- a/samples/openapi3/client/petstore/typescript/builds/deno/configuration.ts +++ b/samples/openapi3/client/petstore/typescript/builds/deno/configuration.ts @@ -1,8 +1,8 @@ -import { HttpLibrary } from "./http/http.ts"; -import { Middleware, PromiseMiddleware, PromiseMiddlewareWrapper } from "./middleware.ts"; -import { IsomorphicFetchHttpLibrary as DefaultHttpLibrary } from "./http/isomorphic-fetch.ts"; -import { BaseServerConfiguration, server1 } from "./servers.ts"; -import { configureAuthMethods, AuthMethods, AuthMethodsConfiguration } from "./auth/auth.ts"; +import { HttpLibrary } from "./http/http"; +import { Middleware, PromiseMiddleware, PromiseMiddlewareWrapper } from "./middleware"; +import { IsomorphicFetchHttpLibrary as DefaultHttpLibrary } from "./http/isomorphic-fetch"; +import { BaseServerConfiguration, server1 } from "./servers"; +import { configureAuthMethods, AuthMethods, AuthMethodsConfiguration } from "./auth/auth"; export interface Configuration { readonly baseServer: BaseServerConfiguration; diff --git a/samples/openapi3/client/petstore/typescript/builds/deno/http/http.ts b/samples/openapi3/client/petstore/typescript/builds/deno/http/http.ts index a286eac8a41..af2212d3b4a 100644 --- a/samples/openapi3/client/petstore/typescript/builds/deno/http/http.ts +++ b/samples/openapi3/client/petstore/typescript/builds/deno/http/http.ts @@ -1,4 +1,4 @@ -import { Observable, from } from '../rxjsStub.ts'; +import { Observable, from } from '../rxjsStub'; /** diff --git a/samples/openapi3/client/petstore/typescript/builds/deno/http/isomorphic-fetch.ts b/samples/openapi3/client/petstore/typescript/builds/deno/http/isomorphic-fetch.ts index a7521351e06..8c9c8259781 100644 --- a/samples/openapi3/client/petstore/typescript/builds/deno/http/isomorphic-fetch.ts +++ b/samples/openapi3/client/petstore/typescript/builds/deno/http/isomorphic-fetch.ts @@ -1,5 +1,5 @@ -import {HttpLibrary, RequestContext, ResponseContext} from './http.ts'; -import { from, Observable } from '../rxjsStub.ts'; +import {HttpLibrary, RequestContext, ResponseContext} from './http'; +import { from, Observable } from '../rxjsStub'; export class IsomorphicFetchHttpLibrary implements HttpLibrary { diff --git a/samples/openapi3/client/petstore/typescript/builds/deno/index.ts b/samples/openapi3/client/petstore/typescript/builds/deno/index.ts index b73e795b265..8e69260419b 100644 --- a/samples/openapi3/client/petstore/typescript/builds/deno/index.ts +++ b/samples/openapi3/client/petstore/typescript/builds/deno/index.ts @@ -1,12 +1,12 @@ -export * from "./http/http.ts"; -export * from "./auth/auth.ts"; -export * from "./models/all.ts"; -export { createConfiguration } from "./configuration.ts" -export type { Configuration } from "./configuration.ts" -export * from "./apis/exception.ts"; -export * from "./servers.ts"; -export { RequiredError } from "./apis/baseapi.ts"; +export * from "./http/http"; +export * from "./auth/auth"; +export * from "./models/all"; +export { createConfiguration } from "./configuration" +export type { Configuration } from "./configuration" +export * from "./apis/exception"; +export * from "./servers"; +export { RequiredError } from "./apis/baseapi"; -export type { PromiseMiddleware as Middleware } from './middleware.ts'; -export { PromisePetApi as PetApi, PromiseStoreApi as StoreApi, PromiseUserApi as UserApi } from './types/PromiseAPI.ts'; +export type { PromiseMiddleware as Middleware } from './middleware'; +export { PromisePetApi as PetApi, PromiseStoreApi as StoreApi, PromiseUserApi as UserApi } from './types/PromiseAPI'; diff --git a/samples/openapi3/client/petstore/typescript/builds/deno/middleware.ts b/samples/openapi3/client/petstore/typescript/builds/deno/middleware.ts index ae36e6c3d7d..524f93f016b 100644 --- a/samples/openapi3/client/petstore/typescript/builds/deno/middleware.ts +++ b/samples/openapi3/client/petstore/typescript/builds/deno/middleware.ts @@ -1,5 +1,5 @@ -import {RequestContext, ResponseContext} from './http/http.ts'; -import { Observable, from } from './rxjsStub.ts'; +import {RequestContext, ResponseContext} from './http/http'; +import { Observable, from } from './rxjsStub'; /** * Defines the contract for a middleware intercepting requests before diff --git a/samples/openapi3/client/petstore/typescript/builds/deno/models/ApiResponse.ts b/samples/openapi3/client/petstore/typescript/builds/deno/models/ApiResponse.ts index b5cfa4948a0..f4b2d010fb7 100644 --- a/samples/openapi3/client/petstore/typescript/builds/deno/models/ApiResponse.ts +++ b/samples/openapi3/client/petstore/typescript/builds/deno/models/ApiResponse.ts @@ -10,7 +10,7 @@ * Do not edit the class manually. */ -import { HttpFile } from '../http/http.ts'; +import { HttpFile } from '../http/http'; /** * Describes the result of uploading an image resource diff --git a/samples/openapi3/client/petstore/typescript/builds/deno/models/Category.ts b/samples/openapi3/client/petstore/typescript/builds/deno/models/Category.ts index 9c1bdd23614..5d63fc87a99 100644 --- a/samples/openapi3/client/petstore/typescript/builds/deno/models/Category.ts +++ b/samples/openapi3/client/petstore/typescript/builds/deno/models/Category.ts @@ -10,7 +10,7 @@ * Do not edit the class manually. */ -import { HttpFile } from '../http/http.ts'; +import { HttpFile } from '../http/http'; /** * A category for a pet diff --git a/samples/openapi3/client/petstore/typescript/builds/deno/models/ObjectSerializer.ts b/samples/openapi3/client/petstore/typescript/builds/deno/models/ObjectSerializer.ts index a56a21255c2..28b6b13fd3e 100644 --- a/samples/openapi3/client/petstore/typescript/builds/deno/models/ObjectSerializer.ts +++ b/samples/openapi3/client/petstore/typescript/builds/deno/models/ObjectSerializer.ts @@ -1,16 +1,16 @@ -export * from '../models/ApiResponse.ts'; -export * from '../models/Category.ts'; -export * from '../models/Order.ts'; -export * from '../models/Pet.ts'; -export * from '../models/Tag.ts'; -export * from '../models/User.ts'; +export * from '.models.ApiResponse'; +export * from '.models.Category'; +export * from '.models.Order'; +export * from '.models.Pet'; +export * from '.models.Tag'; +export * from '.models.User'; -import { ApiResponse } from '../models/ApiResponse.ts'; -import { Category } from '../models/Category.ts'; -import { Order , OrderStatusEnum } from '../models/Order.ts'; -import { Pet , PetStatusEnum } from '../models/Pet.ts'; -import { Tag } from '../models/Tag.ts'; -import { User } from '../models/User.ts'; +import { ApiResponse } from '.models.ApiResponse'; +import { Category } from '.models.Category'; +import { Order , OrderStatusEnum } from '.models.Order'; +import { Pet , PetStatusEnum } from '.models.Pet'; +import { Tag } from '.models.Tag'; +import { User } from '.models.User'; /* tslint:disable:no-unused-variable */ let primitives = [ diff --git a/samples/openapi3/client/petstore/typescript/builds/deno/models/Order.ts b/samples/openapi3/client/petstore/typescript/builds/deno/models/Order.ts index 644657299f3..a2f84555ff1 100644 --- a/samples/openapi3/client/petstore/typescript/builds/deno/models/Order.ts +++ b/samples/openapi3/client/petstore/typescript/builds/deno/models/Order.ts @@ -10,7 +10,7 @@ * Do not edit the class manually. */ -import { HttpFile } from '../http/http.ts'; +import { HttpFile } from '../http/http'; /** * An order for a pets from the pet store diff --git a/samples/openapi3/client/petstore/typescript/builds/deno/models/Pet.ts b/samples/openapi3/client/petstore/typescript/builds/deno/models/Pet.ts index 229681feacd..414f1be4944 100644 --- a/samples/openapi3/client/petstore/typescript/builds/deno/models/Pet.ts +++ b/samples/openapi3/client/petstore/typescript/builds/deno/models/Pet.ts @@ -10,9 +10,9 @@ * Do not edit the class manually. */ -import { Category } from '../models/Category.ts'; -import { Tag } from '../models/Tag.ts'; -import { HttpFile } from '../http/http.ts'; +import { Category } from 'Category'; +import { Tag } from 'Tag'; +import { HttpFile } from '../http/http'; /** * A pet for sale in the pet store diff --git a/samples/openapi3/client/petstore/typescript/builds/deno/models/Tag.ts b/samples/openapi3/client/petstore/typescript/builds/deno/models/Tag.ts index dc2c98212c3..8c4f6967b9a 100644 --- a/samples/openapi3/client/petstore/typescript/builds/deno/models/Tag.ts +++ b/samples/openapi3/client/petstore/typescript/builds/deno/models/Tag.ts @@ -10,7 +10,7 @@ * Do not edit the class manually. */ -import { HttpFile } from '../http/http.ts'; +import { HttpFile } from '../http/http'; /** * A tag for a pet diff --git a/samples/openapi3/client/petstore/typescript/builds/deno/models/User.ts b/samples/openapi3/client/petstore/typescript/builds/deno/models/User.ts index 76c6a9ae869..68528ad3c9e 100644 --- a/samples/openapi3/client/petstore/typescript/builds/deno/models/User.ts +++ b/samples/openapi3/client/petstore/typescript/builds/deno/models/User.ts @@ -10,7 +10,7 @@ * Do not edit the class manually. */ -import { HttpFile } from '../http/http.ts'; +import { HttpFile } from '../http/http'; /** * A User who is purchasing from the pet store diff --git a/samples/openapi3/client/petstore/typescript/builds/deno/models/all.ts b/samples/openapi3/client/petstore/typescript/builds/deno/models/all.ts index 374b1e44e2b..e0118328c0f 100644 --- a/samples/openapi3/client/petstore/typescript/builds/deno/models/all.ts +++ b/samples/openapi3/client/petstore/typescript/builds/deno/models/all.ts @@ -1,6 +1,6 @@ -export * from '../models/ApiResponse.ts' -export * from '../models/Category.ts' -export * from '../models/Order.ts' -export * from '../models/Pet.ts' -export * from '../models/Tag.ts' -export * from '../models/User.ts' +export * from '.models.ApiResponse' +export * from '.models.Category' +export * from '.models.Order' +export * from '.models.Pet' +export * from '.models.Tag' +export * from '.models.User' diff --git a/samples/openapi3/client/petstore/typescript/builds/deno/servers.ts b/samples/openapi3/client/petstore/typescript/builds/deno/servers.ts index ba605b218bc..b6b3e111acb 100644 --- a/samples/openapi3/client/petstore/typescript/builds/deno/servers.ts +++ b/samples/openapi3/client/petstore/typescript/builds/deno/servers.ts @@ -1,4 +1,4 @@ -import { RequestContext, HttpMethod } from "./http/http.ts"; +import { RequestContext, HttpMethod } from "./http/http"; export interface BaseServerConfiguration { makeRequestContext(endpoint: string, httpMethod: HttpMethod): RequestContext; diff --git a/samples/openapi3/client/petstore/typescript/builds/deno/types/ObjectParamAPI.ts b/samples/openapi3/client/petstore/typescript/builds/deno/types/ObjectParamAPI.ts index e499b3bc620..22e5983c7f2 100644 --- a/samples/openapi3/client/petstore/typescript/builds/deno/types/ObjectParamAPI.ts +++ b/samples/openapi3/client/petstore/typescript/builds/deno/types/ObjectParamAPI.ts @@ -1,15 +1,15 @@ -import { ResponseContext, RequestContext, HttpFile } from '../http/http.ts'; -import { Configuration} from '../configuration.ts' +import { ResponseContext, RequestContext, HttpFile } from '../http/http'; +import { Configuration} from '../configuration' -import { ApiResponse } from '../models/ApiResponse.ts'; -import { Category } from '../models/Category.ts'; -import { Order } from '../models/Order.ts'; -import { Pet } from '../models/Pet.ts'; -import { Tag } from '../models/Tag.ts'; -import { User } from '../models/User.ts'; +import { ApiResponse } from '.models.ApiResponse'; +import { Category } from '.models.Category'; +import { Order } from '.models.Order'; +import { Pet } from '.models.Pet'; +import { Tag } from '.models.Tag'; +import { User } from '.models.User'; -import { ObservablePetApi } from "./ObservableAPI.ts"; -import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi.ts"; +import { ObservablePetApi } from "./ObservableAPI"; +import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi"; export interface PetApiAddPetRequest { /** @@ -121,7 +121,6 @@ export class ObjectPetApi { } /** - * * Add a new pet to the store * @param param the request object */ @@ -130,7 +129,6 @@ export class ObjectPetApi { } /** - * * Deletes a pet * @param param the request object */ @@ -166,7 +164,6 @@ export class ObjectPetApi { } /** - * * Update an existing pet * @param param the request object */ @@ -175,7 +172,6 @@ export class ObjectPetApi { } /** - * * Updates a pet in the store with form data * @param param the request object */ @@ -184,7 +180,6 @@ export class ObjectPetApi { } /** - * * uploads an image * @param param the request object */ @@ -194,8 +189,8 @@ export class ObjectPetApi { } -import { ObservableStoreApi } from "./ObservableAPI.ts"; -import { StoreApiRequestFactory, StoreApiResponseProcessor} from "../apis/StoreApi.ts"; +import { ObservableStoreApi } from "./ObservableAPI"; +import { StoreApiRequestFactory, StoreApiResponseProcessor} from "../apis/StoreApi"; export interface StoreApiDeleteOrderRequest { /** @@ -262,7 +257,6 @@ export class ObjectStoreApi { } /** - * * Place an order for a pet * @param param the request object */ @@ -272,8 +266,8 @@ export class ObjectStoreApi { } -import { ObservableUserApi } from "./ObservableAPI.ts"; -import { UserApiRequestFactory, UserApiResponseProcessor} from "../apis/UserApi.ts"; +import { ObservableUserApi } from "./ObservableAPI"; +import { UserApiRequestFactory, UserApiResponseProcessor} from "../apis/UserApi"; export interface UserApiCreateUserRequest { /** @@ -370,7 +364,6 @@ export class ObjectUserApi { } /** - * * Creates list of users with given input array * @param param the request object */ @@ -379,7 +372,6 @@ export class ObjectUserApi { } /** - * * Creates list of users with given input array * @param param the request object */ @@ -397,7 +389,6 @@ export class ObjectUserApi { } /** - * * Get user by user name * @param param the request object */ @@ -406,7 +397,6 @@ export class ObjectUserApi { } /** - * * Logs user into the system * @param param the request object */ @@ -415,7 +405,6 @@ export class ObjectUserApi { } /** - * * Logs out current logged in user session * @param param the request object */ diff --git a/samples/openapi3/client/petstore/typescript/builds/deno/types/ObservableAPI.ts b/samples/openapi3/client/petstore/typescript/builds/deno/types/ObservableAPI.ts index 1857aba9f38..5187367bc6c 100644 --- a/samples/openapi3/client/petstore/typescript/builds/deno/types/ObservableAPI.ts +++ b/samples/openapi3/client/petstore/typescript/builds/deno/types/ObservableAPI.ts @@ -1,15 +1,15 @@ -import { ResponseContext, RequestContext, HttpFile } from '../http/http.ts'; -import { Configuration} from '../configuration.ts' -import { Observable, of, from } from '../rxjsStub.ts'; -import {mergeMap, map} from '../rxjsStub.ts'; -import { ApiResponse } from '../models/ApiResponse.ts'; -import { Category } from '../models/Category.ts'; -import { Order } from '../models/Order.ts'; -import { Pet } from '../models/Pet.ts'; -import { Tag } from '../models/Tag.ts'; -import { User } from '../models/User.ts'; +import { ResponseContext, RequestContext, HttpFile } from '../http/http'; +import { Configuration} from '../configuration' +import { Observable, of, from } from '../rxjsStub'; +import {mergeMap, map} from '../rxjsStub'; +import { ApiResponse } from '.models.ApiResponse'; +import { Category } from '.models.Category'; +import { Order } from '.models.Order'; +import { Pet } from '.models.Pet'; +import { Tag } from '.models.Tag'; +import { User } from '.models.User'; -import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi.ts"; +import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi"; export class ObservablePetApi { private requestFactory: PetApiRequestFactory; private responseProcessor: PetApiResponseProcessor; @@ -26,7 +26,6 @@ export class ObservablePetApi { } /** - * * Add a new pet to the store * @param pet Pet object that needs to be added to the store */ @@ -50,7 +49,6 @@ export class ObservablePetApi { } /** - * * Deletes a pet * @param petId Pet id to delete * @param apiKey @@ -147,7 +145,6 @@ export class ObservablePetApi { } /** - * * Update an existing pet * @param pet Pet object that needs to be added to the store */ @@ -171,7 +168,6 @@ export class ObservablePetApi { } /** - * * Updates a pet in the store with form data * @param petId ID of pet that needs to be updated * @param name Updated name of the pet @@ -197,7 +193,6 @@ export class ObservablePetApi { } /** - * * uploads an image * @param petId ID of pet to update * @param additionalMetadata Additional data to pass to server @@ -224,7 +219,7 @@ export class ObservablePetApi { } -import { StoreApiRequestFactory, StoreApiResponseProcessor} from "../apis/StoreApi.ts"; +import { StoreApiRequestFactory, StoreApiResponseProcessor} from "../apis/StoreApi"; export class ObservableStoreApi { private requestFactory: StoreApiRequestFactory; private responseProcessor: StoreApiResponseProcessor; @@ -312,7 +307,6 @@ export class ObservableStoreApi { } /** - * * Place an order for a pet * @param order order placed for purchasing the pet */ @@ -337,7 +331,7 @@ export class ObservableStoreApi { } -import { UserApiRequestFactory, UserApiResponseProcessor} from "../apis/UserApi.ts"; +import { UserApiRequestFactory, UserApiResponseProcessor} from "../apis/UserApi"; export class ObservableUserApi { private requestFactory: UserApiRequestFactory; private responseProcessor: UserApiResponseProcessor; @@ -378,7 +372,6 @@ export class ObservableUserApi { } /** - * * Creates list of users with given input array * @param user List of user object */ @@ -402,7 +395,6 @@ export class ObservableUserApi { } /** - * * Creates list of users with given input array * @param user List of user object */ @@ -450,7 +442,6 @@ export class ObservableUserApi { } /** - * * Get user by user name * @param username The name that needs to be fetched. Use user1 for testing. */ @@ -474,7 +465,6 @@ export class ObservableUserApi { } /** - * * Logs user into the system * @param username The user name for login * @param password The password for login in clear text @@ -499,7 +489,6 @@ export class ObservableUserApi { } /** - * * Logs out current logged in user session */ public logoutUser(_options?: Configuration): Observable { diff --git a/samples/openapi3/client/petstore/typescript/builds/deno/types/PromiseAPI.ts b/samples/openapi3/client/petstore/typescript/builds/deno/types/PromiseAPI.ts index 087bc60cbe7..423866f336c 100644 --- a/samples/openapi3/client/petstore/typescript/builds/deno/types/PromiseAPI.ts +++ b/samples/openapi3/client/petstore/typescript/builds/deno/types/PromiseAPI.ts @@ -1,15 +1,15 @@ -import { ResponseContext, RequestContext, HttpFile } from '../http/http.ts'; -import { Configuration} from '../configuration.ts' +import { ResponseContext, RequestContext, HttpFile } from '../http/http'; +import { Configuration} from '../configuration' -import { ApiResponse } from '../models/ApiResponse.ts'; -import { Category } from '../models/Category.ts'; -import { Order } from '../models/Order.ts'; -import { Pet } from '../models/Pet.ts'; -import { Tag } from '../models/Tag.ts'; -import { User } from '../models/User.ts'; -import { ObservablePetApi } from './ObservableAPI.ts'; +import { ApiResponse } from '.models.ApiResponse'; +import { Category } from '.models.Category'; +import { Order } from '.models.Order'; +import { Pet } from '.models.Pet'; +import { Tag } from '.models.Tag'; +import { User } from '.models.User'; +import { ObservablePetApi } from './ObservableAPI'; -import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi.ts"; +import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi"; export class PromisePetApi { private api: ObservablePetApi @@ -22,7 +22,6 @@ export class PromisePetApi { } /** - * * Add a new pet to the store * @param pet Pet object that needs to be added to the store */ @@ -32,7 +31,6 @@ export class PromisePetApi { } /** - * * Deletes a pet * @param petId Pet id to delete * @param apiKey @@ -73,7 +71,6 @@ export class PromisePetApi { } /** - * * Update an existing pet * @param pet Pet object that needs to be added to the store */ @@ -83,7 +80,6 @@ export class PromisePetApi { } /** - * * Updates a pet in the store with form data * @param petId ID of pet that needs to be updated * @param name Updated name of the pet @@ -95,7 +91,6 @@ export class PromisePetApi { } /** - * * uploads an image * @param petId ID of pet to update * @param additionalMetadata Additional data to pass to server @@ -111,9 +106,9 @@ export class PromisePetApi { -import { ObservableStoreApi } from './ObservableAPI.ts'; +import { ObservableStoreApi } from './ObservableAPI'; -import { StoreApiRequestFactory, StoreApiResponseProcessor} from "../apis/StoreApi.ts"; +import { StoreApiRequestFactory, StoreApiResponseProcessor} from "../apis/StoreApi"; export class PromiseStoreApi { private api: ObservableStoreApi @@ -155,7 +150,6 @@ export class PromiseStoreApi { } /** - * * Place an order for a pet * @param order order placed for purchasing the pet */ @@ -169,9 +163,9 @@ export class PromiseStoreApi { -import { ObservableUserApi } from './ObservableAPI.ts'; +import { ObservableUserApi } from './ObservableAPI'; -import { UserApiRequestFactory, UserApiResponseProcessor} from "../apis/UserApi.ts"; +import { UserApiRequestFactory, UserApiResponseProcessor} from "../apis/UserApi"; export class PromiseUserApi { private api: ObservableUserApi @@ -194,7 +188,6 @@ export class PromiseUserApi { } /** - * * Creates list of users with given input array * @param user List of user object */ @@ -204,7 +197,6 @@ export class PromiseUserApi { } /** - * * Creates list of users with given input array * @param user List of user object */ @@ -224,7 +216,6 @@ export class PromiseUserApi { } /** - * * Get user by user name * @param username The name that needs to be fetched. Use user1 for testing. */ @@ -234,7 +225,6 @@ export class PromiseUserApi { } /** - * * Logs user into the system * @param username The user name for login * @param password The password for login in clear text @@ -245,7 +235,6 @@ export class PromiseUserApi { } /** - * * Logs out current logged in user session */ public logoutUser(_options?: Configuration): Promise { diff --git a/samples/openapi3/client/petstore/typescript/builds/inversify/.openapi-generator/VERSION b/samples/openapi3/client/petstore/typescript/builds/inversify/.openapi-generator/VERSION index d6b4ec4aa78..4b448de535c 100644 --- a/samples/openapi3/client/petstore/typescript/builds/inversify/.openapi-generator/VERSION +++ b/samples/openapi3/client/petstore/typescript/builds/inversify/.openapi-generator/VERSION @@ -1 +1 @@ -6.3.0-SNAPSHOT \ No newline at end of file +5.3.0-SNAPSHOT \ No newline at end of file diff --git a/samples/openapi3/client/petstore/typescript/builds/inversify/PetApi.md b/samples/openapi3/client/petstore/typescript/builds/inversify/PetApi.md index 2aac946907b..2fe727d84fa 100644 --- a/samples/openapi3/client/petstore/typescript/builds/inversify/PetApi.md +++ b/samples/openapi3/client/petstore/typescript/builds/inversify/PetApi.md @@ -18,7 +18,6 @@ Method | HTTP request | Description > Pet addPet(pet) - ### Example @@ -90,7 +89,6 @@ Name | Type | Description | Notes > deletePet() - ### Example @@ -317,7 +315,6 @@ Name | Type | Description | Notes > Pet updatePet(pet) - ### Example @@ -391,7 +388,6 @@ Name | Type | Description | Notes > updatePetWithForm() - ### Example @@ -451,7 +447,6 @@ void (empty response body) > ApiResponse uploadFile() - ### Example diff --git a/samples/openapi3/client/petstore/typescript/builds/inversify/StoreApi.md b/samples/openapi3/client/petstore/typescript/builds/inversify/StoreApi.md index b7d89db061f..866f3c6ab97 100644 --- a/samples/openapi3/client/petstore/typescript/builds/inversify/StoreApi.md +++ b/samples/openapi3/client/petstore/typescript/builds/inversify/StoreApi.md @@ -173,7 +173,6 @@ No authorization required > Order placeOrder(order) - ### Example diff --git a/samples/openapi3/client/petstore/typescript/builds/inversify/UserApi.md b/samples/openapi3/client/petstore/typescript/builds/inversify/UserApi.md index c18f5d94896..3aa75a41422 100644 --- a/samples/openapi3/client/petstore/typescript/builds/inversify/UserApi.md +++ b/samples/openapi3/client/petstore/typescript/builds/inversify/UserApi.md @@ -81,7 +81,6 @@ void (empty response body) > createUsersWithArrayInput(user) - ### Example @@ -146,7 +145,6 @@ void (empty response body) > createUsersWithListInput(user) - ### Example @@ -266,7 +264,6 @@ void (empty response body) > User getUserByName() - ### Example @@ -322,7 +319,6 @@ No authorization required > string loginUser() - ### Example @@ -380,7 +376,6 @@ No authorization required > logoutUser() - ### Example diff --git a/samples/openapi3/client/petstore/typescript/builds/inversify/apis/PetApi.service.ts b/samples/openapi3/client/petstore/typescript/builds/inversify/apis/PetApi.service.ts index e96ab5e1482..7cd94eeda6b 100644 --- a/samples/openapi3/client/petstore/typescript/builds/inversify/apis/PetApi.service.ts +++ b/samples/openapi3/client/petstore/typescript/builds/inversify/apis/PetApi.service.ts @@ -1,8 +1,8 @@ import type { Configuration } from "../configuration"; import type { HttpFile, RequestContext, ResponseContext } from "../http/http"; -import { ApiResponse } from "../models/ApiResponse"; -import { Pet } from "../models/Pet"; +import { ApiResponse } from "/models/ApiResponse"; +import { Pet } from "/models/Pet"; export abstract class AbstractPetApiRequestFactory { public abstract addPet(pet: Pet, options?: Configuration): Promise; diff --git a/samples/openapi3/client/petstore/typescript/builds/inversify/apis/PetApi.ts b/samples/openapi3/client/petstore/typescript/builds/inversify/apis/PetApi.ts index 93928166fcd..b808bb021c3 100644 --- a/samples/openapi3/client/petstore/typescript/builds/inversify/apis/PetApi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/inversify/apis/PetApi.ts @@ -11,8 +11,8 @@ import {SecurityAuthentication} from '../auth/auth'; import { injectable } from "inversify"; -import { ApiResponse } from '../models/ApiResponse'; -import { Pet } from '../models/Pet'; +import { ApiResponse } from '/models/ApiResponse'; +import { Pet } from '/models/Pet'; /** * no description @@ -21,7 +21,6 @@ import { Pet } from '../models/Pet'; export class PetApiRequestFactory extends BaseAPIRequestFactory { /** - * * Add a new pet to the store * @param pet Pet object that needs to be added to the store */ @@ -67,7 +66,6 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { } /** - * * Deletes a pet * @param petId Pet id to delete * @param apiKey @@ -216,7 +214,6 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { } /** - * * Update an existing pet * @param pet Pet object that needs to be added to the store */ @@ -262,7 +259,6 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { } /** - * * Updates a pet in the store with form data * @param petId ID of pet that needs to be updated * @param name Updated name of the pet @@ -329,7 +325,6 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { } /** - * * uploads an image * @param petId ID of pet to update * @param additionalMetadata Additional data to pass to server diff --git a/samples/openapi3/client/petstore/typescript/builds/inversify/apis/StoreApi.service.ts b/samples/openapi3/client/petstore/typescript/builds/inversify/apis/StoreApi.service.ts index b2e61032a7f..ade8a313813 100644 --- a/samples/openapi3/client/petstore/typescript/builds/inversify/apis/StoreApi.service.ts +++ b/samples/openapi3/client/petstore/typescript/builds/inversify/apis/StoreApi.service.ts @@ -1,7 +1,7 @@ import type { Configuration } from "../configuration"; import type { HttpFile, RequestContext, ResponseContext } from "../http/http"; -import { Order } from "../models/Order"; +import { Order } from "/models/Order"; export abstract class AbstractStoreApiRequestFactory { public abstract deleteOrder(orderId: string, options?: Configuration): Promise; diff --git a/samples/openapi3/client/petstore/typescript/builds/inversify/apis/StoreApi.ts b/samples/openapi3/client/petstore/typescript/builds/inversify/apis/StoreApi.ts index 7537e2b4ecc..a06820651e3 100644 --- a/samples/openapi3/client/petstore/typescript/builds/inversify/apis/StoreApi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/inversify/apis/StoreApi.ts @@ -11,7 +11,7 @@ import {SecurityAuthentication} from '../auth/auth'; import { injectable } from "inversify"; -import { Order } from '../models/Order'; +import { Order } from '/models/Order'; /** * no description @@ -102,7 +102,6 @@ export class StoreApiRequestFactory extends BaseAPIRequestFactory { } /** - * * Place an order for a pet * @param order order placed for purchasing the pet */ diff --git a/samples/openapi3/client/petstore/typescript/builds/inversify/apis/UserApi.service.ts b/samples/openapi3/client/petstore/typescript/builds/inversify/apis/UserApi.service.ts index 0ea540fef87..48f10797054 100644 --- a/samples/openapi3/client/petstore/typescript/builds/inversify/apis/UserApi.service.ts +++ b/samples/openapi3/client/petstore/typescript/builds/inversify/apis/UserApi.service.ts @@ -1,7 +1,7 @@ import type { Configuration } from "../configuration"; import type { HttpFile, RequestContext, ResponseContext } from "../http/http"; -import { User } from "../models/User"; +import { User } from "/models/User"; export abstract class AbstractUserApiRequestFactory { public abstract createUser(user: User, options?: Configuration): Promise; diff --git a/samples/openapi3/client/petstore/typescript/builds/inversify/apis/UserApi.ts b/samples/openapi3/client/petstore/typescript/builds/inversify/apis/UserApi.ts index 9f81f5e77f0..d6d76d4bc17 100644 --- a/samples/openapi3/client/petstore/typescript/builds/inversify/apis/UserApi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/inversify/apis/UserApi.ts @@ -11,7 +11,7 @@ import {SecurityAuthentication} from '../auth/auth'; import { injectable } from "inversify"; -import { User } from '../models/User'; +import { User } from '/models/User'; /** * no description @@ -64,7 +64,6 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory { } /** - * * Creates list of users with given input array * @param user List of user object */ @@ -108,7 +107,6 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory { } /** - * * Creates list of users with given input array * @param user List of user object */ @@ -186,7 +184,6 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory { } /** - * * Get user by user name * @param username The name that needs to be fetched. Use user1 for testing. */ @@ -214,7 +211,6 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory { } /** - * * Logs user into the system * @param username The user name for login * @param password The password for login in clear text @@ -258,7 +254,6 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory { } /** - * * Logs out current logged in user session */ public async logoutUser(_options?: Configuration): Promise { diff --git a/samples/openapi3/client/petstore/typescript/builds/inversify/models/ObjectSerializer.ts b/samples/openapi3/client/petstore/typescript/builds/inversify/models/ObjectSerializer.ts index a5f5708b12c..28b6b13fd3e 100644 --- a/samples/openapi3/client/petstore/typescript/builds/inversify/models/ObjectSerializer.ts +++ b/samples/openapi3/client/petstore/typescript/builds/inversify/models/ObjectSerializer.ts @@ -1,16 +1,16 @@ -export * from '../models/ApiResponse'; -export * from '../models/Category'; -export * from '../models/Order'; -export * from '../models/Pet'; -export * from '../models/Tag'; -export * from '../models/User'; +export * from '.models.ApiResponse'; +export * from '.models.Category'; +export * from '.models.Order'; +export * from '.models.Pet'; +export * from '.models.Tag'; +export * from '.models.User'; -import { ApiResponse } from '../models/ApiResponse'; -import { Category } from '../models/Category'; -import { Order , OrderStatusEnum } from '../models/Order'; -import { Pet , PetStatusEnum } from '../models/Pet'; -import { Tag } from '../models/Tag'; -import { User } from '../models/User'; +import { ApiResponse } from '.models.ApiResponse'; +import { Category } from '.models.Category'; +import { Order , OrderStatusEnum } from '.models.Order'; +import { Pet , PetStatusEnum } from '.models.Pet'; +import { Tag } from '.models.Tag'; +import { User } from '.models.User'; /* tslint:disable:no-unused-variable */ let primitives = [ diff --git a/samples/openapi3/client/petstore/typescript/builds/inversify/models/Pet.ts b/samples/openapi3/client/petstore/typescript/builds/inversify/models/Pet.ts index b3a7ddb9f71..414f1be4944 100644 --- a/samples/openapi3/client/petstore/typescript/builds/inversify/models/Pet.ts +++ b/samples/openapi3/client/petstore/typescript/builds/inversify/models/Pet.ts @@ -10,8 +10,8 @@ * Do not edit the class manually. */ -import { Category } from '../models/Category'; -import { Tag } from '../models/Tag'; +import { Category } from 'Category'; +import { Tag } from 'Tag'; import { HttpFile } from '../http/http'; /** diff --git a/samples/openapi3/client/petstore/typescript/builds/inversify/models/all.ts b/samples/openapi3/client/petstore/typescript/builds/inversify/models/all.ts index d63b43c9674..e0118328c0f 100644 --- a/samples/openapi3/client/petstore/typescript/builds/inversify/models/all.ts +++ b/samples/openapi3/client/petstore/typescript/builds/inversify/models/all.ts @@ -1,6 +1,6 @@ -export * from '../models/ApiResponse' -export * from '../models/Category' -export * from '../models/Order' -export * from '../models/Pet' -export * from '../models/Tag' -export * from '../models/User' +export * from '.models.ApiResponse' +export * from '.models.Category' +export * from '.models.Order' +export * from '.models.Pet' +export * from '.models.Tag' +export * from '.models.User' diff --git a/samples/openapi3/client/petstore/typescript/builds/inversify/services/ObjectParamAPI.ts b/samples/openapi3/client/petstore/typescript/builds/inversify/services/ObjectParamAPI.ts index 09bf61437b2..67391c4fcb9 100644 --- a/samples/openapi3/client/petstore/typescript/builds/inversify/services/ObjectParamAPI.ts +++ b/samples/openapi3/client/petstore/typescript/builds/inversify/services/ObjectParamAPI.ts @@ -2,24 +2,22 @@ import type { HttpFile } from '../http/http'; import type { Configuration } from '../configuration' import type * as req from "../types/ObjectParamAPI"; -import type { ApiResponse } from '../models/ApiResponse'; -import type { Category } from '../models/Category'; -import type { Order } from '../models/Order'; -import type { Pet } from '../models/Pet'; -import type { Tag } from '../models/Tag'; -import type { User } from '../models/User'; +import type { ApiResponse } from '.models.ApiResponse'; +import type { Category } from '.models.Category'; +import type { Order } from '.models.Order'; +import type { Pet } from '.models.Pet'; +import type { Tag } from '.models.Tag'; +import type { User } from '.models.User'; export abstract class AbstractObjectPetApi { /** - * * Add a new pet to the store * @param param the request object */ public abstract addPet(param: req.PetApiAddPetRequest, options?: Configuration): Promise; /** - * * Deletes a pet * @param param the request object */ @@ -47,21 +45,18 @@ export abstract class AbstractObjectPetApi { public abstract getPetById(param: req.PetApiGetPetByIdRequest, options?: Configuration): Promise; /** - * * Update an existing pet * @param param the request object */ public abstract updatePet(param: req.PetApiUpdatePetRequest, options?: Configuration): Promise; /** - * * Updates a pet in the store with form data * @param param the request object */ public abstract updatePetWithForm(param: req.PetApiUpdatePetWithFormRequest, options?: Configuration): Promise; /** - * * uploads an image * @param param the request object */ @@ -93,7 +88,6 @@ export abstract class AbstractObjectStoreApi { public abstract getOrderById(param: req.StoreApiGetOrderByIdRequest, options?: Configuration): Promise; /** - * * Place an order for a pet * @param param the request object */ @@ -111,14 +105,12 @@ export abstract class AbstractObjectUserApi { public abstract createUser(param: req.UserApiCreateUserRequest, options?: Configuration): Promise; /** - * * Creates list of users with given input array * @param param the request object */ public abstract createUsersWithArrayInput(param: req.UserApiCreateUsersWithArrayInputRequest, options?: Configuration): Promise; /** - * * Creates list of users with given input array * @param param the request object */ @@ -132,21 +124,18 @@ export abstract class AbstractObjectUserApi { public abstract deleteUser(param: req.UserApiDeleteUserRequest, options?: Configuration): Promise; /** - * * Get user by user name * @param param the request object */ public abstract getUserByName(param: req.UserApiGetUserByNameRequest, options?: Configuration): Promise; /** - * * Logs user into the system * @param param the request object */ public abstract loginUser(param: req.UserApiLoginUserRequest, options?: Configuration): Promise; /** - * * Logs out current logged in user session * @param param the request object */ diff --git a/samples/openapi3/client/petstore/typescript/builds/inversify/services/ObservableAPI.ts b/samples/openapi3/client/petstore/typescript/builds/inversify/services/ObservableAPI.ts index 014636645ab..cbc63842b63 100644 --- a/samples/openapi3/client/petstore/typescript/builds/inversify/services/ObservableAPI.ts +++ b/samples/openapi3/client/petstore/typescript/builds/inversify/services/ObservableAPI.ts @@ -2,12 +2,12 @@ import type { HttpFile } from "../http/http"; import type { Observable } from "../rxjsStub"; import type { Configuration } from "../configuration"; -import { ApiResponse } from "../models/ApiResponse"; -import { Category } from "../models/Category"; -import { Order } from "../models/Order"; -import { Pet } from "../models/Pet"; -import { Tag } from "../models/Tag"; -import { User } from "../models/User"; +import { ApiResponse } from ".models.ApiResponse"; +import { Category } from ".models.Category"; +import { Order } from ".models.Order"; +import { Pet } from ".models.Pet"; +import { Tag } from ".models.Tag"; +import { User } from ".models.User"; export abstract class AbstractObservablePetApi { diff --git a/samples/openapi3/client/petstore/typescript/builds/inversify/services/PromiseAPI.ts b/samples/openapi3/client/petstore/typescript/builds/inversify/services/PromiseAPI.ts index 121ef651dae..c163eaf2647 100644 --- a/samples/openapi3/client/petstore/typescript/builds/inversify/services/PromiseAPI.ts +++ b/samples/openapi3/client/petstore/typescript/builds/inversify/services/PromiseAPI.ts @@ -1,12 +1,12 @@ import type { HttpFile } from "../http/http"; import type { Configuration } from "../configuration"; -import { ApiResponse } from "../models/ApiResponse"; -import { Category } from "../models/Category"; -import { Order } from "../models/Order"; -import { Pet } from "../models/Pet"; -import { Tag } from "../models/Tag"; -import { User } from "../models/User"; +import { ApiResponse } from ".models.ApiResponse"; +import { Category } from ".models.Category"; +import { Order } from ".models.Order"; +import { Pet } from ".models.Pet"; +import { Tag } from ".models.Tag"; +import { User } from ".models.User"; export abstract class AbstractPromisePetApi { diff --git a/samples/openapi3/client/petstore/typescript/builds/inversify/types/ObjectParamAPI.ts b/samples/openapi3/client/petstore/typescript/builds/inversify/types/ObjectParamAPI.ts index 41dfaebdde1..22e5983c7f2 100644 --- a/samples/openapi3/client/petstore/typescript/builds/inversify/types/ObjectParamAPI.ts +++ b/samples/openapi3/client/petstore/typescript/builds/inversify/types/ObjectParamAPI.ts @@ -1,12 +1,12 @@ import { ResponseContext, RequestContext, HttpFile } from '../http/http'; import { Configuration} from '../configuration' -import { ApiResponse } from '../models/ApiResponse'; -import { Category } from '../models/Category'; -import { Order } from '../models/Order'; -import { Pet } from '../models/Pet'; -import { Tag } from '../models/Tag'; -import { User } from '../models/User'; +import { ApiResponse } from '.models.ApiResponse'; +import { Category } from '.models.Category'; +import { Order } from '.models.Order'; +import { Pet } from '.models.Pet'; +import { Tag } from '.models.Tag'; +import { User } from '.models.User'; import { ObservablePetApi } from "./ObservableAPI"; import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi"; @@ -121,7 +121,6 @@ export class ObjectPetApi { } /** - * * Add a new pet to the store * @param param the request object */ @@ -130,7 +129,6 @@ export class ObjectPetApi { } /** - * * Deletes a pet * @param param the request object */ @@ -166,7 +164,6 @@ export class ObjectPetApi { } /** - * * Update an existing pet * @param param the request object */ @@ -175,7 +172,6 @@ export class ObjectPetApi { } /** - * * Updates a pet in the store with form data * @param param the request object */ @@ -184,7 +180,6 @@ export class ObjectPetApi { } /** - * * uploads an image * @param param the request object */ @@ -262,7 +257,6 @@ export class ObjectStoreApi { } /** - * * Place an order for a pet * @param param the request object */ @@ -370,7 +364,6 @@ export class ObjectUserApi { } /** - * * Creates list of users with given input array * @param param the request object */ @@ -379,7 +372,6 @@ export class ObjectUserApi { } /** - * * Creates list of users with given input array * @param param the request object */ @@ -397,7 +389,6 @@ export class ObjectUserApi { } /** - * * Get user by user name * @param param the request object */ @@ -406,7 +397,6 @@ export class ObjectUserApi { } /** - * * Logs user into the system * @param param the request object */ @@ -415,7 +405,6 @@ export class ObjectUserApi { } /** - * * Logs out current logged in user session * @param param the request object */ diff --git a/samples/openapi3/client/petstore/typescript/builds/inversify/types/ObservableAPI.ts b/samples/openapi3/client/petstore/typescript/builds/inversify/types/ObservableAPI.ts index c3c1dc41516..a356d36cbc3 100644 --- a/samples/openapi3/client/petstore/typescript/builds/inversify/types/ObservableAPI.ts +++ b/samples/openapi3/client/petstore/typescript/builds/inversify/types/ObservableAPI.ts @@ -4,12 +4,12 @@ import { Observable, of, from } from '../rxjsStub'; import {mergeMap, map} from '../rxjsStub'; import { injectable, inject, optional } from "inversify"; import { AbstractConfiguration } from "../services/configuration"; -import { ApiResponse } from '../models/ApiResponse'; -import { Category } from '../models/Category'; -import { Order } from '../models/Order'; -import { Pet } from '../models/Pet'; -import { Tag } from '../models/Tag'; -import { User } from '../models/User'; +import { ApiResponse } from '.models.ApiResponse'; +import { Category } from '.models.Category'; +import { Order } from '.models.Order'; +import { Pet } from '.models.Pet'; +import { Tag } from '.models.Tag'; +import { User } from '.models.User'; import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi"; import { AbstractPetApiRequestFactory, AbstractPetApiResponseProcessor } from "../apis/PetApi.service"; @@ -31,7 +31,6 @@ export class ObservablePetApi { } /** - * * Add a new pet to the store * @param pet Pet object that needs to be added to the store */ @@ -55,7 +54,6 @@ export class ObservablePetApi { } /** - * * Deletes a pet * @param petId Pet id to delete * @param apiKey @@ -152,7 +150,6 @@ export class ObservablePetApi { } /** - * * Update an existing pet * @param pet Pet object that needs to be added to the store */ @@ -176,7 +173,6 @@ export class ObservablePetApi { } /** - * * Updates a pet in the store with form data * @param petId ID of pet that needs to be updated * @param name Updated name of the pet @@ -202,7 +198,6 @@ export class ObservablePetApi { } /** - * * uploads an image * @param petId ID of pet to update * @param additionalMetadata Additional data to pass to server @@ -320,7 +315,6 @@ export class ObservableStoreApi { } /** - * * Place an order for a pet * @param order order placed for purchasing the pet */ @@ -389,7 +383,6 @@ export class ObservableUserApi { } /** - * * Creates list of users with given input array * @param user List of user object */ @@ -413,7 +406,6 @@ export class ObservableUserApi { } /** - * * Creates list of users with given input array * @param user List of user object */ @@ -461,7 +453,6 @@ export class ObservableUserApi { } /** - * * Get user by user name * @param username The name that needs to be fetched. Use user1 for testing. */ @@ -485,7 +476,6 @@ export class ObservableUserApi { } /** - * * Logs user into the system * @param username The user name for login * @param password The password for login in clear text @@ -510,7 +500,6 @@ export class ObservableUserApi { } /** - * * Logs out current logged in user session */ public logoutUser(_options?: Configuration): Observable { diff --git a/samples/openapi3/client/petstore/typescript/builds/inversify/types/PromiseAPI.ts b/samples/openapi3/client/petstore/typescript/builds/inversify/types/PromiseAPI.ts index d1ade068256..9971dd2d61e 100644 --- a/samples/openapi3/client/petstore/typescript/builds/inversify/types/PromiseAPI.ts +++ b/samples/openapi3/client/petstore/typescript/builds/inversify/types/PromiseAPI.ts @@ -3,12 +3,12 @@ import { Configuration} from '../configuration' import { injectable, inject, optional } from "inversify"; import { AbstractConfiguration } from "../services/configuration"; -import { ApiResponse } from '../models/ApiResponse'; -import { Category } from '../models/Category'; -import { Order } from '../models/Order'; -import { Pet } from '../models/Pet'; -import { Tag } from '../models/Tag'; -import { User } from '../models/User'; +import { ApiResponse } from '.models.ApiResponse'; +import { Category } from '.models.Category'; +import { Order } from '.models.Order'; +import { Pet } from '.models.Pet'; +import { Tag } from '.models.Tag'; +import { User } from '.models.User'; import { ObservablePetApi } from './ObservableAPI'; import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi"; @@ -27,7 +27,6 @@ export class PromisePetApi { } /** - * * Add a new pet to the store * @param pet Pet object that needs to be added to the store */ @@ -37,7 +36,6 @@ export class PromisePetApi { } /** - * * Deletes a pet * @param petId Pet id to delete * @param apiKey @@ -78,7 +76,6 @@ export class PromisePetApi { } /** - * * Update an existing pet * @param pet Pet object that needs to be added to the store */ @@ -88,7 +85,6 @@ export class PromisePetApi { } /** - * * Updates a pet in the store with form data * @param petId ID of pet that needs to be updated * @param name Updated name of the pet @@ -100,7 +96,6 @@ export class PromisePetApi { } /** - * * uploads an image * @param petId ID of pet to update * @param additionalMetadata Additional data to pass to server @@ -163,7 +158,6 @@ export class PromiseStoreApi { } /** - * * Place an order for a pet * @param order order placed for purchasing the pet */ @@ -205,7 +199,6 @@ export class PromiseUserApi { } /** - * * Creates list of users with given input array * @param user List of user object */ @@ -215,7 +208,6 @@ export class PromiseUserApi { } /** - * * Creates list of users with given input array * @param user List of user object */ @@ -235,7 +227,6 @@ export class PromiseUserApi { } /** - * * Get user by user name * @param username The name that needs to be fetched. Use user1 for testing. */ @@ -245,7 +236,6 @@ export class PromiseUserApi { } /** - * * Logs user into the system * @param username The user name for login * @param password The password for login in clear text @@ -256,7 +246,6 @@ export class PromiseUserApi { } /** - * * Logs out current logged in user session */ public logoutUser(_options?: Configuration): Promise { diff --git a/samples/openapi3/client/petstore/typescript/builds/jquery/.openapi-generator/VERSION b/samples/openapi3/client/petstore/typescript/builds/jquery/.openapi-generator/VERSION index d6b4ec4aa78..4b448de535c 100644 --- a/samples/openapi3/client/petstore/typescript/builds/jquery/.openapi-generator/VERSION +++ b/samples/openapi3/client/petstore/typescript/builds/jquery/.openapi-generator/VERSION @@ -1 +1 @@ -6.3.0-SNAPSHOT \ No newline at end of file +5.3.0-SNAPSHOT \ No newline at end of file diff --git a/samples/openapi3/client/petstore/typescript/builds/jquery/PetApi.md b/samples/openapi3/client/petstore/typescript/builds/jquery/PetApi.md index 2aac946907b..2fe727d84fa 100644 --- a/samples/openapi3/client/petstore/typescript/builds/jquery/PetApi.md +++ b/samples/openapi3/client/petstore/typescript/builds/jquery/PetApi.md @@ -18,7 +18,6 @@ Method | HTTP request | Description > Pet addPet(pet) - ### Example @@ -90,7 +89,6 @@ Name | Type | Description | Notes > deletePet() - ### Example @@ -317,7 +315,6 @@ Name | Type | Description | Notes > Pet updatePet(pet) - ### Example @@ -391,7 +388,6 @@ Name | Type | Description | Notes > updatePetWithForm() - ### Example @@ -451,7 +447,6 @@ void (empty response body) > ApiResponse uploadFile() - ### Example diff --git a/samples/openapi3/client/petstore/typescript/builds/jquery/StoreApi.md b/samples/openapi3/client/petstore/typescript/builds/jquery/StoreApi.md index b7d89db061f..866f3c6ab97 100644 --- a/samples/openapi3/client/petstore/typescript/builds/jquery/StoreApi.md +++ b/samples/openapi3/client/petstore/typescript/builds/jquery/StoreApi.md @@ -173,7 +173,6 @@ No authorization required > Order placeOrder(order) - ### Example diff --git a/samples/openapi3/client/petstore/typescript/builds/jquery/UserApi.md b/samples/openapi3/client/petstore/typescript/builds/jquery/UserApi.md index c18f5d94896..3aa75a41422 100644 --- a/samples/openapi3/client/petstore/typescript/builds/jquery/UserApi.md +++ b/samples/openapi3/client/petstore/typescript/builds/jquery/UserApi.md @@ -81,7 +81,6 @@ void (empty response body) > createUsersWithArrayInput(user) - ### Example @@ -146,7 +145,6 @@ void (empty response body) > createUsersWithListInput(user) - ### Example @@ -266,7 +264,6 @@ void (empty response body) > User getUserByName() - ### Example @@ -322,7 +319,6 @@ No authorization required > string loginUser() - ### Example @@ -380,7 +376,6 @@ No authorization required > logoutUser() - ### Example diff --git a/samples/openapi3/client/petstore/typescript/builds/jquery/apis/PetApi.ts b/samples/openapi3/client/petstore/typescript/builds/jquery/apis/PetApi.ts index 514291812d2..f00c393797b 100644 --- a/samples/openapi3/client/petstore/typescript/builds/jquery/apis/PetApi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/jquery/apis/PetApi.ts @@ -8,8 +8,8 @@ import {canConsumeForm, isCodeInRange} from '../util'; import {SecurityAuthentication} from '../auth/auth'; -import { ApiResponse } from '../models/ApiResponse'; -import { Pet } from '../models/Pet'; +import { ApiResponse } from '/models/ApiResponse'; +import { Pet } from '/models/Pet'; /** * no description @@ -17,7 +17,6 @@ import { Pet } from '../models/Pet'; export class PetApiRequestFactory extends BaseAPIRequestFactory { /** - * * Add a new pet to the store * @param pet Pet object that needs to be added to the store */ @@ -67,7 +66,6 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { } /** - * * Deletes a pet * @param petId Pet id to delete * @param apiKey @@ -232,7 +230,6 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { } /** - * * Update an existing pet * @param pet Pet object that needs to be added to the store */ @@ -282,7 +279,6 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { } /** - * * Updates a pet in the store with form data * @param petId ID of pet that needs to be updated * @param name Updated name of the pet @@ -353,7 +349,6 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { } /** - * * uploads an image * @param petId ID of pet to update * @param additionalMetadata Additional data to pass to server diff --git a/samples/openapi3/client/petstore/typescript/builds/jquery/apis/StoreApi.ts b/samples/openapi3/client/petstore/typescript/builds/jquery/apis/StoreApi.ts index 31cf3aa1f55..9f8ed0298c5 100644 --- a/samples/openapi3/client/petstore/typescript/builds/jquery/apis/StoreApi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/jquery/apis/StoreApi.ts @@ -8,7 +8,7 @@ import {canConsumeForm, isCodeInRange} from '../util'; import {SecurityAuthentication} from '../auth/auth'; -import { Order } from '../models/Order'; +import { Order } from '/models/Order'; /** * no description @@ -110,7 +110,6 @@ export class StoreApiRequestFactory extends BaseAPIRequestFactory { } /** - * * Place an order for a pet * @param order order placed for purchasing the pet */ diff --git a/samples/openapi3/client/petstore/typescript/builds/jquery/apis/UserApi.ts b/samples/openapi3/client/petstore/typescript/builds/jquery/apis/UserApi.ts index 0331c7117d5..f014335f199 100644 --- a/samples/openapi3/client/petstore/typescript/builds/jquery/apis/UserApi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/jquery/apis/UserApi.ts @@ -8,7 +8,7 @@ import {canConsumeForm, isCodeInRange} from '../util'; import {SecurityAuthentication} from '../auth/auth'; -import { User } from '../models/User'; +import { User } from '/models/User'; /** * no description @@ -64,7 +64,6 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory { } /** - * * Creates list of users with given input array * @param user List of user object */ @@ -112,7 +111,6 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory { } /** - * * Creates list of users with given input array * @param user List of user object */ @@ -198,7 +196,6 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory { } /** - * * Get user by user name * @param username The name that needs to be fetched. Use user1 for testing. */ @@ -230,7 +227,6 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory { } /** - * * Logs user into the system * @param username The user name for login * @param password The password for login in clear text @@ -278,7 +274,6 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory { } /** - * * Logs out current logged in user session */ public async logoutUser(_options?: Configuration): Promise { diff --git a/samples/openapi3/client/petstore/typescript/builds/jquery/models/ObjectSerializer.ts b/samples/openapi3/client/petstore/typescript/builds/jquery/models/ObjectSerializer.ts index a5f5708b12c..28b6b13fd3e 100644 --- a/samples/openapi3/client/petstore/typescript/builds/jquery/models/ObjectSerializer.ts +++ b/samples/openapi3/client/petstore/typescript/builds/jquery/models/ObjectSerializer.ts @@ -1,16 +1,16 @@ -export * from '../models/ApiResponse'; -export * from '../models/Category'; -export * from '../models/Order'; -export * from '../models/Pet'; -export * from '../models/Tag'; -export * from '../models/User'; +export * from '.models.ApiResponse'; +export * from '.models.Category'; +export * from '.models.Order'; +export * from '.models.Pet'; +export * from '.models.Tag'; +export * from '.models.User'; -import { ApiResponse } from '../models/ApiResponse'; -import { Category } from '../models/Category'; -import { Order , OrderStatusEnum } from '../models/Order'; -import { Pet , PetStatusEnum } from '../models/Pet'; -import { Tag } from '../models/Tag'; -import { User } from '../models/User'; +import { ApiResponse } from '.models.ApiResponse'; +import { Category } from '.models.Category'; +import { Order , OrderStatusEnum } from '.models.Order'; +import { Pet , PetStatusEnum } from '.models.Pet'; +import { Tag } from '.models.Tag'; +import { User } from '.models.User'; /* tslint:disable:no-unused-variable */ let primitives = [ diff --git a/samples/openapi3/client/petstore/typescript/builds/jquery/models/Pet.ts b/samples/openapi3/client/petstore/typescript/builds/jquery/models/Pet.ts index b3a7ddb9f71..414f1be4944 100644 --- a/samples/openapi3/client/petstore/typescript/builds/jquery/models/Pet.ts +++ b/samples/openapi3/client/petstore/typescript/builds/jquery/models/Pet.ts @@ -10,8 +10,8 @@ * Do not edit the class manually. */ -import { Category } from '../models/Category'; -import { Tag } from '../models/Tag'; +import { Category } from 'Category'; +import { Tag } from 'Tag'; import { HttpFile } from '../http/http'; /** diff --git a/samples/openapi3/client/petstore/typescript/builds/jquery/models/all.ts b/samples/openapi3/client/petstore/typescript/builds/jquery/models/all.ts index d63b43c9674..e0118328c0f 100644 --- a/samples/openapi3/client/petstore/typescript/builds/jquery/models/all.ts +++ b/samples/openapi3/client/petstore/typescript/builds/jquery/models/all.ts @@ -1,6 +1,6 @@ -export * from '../models/ApiResponse' -export * from '../models/Category' -export * from '../models/Order' -export * from '../models/Pet' -export * from '../models/Tag' -export * from '../models/User' +export * from '.models.ApiResponse' +export * from '.models.Category' +export * from '.models.Order' +export * from '.models.Pet' +export * from '.models.Tag' +export * from '.models.User' diff --git a/samples/openapi3/client/petstore/typescript/builds/jquery/types/ObjectParamAPI.ts b/samples/openapi3/client/petstore/typescript/builds/jquery/types/ObjectParamAPI.ts index 41dfaebdde1..22e5983c7f2 100644 --- a/samples/openapi3/client/petstore/typescript/builds/jquery/types/ObjectParamAPI.ts +++ b/samples/openapi3/client/petstore/typescript/builds/jquery/types/ObjectParamAPI.ts @@ -1,12 +1,12 @@ import { ResponseContext, RequestContext, HttpFile } from '../http/http'; import { Configuration} from '../configuration' -import { ApiResponse } from '../models/ApiResponse'; -import { Category } from '../models/Category'; -import { Order } from '../models/Order'; -import { Pet } from '../models/Pet'; -import { Tag } from '../models/Tag'; -import { User } from '../models/User'; +import { ApiResponse } from '.models.ApiResponse'; +import { Category } from '.models.Category'; +import { Order } from '.models.Order'; +import { Pet } from '.models.Pet'; +import { Tag } from '.models.Tag'; +import { User } from '.models.User'; import { ObservablePetApi } from "./ObservableAPI"; import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi"; @@ -121,7 +121,6 @@ export class ObjectPetApi { } /** - * * Add a new pet to the store * @param param the request object */ @@ -130,7 +129,6 @@ export class ObjectPetApi { } /** - * * Deletes a pet * @param param the request object */ @@ -166,7 +164,6 @@ export class ObjectPetApi { } /** - * * Update an existing pet * @param param the request object */ @@ -175,7 +172,6 @@ export class ObjectPetApi { } /** - * * Updates a pet in the store with form data * @param param the request object */ @@ -184,7 +180,6 @@ export class ObjectPetApi { } /** - * * uploads an image * @param param the request object */ @@ -262,7 +257,6 @@ export class ObjectStoreApi { } /** - * * Place an order for a pet * @param param the request object */ @@ -370,7 +364,6 @@ export class ObjectUserApi { } /** - * * Creates list of users with given input array * @param param the request object */ @@ -379,7 +372,6 @@ export class ObjectUserApi { } /** - * * Creates list of users with given input array * @param param the request object */ @@ -397,7 +389,6 @@ export class ObjectUserApi { } /** - * * Get user by user name * @param param the request object */ @@ -406,7 +397,6 @@ export class ObjectUserApi { } /** - * * Logs user into the system * @param param the request object */ @@ -415,7 +405,6 @@ export class ObjectUserApi { } /** - * * Logs out current logged in user session * @param param the request object */ diff --git a/samples/openapi3/client/petstore/typescript/builds/jquery/types/ObservableAPI.ts b/samples/openapi3/client/petstore/typescript/builds/jquery/types/ObservableAPI.ts index 5e9397ea69f..5187367bc6c 100644 --- a/samples/openapi3/client/petstore/typescript/builds/jquery/types/ObservableAPI.ts +++ b/samples/openapi3/client/petstore/typescript/builds/jquery/types/ObservableAPI.ts @@ -2,12 +2,12 @@ import { ResponseContext, RequestContext, HttpFile } from '../http/http'; import { Configuration} from '../configuration' import { Observable, of, from } from '../rxjsStub'; import {mergeMap, map} from '../rxjsStub'; -import { ApiResponse } from '../models/ApiResponse'; -import { Category } from '../models/Category'; -import { Order } from '../models/Order'; -import { Pet } from '../models/Pet'; -import { Tag } from '../models/Tag'; -import { User } from '../models/User'; +import { ApiResponse } from '.models.ApiResponse'; +import { Category } from '.models.Category'; +import { Order } from '.models.Order'; +import { Pet } from '.models.Pet'; +import { Tag } from '.models.Tag'; +import { User } from '.models.User'; import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi"; export class ObservablePetApi { @@ -26,7 +26,6 @@ export class ObservablePetApi { } /** - * * Add a new pet to the store * @param pet Pet object that needs to be added to the store */ @@ -50,7 +49,6 @@ export class ObservablePetApi { } /** - * * Deletes a pet * @param petId Pet id to delete * @param apiKey @@ -147,7 +145,6 @@ export class ObservablePetApi { } /** - * * Update an existing pet * @param pet Pet object that needs to be added to the store */ @@ -171,7 +168,6 @@ export class ObservablePetApi { } /** - * * Updates a pet in the store with form data * @param petId ID of pet that needs to be updated * @param name Updated name of the pet @@ -197,7 +193,6 @@ export class ObservablePetApi { } /** - * * uploads an image * @param petId ID of pet to update * @param additionalMetadata Additional data to pass to server @@ -312,7 +307,6 @@ export class ObservableStoreApi { } /** - * * Place an order for a pet * @param order order placed for purchasing the pet */ @@ -378,7 +372,6 @@ export class ObservableUserApi { } /** - * * Creates list of users with given input array * @param user List of user object */ @@ -402,7 +395,6 @@ export class ObservableUserApi { } /** - * * Creates list of users with given input array * @param user List of user object */ @@ -450,7 +442,6 @@ export class ObservableUserApi { } /** - * * Get user by user name * @param username The name that needs to be fetched. Use user1 for testing. */ @@ -474,7 +465,6 @@ export class ObservableUserApi { } /** - * * Logs user into the system * @param username The user name for login * @param password The password for login in clear text @@ -499,7 +489,6 @@ export class ObservableUserApi { } /** - * * Logs out current logged in user session */ public logoutUser(_options?: Configuration): Observable { diff --git a/samples/openapi3/client/petstore/typescript/builds/jquery/types/PromiseAPI.ts b/samples/openapi3/client/petstore/typescript/builds/jquery/types/PromiseAPI.ts index c86ac4a84f3..423866f336c 100644 --- a/samples/openapi3/client/petstore/typescript/builds/jquery/types/PromiseAPI.ts +++ b/samples/openapi3/client/petstore/typescript/builds/jquery/types/PromiseAPI.ts @@ -1,12 +1,12 @@ import { ResponseContext, RequestContext, HttpFile } from '../http/http'; import { Configuration} from '../configuration' -import { ApiResponse } from '../models/ApiResponse'; -import { Category } from '../models/Category'; -import { Order } from '../models/Order'; -import { Pet } from '../models/Pet'; -import { Tag } from '../models/Tag'; -import { User } from '../models/User'; +import { ApiResponse } from '.models.ApiResponse'; +import { Category } from '.models.Category'; +import { Order } from '.models.Order'; +import { Pet } from '.models.Pet'; +import { Tag } from '.models.Tag'; +import { User } from '.models.User'; import { ObservablePetApi } from './ObservableAPI'; import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi"; @@ -22,7 +22,6 @@ export class PromisePetApi { } /** - * * Add a new pet to the store * @param pet Pet object that needs to be added to the store */ @@ -32,7 +31,6 @@ export class PromisePetApi { } /** - * * Deletes a pet * @param petId Pet id to delete * @param apiKey @@ -73,7 +71,6 @@ export class PromisePetApi { } /** - * * Update an existing pet * @param pet Pet object that needs to be added to the store */ @@ -83,7 +80,6 @@ export class PromisePetApi { } /** - * * Updates a pet in the store with form data * @param petId ID of pet that needs to be updated * @param name Updated name of the pet @@ -95,7 +91,6 @@ export class PromisePetApi { } /** - * * uploads an image * @param petId ID of pet to update * @param additionalMetadata Additional data to pass to server @@ -155,7 +150,6 @@ export class PromiseStoreApi { } /** - * * Place an order for a pet * @param order order placed for purchasing the pet */ @@ -194,7 +188,6 @@ export class PromiseUserApi { } /** - * * Creates list of users with given input array * @param user List of user object */ @@ -204,7 +197,6 @@ export class PromiseUserApi { } /** - * * Creates list of users with given input array * @param user List of user object */ @@ -224,7 +216,6 @@ export class PromiseUserApi { } /** - * * Get user by user name * @param username The name that needs to be fetched. Use user1 for testing. */ @@ -234,7 +225,6 @@ export class PromiseUserApi { } /** - * * Logs user into the system * @param username The user name for login * @param password The password for login in clear text @@ -245,7 +235,6 @@ export class PromiseUserApi { } /** - * * Logs out current logged in user session */ public logoutUser(_options?: Configuration): Promise { diff --git a/samples/openapi3/client/petstore/typescript/builds/object_params/.openapi-generator/VERSION b/samples/openapi3/client/petstore/typescript/builds/object_params/.openapi-generator/VERSION index d6b4ec4aa78..4b448de535c 100644 --- a/samples/openapi3/client/petstore/typescript/builds/object_params/.openapi-generator/VERSION +++ b/samples/openapi3/client/petstore/typescript/builds/object_params/.openapi-generator/VERSION @@ -1 +1 @@ -6.3.0-SNAPSHOT \ No newline at end of file +5.3.0-SNAPSHOT \ No newline at end of file diff --git a/samples/openapi3/client/petstore/typescript/builds/object_params/PetApi.md b/samples/openapi3/client/petstore/typescript/builds/object_params/PetApi.md index 2aac946907b..2fe727d84fa 100644 --- a/samples/openapi3/client/petstore/typescript/builds/object_params/PetApi.md +++ b/samples/openapi3/client/petstore/typescript/builds/object_params/PetApi.md @@ -18,7 +18,6 @@ Method | HTTP request | Description > Pet addPet(pet) - ### Example @@ -90,7 +89,6 @@ Name | Type | Description | Notes > deletePet() - ### Example @@ -317,7 +315,6 @@ Name | Type | Description | Notes > Pet updatePet(pet) - ### Example @@ -391,7 +388,6 @@ Name | Type | Description | Notes > updatePetWithForm() - ### Example @@ -451,7 +447,6 @@ void (empty response body) > ApiResponse uploadFile() - ### Example diff --git a/samples/openapi3/client/petstore/typescript/builds/object_params/StoreApi.md b/samples/openapi3/client/petstore/typescript/builds/object_params/StoreApi.md index b7d89db061f..866f3c6ab97 100644 --- a/samples/openapi3/client/petstore/typescript/builds/object_params/StoreApi.md +++ b/samples/openapi3/client/petstore/typescript/builds/object_params/StoreApi.md @@ -173,7 +173,6 @@ No authorization required > Order placeOrder(order) - ### Example diff --git a/samples/openapi3/client/petstore/typescript/builds/object_params/UserApi.md b/samples/openapi3/client/petstore/typescript/builds/object_params/UserApi.md index c18f5d94896..3aa75a41422 100644 --- a/samples/openapi3/client/petstore/typescript/builds/object_params/UserApi.md +++ b/samples/openapi3/client/petstore/typescript/builds/object_params/UserApi.md @@ -81,7 +81,6 @@ void (empty response body) > createUsersWithArrayInput(user) - ### Example @@ -146,7 +145,6 @@ void (empty response body) > createUsersWithListInput(user) - ### Example @@ -266,7 +264,6 @@ void (empty response body) > User getUserByName() - ### Example @@ -322,7 +319,6 @@ No authorization required > string loginUser() - ### Example @@ -380,7 +376,6 @@ No authorization required > logoutUser() - ### Example diff --git a/samples/openapi3/client/petstore/typescript/builds/object_params/apis/PetApi.ts b/samples/openapi3/client/petstore/typescript/builds/object_params/apis/PetApi.ts index 5b3d37fe35a..2d5ee33a5e9 100644 --- a/samples/openapi3/client/petstore/typescript/builds/object_params/apis/PetApi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/object_params/apis/PetApi.ts @@ -10,8 +10,8 @@ import {canConsumeForm, isCodeInRange} from '../util'; import {SecurityAuthentication} from '../auth/auth'; -import { ApiResponse } from '../models/ApiResponse'; -import { Pet } from '../models/Pet'; +import { ApiResponse } from '/models/ApiResponse'; +import { Pet } from '/models/Pet'; /** * no description @@ -19,7 +19,6 @@ import { Pet } from '../models/Pet'; export class PetApiRequestFactory extends BaseAPIRequestFactory { /** - * * Add a new pet to the store * @param pet Pet object that needs to be added to the store */ @@ -69,7 +68,6 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { } /** - * * Deletes a pet * @param petId Pet id to delete * @param apiKey @@ -234,7 +232,6 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { } /** - * * Update an existing pet * @param pet Pet object that needs to be added to the store */ @@ -284,7 +281,6 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { } /** - * * Updates a pet in the store with form data * @param petId ID of pet that needs to be updated * @param name Updated name of the pet @@ -355,7 +351,6 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { } /** - * * uploads an image * @param petId ID of pet to update * @param additionalMetadata Additional data to pass to server diff --git a/samples/openapi3/client/petstore/typescript/builds/object_params/apis/StoreApi.ts b/samples/openapi3/client/petstore/typescript/builds/object_params/apis/StoreApi.ts index 3bb0a2de754..7b597dcf926 100644 --- a/samples/openapi3/client/petstore/typescript/builds/object_params/apis/StoreApi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/object_params/apis/StoreApi.ts @@ -10,7 +10,7 @@ import {canConsumeForm, isCodeInRange} from '../util'; import {SecurityAuthentication} from '../auth/auth'; -import { Order } from '../models/Order'; +import { Order } from '/models/Order'; /** * no description @@ -112,7 +112,6 @@ export class StoreApiRequestFactory extends BaseAPIRequestFactory { } /** - * * Place an order for a pet * @param order order placed for purchasing the pet */ diff --git a/samples/openapi3/client/petstore/typescript/builds/object_params/apis/UserApi.ts b/samples/openapi3/client/petstore/typescript/builds/object_params/apis/UserApi.ts index 352b499b378..b44bed69aff 100644 --- a/samples/openapi3/client/petstore/typescript/builds/object_params/apis/UserApi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/object_params/apis/UserApi.ts @@ -10,7 +10,7 @@ import {canConsumeForm, isCodeInRange} from '../util'; import {SecurityAuthentication} from '../auth/auth'; -import { User } from '../models/User'; +import { User } from '/models/User'; /** * no description @@ -66,7 +66,6 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory { } /** - * * Creates list of users with given input array * @param user List of user object */ @@ -114,7 +113,6 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory { } /** - * * Creates list of users with given input array * @param user List of user object */ @@ -200,7 +198,6 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory { } /** - * * Get user by user name * @param username The name that needs to be fetched. Use user1 for testing. */ @@ -232,7 +229,6 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory { } /** - * * Logs user into the system * @param username The user name for login * @param password The password for login in clear text @@ -280,7 +276,6 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory { } /** - * * Logs out current logged in user session */ public async logoutUser(_options?: Configuration): Promise { diff --git a/samples/openapi3/client/petstore/typescript/builds/object_params/models/ObjectSerializer.ts b/samples/openapi3/client/petstore/typescript/builds/object_params/models/ObjectSerializer.ts index a5f5708b12c..28b6b13fd3e 100644 --- a/samples/openapi3/client/petstore/typescript/builds/object_params/models/ObjectSerializer.ts +++ b/samples/openapi3/client/petstore/typescript/builds/object_params/models/ObjectSerializer.ts @@ -1,16 +1,16 @@ -export * from '../models/ApiResponse'; -export * from '../models/Category'; -export * from '../models/Order'; -export * from '../models/Pet'; -export * from '../models/Tag'; -export * from '../models/User'; +export * from '.models.ApiResponse'; +export * from '.models.Category'; +export * from '.models.Order'; +export * from '.models.Pet'; +export * from '.models.Tag'; +export * from '.models.User'; -import { ApiResponse } from '../models/ApiResponse'; -import { Category } from '../models/Category'; -import { Order , OrderStatusEnum } from '../models/Order'; -import { Pet , PetStatusEnum } from '../models/Pet'; -import { Tag } from '../models/Tag'; -import { User } from '../models/User'; +import { ApiResponse } from '.models.ApiResponse'; +import { Category } from '.models.Category'; +import { Order , OrderStatusEnum } from '.models.Order'; +import { Pet , PetStatusEnum } from '.models.Pet'; +import { Tag } from '.models.Tag'; +import { User } from '.models.User'; /* tslint:disable:no-unused-variable */ let primitives = [ diff --git a/samples/openapi3/client/petstore/typescript/builds/object_params/models/Pet.ts b/samples/openapi3/client/petstore/typescript/builds/object_params/models/Pet.ts index b3a7ddb9f71..414f1be4944 100644 --- a/samples/openapi3/client/petstore/typescript/builds/object_params/models/Pet.ts +++ b/samples/openapi3/client/petstore/typescript/builds/object_params/models/Pet.ts @@ -10,8 +10,8 @@ * Do not edit the class manually. */ -import { Category } from '../models/Category'; -import { Tag } from '../models/Tag'; +import { Category } from 'Category'; +import { Tag } from 'Tag'; import { HttpFile } from '../http/http'; /** diff --git a/samples/openapi3/client/petstore/typescript/builds/object_params/models/all.ts b/samples/openapi3/client/petstore/typescript/builds/object_params/models/all.ts index d63b43c9674..e0118328c0f 100644 --- a/samples/openapi3/client/petstore/typescript/builds/object_params/models/all.ts +++ b/samples/openapi3/client/petstore/typescript/builds/object_params/models/all.ts @@ -1,6 +1,6 @@ -export * from '../models/ApiResponse' -export * from '../models/Category' -export * from '../models/Order' -export * from '../models/Pet' -export * from '../models/Tag' -export * from '../models/User' +export * from '.models.ApiResponse' +export * from '.models.Category' +export * from '.models.Order' +export * from '.models.Pet' +export * from '.models.Tag' +export * from '.models.User' diff --git a/samples/openapi3/client/petstore/typescript/builds/object_params/types/ObjectParamAPI.ts b/samples/openapi3/client/petstore/typescript/builds/object_params/types/ObjectParamAPI.ts index 41dfaebdde1..22e5983c7f2 100644 --- a/samples/openapi3/client/petstore/typescript/builds/object_params/types/ObjectParamAPI.ts +++ b/samples/openapi3/client/petstore/typescript/builds/object_params/types/ObjectParamAPI.ts @@ -1,12 +1,12 @@ import { ResponseContext, RequestContext, HttpFile } from '../http/http'; import { Configuration} from '../configuration' -import { ApiResponse } from '../models/ApiResponse'; -import { Category } from '../models/Category'; -import { Order } from '../models/Order'; -import { Pet } from '../models/Pet'; -import { Tag } from '../models/Tag'; -import { User } from '../models/User'; +import { ApiResponse } from '.models.ApiResponse'; +import { Category } from '.models.Category'; +import { Order } from '.models.Order'; +import { Pet } from '.models.Pet'; +import { Tag } from '.models.Tag'; +import { User } from '.models.User'; import { ObservablePetApi } from "./ObservableAPI"; import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi"; @@ -121,7 +121,6 @@ export class ObjectPetApi { } /** - * * Add a new pet to the store * @param param the request object */ @@ -130,7 +129,6 @@ export class ObjectPetApi { } /** - * * Deletes a pet * @param param the request object */ @@ -166,7 +164,6 @@ export class ObjectPetApi { } /** - * * Update an existing pet * @param param the request object */ @@ -175,7 +172,6 @@ export class ObjectPetApi { } /** - * * Updates a pet in the store with form data * @param param the request object */ @@ -184,7 +180,6 @@ export class ObjectPetApi { } /** - * * uploads an image * @param param the request object */ @@ -262,7 +257,6 @@ export class ObjectStoreApi { } /** - * * Place an order for a pet * @param param the request object */ @@ -370,7 +364,6 @@ export class ObjectUserApi { } /** - * * Creates list of users with given input array * @param param the request object */ @@ -379,7 +372,6 @@ export class ObjectUserApi { } /** - * * Creates list of users with given input array * @param param the request object */ @@ -397,7 +389,6 @@ export class ObjectUserApi { } /** - * * Get user by user name * @param param the request object */ @@ -406,7 +397,6 @@ export class ObjectUserApi { } /** - * * Logs user into the system * @param param the request object */ @@ -415,7 +405,6 @@ export class ObjectUserApi { } /** - * * Logs out current logged in user session * @param param the request object */ diff --git a/samples/openapi3/client/petstore/typescript/builds/object_params/types/ObservableAPI.ts b/samples/openapi3/client/petstore/typescript/builds/object_params/types/ObservableAPI.ts index 5e9397ea69f..5187367bc6c 100644 --- a/samples/openapi3/client/petstore/typescript/builds/object_params/types/ObservableAPI.ts +++ b/samples/openapi3/client/petstore/typescript/builds/object_params/types/ObservableAPI.ts @@ -2,12 +2,12 @@ import { ResponseContext, RequestContext, HttpFile } from '../http/http'; import { Configuration} from '../configuration' import { Observable, of, from } from '../rxjsStub'; import {mergeMap, map} from '../rxjsStub'; -import { ApiResponse } from '../models/ApiResponse'; -import { Category } from '../models/Category'; -import { Order } from '../models/Order'; -import { Pet } from '../models/Pet'; -import { Tag } from '../models/Tag'; -import { User } from '../models/User'; +import { ApiResponse } from '.models.ApiResponse'; +import { Category } from '.models.Category'; +import { Order } from '.models.Order'; +import { Pet } from '.models.Pet'; +import { Tag } from '.models.Tag'; +import { User } from '.models.User'; import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi"; export class ObservablePetApi { @@ -26,7 +26,6 @@ export class ObservablePetApi { } /** - * * Add a new pet to the store * @param pet Pet object that needs to be added to the store */ @@ -50,7 +49,6 @@ export class ObservablePetApi { } /** - * * Deletes a pet * @param petId Pet id to delete * @param apiKey @@ -147,7 +145,6 @@ export class ObservablePetApi { } /** - * * Update an existing pet * @param pet Pet object that needs to be added to the store */ @@ -171,7 +168,6 @@ export class ObservablePetApi { } /** - * * Updates a pet in the store with form data * @param petId ID of pet that needs to be updated * @param name Updated name of the pet @@ -197,7 +193,6 @@ export class ObservablePetApi { } /** - * * uploads an image * @param petId ID of pet to update * @param additionalMetadata Additional data to pass to server @@ -312,7 +307,6 @@ export class ObservableStoreApi { } /** - * * Place an order for a pet * @param order order placed for purchasing the pet */ @@ -378,7 +372,6 @@ export class ObservableUserApi { } /** - * * Creates list of users with given input array * @param user List of user object */ @@ -402,7 +395,6 @@ export class ObservableUserApi { } /** - * * Creates list of users with given input array * @param user List of user object */ @@ -450,7 +442,6 @@ export class ObservableUserApi { } /** - * * Get user by user name * @param username The name that needs to be fetched. Use user1 for testing. */ @@ -474,7 +465,6 @@ export class ObservableUserApi { } /** - * * Logs user into the system * @param username The user name for login * @param password The password for login in clear text @@ -499,7 +489,6 @@ export class ObservableUserApi { } /** - * * Logs out current logged in user session */ public logoutUser(_options?: Configuration): Observable { diff --git a/samples/openapi3/client/petstore/typescript/builds/object_params/types/PromiseAPI.ts b/samples/openapi3/client/petstore/typescript/builds/object_params/types/PromiseAPI.ts index c86ac4a84f3..423866f336c 100644 --- a/samples/openapi3/client/petstore/typescript/builds/object_params/types/PromiseAPI.ts +++ b/samples/openapi3/client/petstore/typescript/builds/object_params/types/PromiseAPI.ts @@ -1,12 +1,12 @@ import { ResponseContext, RequestContext, HttpFile } from '../http/http'; import { Configuration} from '../configuration' -import { ApiResponse } from '../models/ApiResponse'; -import { Category } from '../models/Category'; -import { Order } from '../models/Order'; -import { Pet } from '../models/Pet'; -import { Tag } from '../models/Tag'; -import { User } from '../models/User'; +import { ApiResponse } from '.models.ApiResponse'; +import { Category } from '.models.Category'; +import { Order } from '.models.Order'; +import { Pet } from '.models.Pet'; +import { Tag } from '.models.Tag'; +import { User } from '.models.User'; import { ObservablePetApi } from './ObservableAPI'; import { PetApiRequestFactory, PetApiResponseProcessor} from "../apis/PetApi"; @@ -22,7 +22,6 @@ export class PromisePetApi { } /** - * * Add a new pet to the store * @param pet Pet object that needs to be added to the store */ @@ -32,7 +31,6 @@ export class PromisePetApi { } /** - * * Deletes a pet * @param petId Pet id to delete * @param apiKey @@ -73,7 +71,6 @@ export class PromisePetApi { } /** - * * Update an existing pet * @param pet Pet object that needs to be added to the store */ @@ -83,7 +80,6 @@ export class PromisePetApi { } /** - * * Updates a pet in the store with form data * @param petId ID of pet that needs to be updated * @param name Updated name of the pet @@ -95,7 +91,6 @@ export class PromisePetApi { } /** - * * uploads an image * @param petId ID of pet to update * @param additionalMetadata Additional data to pass to server @@ -155,7 +150,6 @@ export class PromiseStoreApi { } /** - * * Place an order for a pet * @param order order placed for purchasing the pet */ @@ -194,7 +188,6 @@ export class PromiseUserApi { } /** - * * Creates list of users with given input array * @param user List of user object */ @@ -204,7 +197,6 @@ export class PromiseUserApi { } /** - * * Creates list of users with given input array * @param user List of user object */ @@ -224,7 +216,6 @@ export class PromiseUserApi { } /** - * * Get user by user name * @param username The name that needs to be fetched. Use user1 for testing. */ @@ -234,7 +225,6 @@ export class PromiseUserApi { } /** - * * Logs user into the system * @param username The user name for login * @param password The password for login in clear text @@ -245,7 +235,6 @@ export class PromiseUserApi { } /** - * * Logs out current logged in user session */ public logoutUser(_options?: Configuration): Promise {