diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptJqueryClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptJqueryClientCodegen.java index 247bee5b63e6..135663c2cf5b 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptJqueryClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptJqueryClientCodegen.java @@ -134,15 +134,6 @@ public class TypeScriptJqueryClientCodegen extends AbstractTypeScriptClientCodeg return addModelPrefix(name); } - @Override - public void postProcessParameter(CodegenParameter parameter) { - super.postProcessParameter(parameter); - - if (!parameter.isEnum) { - parameter.dataType = addModelPrefix(parameter.dataType); - } - } - @Override protected void addAdditionPropertiesToCodeGenModel(CodegenModel codegenModel, Schema schema) { codegenModel.additionalPropertiesType = getSchemaType((Schema) schema.getAdditionalProperties()); diff --git a/modules/openapi-generator/src/main/resources/typescript-jquery/api.mustache b/modules/openapi-generator/src/main/resources/typescript-jquery/api.mustache index 71678eada2b7..182f2f09b371 100644 --- a/modules/openapi-generator/src/main/resources/typescript-jquery/api.mustache +++ b/modules/openapi-generator/src/main/resources/typescript-jquery/api.mustache @@ -238,7 +238,7 @@ export class {{classname}} { >(); $.ajax(requestOptions).then( (data: {{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}any{{/returnType}}, textStatus: string, jqXHR: JQueryXHR) => - dfd.resolve({response: jqXHR, body: data), + dfd.resolve({response: jqXHR, body: data}), (xhr: JQueryXHR, textStatus: string, errorThrown: string) => dfd.reject({response: xhr, errorThrown: errorThrown}) ); diff --git a/samples/client/petstore/typescript-jquery/default/.openapi-generator/VERSION b/samples/client/petstore/typescript-jquery/default/.openapi-generator/VERSION index 855ff9501eb8..14900cee60e8 100644 --- a/samples/client/petstore/typescript-jquery/default/.openapi-generator/VERSION +++ b/samples/client/petstore/typescript-jquery/default/.openapi-generator/VERSION @@ -1 +1 @@ -2.4.0-SNAPSHOT \ No newline at end of file +3.2.1-SNAPSHOT \ No newline at end of file diff --git a/samples/client/petstore/typescript-jquery/default/api/PetApi.ts b/samples/client/petstore/typescript-jquery/default/api/PetApi.ts index d80ef92fd5b1..d025ec3636aa 100644 --- a/samples/client/petstore/typescript-jquery/default/api/PetApi.ts +++ b/samples/client/petstore/typescript-jquery/default/api/PetApi.ts @@ -1,12 +1,12 @@ /** - * Swagger Petstore - * This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters. + * OpenAPI Petstore + * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io + * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -49,9 +49,9 @@ export class PetApi { /** * * @summary Add a new pet to the store - * @param body Pet object that needs to be added to the store + * @param pet Pet object that needs to be added to the store */ - public addPet(body: models.Pet, extraJQueryAjaxSettings?: JQueryAjaxSettings): JQuery.Promise< + public addPet(pet: models.Pet, extraJQueryAjaxSettings?: JQueryAjaxSettings): JQuery.Promise< { response: JQueryXHR; body?: any; }, { response: JQueryXHR; errorThrown: string } > { @@ -59,9 +59,9 @@ export class PetApi { let queryParameters: any = {}; let headerParams: any = {}; - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling addPet.'); + // verify required parameter 'pet' is not null or undefined + if (pet === null || pet === undefined) { + throw new Error('Required parameter pet was null or undefined when calling addPet.'); } @@ -74,8 +74,6 @@ export class PetApi { // to determine the Accept header let produces: string[] = [ - 'application/xml', - 'application/json' ]; // authentication (petstore_auth) required @@ -97,7 +95,7 @@ export class PetApi { processData: false }; - requestOptions.data = JSON.stringify(body); + requestOptions.data = JSON.stringify(pet); if (headerParams['Content-Type']) { requestOptions.contentType = headerParams['Content-Type']; } @@ -116,7 +114,7 @@ export class PetApi { >(); $.ajax(requestOptions).then( (data: any, textStatus: string, jqXHR: JQueryXHR) => - dfd.resolve({response: jqXHR, body: data), + dfd.resolve({response: jqXHR, body: data}), (xhr: JQueryXHR, textStatus: string, errorThrown: string) => dfd.reject({response: xhr, errorThrown: errorThrown}) ); @@ -152,8 +150,6 @@ export class PetApi { // to determine the Accept header let produces: string[] = [ - 'application/xml', - 'application/json' ]; // authentication (petstore_auth) required @@ -191,7 +187,7 @@ export class PetApi { >(); $.ajax(requestOptions).then( (data: any, textStatus: string, jqXHR: JQueryXHR) => - dfd.resolve({response: jqXHR, body: data), + dfd.resolve({response: jqXHR, body: data}), (xhr: JQueryXHR, textStatus: string, errorThrown: string) => dfd.reject({response: xhr, errorThrown: errorThrown}) ); @@ -266,7 +262,7 @@ export class PetApi { >(); $.ajax(requestOptions).then( (data: Array, textStatus: string, jqXHR: JQueryXHR) => - dfd.resolve({response: jqXHR, body: data), + dfd.resolve({response: jqXHR, body: data}), (xhr: JQueryXHR, textStatus: string, errorThrown: string) => dfd.reject({response: xhr, errorThrown: errorThrown}) ); @@ -341,7 +337,7 @@ export class PetApi { >(); $.ajax(requestOptions).then( (data: Array, textStatus: string, jqXHR: JQueryXHR) => - dfd.resolve({response: jqXHR, body: data), + dfd.resolve({response: jqXHR, body: data}), (xhr: JQueryXHR, textStatus: string, errorThrown: string) => dfd.reject({response: xhr, errorThrown: errorThrown}) ); @@ -409,7 +405,7 @@ export class PetApi { >(); $.ajax(requestOptions).then( (data: models.Pet, textStatus: string, jqXHR: JQueryXHR) => - dfd.resolve({response: jqXHR, body: data), + dfd.resolve({response: jqXHR, body: data}), (xhr: JQueryXHR, textStatus: string, errorThrown: string) => dfd.reject({response: xhr, errorThrown: errorThrown}) ); @@ -419,9 +415,9 @@ export class PetApi { /** * * @summary Update an existing pet - * @param body Pet object that needs to be added to the store + * @param pet Pet object that needs to be added to the store */ - public updatePet(body: models.Pet, extraJQueryAjaxSettings?: JQueryAjaxSettings): JQuery.Promise< + public updatePet(pet: models.Pet, extraJQueryAjaxSettings?: JQueryAjaxSettings): JQuery.Promise< { response: JQueryXHR; body?: any; }, { response: JQueryXHR; errorThrown: string } > { @@ -429,9 +425,9 @@ export class PetApi { let queryParameters: any = {}; let headerParams: any = {}; - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling updatePet.'); + // verify required parameter 'pet' is not null or undefined + if (pet === null || pet === undefined) { + throw new Error('Required parameter pet was null or undefined when calling updatePet.'); } @@ -444,8 +440,6 @@ export class PetApi { // to determine the Accept header let produces: string[] = [ - 'application/xml', - 'application/json' ]; // authentication (petstore_auth) required @@ -467,7 +461,7 @@ export class PetApi { processData: false }; - requestOptions.data = JSON.stringify(body); + requestOptions.data = JSON.stringify(pet); if (headerParams['Content-Type']) { requestOptions.contentType = headerParams['Content-Type']; } @@ -486,7 +480,7 @@ export class PetApi { >(); $.ajax(requestOptions).then( (data: any, textStatus: string, jqXHR: JQueryXHR) => - dfd.resolve({response: jqXHR, body: data), + dfd.resolve({response: jqXHR, body: data}), (xhr: JQueryXHR, textStatus: string, errorThrown: string) => dfd.reject({response: xhr, errorThrown: errorThrown}) ); @@ -531,8 +525,6 @@ export class PetApi { // to determine the Accept header let produces: string[] = [ - 'application/xml', - 'application/json' ]; // authentication (petstore_auth) required @@ -578,7 +570,7 @@ export class PetApi { >(); $.ajax(requestOptions).then( (data: any, textStatus: string, jqXHR: JQueryXHR) => - dfd.resolve({response: jqXHR, body: data), + dfd.resolve({response: jqXHR, body: data}), (xhr: JQueryXHR, textStatus: string, errorThrown: string) => dfd.reject({response: xhr, errorThrown: errorThrown}) ); @@ -668,7 +660,7 @@ export class PetApi { >(); $.ajax(requestOptions).then( (data: models.ApiResponse, textStatus: string, jqXHR: JQueryXHR) => - dfd.resolve({response: jqXHR, body: data), + dfd.resolve({response: jqXHR, body: data}), (xhr: JQueryXHR, textStatus: string, errorThrown: string) => dfd.reject({response: xhr, errorThrown: errorThrown}) ); diff --git a/samples/client/petstore/typescript-jquery/default/api/StoreApi.ts b/samples/client/petstore/typescript-jquery/default/api/StoreApi.ts index 3a08a004baeb..bce32cef4370 100644 --- a/samples/client/petstore/typescript-jquery/default/api/StoreApi.ts +++ b/samples/client/petstore/typescript-jquery/default/api/StoreApi.ts @@ -1,12 +1,12 @@ /** - * Swagger Petstore - * This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters. + * OpenAPI Petstore + * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io + * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -72,8 +72,6 @@ export class StoreApi { // to determine the Accept header let produces: string[] = [ - 'application/xml', - 'application/json' ]; @@ -102,7 +100,7 @@ export class StoreApi { >(); $.ajax(requestOptions).then( (data: any, textStatus: string, jqXHR: JQueryXHR) => - dfd.resolve({response: jqXHR, body: data), + dfd.resolve({response: jqXHR, body: data}), (xhr: JQueryXHR, textStatus: string, errorThrown: string) => dfd.reject({response: xhr, errorThrown: errorThrown}) ); @@ -163,7 +161,7 @@ export class StoreApi { >(); $.ajax(requestOptions).then( (data: { [key: string]: number; }, textStatus: string, jqXHR: JQueryXHR) => - dfd.resolve({response: jqXHR, body: data), + dfd.resolve({response: jqXHR, body: data}), (xhr: JQueryXHR, textStatus: string, errorThrown: string) => dfd.reject({response: xhr, errorThrown: errorThrown}) ); @@ -226,7 +224,7 @@ export class StoreApi { >(); $.ajax(requestOptions).then( (data: models.Order, textStatus: string, jqXHR: JQueryXHR) => - dfd.resolve({response: jqXHR, body: data), + dfd.resolve({response: jqXHR, body: data}), (xhr: JQueryXHR, textStatus: string, errorThrown: string) => dfd.reject({response: xhr, errorThrown: errorThrown}) ); @@ -236,9 +234,9 @@ export class StoreApi { /** * * @summary Place an order for a pet - * @param body order placed for purchasing the pet + * @param order order placed for purchasing the pet */ - public placeOrder(body: models.Order, extraJQueryAjaxSettings?: JQueryAjaxSettings): JQuery.Promise< + public placeOrder(order: models.Order, extraJQueryAjaxSettings?: JQueryAjaxSettings): JQuery.Promise< { response: JQueryXHR; body: models.Order; }, { response: JQueryXHR; errorThrown: string } > { @@ -246,9 +244,9 @@ export class StoreApi { let queryParameters: any = {}; let headerParams: any = {}; - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling placeOrder.'); + // verify required parameter 'order' is not null or undefined + if (order === null || order === undefined) { + throw new Error('Required parameter order was null or undefined when calling placeOrder.'); } @@ -273,7 +271,7 @@ export class StoreApi { processData: false }; - requestOptions.data = JSON.stringify(body); + requestOptions.data = JSON.stringify(order); if (headerParams['Content-Type']) { requestOptions.contentType = headerParams['Content-Type']; } @@ -292,7 +290,7 @@ export class StoreApi { >(); $.ajax(requestOptions).then( (data: models.Order, textStatus: string, jqXHR: JQueryXHR) => - dfd.resolve({response: jqXHR, body: data), + dfd.resolve({response: jqXHR, body: data}), (xhr: JQueryXHR, textStatus: string, errorThrown: string) => dfd.reject({response: xhr, errorThrown: errorThrown}) ); diff --git a/samples/client/petstore/typescript-jquery/default/api/UserApi.ts b/samples/client/petstore/typescript-jquery/default/api/UserApi.ts index b896fd794b4e..4c1152bffb2f 100644 --- a/samples/client/petstore/typescript-jquery/default/api/UserApi.ts +++ b/samples/client/petstore/typescript-jquery/default/api/UserApi.ts @@ -1,12 +1,12 @@ /** - * Swagger Petstore - * This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters. + * OpenAPI Petstore + * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io + * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -49,9 +49,9 @@ export class UserApi { /** * This can only be done by the logged in user. * @summary Create user - * @param body Created user object + * @param user Created user object */ - public createUser(body: models.User, extraJQueryAjaxSettings?: JQueryAjaxSettings): JQuery.Promise< + public createUser(user: models.User, extraJQueryAjaxSettings?: JQueryAjaxSettings): JQuery.Promise< { response: JQueryXHR; body?: any; }, { response: JQueryXHR; errorThrown: string } > { @@ -59,9 +59,9 @@ export class UserApi { let queryParameters: any = {}; let headerParams: any = {}; - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling createUser.'); + // verify required parameter 'user' is not null or undefined + if (user === null || user === undefined) { + throw new Error('Required parameter user was null or undefined when calling createUser.'); } @@ -72,8 +72,6 @@ export class UserApi { // to determine the Accept header let produces: string[] = [ - 'application/xml', - 'application/json' ]; @@ -86,7 +84,7 @@ export class UserApi { processData: false }; - requestOptions.data = JSON.stringify(body); + requestOptions.data = JSON.stringify(user); if (headerParams['Content-Type']) { requestOptions.contentType = headerParams['Content-Type']; } @@ -105,7 +103,7 @@ export class UserApi { >(); $.ajax(requestOptions).then( (data: any, textStatus: string, jqXHR: JQueryXHR) => - dfd.resolve({response: jqXHR, body: data), + dfd.resolve({response: jqXHR, body: data}), (xhr: JQueryXHR, textStatus: string, errorThrown: string) => dfd.reject({response: xhr, errorThrown: errorThrown}) ); @@ -115,9 +113,9 @@ export class UserApi { /** * * @summary Creates list of users with given input array - * @param body List of user object + * @param modelsUser List of user object */ - public createUsersWithArrayInput(body: Array, extraJQueryAjaxSettings?: JQueryAjaxSettings): JQuery.Promise< + public createUsersWithArrayInput(modelsUser: Array, extraJQueryAjaxSettings?: JQueryAjaxSettings): JQuery.Promise< { response: JQueryXHR; body?: any; }, { response: JQueryXHR; errorThrown: string } > { @@ -125,9 +123,9 @@ export class UserApi { let queryParameters: any = {}; let headerParams: any = {}; - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling createUsersWithArrayInput.'); + // verify required parameter 'modelsUser' is not null or undefined + if (modelsUser === null || modelsUser === undefined) { + throw new Error('Required parameter modelsUser was null or undefined when calling createUsersWithArrayInput.'); } @@ -138,8 +136,6 @@ export class UserApi { // to determine the Accept header let produces: string[] = [ - 'application/xml', - 'application/json' ]; @@ -152,7 +148,7 @@ export class UserApi { processData: false }; - requestOptions.data = JSON.stringify(body); + requestOptions.data = JSON.stringify(modelsUser); if (headerParams['Content-Type']) { requestOptions.contentType = headerParams['Content-Type']; } @@ -171,7 +167,7 @@ export class UserApi { >(); $.ajax(requestOptions).then( (data: any, textStatus: string, jqXHR: JQueryXHR) => - dfd.resolve({response: jqXHR, body: data), + dfd.resolve({response: jqXHR, body: data}), (xhr: JQueryXHR, textStatus: string, errorThrown: string) => dfd.reject({response: xhr, errorThrown: errorThrown}) ); @@ -181,9 +177,9 @@ export class UserApi { /** * * @summary Creates list of users with given input array - * @param body List of user object + * @param modelsUser List of user object */ - public createUsersWithListInput(body: Array, extraJQueryAjaxSettings?: JQueryAjaxSettings): JQuery.Promise< + public createUsersWithListInput(modelsUser: Array, extraJQueryAjaxSettings?: JQueryAjaxSettings): JQuery.Promise< { response: JQueryXHR; body?: any; }, { response: JQueryXHR; errorThrown: string } > { @@ -191,9 +187,9 @@ export class UserApi { let queryParameters: any = {}; let headerParams: any = {}; - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling createUsersWithListInput.'); + // verify required parameter 'modelsUser' is not null or undefined + if (modelsUser === null || modelsUser === undefined) { + throw new Error('Required parameter modelsUser was null or undefined when calling createUsersWithListInput.'); } @@ -204,8 +200,6 @@ export class UserApi { // to determine the Accept header let produces: string[] = [ - 'application/xml', - 'application/json' ]; @@ -218,7 +212,7 @@ export class UserApi { processData: false }; - requestOptions.data = JSON.stringify(body); + requestOptions.data = JSON.stringify(modelsUser); if (headerParams['Content-Type']) { requestOptions.contentType = headerParams['Content-Type']; } @@ -237,7 +231,7 @@ export class UserApi { >(); $.ajax(requestOptions).then( (data: any, textStatus: string, jqXHR: JQueryXHR) => - dfd.resolve({response: jqXHR, body: data), + dfd.resolve({response: jqXHR, body: data}), (xhr: JQueryXHR, textStatus: string, errorThrown: string) => dfd.reject({response: xhr, errorThrown: errorThrown}) ); @@ -270,8 +264,6 @@ export class UserApi { // to determine the Accept header let produces: string[] = [ - 'application/xml', - 'application/json' ]; @@ -300,7 +292,7 @@ export class UserApi { >(); $.ajax(requestOptions).then( (data: any, textStatus: string, jqXHR: JQueryXHR) => - dfd.resolve({response: jqXHR, body: data), + dfd.resolve({response: jqXHR, body: data}), (xhr: JQueryXHR, textStatus: string, errorThrown: string) => dfd.reject({response: xhr, errorThrown: errorThrown}) ); @@ -363,7 +355,7 @@ export class UserApi { >(); $.ajax(requestOptions).then( (data: models.User, textStatus: string, jqXHR: JQueryXHR) => - dfd.resolve({response: jqXHR, body: data), + dfd.resolve({response: jqXHR, body: data}), (xhr: JQueryXHR, textStatus: string, errorThrown: string) => dfd.reject({response: xhr, errorThrown: errorThrown}) ); @@ -438,7 +430,7 @@ export class UserApi { >(); $.ajax(requestOptions).then( (data: string, textStatus: string, jqXHR: JQueryXHR) => - dfd.resolve({response: jqXHR, body: data), + dfd.resolve({response: jqXHR, body: data}), (xhr: JQueryXHR, textStatus: string, errorThrown: string) => dfd.reject({response: xhr, errorThrown: errorThrown}) ); @@ -465,8 +457,6 @@ export class UserApi { // to determine the Accept header let produces: string[] = [ - 'application/xml', - 'application/json' ]; @@ -495,7 +485,7 @@ export class UserApi { >(); $.ajax(requestOptions).then( (data: any, textStatus: string, jqXHR: JQueryXHR) => - dfd.resolve({response: jqXHR, body: data), + dfd.resolve({response: jqXHR, body: data}), (xhr: JQueryXHR, textStatus: string, errorThrown: string) => dfd.reject({response: xhr, errorThrown: errorThrown}) ); @@ -506,9 +496,9 @@ export class UserApi { * This can only be done by the logged in user. * @summary Updated user * @param username name that need to be deleted - * @param body Updated user object + * @param user Updated user object */ - public updateUser(username: string, body: models.User, extraJQueryAjaxSettings?: JQueryAjaxSettings): JQuery.Promise< + public updateUser(username: string, user: models.User, extraJQueryAjaxSettings?: JQueryAjaxSettings): JQuery.Promise< { response: JQueryXHR; body?: any; }, { response: JQueryXHR; errorThrown: string } > { @@ -521,9 +511,9 @@ export class UserApi { throw new Error('Required parameter username was null or undefined when calling updateUser.'); } - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new Error('Required parameter body was null or undefined when calling updateUser.'); + // verify required parameter 'user' is not null or undefined + if (user === null || user === undefined) { + throw new Error('Required parameter user was null or undefined when calling updateUser.'); } @@ -534,8 +524,6 @@ export class UserApi { // to determine the Accept header let produces: string[] = [ - 'application/xml', - 'application/json' ]; @@ -548,7 +536,7 @@ export class UserApi { processData: false }; - requestOptions.data = JSON.stringify(body); + requestOptions.data = JSON.stringify(user); if (headerParams['Content-Type']) { requestOptions.contentType = headerParams['Content-Type']; } @@ -567,7 +555,7 @@ export class UserApi { >(); $.ajax(requestOptions).then( (data: any, textStatus: string, jqXHR: JQueryXHR) => - dfd.resolve({response: jqXHR, body: data), + dfd.resolve({response: jqXHR, body: data}), (xhr: JQueryXHR, textStatus: string, errorThrown: string) => dfd.reject({response: xhr, errorThrown: errorThrown}) ); diff --git a/samples/client/petstore/typescript-jquery/default/git_push.sh b/samples/client/petstore/typescript-jquery/default/git_push.sh index ae01b182ae9e..8442b80bb445 100644 --- a/samples/client/petstore/typescript-jquery/default/git_push.sh +++ b/samples/client/petstore/typescript-jquery/default/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/typescript-jquery/default/model/ApiResponse.ts b/samples/client/petstore/typescript-jquery/default/model/ApiResponse.ts index f86e84f93a3a..f55509ae2ba7 100644 --- a/samples/client/petstore/typescript-jquery/default/model/ApiResponse.ts +++ b/samples/client/petstore/typescript-jquery/default/model/ApiResponse.ts @@ -1,12 +1,12 @@ /** - * Swagger Petstore - * This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters. + * OpenAPI Petstore + * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io + * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/samples/client/petstore/typescript-jquery/default/model/Category.ts b/samples/client/petstore/typescript-jquery/default/model/Category.ts index 254c3003c89a..7def6ebb648f 100644 --- a/samples/client/petstore/typescript-jquery/default/model/Category.ts +++ b/samples/client/petstore/typescript-jquery/default/model/Category.ts @@ -1,12 +1,12 @@ /** - * Swagger Petstore - * This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters. + * OpenAPI Petstore + * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io + * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/samples/client/petstore/typescript-jquery/default/model/Order.ts b/samples/client/petstore/typescript-jquery/default/model/Order.ts index 2b6c7aeebd66..122efb30a437 100644 --- a/samples/client/petstore/typescript-jquery/default/model/Order.ts +++ b/samples/client/petstore/typescript-jquery/default/model/Order.ts @@ -1,12 +1,12 @@ /** - * Swagger Petstore - * This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters. + * OpenAPI Petstore + * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io + * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/samples/client/petstore/typescript-jquery/default/model/Pet.ts b/samples/client/petstore/typescript-jquery/default/model/Pet.ts index b878cadb9058..92925560af98 100644 --- a/samples/client/petstore/typescript-jquery/default/model/Pet.ts +++ b/samples/client/petstore/typescript-jquery/default/model/Pet.ts @@ -1,12 +1,12 @@ /** - * Swagger Petstore - * This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters. + * OpenAPI Petstore + * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io + * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/samples/client/petstore/typescript-jquery/default/model/Tag.ts b/samples/client/petstore/typescript-jquery/default/model/Tag.ts index 8cbdc4fa145e..9ab112007cea 100644 --- a/samples/client/petstore/typescript-jquery/default/model/Tag.ts +++ b/samples/client/petstore/typescript-jquery/default/model/Tag.ts @@ -1,12 +1,12 @@ /** - * Swagger Petstore - * This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters. + * OpenAPI Petstore + * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io + * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/samples/client/petstore/typescript-jquery/default/model/User.ts b/samples/client/petstore/typescript-jquery/default/model/User.ts index fbf75dfe28e3..8e1f9d817b32 100644 --- a/samples/client/petstore/typescript-jquery/default/model/User.ts +++ b/samples/client/petstore/typescript-jquery/default/model/User.ts @@ -1,12 +1,12 @@ /** - * Swagger Petstore - * This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters. + * OpenAPI Petstore + * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io + * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/samples/client/petstore/typescript-jquery/default/model/models.ts b/samples/client/petstore/typescript-jquery/default/model/models.ts index 840919adceb3..f53c1dd42bdd 100644 --- a/samples/client/petstore/typescript-jquery/default/model/models.ts +++ b/samples/client/petstore/typescript-jquery/default/model/models.ts @@ -1,7 +1,5 @@ -export * from './Amount'; export * from './ApiResponse'; export * from './Category'; -export * from './Currency'; export * from './Order'; export * from './Pet'; export * from './Tag';