* An AMD (recommended!) or CommonJS application will generally do something equivalent to the following: *
-* var SwaggerPetstore = require('index'); // See note below*.
-* var xxxSvc = new SwaggerPetstore.XxxApi(); // Allocate the API class we're going to use.
-* var yyyModel = new SwaggerPetstore.Yyy(); // Construct a model instance.
+* var OpenApiPetstore = require('index'); // See note below*.
+* var xxxSvc = new OpenApiPetstore.XxxApi(); // Allocate the API class we're going to use.
+* var yyyModel = new OpenApiPetstore.Yyy(); // Construct a model instance.
* yyyModel.someProperty = 'someValue';
* ...
* var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
@@ -77,8 +74,8 @@ import UserApi from './api/UserApi';
*
* A non-AMD browser application (discouraged) might do something like this:
*
-* var xxxSvc = new SwaggerPetstore.XxxApi(); // Allocate the API class we're going to use.
-* var yyy = new SwaggerPetstore.Yyy(); // Construct a model instance.
+* var xxxSvc = new OpenApiPetstore.XxxApi(); // Allocate the API class we're going to use.
+* var yyy = new OpenApiPetstore.Yyy(); // Construct a model instance.
* yyyModel.someProperty = 'someValue';
* ...
* var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
@@ -143,6 +140,12 @@ export {
*/
Capitalization,
+ /**
+ * The Cat model constructor.
+ * @property {module:model/Cat}
+ */
+ Cat,
+
/**
* The Category model constructor.
* @property {module:model/Category}
@@ -161,6 +164,12 @@ export {
*/
Client,
+ /**
+ * The Dog model constructor.
+ * @property {module:model/Dog}
+ */
+ Dog,
+
/**
* The EnumArrays model constructor.
* @property {module:model/EnumArrays}
@@ -239,12 +248,6 @@ export {
*/
Order,
- /**
- * The OuterBoolean model constructor.
- * @property {module:model/OuterBoolean}
- */
- OuterBoolean,
-
/**
* The OuterComposite model constructor.
* @property {module:model/OuterComposite}
@@ -257,18 +260,6 @@ export {
*/
OuterEnum,
- /**
- * The OuterNumber model constructor.
- * @property {module:model/OuterNumber}
- */
- OuterNumber,
-
- /**
- * The OuterString model constructor.
- * @property {module:model/OuterString}
- */
- OuterString,
-
/**
* The Pet model constructor.
* @property {module:model/Pet}
@@ -299,18 +290,6 @@ export {
*/
User,
- /**
- * The Cat model constructor.
- * @property {module:model/Cat}
- */
- Cat,
-
- /**
- * The Dog model constructor.
- * @property {module:model/Dog}
- */
- Dog,
-
/**
* The AnotherFakeApi service constructor.
* @property {module:api/AnotherFakeApi}
diff --git a/samples/client/petstore/javascript-es6/src/model/AdditionalPropertiesClass.js b/samples/client/petstore/javascript-es6/src/model/AdditionalPropertiesClass.js
index 088cbb29b3..227fb79755 100644
--- a/samples/client/petstore/javascript-es6/src/model/AdditionalPropertiesClass.js
+++ b/samples/client/petstore/javascript-es6/src/model/AdditionalPropertiesClass.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-es6/src/model/Animal.js b/samples/client/petstore/javascript-es6/src/model/Animal.js
index b3fb1a63f3..dce658d701 100644
--- a/samples/client/petstore/javascript-es6/src/model/Animal.js
+++ b/samples/client/petstore/javascript-es6/src/model/Animal.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-es6/src/model/AnimalFarm.js b/samples/client/petstore/javascript-es6/src/model/AnimalFarm.js
index eb9a14b1b4..c0663cd1fa 100644
--- a/samples/client/petstore/javascript-es6/src/model/AnimalFarm.js
+++ b/samples/client/petstore/javascript-es6/src/model/AnimalFarm.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-es6/src/model/ApiResponse.js b/samples/client/petstore/javascript-es6/src/model/ApiResponse.js
index 49ddd1ac27..48142ded09 100644
--- a/samples/client/petstore/javascript-es6/src/model/ApiResponse.js
+++ b/samples/client/petstore/javascript-es6/src/model/ApiResponse.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-es6/src/model/ArrayOfArrayOfNumberOnly.js b/samples/client/petstore/javascript-es6/src/model/ArrayOfArrayOfNumberOnly.js
index 1dfd4487c6..acfac49ce0 100644
--- a/samples/client/petstore/javascript-es6/src/model/ArrayOfArrayOfNumberOnly.js
+++ b/samples/client/petstore/javascript-es6/src/model/ArrayOfArrayOfNumberOnly.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-es6/src/model/ArrayOfNumberOnly.js b/samples/client/petstore/javascript-es6/src/model/ArrayOfNumberOnly.js
index 379a19ba3f..28a47d0bb7 100644
--- a/samples/client/petstore/javascript-es6/src/model/ArrayOfNumberOnly.js
+++ b/samples/client/petstore/javascript-es6/src/model/ArrayOfNumberOnly.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-es6/src/model/ArrayTest.js b/samples/client/petstore/javascript-es6/src/model/ArrayTest.js
index 58e9ac5884..eff8b23dd8 100644
--- a/samples/client/petstore/javascript-es6/src/model/ArrayTest.js
+++ b/samples/client/petstore/javascript-es6/src/model/ArrayTest.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-es6/src/model/Capitalization.js b/samples/client/petstore/javascript-es6/src/model/Capitalization.js
index 12f3f3f559..41c6ff9af3 100644
--- a/samples/client/petstore/javascript-es6/src/model/Capitalization.js
+++ b/samples/client/petstore/javascript-es6/src/model/Capitalization.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-es6/src/model/Cat.js b/samples/client/petstore/javascript-es6/src/model/Cat.js
index da946664d0..cc75909988 100644
--- a/samples/client/petstore/javascript-es6/src/model/Cat.js
+++ b/samples/client/petstore/javascript-es6/src/model/Cat.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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.
*
*/
@@ -30,14 +30,15 @@ export default class Cat {
* @alias module:model/Cat
* @class
* @extends module:model/Animal
- * @param className {String}
+ * @implements module:model/Animal
+ * @param className {}
*/
constructor(className) {
Animal.call(this, className);
-
+ Animal.call(this, className);
@@ -58,7 +59,7 @@ export default class Cat {
Animal.constructFromObject(data, obj);
-
+ Animal.constructFromObject(data, obj);
if (data.hasOwnProperty('declawed')) {
obj['declawed'] = ApiClient.convertToType(data['declawed'], 'Boolean');
@@ -73,6 +74,17 @@ export default class Cat {
declawed = undefined;
+ // Implement Animal interface:
+ /**
+ * @member {String} className
+ */
+ className = undefined;
+/**
+ * @member {String} color
+ * @default 'red'
+ */
+ color = 'red';
+
diff --git a/samples/client/petstore/javascript-es6/src/model/Category.js b/samples/client/petstore/javascript-es6/src/model/Category.js
index a281817b72..cdd487022d 100644
--- a/samples/client/petstore/javascript-es6/src/model/Category.js
+++ b/samples/client/petstore/javascript-es6/src/model/Category.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-es6/src/model/ClassModel.js b/samples/client/petstore/javascript-es6/src/model/ClassModel.js
index 6a558444ad..c9c39c22ff 100644
--- a/samples/client/petstore/javascript-es6/src/model/ClassModel.js
+++ b/samples/client/petstore/javascript-es6/src/model/ClassModel.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-es6/src/model/Client.js b/samples/client/petstore/javascript-es6/src/model/Client.js
index a4f9b23515..82dca1732b 100644
--- a/samples/client/petstore/javascript-es6/src/model/Client.js
+++ b/samples/client/petstore/javascript-es6/src/model/Client.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-es6/src/model/Dog.js b/samples/client/petstore/javascript-es6/src/model/Dog.js
index e5bc0d3cec..9216890482 100644
--- a/samples/client/petstore/javascript-es6/src/model/Dog.js
+++ b/samples/client/petstore/javascript-es6/src/model/Dog.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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.
*
*/
@@ -30,14 +30,15 @@ export default class Dog {
* @alias module:model/Dog
* @class
* @extends module:model/Animal
- * @param className {String}
+ * @implements module:model/Animal
+ * @param className {}
*/
constructor(className) {
Animal.call(this, className);
-
+ Animal.call(this, className);
@@ -58,7 +59,7 @@ export default class Dog {
Animal.constructFromObject(data, obj);
-
+ Animal.constructFromObject(data, obj);
if (data.hasOwnProperty('breed')) {
obj['breed'] = ApiClient.convertToType(data['breed'], 'String');
@@ -73,6 +74,17 @@ export default class Dog {
breed = undefined;
+ // Implement Animal interface:
+ /**
+ * @member {String} className
+ */
+ className = undefined;
+/**
+ * @member {String} color
+ * @default 'red'
+ */
+ color = 'red';
+
diff --git a/samples/client/petstore/javascript-es6/src/model/EnumArrays.js b/samples/client/petstore/javascript-es6/src/model/EnumArrays.js
index 20a74f0d88..f017d9a539 100644
--- a/samples/client/petstore/javascript-es6/src/model/EnumArrays.js
+++ b/samples/client/petstore/javascript-es6/src/model/EnumArrays.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-es6/src/model/EnumClass.js b/samples/client/petstore/javascript-es6/src/model/EnumClass.js
index eeb08ca286..feb022bc83 100644
--- a/samples/client/petstore/javascript-es6/src/model/EnumClass.js
+++ b/samples/client/petstore/javascript-es6/src/model/EnumClass.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-es6/src/model/EnumTest.js b/samples/client/petstore/javascript-es6/src/model/EnumTest.js
index b1f9b0b6c6..eaf874922b 100644
--- a/samples/client/petstore/javascript-es6/src/model/EnumTest.js
+++ b/samples/client/petstore/javascript-es6/src/model/EnumTest.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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.
*
*/
@@ -29,15 +29,16 @@ export default class EnumTest {
* Constructs a new EnumTest.
* @alias module:model/EnumTest
* @class
+ * @param enumStringRequired {module:model/EnumTest.EnumStringRequiredEnum}
*/
- constructor() {
+ constructor(enumStringRequired) {
-
+ this['enum_string_required'] = enumStringRequired;
}
@@ -60,6 +61,9 @@ export default class EnumTest {
if (data.hasOwnProperty('enum_string')) {
obj['enum_string'] = ApiClient.convertToType(data['enum_string'], 'String');
}
+ if (data.hasOwnProperty('enum_string_required')) {
+ obj['enum_string_required'] = ApiClient.convertToType(data['enum_string_required'], 'String');
+ }
if (data.hasOwnProperty('enum_integer')) {
obj['enum_integer'] = ApiClient.convertToType(data['enum_integer'], 'Number');
}
@@ -78,6 +82,10 @@ export default class EnumTest {
*/
enum_string = undefined;
/**
+ * @member {module:model/EnumTest.EnumStringRequiredEnum} enum_string_required
+ */
+ enum_string_required = undefined;
+ /**
* @member {module:model/EnumTest.EnumIntegerEnum} enum_integer
*/
enum_integer = undefined;
@@ -121,6 +129,32 @@ export default class EnumTest {
"empty": ""
};
+ /**
+ * Allowed values for the enum_string_required property.
+ * @enum {String}
+ * @readonly
+ */
+ static EnumStringRequiredEnum = {
+
+ /**
+ * value: "UPPER"
+ * @const
+ */
+ "UPPER": "UPPER",
+
+ /**
+ * value: "lower"
+ * @const
+ */
+ "lower": "lower",
+
+ /**
+ * value: ""
+ * @const
+ */
+ "empty": ""
+ };
+
/**
* Allowed values for the enum_integer property.
* @enum {Number}
diff --git a/samples/client/petstore/javascript-es6/src/model/FormatTest.js b/samples/client/petstore/javascript-es6/src/model/FormatTest.js
index 8773a3a775..7d04ffd26d 100644
--- a/samples/client/petstore/javascript-es6/src/model/FormatTest.js
+++ b/samples/client/petstore/javascript-es6/src/model/FormatTest.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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.
*
*/
@@ -85,7 +85,7 @@ export default class FormatTest {
obj['byte'] = ApiClient.convertToType(data['byte'], 'Blob');
}
if (data.hasOwnProperty('binary')) {
- obj['binary'] = ApiClient.convertToType(data['binary'], 'Blob');
+ obj['binary'] = ApiClient.convertToType(data['binary'], File);
}
if (data.hasOwnProperty('date')) {
obj['date'] = ApiClient.convertToType(data['date'], 'Date');
@@ -136,7 +136,7 @@ export default class FormatTest {
*/
byte = undefined;
/**
- * @member {Blob} binary
+ * @member {File} binary
*/
binary = undefined;
/**
diff --git a/samples/client/petstore/javascript-es6/src/model/HasOnlyReadOnly.js b/samples/client/petstore/javascript-es6/src/model/HasOnlyReadOnly.js
index cb859fe3e5..e5f746c32b 100644
--- a/samples/client/petstore/javascript-es6/src/model/HasOnlyReadOnly.js
+++ b/samples/client/petstore/javascript-es6/src/model/HasOnlyReadOnly.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-es6/src/model/List.js b/samples/client/petstore/javascript-es6/src/model/List.js
index 513acd45af..67d6d9ef14 100644
--- a/samples/client/petstore/javascript-es6/src/model/List.js
+++ b/samples/client/petstore/javascript-es6/src/model/List.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-es6/src/model/MapTest.js b/samples/client/petstore/javascript-es6/src/model/MapTest.js
index b7a60cd8d9..e4be468e25 100644
--- a/samples/client/petstore/javascript-es6/src/model/MapTest.js
+++ b/samples/client/petstore/javascript-es6/src/model/MapTest.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-es6/src/model/MixedPropertiesAndAdditionalPropertiesClass.js b/samples/client/petstore/javascript-es6/src/model/MixedPropertiesAndAdditionalPropertiesClass.js
index 6d912ceeb9..17ea09bd69 100644
--- a/samples/client/petstore/javascript-es6/src/model/MixedPropertiesAndAdditionalPropertiesClass.js
+++ b/samples/client/petstore/javascript-es6/src/model/MixedPropertiesAndAdditionalPropertiesClass.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-es6/src/model/Model200Response.js b/samples/client/petstore/javascript-es6/src/model/Model200Response.js
index df4d957df7..3dbecac133 100644
--- a/samples/client/petstore/javascript-es6/src/model/Model200Response.js
+++ b/samples/client/petstore/javascript-es6/src/model/Model200Response.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-es6/src/model/ModelReturn.js b/samples/client/petstore/javascript-es6/src/model/ModelReturn.js
index 88fd97ab85..0f287b7228 100644
--- a/samples/client/petstore/javascript-es6/src/model/ModelReturn.js
+++ b/samples/client/petstore/javascript-es6/src/model/ModelReturn.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-es6/src/model/Name.js b/samples/client/petstore/javascript-es6/src/model/Name.js
index f355fbdd40..0da2f21ca4 100644
--- a/samples/client/petstore/javascript-es6/src/model/Name.js
+++ b/samples/client/petstore/javascript-es6/src/model/Name.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-es6/src/model/NumberOnly.js b/samples/client/petstore/javascript-es6/src/model/NumberOnly.js
index bee6687089..e1f7978f7f 100644
--- a/samples/client/petstore/javascript-es6/src/model/NumberOnly.js
+++ b/samples/client/petstore/javascript-es6/src/model/NumberOnly.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-es6/src/model/Order.js b/samples/client/petstore/javascript-es6/src/model/Order.js
index ff704900bb..fb8bdd4ab9 100644
--- a/samples/client/petstore/javascript-es6/src/model/Order.js
+++ b/samples/client/petstore/javascript-es6/src/model/Order.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-es6/src/model/OuterComposite.js b/samples/client/petstore/javascript-es6/src/model/OuterComposite.js
index 327e303467..ebacb2837d 100644
--- a/samples/client/petstore/javascript-es6/src/model/OuterComposite.js
+++ b/samples/client/petstore/javascript-es6/src/model/OuterComposite.js
@@ -1,21 +1,18 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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.
*
*/
import ApiClient from '../ApiClient';
-import OuterBoolean from './OuterBoolean';
-import OuterNumber from './OuterNumber';
-import OuterString from './OuterString';
@@ -60,28 +57,28 @@ export default class OuterComposite {
if (data.hasOwnProperty('my_number')) {
- obj['my_number'] = OuterNumber.constructFromObject(data['my_number']);
+ obj['my_number'] = 'Number'.constructFromObject(data['my_number']);
}
if (data.hasOwnProperty('my_string')) {
- obj['my_string'] = OuterString.constructFromObject(data['my_string']);
+ obj['my_string'] = 'String'.constructFromObject(data['my_string']);
}
if (data.hasOwnProperty('my_boolean')) {
- obj['my_boolean'] = OuterBoolean.constructFromObject(data['my_boolean']);
+ obj['my_boolean'] = 'Boolean'.constructFromObject(data['my_boolean']);
}
}
return obj;
}
/**
- * @member {module:model/OuterNumber} my_number
+ * @member {Number} my_number
*/
my_number = undefined;
/**
- * @member {module:model/OuterString} my_string
+ * @member {String} my_string
*/
my_string = undefined;
/**
- * @member {module:model/OuterBoolean} my_boolean
+ * @member {Boolean} my_boolean
*/
my_boolean = undefined;
diff --git a/samples/client/petstore/javascript-es6/src/model/OuterEnum.js b/samples/client/petstore/javascript-es6/src/model/OuterEnum.js
index bf264fd8f6..a31e00b729 100644
--- a/samples/client/petstore/javascript-es6/src/model/OuterEnum.js
+++ b/samples/client/petstore/javascript-es6/src/model/OuterEnum.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-es6/src/model/Pet.js b/samples/client/petstore/javascript-es6/src/model/Pet.js
index bb84915202..4edbd6e3d7 100644
--- a/samples/client/petstore/javascript-es6/src/model/Pet.js
+++ b/samples/client/petstore/javascript-es6/src/model/Pet.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-es6/src/model/ReadOnlyFirst.js b/samples/client/petstore/javascript-es6/src/model/ReadOnlyFirst.js
index 143b34f3eb..5aee0fce32 100644
--- a/samples/client/petstore/javascript-es6/src/model/ReadOnlyFirst.js
+++ b/samples/client/petstore/javascript-es6/src/model/ReadOnlyFirst.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-es6/src/model/SpecialModelName.js b/samples/client/petstore/javascript-es6/src/model/SpecialModelName.js
index 4e0dd379b1..c00da7303e 100644
--- a/samples/client/petstore/javascript-es6/src/model/SpecialModelName.js
+++ b/samples/client/petstore/javascript-es6/src/model/SpecialModelName.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-es6/src/model/Tag.js b/samples/client/petstore/javascript-es6/src/model/Tag.js
index 759b3fa04e..994da23e2a 100644
--- a/samples/client/petstore/javascript-es6/src/model/Tag.js
+++ b/samples/client/petstore/javascript-es6/src/model/Tag.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-es6/src/model/User.js b/samples/client/petstore/javascript-es6/src/model/User.js
index 36311e7593..c0f5ef56e6 100644
--- a/samples/client/petstore/javascript-es6/src/model/User.js
+++ b/samples/client/petstore/javascript-es6/src/model/User.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-promise-es6/.openapi-generator/VERSION b/samples/client/petstore/javascript-promise-es6/.openapi-generator/VERSION
index f9f7450d13..1c00c51815 100644
--- a/samples/client/petstore/javascript-promise-es6/.openapi-generator/VERSION
+++ b/samples/client/petstore/javascript-promise-es6/.openapi-generator/VERSION
@@ -1 +1 @@
-2.3.0-SNAPSHOT
\ No newline at end of file
+3.0.2-SNAPSHOT
\ No newline at end of file
diff --git a/samples/client/petstore/javascript-promise-es6/README.md b/samples/client/petstore/javascript-promise-es6/README.md
index 67af003b88..fa41841dab 100644
--- a/samples/client/petstore/javascript-promise-es6/README.md
+++ b/samples/client/petstore/javascript-promise-es6/README.md
@@ -1,12 +1,12 @@
-# swagger_petstore
+# open_api_petstore
-SwaggerPetstore - JavaScript client for swagger_petstore
+OpenApiPetstore - JavaScript client for open_api_petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
-This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
+This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
- API version: 1.0.0
- Package version: 1.0.0
-- Build package: io.swagger.codegen.languages.JavascriptClientCodegen
+- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
## Installation
@@ -20,7 +20,7 @@ please follow the procedure in ["Publishing npm packages"](https://docs.npmjs.co
Then install it via:
```shell
-npm install swagger_petstore --save
+npm install open_api_petstore --save
```
#### git
@@ -68,13 +68,12 @@ module: {
Please follow the [installation](#installation) instruction and execute the following JS code:
```javascript
-var SwaggerPetstore = require('swagger_petstore');
+var OpenApiPetstore = require('open_api_petstore');
-var api = new SwaggerPetstore.AnotherFakeApi()
-var body = new SwaggerPetstore.Client(); // {Client} client model
-
-api.testSpecialTags(body).then(function(data) {
+var api = new OpenApiPetstore.AnotherFakeApi()
+var client = new OpenApiPetstore.Client(); // {Client} client model
+api.testSpecialTags(client).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
@@ -89,77 +88,75 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
-*SwaggerPetstore.AnotherFakeApi* | [**testSpecialTags**](docs/AnotherFakeApi.md#testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
-*SwaggerPetstore.FakeApi* | [**fakeOuterBooleanSerialize**](docs/FakeApi.md#fakeOuterBooleanSerialize) | **POST** /fake/outer/boolean |
-*SwaggerPetstore.FakeApi* | [**fakeOuterCompositeSerialize**](docs/FakeApi.md#fakeOuterCompositeSerialize) | **POST** /fake/outer/composite |
-*SwaggerPetstore.FakeApi* | [**fakeOuterNumberSerialize**](docs/FakeApi.md#fakeOuterNumberSerialize) | **POST** /fake/outer/number |
-*SwaggerPetstore.FakeApi* | [**fakeOuterStringSerialize**](docs/FakeApi.md#fakeOuterStringSerialize) | **POST** /fake/outer/string |
-*SwaggerPetstore.FakeApi* | [**testClientModel**](docs/FakeApi.md#testClientModel) | **PATCH** /fake | To test \"client\" model
-*SwaggerPetstore.FakeApi* | [**testEndpointParameters**](docs/FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
-*SwaggerPetstore.FakeApi* | [**testEnumParameters**](docs/FakeApi.md#testEnumParameters) | **GET** /fake | To test enum parameters
-*SwaggerPetstore.FakeApi* | [**testInlineAdditionalProperties**](docs/FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties
-*SwaggerPetstore.FakeApi* | [**testJsonFormData**](docs/FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data
-*SwaggerPetstore.FakeClassnameTags123Api* | [**testClassname**](docs/FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case
-*SwaggerPetstore.PetApi* | [**addPet**](docs/PetApi.md#addPet) | **POST** /pet | Add a new pet to the store
-*SwaggerPetstore.PetApi* | [**deletePet**](docs/PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet
-*SwaggerPetstore.PetApi* | [**findPetsByStatus**](docs/PetApi.md#findPetsByStatus) | **GET** /pet/findByStatus | Finds Pets by status
-*SwaggerPetstore.PetApi* | [**findPetsByTags**](docs/PetApi.md#findPetsByTags) | **GET** /pet/findByTags | Finds Pets by tags
-*SwaggerPetstore.PetApi* | [**getPetById**](docs/PetApi.md#getPetById) | **GET** /pet/{petId} | Find pet by ID
-*SwaggerPetstore.PetApi* | [**updatePet**](docs/PetApi.md#updatePet) | **PUT** /pet | Update an existing pet
-*SwaggerPetstore.PetApi* | [**updatePetWithForm**](docs/PetApi.md#updatePetWithForm) | **POST** /pet/{petId} | Updates a pet in the store with form data
-*SwaggerPetstore.PetApi* | [**uploadFile**](docs/PetApi.md#uploadFile) | **POST** /pet/{petId}/uploadImage | uploads an image
-*SwaggerPetstore.StoreApi* | [**deleteOrder**](docs/StoreApi.md#deleteOrder) | **DELETE** /store/order/{order_id} | Delete purchase order by ID
-*SwaggerPetstore.StoreApi* | [**getInventory**](docs/StoreApi.md#getInventory) | **GET** /store/inventory | Returns pet inventories by status
-*SwaggerPetstore.StoreApi* | [**getOrderById**](docs/StoreApi.md#getOrderById) | **GET** /store/order/{order_id} | Find purchase order by ID
-*SwaggerPetstore.StoreApi* | [**placeOrder**](docs/StoreApi.md#placeOrder) | **POST** /store/order | Place an order for a pet
-*SwaggerPetstore.UserApi* | [**createUser**](docs/UserApi.md#createUser) | **POST** /user | Create user
-*SwaggerPetstore.UserApi* | [**createUsersWithArrayInput**](docs/UserApi.md#createUsersWithArrayInput) | **POST** /user/createWithArray | Creates list of users with given input array
-*SwaggerPetstore.UserApi* | [**createUsersWithListInput**](docs/UserApi.md#createUsersWithListInput) | **POST** /user/createWithList | Creates list of users with given input array
-*SwaggerPetstore.UserApi* | [**deleteUser**](docs/UserApi.md#deleteUser) | **DELETE** /user/{username} | Delete user
-*SwaggerPetstore.UserApi* | [**getUserByName**](docs/UserApi.md#getUserByName) | **GET** /user/{username} | Get user by user name
-*SwaggerPetstore.UserApi* | [**loginUser**](docs/UserApi.md#loginUser) | **GET** /user/login | Logs user into the system
-*SwaggerPetstore.UserApi* | [**logoutUser**](docs/UserApi.md#logoutUser) | **GET** /user/logout | Logs out current logged in user session
-*SwaggerPetstore.UserApi* | [**updateUser**](docs/UserApi.md#updateUser) | **PUT** /user/{username} | Updated user
+*OpenApiPetstore.AnotherFakeApi* | [**testSpecialTags**](docs/AnotherFakeApi.md#testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
+*OpenApiPetstore.FakeApi* | [**fakeOuterBooleanSerialize**](docs/FakeApi.md#fakeOuterBooleanSerialize) | **POST** /fake/outer/boolean |
+*OpenApiPetstore.FakeApi* | [**fakeOuterCompositeSerialize**](docs/FakeApi.md#fakeOuterCompositeSerialize) | **POST** /fake/outer/composite |
+*OpenApiPetstore.FakeApi* | [**fakeOuterNumberSerialize**](docs/FakeApi.md#fakeOuterNumberSerialize) | **POST** /fake/outer/number |
+*OpenApiPetstore.FakeApi* | [**fakeOuterStringSerialize**](docs/FakeApi.md#fakeOuterStringSerialize) | **POST** /fake/outer/string |
+*OpenApiPetstore.FakeApi* | [**testBodyWithQueryParams**](docs/FakeApi.md#testBodyWithQueryParams) | **PUT** /fake/body-with-query-params |
+*OpenApiPetstore.FakeApi* | [**testClientModel**](docs/FakeApi.md#testClientModel) | **PATCH** /fake | To test \"client\" model
+*OpenApiPetstore.FakeApi* | [**testEndpointParameters**](docs/FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
+*OpenApiPetstore.FakeApi* | [**testEnumParameters**](docs/FakeApi.md#testEnumParameters) | **GET** /fake | To test enum parameters
+*OpenApiPetstore.FakeApi* | [**testInlineAdditionalProperties**](docs/FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties
+*OpenApiPetstore.FakeApi* | [**testJsonFormData**](docs/FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data
+*OpenApiPetstore.FakeClassnameTags123Api* | [**testClassname**](docs/FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case
+*OpenApiPetstore.PetApi* | [**addPet**](docs/PetApi.md#addPet) | **POST** /pet | Add a new pet to the store
+*OpenApiPetstore.PetApi* | [**deletePet**](docs/PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet
+*OpenApiPetstore.PetApi* | [**findPetsByStatus**](docs/PetApi.md#findPetsByStatus) | **GET** /pet/findByStatus | Finds Pets by status
+*OpenApiPetstore.PetApi* | [**findPetsByTags**](docs/PetApi.md#findPetsByTags) | **GET** /pet/findByTags | Finds Pets by tags
+*OpenApiPetstore.PetApi* | [**getPetById**](docs/PetApi.md#getPetById) | **GET** /pet/{petId} | Find pet by ID
+*OpenApiPetstore.PetApi* | [**updatePet**](docs/PetApi.md#updatePet) | **PUT** /pet | Update an existing pet
+*OpenApiPetstore.PetApi* | [**updatePetWithForm**](docs/PetApi.md#updatePetWithForm) | **POST** /pet/{petId} | Updates a pet in the store with form data
+*OpenApiPetstore.PetApi* | [**uploadFile**](docs/PetApi.md#uploadFile) | **POST** /pet/{petId}/uploadImage | uploads an image
+*OpenApiPetstore.StoreApi* | [**deleteOrder**](docs/StoreApi.md#deleteOrder) | **DELETE** /store/order/{order_id} | Delete purchase order by ID
+*OpenApiPetstore.StoreApi* | [**getInventory**](docs/StoreApi.md#getInventory) | **GET** /store/inventory | Returns pet inventories by status
+*OpenApiPetstore.StoreApi* | [**getOrderById**](docs/StoreApi.md#getOrderById) | **GET** /store/order/{order_id} | Find purchase order by ID
+*OpenApiPetstore.StoreApi* | [**placeOrder**](docs/StoreApi.md#placeOrder) | **POST** /store/order | Place an order for a pet
+*OpenApiPetstore.UserApi* | [**createUser**](docs/UserApi.md#createUser) | **POST** /user | Create user
+*OpenApiPetstore.UserApi* | [**createUsersWithArrayInput**](docs/UserApi.md#createUsersWithArrayInput) | **POST** /user/createWithArray | Creates list of users with given input array
+*OpenApiPetstore.UserApi* | [**createUsersWithListInput**](docs/UserApi.md#createUsersWithListInput) | **POST** /user/createWithList | Creates list of users with given input array
+*OpenApiPetstore.UserApi* | [**deleteUser**](docs/UserApi.md#deleteUser) | **DELETE** /user/{username} | Delete user
+*OpenApiPetstore.UserApi* | [**getUserByName**](docs/UserApi.md#getUserByName) | **GET** /user/{username} | Get user by user name
+*OpenApiPetstore.UserApi* | [**loginUser**](docs/UserApi.md#loginUser) | **GET** /user/login | Logs user into the system
+*OpenApiPetstore.UserApi* | [**logoutUser**](docs/UserApi.md#logoutUser) | **GET** /user/logout | Logs out current logged in user session
+*OpenApiPetstore.UserApi* | [**updateUser**](docs/UserApi.md#updateUser) | **PUT** /user/{username} | Updated user
## Documentation for Models
- - [SwaggerPetstore.AdditionalPropertiesClass](docs/AdditionalPropertiesClass.md)
- - [SwaggerPetstore.Animal](docs/Animal.md)
- - [SwaggerPetstore.AnimalFarm](docs/AnimalFarm.md)
- - [SwaggerPetstore.ApiResponse](docs/ApiResponse.md)
- - [SwaggerPetstore.ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md)
- - [SwaggerPetstore.ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md)
- - [SwaggerPetstore.ArrayTest](docs/ArrayTest.md)
- - [SwaggerPetstore.Capitalization](docs/Capitalization.md)
- - [SwaggerPetstore.Category](docs/Category.md)
- - [SwaggerPetstore.ClassModel](docs/ClassModel.md)
- - [SwaggerPetstore.Client](docs/Client.md)
- - [SwaggerPetstore.EnumArrays](docs/EnumArrays.md)
- - [SwaggerPetstore.EnumClass](docs/EnumClass.md)
- - [SwaggerPetstore.EnumTest](docs/EnumTest.md)
- - [SwaggerPetstore.FormatTest](docs/FormatTest.md)
- - [SwaggerPetstore.HasOnlyReadOnly](docs/HasOnlyReadOnly.md)
- - [SwaggerPetstore.List](docs/List.md)
- - [SwaggerPetstore.MapTest](docs/MapTest.md)
- - [SwaggerPetstore.MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md)
- - [SwaggerPetstore.Model200Response](docs/Model200Response.md)
- - [SwaggerPetstore.ModelReturn](docs/ModelReturn.md)
- - [SwaggerPetstore.Name](docs/Name.md)
- - [SwaggerPetstore.NumberOnly](docs/NumberOnly.md)
- - [SwaggerPetstore.Order](docs/Order.md)
- - [SwaggerPetstore.OuterBoolean](docs/OuterBoolean.md)
- - [SwaggerPetstore.OuterComposite](docs/OuterComposite.md)
- - [SwaggerPetstore.OuterEnum](docs/OuterEnum.md)
- - [SwaggerPetstore.OuterNumber](docs/OuterNumber.md)
- - [SwaggerPetstore.OuterString](docs/OuterString.md)
- - [SwaggerPetstore.Pet](docs/Pet.md)
- - [SwaggerPetstore.ReadOnlyFirst](docs/ReadOnlyFirst.md)
- - [SwaggerPetstore.SpecialModelName](docs/SpecialModelName.md)
- - [SwaggerPetstore.Tag](docs/Tag.md)
- - [SwaggerPetstore.User](docs/User.md)
- - [SwaggerPetstore.Cat](docs/Cat.md)
- - [SwaggerPetstore.Dog](docs/Dog.md)
+ - [OpenApiPetstore.AdditionalPropertiesClass](docs/AdditionalPropertiesClass.md)
+ - [OpenApiPetstore.Animal](docs/Animal.md)
+ - [OpenApiPetstore.AnimalFarm](docs/AnimalFarm.md)
+ - [OpenApiPetstore.ApiResponse](docs/ApiResponse.md)
+ - [OpenApiPetstore.ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md)
+ - [OpenApiPetstore.ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md)
+ - [OpenApiPetstore.ArrayTest](docs/ArrayTest.md)
+ - [OpenApiPetstore.Capitalization](docs/Capitalization.md)
+ - [OpenApiPetstore.Cat](docs/Cat.md)
+ - [OpenApiPetstore.Category](docs/Category.md)
+ - [OpenApiPetstore.ClassModel](docs/ClassModel.md)
+ - [OpenApiPetstore.Client](docs/Client.md)
+ - [OpenApiPetstore.Dog](docs/Dog.md)
+ - [OpenApiPetstore.EnumArrays](docs/EnumArrays.md)
+ - [OpenApiPetstore.EnumClass](docs/EnumClass.md)
+ - [OpenApiPetstore.EnumTest](docs/EnumTest.md)
+ - [OpenApiPetstore.FormatTest](docs/FormatTest.md)
+ - [OpenApiPetstore.HasOnlyReadOnly](docs/HasOnlyReadOnly.md)
+ - [OpenApiPetstore.List](docs/List.md)
+ - [OpenApiPetstore.MapTest](docs/MapTest.md)
+ - [OpenApiPetstore.MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md)
+ - [OpenApiPetstore.Model200Response](docs/Model200Response.md)
+ - [OpenApiPetstore.ModelReturn](docs/ModelReturn.md)
+ - [OpenApiPetstore.Name](docs/Name.md)
+ - [OpenApiPetstore.NumberOnly](docs/NumberOnly.md)
+ - [OpenApiPetstore.Order](docs/Order.md)
+ - [OpenApiPetstore.OuterComposite](docs/OuterComposite.md)
+ - [OpenApiPetstore.OuterEnum](docs/OuterEnum.md)
+ - [OpenApiPetstore.Pet](docs/Pet.md)
+ - [OpenApiPetstore.ReadOnlyFirst](docs/ReadOnlyFirst.md)
+ - [OpenApiPetstore.SpecialModelName](docs/SpecialModelName.md)
+ - [OpenApiPetstore.Tag](docs/Tag.md)
+ - [OpenApiPetstore.User](docs/User.md)
## Documentation for Authorization
diff --git a/samples/client/petstore/javascript-promise-es6/docs/AdditionalPropertiesClass.md b/samples/client/petstore/javascript-promise-es6/docs/AdditionalPropertiesClass.md
index 0ea13d4bb6..7df1c7b339 100644
--- a/samples/client/petstore/javascript-promise-es6/docs/AdditionalPropertiesClass.md
+++ b/samples/client/petstore/javascript-promise-es6/docs/AdditionalPropertiesClass.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.AdditionalPropertiesClass
+# OpenApiPetstore.AdditionalPropertiesClass
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/javascript-promise-es6/docs/Animal.md b/samples/client/petstore/javascript-promise-es6/docs/Animal.md
index 3ae52d9db1..7bff016758 100644
--- a/samples/client/petstore/javascript-promise-es6/docs/Animal.md
+++ b/samples/client/petstore/javascript-promise-es6/docs/Animal.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.Animal
+# OpenApiPetstore.Animal
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/javascript-promise-es6/docs/AnimalFarm.md b/samples/client/petstore/javascript-promise-es6/docs/AnimalFarm.md
index b72739a44c..ab153513ca 100644
--- a/samples/client/petstore/javascript-promise-es6/docs/AnimalFarm.md
+++ b/samples/client/petstore/javascript-promise-es6/docs/AnimalFarm.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.AnimalFarm
+# OpenApiPetstore.AnimalFarm
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/javascript-promise-es6/docs/AnotherFakeApi.md b/samples/client/petstore/javascript-promise-es6/docs/AnotherFakeApi.md
index e6e6f0bf9f..2eccfe5f47 100644
--- a/samples/client/petstore/javascript-promise-es6/docs/AnotherFakeApi.md
+++ b/samples/client/petstore/javascript-promise-es6/docs/AnotherFakeApi.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.AnotherFakeApi
+# OpenApiPetstore.AnotherFakeApi
All URIs are relative to *http://petstore.swagger.io:80/v2*
@@ -9,7 +9,7 @@ Method | HTTP request | Description
# **testSpecialTags**
-> Client testSpecialTags(body)
+> Client testSpecialTags(client)
To test special tags
@@ -17,13 +17,11 @@ To test special tags
### Example
```javascript
-import SwaggerPetstore from 'swagger_petstore';
+import OpenApiPetstore from 'open_api_petstore';
-let apiInstance = new SwaggerPetstore.AnotherFakeApi();
-
-let body = new SwaggerPetstore.Client(); // Client | client model
-
-apiInstance.testSpecialTags(body).then((data) => {
+let apiInstance = new OpenApiPetstore.AnotherFakeApi();
+let client = new OpenApiPetstore.Client(); // Client | client model
+apiInstance.testSpecialTags(client).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
@@ -35,7 +33,7 @@ apiInstance.testSpecialTags(body).then((data) => {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**Client**](Client.md)| client model |
+ **client** | [**Client**](Client.md)| client model |
### Return type
diff --git a/samples/client/petstore/javascript-promise-es6/docs/ApiResponse.md b/samples/client/petstore/javascript-promise-es6/docs/ApiResponse.md
index 7f023aff60..e60378fcbf 100644
--- a/samples/client/petstore/javascript-promise-es6/docs/ApiResponse.md
+++ b/samples/client/petstore/javascript-promise-es6/docs/ApiResponse.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.ApiResponse
+# OpenApiPetstore.ApiResponse
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/javascript-promise-es6/docs/ArrayOfArrayOfNumberOnly.md b/samples/client/petstore/javascript-promise-es6/docs/ArrayOfArrayOfNumberOnly.md
index 1d38c9d2ed..7a1426ef81 100644
--- a/samples/client/petstore/javascript-promise-es6/docs/ArrayOfArrayOfNumberOnly.md
+++ b/samples/client/petstore/javascript-promise-es6/docs/ArrayOfArrayOfNumberOnly.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.ArrayOfArrayOfNumberOnly
+# OpenApiPetstore.ArrayOfArrayOfNumberOnly
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/javascript-promise-es6/docs/ArrayOfNumberOnly.md b/samples/client/petstore/javascript-promise-es6/docs/ArrayOfNumberOnly.md
index 07a86a3cef..7cec2e71d4 100644
--- a/samples/client/petstore/javascript-promise-es6/docs/ArrayOfNumberOnly.md
+++ b/samples/client/petstore/javascript-promise-es6/docs/ArrayOfNumberOnly.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.ArrayOfNumberOnly
+# OpenApiPetstore.ArrayOfNumberOnly
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/javascript-promise-es6/docs/ArrayTest.md b/samples/client/petstore/javascript-promise-es6/docs/ArrayTest.md
index e6048e9ea9..5828f6ee75 100644
--- a/samples/client/petstore/javascript-promise-es6/docs/ArrayTest.md
+++ b/samples/client/petstore/javascript-promise-es6/docs/ArrayTest.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.ArrayTest
+# OpenApiPetstore.ArrayTest
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/javascript-promise-es6/docs/Capitalization.md b/samples/client/petstore/javascript-promise-es6/docs/Capitalization.md
index c223a4ee98..abeff984c6 100644
--- a/samples/client/petstore/javascript-promise-es6/docs/Capitalization.md
+++ b/samples/client/petstore/javascript-promise-es6/docs/Capitalization.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.Capitalization
+# OpenApiPetstore.Capitalization
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/javascript-promise-es6/docs/Cat.md b/samples/client/petstore/javascript-promise-es6/docs/Cat.md
index 8cd391bc91..6dd0f057c8 100644
--- a/samples/client/petstore/javascript-promise-es6/docs/Cat.md
+++ b/samples/client/petstore/javascript-promise-es6/docs/Cat.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.Cat
+# OpenApiPetstore.Cat
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/javascript-promise-es6/docs/Category.md b/samples/client/petstore/javascript-promise-es6/docs/Category.md
index 02b2488a27..e3f934442a 100644
--- a/samples/client/petstore/javascript-promise-es6/docs/Category.md
+++ b/samples/client/petstore/javascript-promise-es6/docs/Category.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.Category
+# OpenApiPetstore.Category
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/javascript-promise-es6/docs/ClassModel.md b/samples/client/petstore/javascript-promise-es6/docs/ClassModel.md
index bf8343b84b..6fe9c501a5 100644
--- a/samples/client/petstore/javascript-promise-es6/docs/ClassModel.md
+++ b/samples/client/petstore/javascript-promise-es6/docs/ClassModel.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.ClassModel
+# OpenApiPetstore.ClassModel
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/javascript-promise-es6/docs/Client.md b/samples/client/petstore/javascript-promise-es6/docs/Client.md
index 6ba2831968..a6c7711e74 100644
--- a/samples/client/petstore/javascript-promise-es6/docs/Client.md
+++ b/samples/client/petstore/javascript-promise-es6/docs/Client.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.Client
+# OpenApiPetstore.Client
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/javascript-promise-es6/docs/Dog.md b/samples/client/petstore/javascript-promise-es6/docs/Dog.md
index 9253eace01..f35663407e 100644
--- a/samples/client/petstore/javascript-promise-es6/docs/Dog.md
+++ b/samples/client/petstore/javascript-promise-es6/docs/Dog.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.Dog
+# OpenApiPetstore.Dog
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/javascript-promise-es6/docs/EnumArrays.md b/samples/client/petstore/javascript-promise-es6/docs/EnumArrays.md
index 449a96fdbb..5f624e5db4 100644
--- a/samples/client/petstore/javascript-promise-es6/docs/EnumArrays.md
+++ b/samples/client/petstore/javascript-promise-es6/docs/EnumArrays.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.EnumArrays
+# OpenApiPetstore.EnumArrays
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/javascript-promise-es6/docs/EnumClass.md b/samples/client/petstore/javascript-promise-es6/docs/EnumClass.md
index 04b8936294..cef9bb57a5 100644
--- a/samples/client/petstore/javascript-promise-es6/docs/EnumClass.md
+++ b/samples/client/petstore/javascript-promise-es6/docs/EnumClass.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.EnumClass
+# OpenApiPetstore.EnumClass
## Enum
diff --git a/samples/client/petstore/javascript-promise-es6/docs/EnumTest.md b/samples/client/petstore/javascript-promise-es6/docs/EnumTest.md
index 9d85a20016..c9e7ce86fe 100644
--- a/samples/client/petstore/javascript-promise-es6/docs/EnumTest.md
+++ b/samples/client/petstore/javascript-promise-es6/docs/EnumTest.md
@@ -1,9 +1,10 @@
-# SwaggerPetstore.EnumTest
+# OpenApiPetstore.EnumTest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**enumString** | **String** | | [optional]
+**enumStringRequired** | **String** | |
**enumInteger** | **Number** | | [optional]
**enumNumber** | **Number** | | [optional]
**outerEnum** | [**OuterEnum**](OuterEnum.md) | | [optional]
@@ -22,6 +23,19 @@ Name | Type | Description | Notes
+
+## Enum: EnumStringRequiredEnum
+
+
+* `UPPER` (value: `"UPPER"`)
+
+* `lower` (value: `"lower"`)
+
+* `empty` (value: `""`)
+
+
+
+
## Enum: EnumIntegerEnum
diff --git a/samples/client/petstore/javascript-promise-es6/docs/FakeApi.md b/samples/client/petstore/javascript-promise-es6/docs/FakeApi.md
index 51f2a77b8f..8a2a57c8b6 100644
--- a/samples/client/petstore/javascript-promise-es6/docs/FakeApi.md
+++ b/samples/client/petstore/javascript-promise-es6/docs/FakeApi.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.FakeApi
+# OpenApiPetstore.FakeApi
All URIs are relative to *http://petstore.swagger.io:80/v2*
@@ -8,6 +8,7 @@ Method | HTTP request | Description
[**fakeOuterCompositeSerialize**](FakeApi.md#fakeOuterCompositeSerialize) | **POST** /fake/outer/composite |
[**fakeOuterNumberSerialize**](FakeApi.md#fakeOuterNumberSerialize) | **POST** /fake/outer/number |
[**fakeOuterStringSerialize**](FakeApi.md#fakeOuterStringSerialize) | **POST** /fake/outer/string |
+[**testBodyWithQueryParams**](FakeApi.md#testBodyWithQueryParams) | **PUT** /fake/body-with-query-params |
[**testClientModel**](FakeApi.md#testClientModel) | **PATCH** /fake | To test \"client\" model
[**testEndpointParameters**](FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
[**testEnumParameters**](FakeApi.md#testEnumParameters) | **GET** /fake | To test enum parameters
@@ -17,7 +18,7 @@ Method | HTTP request | Description
# **fakeOuterBooleanSerialize**
-> OuterBoolean fakeOuterBooleanSerialize(opts)
+> Boolean fakeOuterBooleanSerialize(opts)
@@ -25,12 +26,11 @@ Test serialization of outer boolean types
### Example
```javascript
-import SwaggerPetstore from 'swagger_petstore';
+import OpenApiPetstore from 'open_api_petstore';
-let apiInstance = new SwaggerPetstore.FakeApi();
-
-let opts = {
- 'body': new SwaggerPetstore.OuterBoolean() // OuterBoolean | Input boolean as post body
+let apiInstance = new OpenApiPetstore.FakeApi();
+let opts = {
+ 'body': true // Boolean | Input boolean as post body
};
apiInstance.fakeOuterBooleanSerialize(opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
@@ -44,11 +44,11 @@ apiInstance.fakeOuterBooleanSerialize(opts).then((data) => {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**OuterBoolean**](OuterBoolean.md)| Input boolean as post body | [optional]
+ **body** | **Boolean**| Input boolean as post body | [optional]
### Return type
-[**OuterBoolean**](OuterBoolean.md)
+**Boolean**
### Authorization
@@ -57,7 +57,7 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: Not defined
+ - **Accept**: */*
# **fakeOuterCompositeSerialize**
@@ -69,12 +69,11 @@ Test serialization of object with outer number type
### Example
```javascript
-import SwaggerPetstore from 'swagger_petstore';
+import OpenApiPetstore from 'open_api_petstore';
-let apiInstance = new SwaggerPetstore.FakeApi();
-
-let opts = {
- 'body': new SwaggerPetstore.OuterComposite() // OuterComposite | Input composite as post body
+let apiInstance = new OpenApiPetstore.FakeApi();
+let opts = {
+ 'outerComposite': new OpenApiPetstore.OuterComposite() // OuterComposite | Input composite as post body
};
apiInstance.fakeOuterCompositeSerialize(opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
@@ -88,7 +87,7 @@ apiInstance.fakeOuterCompositeSerialize(opts).then((data) => {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional]
+ **outerComposite** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional]
### Return type
@@ -101,11 +100,11 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: Not defined
+ - **Accept**: */*
# **fakeOuterNumberSerialize**
-> OuterNumber fakeOuterNumberSerialize(opts)
+> Number fakeOuterNumberSerialize(opts)
@@ -113,12 +112,11 @@ Test serialization of outer number types
### Example
```javascript
-import SwaggerPetstore from 'swagger_petstore';
+import OpenApiPetstore from 'open_api_petstore';
-let apiInstance = new SwaggerPetstore.FakeApi();
-
-let opts = {
- 'body': new SwaggerPetstore.OuterNumber() // OuterNumber | Input number as post body
+let apiInstance = new OpenApiPetstore.FakeApi();
+let opts = {
+ 'body': 3.4 // Number | Input number as post body
};
apiInstance.fakeOuterNumberSerialize(opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
@@ -132,11 +130,11 @@ apiInstance.fakeOuterNumberSerialize(opts).then((data) => {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**OuterNumber**](OuterNumber.md)| Input number as post body | [optional]
+ **body** | **Number**| Input number as post body | [optional]
### Return type
-[**OuterNumber**](OuterNumber.md)
+**Number**
### Authorization
@@ -145,11 +143,11 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: Not defined
+ - **Accept**: */*
# **fakeOuterStringSerialize**
-> OuterString fakeOuterStringSerialize(opts)
+> String fakeOuterStringSerialize(opts)
@@ -157,12 +155,11 @@ Test serialization of outer string types
### Example
```javascript
-import SwaggerPetstore from 'swagger_petstore';
+import OpenApiPetstore from 'open_api_petstore';
-let apiInstance = new SwaggerPetstore.FakeApi();
-
-let opts = {
- 'body': new SwaggerPetstore.OuterString() // OuterString | Input string as post body
+let apiInstance = new OpenApiPetstore.FakeApi();
+let opts = {
+ 'body': "body_example" // String | Input string as post body
};
apiInstance.fakeOuterStringSerialize(opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
@@ -176,11 +173,11 @@ apiInstance.fakeOuterStringSerialize(opts).then((data) => {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**OuterString**](OuterString.md)| Input string as post body | [optional]
+ **body** | **String**| Input string as post body | [optional]
### Return type
-[**OuterString**](OuterString.md)
+**String**
### Authorization
@@ -189,11 +186,52 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
+ - **Accept**: */*
+
+
+# **testBodyWithQueryParams**
+> testBodyWithQueryParams(query, user)
+
+
+
+### Example
+```javascript
+import OpenApiPetstore from 'open_api_petstore';
+
+let apiInstance = new OpenApiPetstore.FakeApi();
+let query = "query_example"; // String |
+let user = new OpenApiPetstore.User(); // User |
+apiInstance.testBodyWithQueryParams(query, user).then(() => {
+ console.log('API called successfully.');
+}, (error) => {
+ console.error(error);
+});
+
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **query** | **String**| |
+ **user** | [**User**](User.md)| |
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
- **Accept**: Not defined
# **testClientModel**
-> Client testClientModel(body)
+> Client testClientModel(client)
To test \"client\" model
@@ -201,13 +239,11 @@ To test \"client\" model
### Example
```javascript
-import SwaggerPetstore from 'swagger_petstore';
+import OpenApiPetstore from 'open_api_petstore';
-let apiInstance = new SwaggerPetstore.FakeApi();
-
-let body = new SwaggerPetstore.Client(); // Client | client model
-
-apiInstance.testClientModel(body).then((data) => {
+let apiInstance = new OpenApiPetstore.FakeApi();
+let client = new OpenApiPetstore.Client(); // Client | client model
+apiInstance.testClientModel(client).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
@@ -219,7 +255,7 @@ apiInstance.testClientModel(body).then((data) => {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**Client**](Client.md)| client model |
+ **client** | [**Client**](Client.md)| client model |
### Return type
@@ -244,31 +280,26 @@ Fake endpoint for testing various parameters 假端點 偽のエンドポイン
### Example
```javascript
-import SwaggerPetstore from 'swagger_petstore';
-let defaultClient = SwaggerPetstore.ApiClient.instance;
+import OpenApiPetstore from 'open_api_petstore';
+let defaultClient = OpenApiPetstore.ApiClient.instance;
// Configure HTTP basic authorization: http_basic_test
let http_basic_test = defaultClient.authentications['http_basic_test'];
http_basic_test.username = 'YOUR USERNAME';
http_basic_test.password = 'YOUR PASSWORD';
-let apiInstance = new SwaggerPetstore.FakeApi();
-
-let _number = 8.14; // Number | None
-
-let _double = 1.2; // Number | None
-
+let apiInstance = new OpenApiPetstore.FakeApi();
+let _number = 3.4; // Number | None
+let _double = 3.4; // Number | None
let patternWithoutDelimiter = "patternWithoutDelimiter_example"; // String | None
-
-let _byte = B; // Blob | None
-
-let opts = {
+let _byte = null; // Blob | None
+let opts = {
'integer': 56, // Number | None
'int32': 56, // Number | None
'int64': 789, // Number | None
'_float': 3.4, // Number | None
'_string': "_string_example", // String | None
- 'binary': B, // Blob | None
+ 'binary': "/path/to/file", // File | None
'_date': new Date("2013-10-20"), // Date | None
'dateTime': new Date("2013-10-20T19:20:30+01:00"), // Date | None
'password': "password_example", // String | None
@@ -295,7 +326,7 @@ Name | Type | Description | Notes
**int64** | **Number**| None | [optional]
**_float** | **Number**| None | [optional]
**_string** | **String**| None | [optional]
- **binary** | **Blob**| None | [optional]
+ **binary** | **File**| None | [optional]
**_date** | **Date**| None | [optional]
**dateTime** | **Date**| None | [optional]
**password** | **String**| None | [optional]
@@ -311,8 +342,8 @@ null (empty response body)
### HTTP request headers
- - **Content-Type**: application/xml; charset=utf-8, application/json; charset=utf-8
- - **Accept**: application/xml; charset=utf-8, application/json; charset=utf-8
+ - **Content-Type**: application/x-www-form-urlencoded
+ - **Accept**: Not defined
# **testEnumParameters**
@@ -324,19 +355,18 @@ To test enum parameters
### Example
```javascript
-import SwaggerPetstore from 'swagger_petstore';
+import OpenApiPetstore from 'open_api_petstore';
-let apiInstance = new SwaggerPetstore.FakeApi();
-
-let opts = {
- 'enumFormStringArray': ["enumFormStringArray_example"], // [String] | Form parameter enum test (string array)
- 'enumFormString': "-efg", // String | Form parameter enum test (string)
- 'enumHeaderStringArray': ["enumHeaderStringArray_example"], // [String] | Header parameter enum test (string array)
- 'enumHeaderString': "-efg", // String | Header parameter enum test (string)
- 'enumQueryStringArray': ["enumQueryStringArray_example"], // [String] | Query parameter enum test (string array)
- 'enumQueryString': "-efg", // String | Query parameter enum test (string)
+let apiInstance = new OpenApiPetstore.FakeApi();
+let opts = {
+ 'enumHeaderStringArray': ["'$'"], // [String] | Header parameter enum test (string array)
+ 'enumHeaderString': "'-efg'", // String | Header parameter enum test (string)
+ 'enumQueryStringArray': ["'$'"], // [String] | Query parameter enum test (string array)
+ 'enumQueryString': "'-efg'", // String | Query parameter enum test (string)
'enumQueryInteger': 56, // Number | Query parameter enum test (double)
- 'enumQueryDouble': 1.2 // Number | Query parameter enum test (double)
+ 'enumQueryDouble': 3.4, // Number | Query parameter enum test (double)
+ 'enumFormStringArray': "'$'", // [String] | Form parameter enum test (string array)
+ 'enumFormString': "'-efg'" // String | Form parameter enum test (string)
};
apiInstance.testEnumParameters(opts).then(() => {
console.log('API called successfully.');
@@ -350,14 +380,14 @@ apiInstance.testEnumParameters(opts).then(() => {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **enumFormStringArray** | [**[String]**](String.md)| Form parameter enum test (string array) | [optional]
- **enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to -efg]
**enumHeaderStringArray** | [**[String]**](String.md)| Header parameter enum test (string array) | [optional]
- **enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to -efg]
+ **enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to '-efg']
**enumQueryStringArray** | [**[String]**](String.md)| Query parameter enum test (string array) | [optional]
- **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg]
+ **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to '-efg']
**enumQueryInteger** | **Number**| Query parameter enum test (double) | [optional]
**enumQueryDouble** | **Number**| Query parameter enum test (double) | [optional]
+ **enumFormStringArray** | [**[String]**](String.md)| Form parameter enum test (string array) | [optional] [default to '$']
+ **enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to '-efg']
### Return type
@@ -369,26 +399,22 @@ No authorization required
### HTTP request headers
- - **Content-Type**: */*
- - **Accept**: */*
+ - **Content-Type**: application/x-www-form-urlencoded
+ - **Accept**: Not defined
# **testInlineAdditionalProperties**
-> testInlineAdditionalProperties(param)
+> testInlineAdditionalProperties(requestBody)
test inline additionalProperties
-
-
### Example
```javascript
-import SwaggerPetstore from 'swagger_petstore';
+import OpenApiPetstore from 'open_api_petstore';
-let apiInstance = new SwaggerPetstore.FakeApi();
-
-let param = null; // Object | request body
-
-apiInstance.testInlineAdditionalProperties(param).then(() => {
+let apiInstance = new OpenApiPetstore.FakeApi();
+let requestBody = {key: "inner_example"}; // {String: String} | request body
+apiInstance.testInlineAdditionalProperties(requestBody).then(() => {
console.log('API called successfully.');
}, (error) => {
console.error(error);
@@ -400,7 +426,7 @@ apiInstance.testInlineAdditionalProperties(param).then(() => {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **param** | **Object**| request body |
+ **requestBody** | [**{String: String}**](String.md)| request body |
### Return type
@@ -421,18 +447,13 @@ No authorization required
test json serialization of form data
-
-
### Example
```javascript
-import SwaggerPetstore from 'swagger_petstore';
-
-let apiInstance = new SwaggerPetstore.FakeApi();
+import OpenApiPetstore from 'open_api_petstore';
+let apiInstance = new OpenApiPetstore.FakeApi();
let param = "param_example"; // String | field1
-
let param2 = "param2_example"; // String | field2
-
apiInstance.testJsonFormData(param, param2).then(() => {
console.log('API called successfully.');
}, (error) => {
@@ -458,6 +479,6 @@ No authorization required
### HTTP request headers
- - **Content-Type**: application/json
+ - **Content-Type**: application/x-www-form-urlencoded
- **Accept**: Not defined
diff --git a/samples/client/petstore/javascript-promise-es6/docs/FakeClassnameTags123Api.md b/samples/client/petstore/javascript-promise-es6/docs/FakeClassnameTags123Api.md
index 1595c9b35f..08b9458b0e 100644
--- a/samples/client/petstore/javascript-promise-es6/docs/FakeClassnameTags123Api.md
+++ b/samples/client/petstore/javascript-promise-es6/docs/FakeClassnameTags123Api.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.FakeClassnameTags123Api
+# OpenApiPetstore.FakeClassnameTags123Api
All URIs are relative to *http://petstore.swagger.io:80/v2*
@@ -9,14 +9,16 @@ Method | HTTP request | Description
# **testClassname**
-> Client testClassname(body)
+> Client testClassname(client)
+
+To test class name in snake case
To test class name in snake case
### Example
```javascript
-import SwaggerPetstore from 'swagger_petstore';
-let defaultClient = SwaggerPetstore.ApiClient.instance;
+import OpenApiPetstore from 'open_api_petstore';
+let defaultClient = OpenApiPetstore.ApiClient.instance;
// Configure API key authorization: api_key_query
let api_key_query = defaultClient.authentications['api_key_query'];
@@ -24,11 +26,9 @@ api_key_query.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key_query.apiKeyPrefix = 'Token';
-let apiInstance = new SwaggerPetstore.FakeClassnameTags123Api();
-
-let body = new SwaggerPetstore.Client(); // Client | client model
-
-apiInstance.testClassname(body).then((data) => {
+let apiInstance = new OpenApiPetstore.FakeClassnameTags123Api();
+let client = new OpenApiPetstore.Client(); // Client | client model
+apiInstance.testClassname(client).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
@@ -40,7 +40,7 @@ apiInstance.testClassname(body).then((data) => {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**Client**](Client.md)| client model |
+ **client** | [**Client**](Client.md)| client model |
### Return type
diff --git a/samples/client/petstore/javascript-promise-es6/docs/FormatTest.md b/samples/client/petstore/javascript-promise-es6/docs/FormatTest.md
index cb5b11416f..0f4a840544 100644
--- a/samples/client/petstore/javascript-promise-es6/docs/FormatTest.md
+++ b/samples/client/petstore/javascript-promise-es6/docs/FormatTest.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.FormatTest
+# OpenApiPetstore.FormatTest
## Properties
Name | Type | Description | Notes
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
**_double** | **Number** | | [optional]
**_string** | **String** | | [optional]
**_byte** | **Blob** | |
-**binary** | **Blob** | | [optional]
+**binary** | **File** | | [optional]
**_date** | **Date** | |
**dateTime** | **Date** | | [optional]
**uuid** | **String** | | [optional]
diff --git a/samples/client/petstore/javascript-promise-es6/docs/HasOnlyReadOnly.md b/samples/client/petstore/javascript-promise-es6/docs/HasOnlyReadOnly.md
index b9b975fced..abc4ce6218 100644
--- a/samples/client/petstore/javascript-promise-es6/docs/HasOnlyReadOnly.md
+++ b/samples/client/petstore/javascript-promise-es6/docs/HasOnlyReadOnly.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.HasOnlyReadOnly
+# OpenApiPetstore.HasOnlyReadOnly
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/javascript-promise-es6/docs/List.md b/samples/client/petstore/javascript-promise-es6/docs/List.md
index 12166562e8..3a9555e34e 100644
--- a/samples/client/petstore/javascript-promise-es6/docs/List.md
+++ b/samples/client/petstore/javascript-promise-es6/docs/List.md
@@ -1,8 +1,8 @@
-# SwaggerPetstore.List
+# OpenApiPetstore.List
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**_123List** | **String** | | [optional]
+**_123list** | **String** | | [optional]
diff --git a/samples/client/petstore/javascript-promise-es6/docs/MapTest.md b/samples/client/petstore/javascript-promise-es6/docs/MapTest.md
index 8550252a3f..4a128da00f 100644
--- a/samples/client/petstore/javascript-promise-es6/docs/MapTest.md
+++ b/samples/client/petstore/javascript-promise-es6/docs/MapTest.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.MapTest
+# OpenApiPetstore.MapTest
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/javascript-promise-es6/docs/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/client/petstore/javascript-promise-es6/docs/MixedPropertiesAndAdditionalPropertiesClass.md
index 31bf8b314c..051f771930 100644
--- a/samples/client/petstore/javascript-promise-es6/docs/MixedPropertiesAndAdditionalPropertiesClass.md
+++ b/samples/client/petstore/javascript-promise-es6/docs/MixedPropertiesAndAdditionalPropertiesClass.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.MixedPropertiesAndAdditionalPropertiesClass
+# OpenApiPetstore.MixedPropertiesAndAdditionalPropertiesClass
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/javascript-promise-es6/docs/Model200Response.md b/samples/client/petstore/javascript-promise-es6/docs/Model200Response.md
index f18f963c96..0a0d02cc32 100644
--- a/samples/client/petstore/javascript-promise-es6/docs/Model200Response.md
+++ b/samples/client/petstore/javascript-promise-es6/docs/Model200Response.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.Model200Response
+# OpenApiPetstore.Model200Response
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/javascript-promise-es6/docs/ModelReturn.md b/samples/client/petstore/javascript-promise-es6/docs/ModelReturn.md
index b602b39b0c..9ce6e20387 100644
--- a/samples/client/petstore/javascript-promise-es6/docs/ModelReturn.md
+++ b/samples/client/petstore/javascript-promise-es6/docs/ModelReturn.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.ModelReturn
+# OpenApiPetstore.ModelReturn
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/javascript-promise-es6/docs/Name.md b/samples/client/petstore/javascript-promise-es6/docs/Name.md
index 51dad9ca57..8dfcc46036 100644
--- a/samples/client/petstore/javascript-promise-es6/docs/Name.md
+++ b/samples/client/petstore/javascript-promise-es6/docs/Name.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.Name
+# OpenApiPetstore.Name
## Properties
Name | Type | Description | Notes
@@ -6,6 +6,6 @@ Name | Type | Description | Notes
**name** | **Number** | |
**snakeCase** | **Number** | | [optional]
**property** | **String** | | [optional]
-**_123Number** | **Number** | | [optional]
+**_123number** | **Number** | | [optional]
diff --git a/samples/client/petstore/javascript-promise-es6/docs/NumberOnly.md b/samples/client/petstore/javascript-promise-es6/docs/NumberOnly.md
index f7bf0abd42..cf84674ed4 100644
--- a/samples/client/petstore/javascript-promise-es6/docs/NumberOnly.md
+++ b/samples/client/petstore/javascript-promise-es6/docs/NumberOnly.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.NumberOnly
+# OpenApiPetstore.NumberOnly
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/javascript-promise-es6/docs/Order.md b/samples/client/petstore/javascript-promise-es6/docs/Order.md
index 6dc0b19cd2..987992caa7 100644
--- a/samples/client/petstore/javascript-promise-es6/docs/Order.md
+++ b/samples/client/petstore/javascript-promise-es6/docs/Order.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.Order
+# OpenApiPetstore.Order
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/javascript-promise-es6/docs/OuterComposite.md b/samples/client/petstore/javascript-promise-es6/docs/OuterComposite.md
index e4cb57f35a..c49b32ff32 100644
--- a/samples/client/petstore/javascript-promise-es6/docs/OuterComposite.md
+++ b/samples/client/petstore/javascript-promise-es6/docs/OuterComposite.md
@@ -1,10 +1,10 @@
-# SwaggerPetstore.OuterComposite
+# OpenApiPetstore.OuterComposite
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**myNumber** | [**OuterNumber**](OuterNumber.md) | | [optional]
-**myString** | [**OuterString**](OuterString.md) | | [optional]
-**myBoolean** | [**OuterBoolean**](OuterBoolean.md) | | [optional]
+**myNumber** | **Number** | | [optional]
+**myString** | **String** | | [optional]
+**myBoolean** | **Boolean** | | [optional]
diff --git a/samples/client/petstore/javascript-promise-es6/docs/OuterEnum.md b/samples/client/petstore/javascript-promise-es6/docs/OuterEnum.md
index 4caf04ae09..445d3f4074 100644
--- a/samples/client/petstore/javascript-promise-es6/docs/OuterEnum.md
+++ b/samples/client/petstore/javascript-promise-es6/docs/OuterEnum.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.OuterEnum
+# OpenApiPetstore.OuterEnum
## Enum
diff --git a/samples/client/petstore/javascript-promise-es6/docs/Pet.md b/samples/client/petstore/javascript-promise-es6/docs/Pet.md
index cae89de06d..e91ae688aa 100644
--- a/samples/client/petstore/javascript-promise-es6/docs/Pet.md
+++ b/samples/client/petstore/javascript-promise-es6/docs/Pet.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.Pet
+# OpenApiPetstore.Pet
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/javascript-promise-es6/docs/PetApi.md b/samples/client/petstore/javascript-promise-es6/docs/PetApi.md
index 1d5d78f6d7..3a402233a9 100644
--- a/samples/client/petstore/javascript-promise-es6/docs/PetApi.md
+++ b/samples/client/petstore/javascript-promise-es6/docs/PetApi.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.PetApi
+# OpenApiPetstore.PetApi
All URIs are relative to *http://petstore.swagger.io:80/v2*
@@ -16,26 +16,22 @@ Method | HTTP request | Description
# **addPet**
-> addPet(body)
+> addPet(pet)
Add a new pet to the store
-
-
### Example
```javascript
-import SwaggerPetstore from 'swagger_petstore';
-let defaultClient = SwaggerPetstore.ApiClient.instance;
+import OpenApiPetstore from 'open_api_petstore';
+let defaultClient = OpenApiPetstore.ApiClient.instance;
// Configure OAuth2 access token for authorization: petstore_auth
let petstore_auth = defaultClient.authentications['petstore_auth'];
petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
-let apiInstance = new SwaggerPetstore.PetApi();
-
-let body = new SwaggerPetstore.Pet(); // Pet | Pet object that needs to be added to the store
-
-apiInstance.addPet(body).then(() => {
+let apiInstance = new OpenApiPetstore.PetApi();
+let pet = new OpenApiPetstore.Pet(); // Pet | Pet object that needs to be added to the store
+apiInstance.addPet(pet).then(() => {
console.log('API called successfully.');
}, (error) => {
console.error(error);
@@ -47,7 +43,7 @@ apiInstance.addPet(body).then(() => {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
+ **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
### Return type
@@ -60,7 +56,7 @@ null (empty response body)
### HTTP request headers
- **Content-Type**: application/json, application/xml
- - **Accept**: application/xml, application/json
+ - **Accept**: Not defined
# **deletePet**
@@ -68,22 +64,18 @@ null (empty response body)
Deletes a pet
-
-
### Example
```javascript
-import SwaggerPetstore from 'swagger_petstore';
-let defaultClient = SwaggerPetstore.ApiClient.instance;
+import OpenApiPetstore from 'open_api_petstore';
+let defaultClient = OpenApiPetstore.ApiClient.instance;
// Configure OAuth2 access token for authorization: petstore_auth
let petstore_auth = defaultClient.authentications['petstore_auth'];
petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
-let apiInstance = new SwaggerPetstore.PetApi();
-
+let apiInstance = new OpenApiPetstore.PetApi();
let petId = 789; // Number | Pet id to delete
-
-let opts = {
+let opts = {
'apiKey': "apiKey_example" // String |
};
apiInstance.deletePet(petId, opts).then(() => {
@@ -112,7 +104,7 @@ null (empty response body)
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
+ - **Accept**: Not defined
# **findPetsByStatus**
@@ -124,17 +116,15 @@ Multiple status values can be provided with comma separated strings
### Example
```javascript
-import SwaggerPetstore from 'swagger_petstore';
-let defaultClient = SwaggerPetstore.ApiClient.instance;
+import OpenApiPetstore from 'open_api_petstore';
+let defaultClient = OpenApiPetstore.ApiClient.instance;
// Configure OAuth2 access token for authorization: petstore_auth
let petstore_auth = defaultClient.authentications['petstore_auth'];
petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
-let apiInstance = new SwaggerPetstore.PetApi();
-
-let status = ["status_example"]; // [String] | Status values that need to be considered for filter
-
+let apiInstance = new OpenApiPetstore.PetApi();
+let status = ["'available'"]; // [String] | Status values that need to be considered for filter
apiInstance.findPetsByStatus(status).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
@@ -172,17 +162,15 @@ Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3
### Example
```javascript
-import SwaggerPetstore from 'swagger_petstore';
-let defaultClient = SwaggerPetstore.ApiClient.instance;
+import OpenApiPetstore from 'open_api_petstore';
+let defaultClient = OpenApiPetstore.ApiClient.instance;
// Configure OAuth2 access token for authorization: petstore_auth
let petstore_auth = defaultClient.authentications['petstore_auth'];
petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
-let apiInstance = new SwaggerPetstore.PetApi();
-
-let tags = ["tags_example"]; // [String] | Tags to filter by
-
+let apiInstance = new OpenApiPetstore.PetApi();
+let tags = ["inner_example"]; // [String] | Tags to filter by
apiInstance.findPetsByTags(tags).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
@@ -220,8 +208,8 @@ Returns a single pet
### Example
```javascript
-import SwaggerPetstore from 'swagger_petstore';
-let defaultClient = SwaggerPetstore.ApiClient.instance;
+import OpenApiPetstore from 'open_api_petstore';
+let defaultClient = OpenApiPetstore.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
@@ -229,10 +217,8 @@ api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';
-let apiInstance = new SwaggerPetstore.PetApi();
-
+let apiInstance = new OpenApiPetstore.PetApi();
let petId = 789; // Number | ID of pet to return
-
apiInstance.getPetById(petId).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
@@ -262,26 +248,22 @@ Name | Type | Description | Notes
# **updatePet**
-> updatePet(body)
+> updatePet(pet)
Update an existing pet
-
-
### Example
```javascript
-import SwaggerPetstore from 'swagger_petstore';
-let defaultClient = SwaggerPetstore.ApiClient.instance;
+import OpenApiPetstore from 'open_api_petstore';
+let defaultClient = OpenApiPetstore.ApiClient.instance;
// Configure OAuth2 access token for authorization: petstore_auth
let petstore_auth = defaultClient.authentications['petstore_auth'];
petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
-let apiInstance = new SwaggerPetstore.PetApi();
-
-let body = new SwaggerPetstore.Pet(); // Pet | Pet object that needs to be added to the store
-
-apiInstance.updatePet(body).then(() => {
+let apiInstance = new OpenApiPetstore.PetApi();
+let pet = new OpenApiPetstore.Pet(); // Pet | Pet object that needs to be added to the store
+apiInstance.updatePet(pet).then(() => {
console.log('API called successfully.');
}, (error) => {
console.error(error);
@@ -293,7 +275,7 @@ apiInstance.updatePet(body).then(() => {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
+ **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
### Return type
@@ -306,7 +288,7 @@ null (empty response body)
### HTTP request headers
- **Content-Type**: application/json, application/xml
- - **Accept**: application/xml, application/json
+ - **Accept**: Not defined
# **updatePetWithForm**
@@ -314,22 +296,18 @@ null (empty response body)
Updates a pet in the store with form data
-
-
### Example
```javascript
-import SwaggerPetstore from 'swagger_petstore';
-let defaultClient = SwaggerPetstore.ApiClient.instance;
+import OpenApiPetstore from 'open_api_petstore';
+let defaultClient = OpenApiPetstore.ApiClient.instance;
// Configure OAuth2 access token for authorization: petstore_auth
let petstore_auth = defaultClient.authentications['petstore_auth'];
petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
-let apiInstance = new SwaggerPetstore.PetApi();
-
+let apiInstance = new OpenApiPetstore.PetApi();
let petId = 789; // Number | ID of pet that needs to be updated
-
-let opts = {
+let opts = {
'name': "name_example", // String | Updated name of the pet
'status': "status_example" // String | Updated status of the pet
};
@@ -360,7 +338,7 @@ null (empty response body)
### HTTP request headers
- **Content-Type**: application/x-www-form-urlencoded
- - **Accept**: application/xml, application/json
+ - **Accept**: Not defined
# **uploadFile**
@@ -368,24 +346,20 @@ null (empty response body)
uploads an image
-
-
### Example
```javascript
-import SwaggerPetstore from 'swagger_petstore';
-let defaultClient = SwaggerPetstore.ApiClient.instance;
+import OpenApiPetstore from 'open_api_petstore';
+let defaultClient = OpenApiPetstore.ApiClient.instance;
// Configure OAuth2 access token for authorization: petstore_auth
let petstore_auth = defaultClient.authentications['petstore_auth'];
petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
-let apiInstance = new SwaggerPetstore.PetApi();
-
+let apiInstance = new OpenApiPetstore.PetApi();
let petId = 789; // Number | ID of pet to update
-
-let opts = {
+let opts = {
'additionalMetadata': "additionalMetadata_example", // String | Additional data to pass to server
- 'file': "/path/to/file.txt" // File | file to upload
+ 'file': "/path/to/file" // File | file to upload
};
apiInstance.uploadFile(petId, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
diff --git a/samples/client/petstore/javascript-promise-es6/docs/ReadOnlyFirst.md b/samples/client/petstore/javascript-promise-es6/docs/ReadOnlyFirst.md
index 5a16f8acce..671280fba3 100644
--- a/samples/client/petstore/javascript-promise-es6/docs/ReadOnlyFirst.md
+++ b/samples/client/petstore/javascript-promise-es6/docs/ReadOnlyFirst.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.ReadOnlyFirst
+# OpenApiPetstore.ReadOnlyFirst
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/javascript-promise-es6/docs/SpecialModelName.md b/samples/client/petstore/javascript-promise-es6/docs/SpecialModelName.md
index a204af143a..6039f53de3 100644
--- a/samples/client/petstore/javascript-promise-es6/docs/SpecialModelName.md
+++ b/samples/client/petstore/javascript-promise-es6/docs/SpecialModelName.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.SpecialModelName
+# OpenApiPetstore.SpecialModelName
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/javascript-promise-es6/docs/StoreApi.md b/samples/client/petstore/javascript-promise-es6/docs/StoreApi.md
index 9f931097e0..01725c88e5 100644
--- a/samples/client/petstore/javascript-promise-es6/docs/StoreApi.md
+++ b/samples/client/petstore/javascript-promise-es6/docs/StoreApi.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.StoreApi
+# OpenApiPetstore.StoreApi
All URIs are relative to *http://petstore.swagger.io:80/v2*
@@ -20,12 +20,10 @@ For valid response try integer IDs with value < 1000. Anything above 1000 or
### Example
```javascript
-import SwaggerPetstore from 'swagger_petstore';
-
-let apiInstance = new SwaggerPetstore.StoreApi();
+import OpenApiPetstore from 'open_api_petstore';
+let apiInstance = new OpenApiPetstore.StoreApi();
let orderId = "orderId_example"; // String | ID of the order that needs to be deleted
-
apiInstance.deleteOrder(orderId).then(() => {
console.log('API called successfully.');
}, (error) => {
@@ -51,11 +49,11 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
+ - **Accept**: Not defined
# **getInventory**
-> {'String': 'Number'} getInventory()
+> {String: Number} getInventory()
Returns pet inventories by status
@@ -63,8 +61,8 @@ Returns a map of status codes to quantities
### Example
```javascript
-import SwaggerPetstore from 'swagger_petstore';
-let defaultClient = SwaggerPetstore.ApiClient.instance;
+import OpenApiPetstore from 'open_api_petstore';
+let defaultClient = OpenApiPetstore.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
@@ -72,7 +70,7 @@ api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';
-let apiInstance = new SwaggerPetstore.StoreApi();
+let apiInstance = new OpenApiPetstore.StoreApi();
apiInstance.getInventory().then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
@@ -86,7 +84,7 @@ This endpoint does not need any parameter.
### Return type
-**{'String': 'Number'}**
+**{String: Number}**
### Authorization
@@ -107,12 +105,10 @@ For valid response try integer IDs with value <= 5 or > 10. Other val
### Example
```javascript
-import SwaggerPetstore from 'swagger_petstore';
-
-let apiInstance = new SwaggerPetstore.StoreApi();
+import OpenApiPetstore from 'open_api_petstore';
+let apiInstance = new OpenApiPetstore.StoreApi();
let orderId = 789; // Number | ID of pet that needs to be fetched
-
apiInstance.getOrderById(orderId).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
@@ -142,21 +138,17 @@ No authorization required
# **placeOrder**
-> Order placeOrder(body)
+> Order placeOrder(order)
Place an order for a pet
-
-
### Example
```javascript
-import SwaggerPetstore from 'swagger_petstore';
+import OpenApiPetstore from 'open_api_petstore';
-let apiInstance = new SwaggerPetstore.StoreApi();
-
-let body = new SwaggerPetstore.Order(); // Order | order placed for purchasing the pet
-
-apiInstance.placeOrder(body).then((data) => {
+let apiInstance = new OpenApiPetstore.StoreApi();
+let order = new OpenApiPetstore.Order(); // Order | order placed for purchasing the pet
+apiInstance.placeOrder(order).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
@@ -168,7 +160,7 @@ apiInstance.placeOrder(body).then((data) => {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**Order**](Order.md)| order placed for purchasing the pet |
+ **order** | [**Order**](Order.md)| order placed for purchasing the pet |
### Return type
diff --git a/samples/client/petstore/javascript-promise-es6/docs/Tag.md b/samples/client/petstore/javascript-promise-es6/docs/Tag.md
index c0277cae8f..a53941e80e 100644
--- a/samples/client/petstore/javascript-promise-es6/docs/Tag.md
+++ b/samples/client/petstore/javascript-promise-es6/docs/Tag.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.Tag
+# OpenApiPetstore.Tag
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/javascript-promise-es6/docs/User.md b/samples/client/petstore/javascript-promise-es6/docs/User.md
index 2cac604cfa..2e86dd378b 100644
--- a/samples/client/petstore/javascript-promise-es6/docs/User.md
+++ b/samples/client/petstore/javascript-promise-es6/docs/User.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.User
+# OpenApiPetstore.User
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/javascript-promise-es6/docs/UserApi.md b/samples/client/petstore/javascript-promise-es6/docs/UserApi.md
index df53e06d15..7513a886c7 100644
--- a/samples/client/petstore/javascript-promise-es6/docs/UserApi.md
+++ b/samples/client/petstore/javascript-promise-es6/docs/UserApi.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.UserApi
+# OpenApiPetstore.UserApi
All URIs are relative to *http://petstore.swagger.io:80/v2*
@@ -16,7 +16,7 @@ Method | HTTP request | Description
# **createUser**
-> createUser(body)
+> createUser(user)
Create user
@@ -24,13 +24,11 @@ This can only be done by the logged in user.
### Example
```javascript
-import SwaggerPetstore from 'swagger_petstore';
+import OpenApiPetstore from 'open_api_petstore';
-let apiInstance = new SwaggerPetstore.UserApi();
-
-let body = new SwaggerPetstore.User(); // User | Created user object
-
-apiInstance.createUser(body).then(() => {
+let apiInstance = new OpenApiPetstore.UserApi();
+let user = new OpenApiPetstore.User(); // User | Created user object
+apiInstance.createUser(user).then(() => {
console.log('API called successfully.');
}, (error) => {
console.error(error);
@@ -42,7 +40,7 @@ apiInstance.createUser(body).then(() => {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**User**](User.md)| Created user object |
+ **user** | [**User**](User.md)| Created user object |
### Return type
@@ -55,25 +53,21 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
+ - **Accept**: Not defined
# **createUsersWithArrayInput**
-> createUsersWithArrayInput(body)
+> createUsersWithArrayInput(user)
Creates list of users with given input array
-
-
### Example
```javascript
-import SwaggerPetstore from 'swagger_petstore';
+import OpenApiPetstore from 'open_api_petstore';
-let apiInstance = new SwaggerPetstore.UserApi();
-
-let body = [new SwaggerPetstore.User()]; // [User] | List of user object
-
-apiInstance.createUsersWithArrayInput(body).then(() => {
+let apiInstance = new OpenApiPetstore.UserApi();
+let user = [new OpenApiPetstore.User()]; // [User] | List of user object
+apiInstance.createUsersWithArrayInput(user).then(() => {
console.log('API called successfully.');
}, (error) => {
console.error(error);
@@ -85,7 +79,7 @@ apiInstance.createUsersWithArrayInput(body).then(() => {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**[User]**](User.md)| List of user object |
+ **user** | [**[User]**](Array.md)| List of user object |
### Return type
@@ -98,25 +92,21 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
+ - **Accept**: Not defined
# **createUsersWithListInput**
-> createUsersWithListInput(body)
+> createUsersWithListInput(user)
Creates list of users with given input array
-
-
### Example
```javascript
-import SwaggerPetstore from 'swagger_petstore';
+import OpenApiPetstore from 'open_api_petstore';
-let apiInstance = new SwaggerPetstore.UserApi();
-
-let body = [new SwaggerPetstore.User()]; // [User] | List of user object
-
-apiInstance.createUsersWithListInput(body).then(() => {
+let apiInstance = new OpenApiPetstore.UserApi();
+let user = [new OpenApiPetstore.User()]; // [User] | List of user object
+apiInstance.createUsersWithListInput(user).then(() => {
console.log('API called successfully.');
}, (error) => {
console.error(error);
@@ -128,7 +118,7 @@ apiInstance.createUsersWithListInput(body).then(() => {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**[User]**](User.md)| List of user object |
+ **user** | [**[User]**](Array.md)| List of user object |
### Return type
@@ -141,7 +131,7 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
+ - **Accept**: Not defined
# **deleteUser**
@@ -153,12 +143,10 @@ This can only be done by the logged in user.
### Example
```javascript
-import SwaggerPetstore from 'swagger_petstore';
-
-let apiInstance = new SwaggerPetstore.UserApi();
+import OpenApiPetstore from 'open_api_petstore';
+let apiInstance = new OpenApiPetstore.UserApi();
let username = "username_example"; // String | The name that needs to be deleted
-
apiInstance.deleteUser(username).then(() => {
console.log('API called successfully.');
}, (error) => {
@@ -184,7 +172,7 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
+ - **Accept**: Not defined
# **getUserByName**
@@ -192,16 +180,12 @@ No authorization required
Get user by user name
-
-
### Example
```javascript
-import SwaggerPetstore from 'swagger_petstore';
-
-let apiInstance = new SwaggerPetstore.UserApi();
-
-let username = "username_example"; // String | The name that needs to be fetched. Use user1 for testing.
+import OpenApiPetstore from 'open_api_petstore';
+let apiInstance = new OpenApiPetstore.UserApi();
+let username = "username_example"; // String | The name that needs to be fetched. Use user1 for testing.
apiInstance.getUserByName(username).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
@@ -214,7 +198,7 @@ apiInstance.getUserByName(username).then((data) => {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **username** | **String**| The name that needs to be fetched. Use user1 for testing. |
+ **username** | **String**| The name that needs to be fetched. Use user1 for testing. |
### Return type
@@ -231,22 +215,17 @@ No authorization required
# **loginUser**
-> 'String' loginUser(username, password)
+> String loginUser(username, password)
Logs user into the system
-
-
### Example
```javascript
-import SwaggerPetstore from 'swagger_petstore';
-
-let apiInstance = new SwaggerPetstore.UserApi();
+import OpenApiPetstore from 'open_api_petstore';
+let apiInstance = new OpenApiPetstore.UserApi();
let username = "username_example"; // String | The user name for login
-
let password = "password_example"; // String | The password for login in clear text
-
apiInstance.loginUser(username, password).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
@@ -264,7 +243,7 @@ Name | Type | Description | Notes
### Return type
-**'String'**
+**String**
### Authorization
@@ -281,13 +260,11 @@ No authorization required
Logs out current logged in user session
-
-
### Example
```javascript
-import SwaggerPetstore from 'swagger_petstore';
+import OpenApiPetstore from 'open_api_petstore';
-let apiInstance = new SwaggerPetstore.UserApi();
+let apiInstance = new OpenApiPetstore.UserApi();
apiInstance.logoutUser().then(() => {
console.log('API called successfully.');
}, (error) => {
@@ -310,11 +287,11 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
+ - **Accept**: Not defined
# **updateUser**
-> updateUser(username, body)
+> updateUser(username, user)
Updated user
@@ -322,15 +299,12 @@ This can only be done by the logged in user.
### Example
```javascript
-import SwaggerPetstore from 'swagger_petstore';
-
-let apiInstance = new SwaggerPetstore.UserApi();
+import OpenApiPetstore from 'open_api_petstore';
+let apiInstance = new OpenApiPetstore.UserApi();
let username = "username_example"; // String | name that need to be deleted
-
-let body = new SwaggerPetstore.User(); // User | Updated user object
-
-apiInstance.updateUser(username, body).then(() => {
+let user = new OpenApiPetstore.User(); // User | Updated user object
+apiInstance.updateUser(username, user).then(() => {
console.log('API called successfully.');
}, (error) => {
console.error(error);
@@ -343,7 +317,7 @@ apiInstance.updateUser(username, body).then(() => {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**username** | **String**| name that need to be deleted |
- **body** | [**User**](User.md)| Updated user object |
+ **user** | [**User**](User.md)| Updated user object |
### Return type
@@ -356,5 +330,5 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
+ - **Accept**: Not defined
diff --git a/samples/client/petstore/javascript-promise-es6/git_push.sh b/samples/client/petstore/javascript-promise-es6/git_push.sh
index 0d041ad0ba..04dd5df38e 100644
--- a/samples/client/petstore/javascript-promise-es6/git_push.sh
+++ b/samples/client/petstore/javascript-promise-es6/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/javascript-promise-es6/package.json b/samples/client/petstore/javascript-promise-es6/package.json
index afb99e8a97..df2fea63d6 100644
--- a/samples/client/petstore/javascript-promise-es6/package.json
+++ b/samples/client/petstore/javascript-promise-es6/package.json
@@ -1,5 +1,5 @@
{
- "name": "swagger_petstore",
+ "name": "open_api_petstore",
"version": "1.0.0",
"description": "This_spec_is_mainly_for_testing_Petstore_server_and_contains_fake_endpoints_models__Please_do_not_use_this_for_any_other_purpose__Special_characters__",
"license": "Apache-2.0",
diff --git a/samples/client/petstore/javascript-promise-es6/src/ApiClient.js b/samples/client/petstore/javascript-promise-es6/src/ApiClient.js
index a6a1dddd8e..2bb0139797 100644
--- a/samples/client/petstore/javascript-promise-es6/src/ApiClient.js
+++ b/samples/client/petstore/javascript-promise-es6/src/ApiClient.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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.
*
*/
@@ -482,7 +482,7 @@ export default class ApiClient {
* @returns {Date} The parsed date object.
*/
static parseDate(str) {
- return new Date(str.replace(/T/i, ' '));
+ return new Date(str);
}
/**
diff --git a/samples/client/petstore/javascript-promise-es6/src/api/AnotherFakeApi.js b/samples/client/petstore/javascript-promise-es6/src/api/AnotherFakeApi.js
index 94185c14bc..a9a409d633 100644
--- a/samples/client/petstore/javascript-promise-es6/src/api/AnotherFakeApi.js
+++ b/samples/client/petstore/javascript-promise-es6/src/api/AnotherFakeApi.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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.
*
*/
@@ -38,15 +38,15 @@ export default class AnotherFakeApi {
/**
* To test special tags
* To test special tags
- * @param {module:model/Client} body client model
+ * @param {module:model/Client} client client model
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Client} and HTTP response
*/
- testSpecialTagsWithHttpInfo(body) {
- let postBody = body;
+ testSpecialTagsWithHttpInfo(client) {
+ let postBody = client;
- // verify the required parameter 'body' is set
- if (body === undefined || body === null) {
- throw new Error("Missing the required parameter 'body' when calling testSpecialTags");
+ // verify the required parameter 'client' is set
+ if (client === undefined || client === null) {
+ throw new Error("Missing the required parameter 'client' when calling testSpecialTags");
}
@@ -74,11 +74,11 @@ export default class AnotherFakeApi {
/**
* To test special tags
* To test special tags
- * @param {module:model/Client} body client model
+ * @param {module:model/Client} client client model
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Client}
*/
- testSpecialTags(body) {
- return this.testSpecialTagsWithHttpInfo(body)
+ testSpecialTags(client) {
+ return this.testSpecialTagsWithHttpInfo(client)
.then(function(response_and_data) {
return response_and_data.data;
});
diff --git a/samples/client/petstore/javascript-promise-es6/src/api/FakeApi.js b/samples/client/petstore/javascript-promise-es6/src/api/FakeApi.js
index 0b0b8a1a81..d347940fff 100644
--- a/samples/client/petstore/javascript-promise-es6/src/api/FakeApi.js
+++ b/samples/client/petstore/javascript-promise-es6/src/api/FakeApi.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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.
*
*/
@@ -14,10 +14,8 @@
import ApiClient from "../ApiClient";
import Client from '../model/Client';
-import OuterBoolean from '../model/OuterBoolean';
import OuterComposite from '../model/OuterComposite';
-import OuterNumber from '../model/OuterNumber';
-import OuterString from '../model/OuterString';
+import User from '../model/User';
/**
* Fake service.
@@ -42,8 +40,8 @@ export default class FakeApi {
/**
* Test serialization of outer boolean types
* @param {Object} opts Optional parameters
- * @param {module:model/OuterBoolean} opts.body Input boolean as post body
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OuterBoolean} and HTTP response
+ * @param {Boolean} opts.body Input boolean as post body
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Boolean} and HTTP response
*/
fakeOuterBooleanSerializeWithHttpInfo(opts) {
opts = opts || {};
@@ -61,8 +59,8 @@ export default class FakeApi {
let authNames = [];
let contentTypes = [];
- let accepts = [];
- let returnType = OuterBoolean;
+ let accepts = ['*/*'];
+ let returnType = Boolean;
return this.apiClient.callApi(
'/fake/outer/boolean', 'POST',
@@ -74,8 +72,8 @@ export default class FakeApi {
/**
* Test serialization of outer boolean types
* @param {Object} opts Optional parameters
- * @param {module:model/OuterBoolean} opts.body Input boolean as post body
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OuterBoolean}
+ * @param {Boolean} opts.body Input boolean as post body
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Boolean}
*/
fakeOuterBooleanSerialize(opts) {
return this.fakeOuterBooleanSerializeWithHttpInfo(opts)
@@ -88,12 +86,12 @@ export default class FakeApi {
/**
* Test serialization of object with outer number type
* @param {Object} opts Optional parameters
- * @param {module:model/OuterComposite} opts.body Input composite as post body
+ * @param {module:model/OuterComposite} opts.outerComposite Input composite as post body
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OuterComposite} and HTTP response
*/
fakeOuterCompositeSerializeWithHttpInfo(opts) {
opts = opts || {};
- let postBody = opts['body'];
+ let postBody = opts['outerComposite'];
let pathParams = {
@@ -107,7 +105,7 @@ export default class FakeApi {
let authNames = [];
let contentTypes = [];
- let accepts = [];
+ let accepts = ['*/*'];
let returnType = OuterComposite;
return this.apiClient.callApi(
@@ -120,7 +118,7 @@ export default class FakeApi {
/**
* Test serialization of object with outer number type
* @param {Object} opts Optional parameters
- * @param {module:model/OuterComposite} opts.body Input composite as post body
+ * @param {module:model/OuterComposite} opts.outerComposite Input composite as post body
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OuterComposite}
*/
fakeOuterCompositeSerialize(opts) {
@@ -134,8 +132,8 @@ export default class FakeApi {
/**
* Test serialization of outer number types
* @param {Object} opts Optional parameters
- * @param {module:model/OuterNumber} opts.body Input number as post body
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OuterNumber} and HTTP response
+ * @param {Number} opts.body Input number as post body
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Number} and HTTP response
*/
fakeOuterNumberSerializeWithHttpInfo(opts) {
opts = opts || {};
@@ -153,8 +151,8 @@ export default class FakeApi {
let authNames = [];
let contentTypes = [];
- let accepts = [];
- let returnType = OuterNumber;
+ let accepts = ['*/*'];
+ let returnType = Number;
return this.apiClient.callApi(
'/fake/outer/number', 'POST',
@@ -166,8 +164,8 @@ export default class FakeApi {
/**
* Test serialization of outer number types
* @param {Object} opts Optional parameters
- * @param {module:model/OuterNumber} opts.body Input number as post body
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OuterNumber}
+ * @param {Number} opts.body Input number as post body
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Number}
*/
fakeOuterNumberSerialize(opts) {
return this.fakeOuterNumberSerializeWithHttpInfo(opts)
@@ -180,8 +178,8 @@ export default class FakeApi {
/**
* Test serialization of outer string types
* @param {Object} opts Optional parameters
- * @param {module:model/OuterString} opts.body Input string as post body
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OuterString} and HTTP response
+ * @param {String} opts.body Input string as post body
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link String} and HTTP response
*/
fakeOuterStringSerializeWithHttpInfo(opts) {
opts = opts || {};
@@ -199,8 +197,8 @@ export default class FakeApi {
let authNames = [];
let contentTypes = [];
- let accepts = [];
- let returnType = OuterString;
+ let accepts = ['*/*'];
+ let returnType = String;
return this.apiClient.callApi(
'/fake/outer/string', 'POST',
@@ -212,8 +210,8 @@ export default class FakeApi {
/**
* Test serialization of outer string types
* @param {Object} opts Optional parameters
- * @param {module:model/OuterString} opts.body Input string as post body
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OuterString}
+ * @param {String} opts.body Input string as post body
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link String}
*/
fakeOuterStringSerialize(opts) {
return this.fakeOuterStringSerializeWithHttpInfo(opts)
@@ -223,18 +221,72 @@ export default class FakeApi {
}
+ /**
+ * @param {String} query
+ * @param {module:model/User} user
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
+ */
+ testBodyWithQueryParamsWithHttpInfo(query, user) {
+ let postBody = user;
+
+ // verify the required parameter 'query' is set
+ if (query === undefined || query === null) {
+ throw new Error("Missing the required parameter 'query' when calling testBodyWithQueryParams");
+ }
+
+ // verify the required parameter 'user' is set
+ if (user === undefined || user === null) {
+ throw new Error("Missing the required parameter 'user' when calling testBodyWithQueryParams");
+ }
+
+
+ let pathParams = {
+ };
+ let queryParams = {
+ 'query': query
+ };
+ let headerParams = {
+ };
+ let formParams = {
+ };
+
+ let authNames = [];
+ let contentTypes = ['application/json'];
+ let accepts = [];
+ let returnType = null;
+
+ return this.apiClient.callApi(
+ '/fake/body-with-query-params', 'PUT',
+ pathParams, queryParams, headerParams, formParams, postBody,
+ authNames, contentTypes, accepts, returnType
+ );
+ }
+
+ /**
+ * @param {String} query
+ * @param {module:model/User} user
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
+ */
+ testBodyWithQueryParams(query, user) {
+ return this.testBodyWithQueryParamsWithHttpInfo(query, user)
+ .then(function(response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+
/**
* To test \"client\" model
* To test \"client\" model
- * @param {module:model/Client} body client model
+ * @param {module:model/Client} client client model
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Client} and HTTP response
*/
- testClientModelWithHttpInfo(body) {
- let postBody = body;
+ testClientModelWithHttpInfo(client) {
+ let postBody = client;
- // verify the required parameter 'body' is set
- if (body === undefined || body === null) {
- throw new Error("Missing the required parameter 'body' when calling testClientModel");
+ // verify the required parameter 'client' is set
+ if (client === undefined || client === null) {
+ throw new Error("Missing the required parameter 'client' when calling testClientModel");
}
@@ -262,11 +314,11 @@ export default class FakeApi {
/**
* To test \"client\" model
* To test \"client\" model
- * @param {module:model/Client} body client model
+ * @param {module:model/Client} client client model
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Client}
*/
- testClientModel(body) {
- return this.testClientModelWithHttpInfo(body)
+ testClientModel(client) {
+ return this.testClientModelWithHttpInfo(client)
.then(function(response_and_data) {
return response_and_data.data;
});
@@ -286,7 +338,7 @@ export default class FakeApi {
* @param {Number} opts.int64 None
* @param {Number} opts._float None
* @param {String} opts._string None
- * @param {Blob} opts.binary None
+ * @param {File} opts.binary None
* @param {Date} opts._date None
* @param {Date} opts.dateTime None
* @param {String} opts.password None
@@ -342,8 +394,8 @@ export default class FakeApi {
};
let authNames = ['http_basic_test'];
- let contentTypes = ['application/xml; charset=utf-8', 'application/json; charset=utf-8'];
- let accepts = ['application/xml; charset=utf-8', 'application/json; charset=utf-8'];
+ let contentTypes = ['application/x-www-form-urlencoded'];
+ let accepts = [];
let returnType = null;
return this.apiClient.callApi(
@@ -366,7 +418,7 @@ export default class FakeApi {
* @param {Number} opts.int64 None
* @param {Number} opts._float None
* @param {String} opts._string None
- * @param {Blob} opts.binary None
+ * @param {File} opts.binary None
* @param {Date} opts._date None
* @param {Date} opts.dateTime None
* @param {String} opts.password None
@@ -385,14 +437,14 @@ export default class FakeApi {
* To test enum parameters
* To test enum parameters
* @param {Object} opts Optional parameters
- * @param {Array.} opts.enumFormStringArray Form parameter enum test (string array)
- * @param {module:model/String} opts.enumFormString Form parameter enum test (string) (default to -efg)
* @param {Array.} opts.enumHeaderStringArray Header parameter enum test (string array)
- * @param {module:model/String} opts.enumHeaderString Header parameter enum test (string) (default to -efg)
+ * @param {module:model/String} opts.enumHeaderString Header parameter enum test (string) (default to '-efg')
* @param {Array.} opts.enumQueryStringArray Query parameter enum test (string array)
- * @param {module:model/String} opts.enumQueryString Query parameter enum test (string) (default to -efg)
+ * @param {module:model/String} opts.enumQueryString Query parameter enum test (string) (default to '-efg')
* @param {module:model/Number} opts.enumQueryInteger Query parameter enum test (double)
* @param {module:model/Number} opts.enumQueryDouble Query parameter enum test (double)
+ * @param {Array.} opts.enumFormStringArray Form parameter enum test (string array) (default to '$')
+ * @param {module:model/String} opts.enumFormString Form parameter enum test (string) (default to '-efg')
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
*/
testEnumParametersWithHttpInfo(opts) {
@@ -405,7 +457,8 @@ export default class FakeApi {
let queryParams = {
'enum_query_string_array': this.apiClient.buildCollectionParam(opts['enumQueryStringArray'], 'csv'),
'enum_query_string': opts['enumQueryString'],
- 'enum_query_integer': opts['enumQueryInteger']
+ 'enum_query_integer': opts['enumQueryInteger'],
+ 'enum_query_double': opts['enumQueryDouble']
};
let headerParams = {
'enum_header_string_array': opts['enumHeaderStringArray'],
@@ -413,13 +466,12 @@ export default class FakeApi {
};
let formParams = {
'enum_form_string_array': this.apiClient.buildCollectionParam(opts['enumFormStringArray'], 'csv'),
- 'enum_form_string': opts['enumFormString'],
- 'enum_query_double': opts['enumQueryDouble']
+ 'enum_form_string': opts['enumFormString']
};
let authNames = [];
- let contentTypes = ['*/*'];
- let accepts = ['*/*'];
+ let contentTypes = ['application/x-www-form-urlencoded'];
+ let accepts = [];
let returnType = null;
return this.apiClient.callApi(
@@ -433,14 +485,14 @@ export default class FakeApi {
* To test enum parameters
* To test enum parameters
* @param {Object} opts Optional parameters
- * @param {Array.} opts.enumFormStringArray Form parameter enum test (string array)
- * @param {module:model/String} opts.enumFormString Form parameter enum test (string) (default to -efg)
* @param {Array.} opts.enumHeaderStringArray Header parameter enum test (string array)
- * @param {module:model/String} opts.enumHeaderString Header parameter enum test (string) (default to -efg)
+ * @param {module:model/String} opts.enumHeaderString Header parameter enum test (string) (default to '-efg')
* @param {Array.} opts.enumQueryStringArray Query parameter enum test (string array)
- * @param {module:model/String} opts.enumQueryString Query parameter enum test (string) (default to -efg)
+ * @param {module:model/String} opts.enumQueryString Query parameter enum test (string) (default to '-efg')
* @param {module:model/Number} opts.enumQueryInteger Query parameter enum test (double)
* @param {module:model/Number} opts.enumQueryDouble Query parameter enum test (double)
+ * @param {Array.} opts.enumFormStringArray Form parameter enum test (string array) (default to '$')
+ * @param {module:model/String} opts.enumFormString Form parameter enum test (string) (default to '-efg')
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
testEnumParameters(opts) {
@@ -453,16 +505,15 @@ export default class FakeApi {
/**
* test inline additionalProperties
- *
- * @param {Object} param request body
+ * @param {Object.} requestBody request body
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
*/
- testInlineAdditionalPropertiesWithHttpInfo(param) {
- let postBody = param;
+ testInlineAdditionalPropertiesWithHttpInfo(requestBody) {
+ let postBody = requestBody;
- // verify the required parameter 'param' is set
- if (param === undefined || param === null) {
- throw new Error("Missing the required parameter 'param' when calling testInlineAdditionalProperties");
+ // verify the required parameter 'requestBody' is set
+ if (requestBody === undefined || requestBody === null) {
+ throw new Error("Missing the required parameter 'requestBody' when calling testInlineAdditionalProperties");
}
@@ -489,12 +540,11 @@ export default class FakeApi {
/**
* test inline additionalProperties
- *
- * @param {Object} param request body
+ * @param {Object.} requestBody request body
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- testInlineAdditionalProperties(param) {
- return this.testInlineAdditionalPropertiesWithHttpInfo(param)
+ testInlineAdditionalProperties(requestBody) {
+ return this.testInlineAdditionalPropertiesWithHttpInfo(requestBody)
.then(function(response_and_data) {
return response_and_data.data;
});
@@ -503,7 +553,6 @@ export default class FakeApi {
/**
* test json serialization of form data
- *
* @param {String} param field1
* @param {String} param2 field2
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
@@ -534,7 +583,7 @@ export default class FakeApi {
};
let authNames = [];
- let contentTypes = ['application/json'];
+ let contentTypes = ['application/x-www-form-urlencoded'];
let accepts = [];
let returnType = null;
@@ -547,7 +596,6 @@ export default class FakeApi {
/**
* test json serialization of form data
- *
* @param {String} param field1
* @param {String} param2 field2
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
diff --git a/samples/client/petstore/javascript-promise-es6/src/api/FakeClassnameTags123Api.js b/samples/client/petstore/javascript-promise-es6/src/api/FakeClassnameTags123Api.js
index 89dddfd7a9..11e8a47120 100644
--- a/samples/client/petstore/javascript-promise-es6/src/api/FakeClassnameTags123Api.js
+++ b/samples/client/petstore/javascript-promise-es6/src/api/FakeClassnameTags123Api.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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.
*
*/
@@ -37,15 +37,16 @@ export default class FakeClassnameTags123Api {
/**
* To test class name in snake case
- * @param {module:model/Client} body client model
+ * To test class name in snake case
+ * @param {module:model/Client} client client model
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Client} and HTTP response
*/
- testClassnameWithHttpInfo(body) {
- let postBody = body;
+ testClassnameWithHttpInfo(client) {
+ let postBody = client;
- // verify the required parameter 'body' is set
- if (body === undefined || body === null) {
- throw new Error("Missing the required parameter 'body' when calling testClassname");
+ // verify the required parameter 'client' is set
+ if (client === undefined || client === null) {
+ throw new Error("Missing the required parameter 'client' when calling testClassname");
}
@@ -72,11 +73,12 @@ export default class FakeClassnameTags123Api {
/**
* To test class name in snake case
- * @param {module:model/Client} body client model
+ * To test class name in snake case
+ * @param {module:model/Client} client client model
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Client}
*/
- testClassname(body) {
- return this.testClassnameWithHttpInfo(body)
+ testClassname(client) {
+ return this.testClassnameWithHttpInfo(client)
.then(function(response_and_data) {
return response_and_data.data;
});
diff --git a/samples/client/petstore/javascript-promise-es6/src/api/PetApi.js b/samples/client/petstore/javascript-promise-es6/src/api/PetApi.js
index 7e79f14a48..a8a8d91c95 100644
--- a/samples/client/petstore/javascript-promise-es6/src/api/PetApi.js
+++ b/samples/client/petstore/javascript-promise-es6/src/api/PetApi.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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.
*
*/
@@ -38,16 +38,15 @@ export default class PetApi {
/**
* Add a new pet to the store
- *
- * @param {module:model/Pet} body Pet object that needs to be added to the store
+ * @param {module:model/Pet} pet Pet object that needs to be added to the store
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
*/
- addPetWithHttpInfo(body) {
- let postBody = body;
+ addPetWithHttpInfo(pet) {
+ let postBody = pet;
- // verify the required parameter 'body' is set
- if (body === undefined || body === null) {
- throw new Error("Missing the required parameter 'body' when calling addPet");
+ // verify the required parameter 'pet' is set
+ if (pet === undefined || pet === null) {
+ throw new Error("Missing the required parameter 'pet' when calling addPet");
}
@@ -62,7 +61,7 @@ export default class PetApi {
let authNames = ['petstore_auth'];
let contentTypes = ['application/json', 'application/xml'];
- let accepts = ['application/xml', 'application/json'];
+ let accepts = [];
let returnType = null;
return this.apiClient.callApi(
@@ -74,12 +73,11 @@ export default class PetApi {
/**
* Add a new pet to the store
- *
- * @param {module:model/Pet} body Pet object that needs to be added to the store
+ * @param {module:model/Pet} pet Pet object that needs to be added to the store
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- addPet(body) {
- return this.addPetWithHttpInfo(body)
+ addPet(pet) {
+ return this.addPetWithHttpInfo(pet)
.then(function(response_and_data) {
return response_and_data.data;
});
@@ -88,7 +86,6 @@ export default class PetApi {
/**
* Deletes a pet
- *
* @param {Number} petId Pet id to delete
* @param {Object} opts Optional parameters
* @param {String} opts.apiKey
@@ -117,7 +114,7 @@ export default class PetApi {
let authNames = ['petstore_auth'];
let contentTypes = [];
- let accepts = ['application/xml', 'application/json'];
+ let accepts = [];
let returnType = null;
return this.apiClient.callApi(
@@ -129,7 +126,6 @@ export default class PetApi {
/**
* Deletes a pet
- *
* @param {Number} petId Pet id to delete
* @param {Object} opts Optional parameters
* @param {String} opts.apiKey
@@ -298,16 +294,15 @@ export default class PetApi {
/**
* Update an existing pet
- *
- * @param {module:model/Pet} body Pet object that needs to be added to the store
+ * @param {module:model/Pet} pet Pet object that needs to be added to the store
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
*/
- updatePetWithHttpInfo(body) {
- let postBody = body;
+ updatePetWithHttpInfo(pet) {
+ let postBody = pet;
- // verify the required parameter 'body' is set
- if (body === undefined || body === null) {
- throw new Error("Missing the required parameter 'body' when calling updatePet");
+ // verify the required parameter 'pet' is set
+ if (pet === undefined || pet === null) {
+ throw new Error("Missing the required parameter 'pet' when calling updatePet");
}
@@ -322,7 +317,7 @@ export default class PetApi {
let authNames = ['petstore_auth'];
let contentTypes = ['application/json', 'application/xml'];
- let accepts = ['application/xml', 'application/json'];
+ let accepts = [];
let returnType = null;
return this.apiClient.callApi(
@@ -334,12 +329,11 @@ export default class PetApi {
/**
* Update an existing pet
- *
- * @param {module:model/Pet} body Pet object that needs to be added to the store
+ * @param {module:model/Pet} pet Pet object that needs to be added to the store
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- updatePet(body) {
- return this.updatePetWithHttpInfo(body)
+ updatePet(pet) {
+ return this.updatePetWithHttpInfo(pet)
.then(function(response_and_data) {
return response_and_data.data;
});
@@ -348,7 +342,6 @@ export default class PetApi {
/**
* Updates a pet in the store with form data
- *
* @param {Number} petId ID of pet that needs to be updated
* @param {Object} opts Optional parameters
* @param {String} opts.name Updated name of the pet
@@ -379,7 +372,7 @@ export default class PetApi {
let authNames = ['petstore_auth'];
let contentTypes = ['application/x-www-form-urlencoded'];
- let accepts = ['application/xml', 'application/json'];
+ let accepts = [];
let returnType = null;
return this.apiClient.callApi(
@@ -391,7 +384,6 @@ export default class PetApi {
/**
* Updates a pet in the store with form data
- *
* @param {Number} petId ID of pet that needs to be updated
* @param {Object} opts Optional parameters
* @param {String} opts.name Updated name of the pet
@@ -408,7 +400,6 @@ export default class PetApi {
/**
* uploads an image
- *
* @param {Number} petId ID of pet to update
* @param {Object} opts Optional parameters
* @param {String} opts.additionalMetadata Additional data to pass to server
@@ -451,7 +442,6 @@ export default class PetApi {
/**
* uploads an image
- *
* @param {Number} petId ID of pet to update
* @param {Object} opts Optional parameters
* @param {String} opts.additionalMetadata Additional data to pass to server
diff --git a/samples/client/petstore/javascript-promise-es6/src/api/StoreApi.js b/samples/client/petstore/javascript-promise-es6/src/api/StoreApi.js
index 689d4ffb63..f21f9822ee 100644
--- a/samples/client/petstore/javascript-promise-es6/src/api/StoreApi.js
+++ b/samples/client/petstore/javascript-promise-es6/src/api/StoreApi.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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.
*
*/
@@ -62,7 +62,7 @@ export default class StoreApi {
let authNames = [];
let contentTypes = [];
- let accepts = ['application/xml', 'application/json'];
+ let accepts = [];
let returnType = null;
return this.apiClient.callApi(
@@ -89,7 +89,7 @@ export default class StoreApi {
/**
* Returns pet inventories by status
* Returns a map of status codes to quantities
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object.} and HTTP response
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object.} and HTTP response
*/
getInventoryWithHttpInfo() {
let postBody = null;
@@ -107,7 +107,7 @@ export default class StoreApi {
let authNames = ['api_key'];
let contentTypes = [];
let accepts = ['application/json'];
- let returnType = {'String': 'Number'};
+ let returnType = {String: Number};
return this.apiClient.callApi(
'/store/inventory', 'GET',
@@ -119,7 +119,7 @@ export default class StoreApi {
/**
* Returns pet inventories by status
* Returns a map of status codes to quantities
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object.}
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object.}
*/
getInventory() {
return this.getInventoryWithHttpInfo()
@@ -182,16 +182,15 @@ export default class StoreApi {
/**
* Place an order for a pet
- *
- * @param {module:model/Order} body order placed for purchasing the pet
+ * @param {module:model/Order} order order placed for purchasing the pet
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Order} and HTTP response
*/
- placeOrderWithHttpInfo(body) {
- let postBody = body;
+ placeOrderWithHttpInfo(order) {
+ let postBody = order;
- // verify the required parameter 'body' is set
- if (body === undefined || body === null) {
- throw new Error("Missing the required parameter 'body' when calling placeOrder");
+ // verify the required parameter 'order' is set
+ if (order === undefined || order === null) {
+ throw new Error("Missing the required parameter 'order' when calling placeOrder");
}
@@ -218,12 +217,11 @@ export default class StoreApi {
/**
* Place an order for a pet
- *
- * @param {module:model/Order} body order placed for purchasing the pet
+ * @param {module:model/Order} order order placed for purchasing the pet
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Order}
*/
- placeOrder(body) {
- return this.placeOrderWithHttpInfo(body)
+ placeOrder(order) {
+ return this.placeOrderWithHttpInfo(order)
.then(function(response_and_data) {
return response_and_data.data;
});
diff --git a/samples/client/petstore/javascript-promise-es6/src/api/UserApi.js b/samples/client/petstore/javascript-promise-es6/src/api/UserApi.js
index c2c19d2f31..98100f6156 100644
--- a/samples/client/petstore/javascript-promise-es6/src/api/UserApi.js
+++ b/samples/client/petstore/javascript-promise-es6/src/api/UserApi.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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.
*
*/
@@ -38,15 +38,15 @@ export default class UserApi {
/**
* Create user
* This can only be done by the logged in user.
- * @param {module:model/User} body Created user object
+ * @param {module:model/User} user Created user object
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
*/
- createUserWithHttpInfo(body) {
- let postBody = body;
+ createUserWithHttpInfo(user) {
+ let postBody = user;
- // verify the required parameter 'body' is set
- if (body === undefined || body === null) {
- throw new Error("Missing the required parameter 'body' when calling createUser");
+ // verify the required parameter 'user' is set
+ if (user === undefined || user === null) {
+ throw new Error("Missing the required parameter 'user' when calling createUser");
}
@@ -61,7 +61,7 @@ export default class UserApi {
let authNames = [];
let contentTypes = [];
- let accepts = ['application/xml', 'application/json'];
+ let accepts = [];
let returnType = null;
return this.apiClient.callApi(
@@ -74,11 +74,11 @@ export default class UserApi {
/**
* Create user
* This can only be done by the logged in user.
- * @param {module:model/User} body Created user object
+ * @param {module:model/User} user Created user object
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- createUser(body) {
- return this.createUserWithHttpInfo(body)
+ createUser(user) {
+ return this.createUserWithHttpInfo(user)
.then(function(response_and_data) {
return response_and_data.data;
});
@@ -87,16 +87,15 @@ export default class UserApi {
/**
* Creates list of users with given input array
- *
- * @param {Array.} body List of user object
+ * @param {Array.} user List of user object
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
*/
- createUsersWithArrayInputWithHttpInfo(body) {
- let postBody = body;
+ createUsersWithArrayInputWithHttpInfo(user) {
+ let postBody = user;
- // verify the required parameter 'body' is set
- if (body === undefined || body === null) {
- throw new Error("Missing the required parameter 'body' when calling createUsersWithArrayInput");
+ // verify the required parameter 'user' is set
+ if (user === undefined || user === null) {
+ throw new Error("Missing the required parameter 'user' when calling createUsersWithArrayInput");
}
@@ -111,7 +110,7 @@ export default class UserApi {
let authNames = [];
let contentTypes = [];
- let accepts = ['application/xml', 'application/json'];
+ let accepts = [];
let returnType = null;
return this.apiClient.callApi(
@@ -123,12 +122,11 @@ export default class UserApi {
/**
* Creates list of users with given input array
- *
- * @param {Array.} body List of user object
+ * @param {Array.} user List of user object
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- createUsersWithArrayInput(body) {
- return this.createUsersWithArrayInputWithHttpInfo(body)
+ createUsersWithArrayInput(user) {
+ return this.createUsersWithArrayInputWithHttpInfo(user)
.then(function(response_and_data) {
return response_and_data.data;
});
@@ -137,16 +135,15 @@ export default class UserApi {
/**
* Creates list of users with given input array
- *
- * @param {Array.} body List of user object
+ * @param {Array.} user List of user object
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
*/
- createUsersWithListInputWithHttpInfo(body) {
- let postBody = body;
+ createUsersWithListInputWithHttpInfo(user) {
+ let postBody = user;
- // verify the required parameter 'body' is set
- if (body === undefined || body === null) {
- throw new Error("Missing the required parameter 'body' when calling createUsersWithListInput");
+ // verify the required parameter 'user' is set
+ if (user === undefined || user === null) {
+ throw new Error("Missing the required parameter 'user' when calling createUsersWithListInput");
}
@@ -161,7 +158,7 @@ export default class UserApi {
let authNames = [];
let contentTypes = [];
- let accepts = ['application/xml', 'application/json'];
+ let accepts = [];
let returnType = null;
return this.apiClient.callApi(
@@ -173,12 +170,11 @@ export default class UserApi {
/**
* Creates list of users with given input array
- *
- * @param {Array.} body List of user object
+ * @param {Array.} user List of user object
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- createUsersWithListInput(body) {
- return this.createUsersWithListInputWithHttpInfo(body)
+ createUsersWithListInput(user) {
+ return this.createUsersWithListInputWithHttpInfo(user)
.then(function(response_and_data) {
return response_and_data.data;
});
@@ -212,7 +208,7 @@ export default class UserApi {
let authNames = [];
let contentTypes = [];
- let accepts = ['application/xml', 'application/json'];
+ let accepts = [];
let returnType = null;
return this.apiClient.callApi(
@@ -238,8 +234,7 @@ export default class UserApi {
/**
* Get user by user name
- *
- * @param {String} username The name that needs to be fetched. Use user1 for testing.
+ * @param {String} username The name that needs to be fetched. Use user1 for testing.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/User} and HTTP response
*/
getUserByNameWithHttpInfo(username) {
@@ -275,8 +270,7 @@ export default class UserApi {
/**
* Get user by user name
- *
- * @param {String} username The name that needs to be fetched. Use user1 for testing.
+ * @param {String} username The name that needs to be fetched. Use user1 for testing.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/User}
*/
getUserByName(username) {
@@ -289,10 +283,9 @@ export default class UserApi {
/**
* Logs user into the system
- *
* @param {String} username The user name for login
* @param {String} password The password for login in clear text
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link 'String'} and HTTP response
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link String} and HTTP response
*/
loginUserWithHttpInfo(username, password) {
let postBody = null;
@@ -322,7 +315,7 @@ export default class UserApi {
let authNames = [];
let contentTypes = [];
let accepts = ['application/xml', 'application/json'];
- let returnType = 'String';
+ let returnType = String;
return this.apiClient.callApi(
'/user/login', 'GET',
@@ -333,10 +326,9 @@ export default class UserApi {
/**
* Logs user into the system
- *
* @param {String} username The user name for login
* @param {String} password The password for login in clear text
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link 'String'}
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link String}
*/
loginUser(username, password) {
return this.loginUserWithHttpInfo(username, password)
@@ -348,7 +340,6 @@ export default class UserApi {
/**
* Logs out current logged in user session
- *
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
*/
logoutUserWithHttpInfo() {
@@ -366,7 +357,7 @@ export default class UserApi {
let authNames = [];
let contentTypes = [];
- let accepts = ['application/xml', 'application/json'];
+ let accepts = [];
let returnType = null;
return this.apiClient.callApi(
@@ -378,7 +369,6 @@ export default class UserApi {
/**
* Logs out current logged in user session
- *
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
logoutUser() {
@@ -393,20 +383,20 @@ export default class UserApi {
* Updated user
* This can only be done by the logged in user.
* @param {String} username name that need to be deleted
- * @param {module:model/User} body Updated user object
+ * @param {module:model/User} user Updated user object
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
*/
- updateUserWithHttpInfo(username, body) {
- let postBody = body;
+ updateUserWithHttpInfo(username, user) {
+ let postBody = user;
// verify the required parameter 'username' is set
if (username === undefined || username === null) {
throw new Error("Missing the required parameter 'username' when calling updateUser");
}
- // verify the required parameter 'body' is set
- if (body === undefined || body === null) {
- throw new Error("Missing the required parameter 'body' when calling updateUser");
+ // verify the required parameter 'user' is set
+ if (user === undefined || user === null) {
+ throw new Error("Missing the required parameter 'user' when calling updateUser");
}
@@ -422,7 +412,7 @@ export default class UserApi {
let authNames = [];
let contentTypes = [];
- let accepts = ['application/xml', 'application/json'];
+ let accepts = [];
let returnType = null;
return this.apiClient.callApi(
@@ -436,11 +426,11 @@ export default class UserApi {
* Updated user
* This can only be done by the logged in user.
* @param {String} username name that need to be deleted
- * @param {module:model/User} body Updated user object
+ * @param {module:model/User} user Updated user object
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- updateUser(username, body) {
- return this.updateUserWithHttpInfo(username, body)
+ updateUser(username, user) {
+ return this.updateUserWithHttpInfo(username, user)
.then(function(response_and_data) {
return response_and_data.data;
});
diff --git a/samples/client/petstore/javascript-promise-es6/src/index.js b/samples/client/petstore/javascript-promise-es6/src/index.js
index ebcad866e7..95bcba6b5d 100644
--- a/samples/client/petstore/javascript-promise-es6/src/index.js
+++ b/samples/client/petstore/javascript-promise-es6/src/index.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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.
*
*/
@@ -21,9 +21,11 @@ import ArrayOfArrayOfNumberOnly from './model/ArrayOfArrayOfNumberOnly';
import ArrayOfNumberOnly from './model/ArrayOfNumberOnly';
import ArrayTest from './model/ArrayTest';
import Capitalization from './model/Capitalization';
+import Cat from './model/Cat';
import Category from './model/Category';
import ClassModel from './model/ClassModel';
import Client from './model/Client';
+import Dog from './model/Dog';
import EnumArrays from './model/EnumArrays';
import EnumClass from './model/EnumClass';
import EnumTest from './model/EnumTest';
@@ -37,18 +39,13 @@ import ModelReturn from './model/ModelReturn';
import Name from './model/Name';
import NumberOnly from './model/NumberOnly';
import Order from './model/Order';
-import OuterBoolean from './model/OuterBoolean';
import OuterComposite from './model/OuterComposite';
import OuterEnum from './model/OuterEnum';
-import OuterNumber from './model/OuterNumber';
-import OuterString from './model/OuterString';
import Pet from './model/Pet';
import ReadOnlyFirst from './model/ReadOnlyFirst';
import SpecialModelName from './model/SpecialModelName';
import Tag from './model/Tag';
import User from './model/User';
-import Cat from './model/Cat';
-import Dog from './model/Dog';
import AnotherFakeApi from './api/AnotherFakeApi';
import FakeApi from './api/FakeApi';
import FakeClassnameTags123Api from './api/FakeClassnameTags123Api';
@@ -63,9 +60,9 @@ import UserApi from './api/UserApi';
*
* An AMD (recommended!) or CommonJS application will generally do something equivalent to the following:
*
-* var SwaggerPetstore = require('index'); // See note below*.
-* var xxxSvc = new SwaggerPetstore.XxxApi(); // Allocate the API class we're going to use.
-* var yyyModel = new SwaggerPetstore.Yyy(); // Construct a model instance.
+* var OpenApiPetstore = require('index'); // See note below*.
+* var xxxSvc = new OpenApiPetstore.XxxApi(); // Allocate the API class we're going to use.
+* var yyyModel = new OpenApiPetstore.Yyy(); // Construct a model instance.
* yyyModel.someProperty = 'someValue';
* ...
* var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
@@ -77,8 +74,8 @@ import UserApi from './api/UserApi';
*
* A non-AMD browser application (discouraged) might do something like this:
*
-* var xxxSvc = new SwaggerPetstore.XxxApi(); // Allocate the API class we're going to use.
-* var yyy = new SwaggerPetstore.Yyy(); // Construct a model instance.
+* var xxxSvc = new OpenApiPetstore.XxxApi(); // Allocate the API class we're going to use.
+* var yyy = new OpenApiPetstore.Yyy(); // Construct a model instance.
* yyyModel.someProperty = 'someValue';
* ...
* var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
@@ -143,6 +140,12 @@ export {
*/
Capitalization,
+ /**
+ * The Cat model constructor.
+ * @property {module:model/Cat}
+ */
+ Cat,
+
/**
* The Category model constructor.
* @property {module:model/Category}
@@ -161,6 +164,12 @@ export {
*/
Client,
+ /**
+ * The Dog model constructor.
+ * @property {module:model/Dog}
+ */
+ Dog,
+
/**
* The EnumArrays model constructor.
* @property {module:model/EnumArrays}
@@ -239,12 +248,6 @@ export {
*/
Order,
- /**
- * The OuterBoolean model constructor.
- * @property {module:model/OuterBoolean}
- */
- OuterBoolean,
-
/**
* The OuterComposite model constructor.
* @property {module:model/OuterComposite}
@@ -257,18 +260,6 @@ export {
*/
OuterEnum,
- /**
- * The OuterNumber model constructor.
- * @property {module:model/OuterNumber}
- */
- OuterNumber,
-
- /**
- * The OuterString model constructor.
- * @property {module:model/OuterString}
- */
- OuterString,
-
/**
* The Pet model constructor.
* @property {module:model/Pet}
@@ -299,18 +290,6 @@ export {
*/
User,
- /**
- * The Cat model constructor.
- * @property {module:model/Cat}
- */
- Cat,
-
- /**
- * The Dog model constructor.
- * @property {module:model/Dog}
- */
- Dog,
-
/**
* The AnotherFakeApi service constructor.
* @property {module:api/AnotherFakeApi}
diff --git a/samples/client/petstore/javascript-promise-es6/src/model/AdditionalPropertiesClass.js b/samples/client/petstore/javascript-promise-es6/src/model/AdditionalPropertiesClass.js
index 088cbb29b3..227fb79755 100644
--- a/samples/client/petstore/javascript-promise-es6/src/model/AdditionalPropertiesClass.js
+++ b/samples/client/petstore/javascript-promise-es6/src/model/AdditionalPropertiesClass.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-promise-es6/src/model/Animal.js b/samples/client/petstore/javascript-promise-es6/src/model/Animal.js
index b3fb1a63f3..dce658d701 100644
--- a/samples/client/petstore/javascript-promise-es6/src/model/Animal.js
+++ b/samples/client/petstore/javascript-promise-es6/src/model/Animal.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-promise-es6/src/model/AnimalFarm.js b/samples/client/petstore/javascript-promise-es6/src/model/AnimalFarm.js
index eb9a14b1b4..c0663cd1fa 100644
--- a/samples/client/petstore/javascript-promise-es6/src/model/AnimalFarm.js
+++ b/samples/client/petstore/javascript-promise-es6/src/model/AnimalFarm.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-promise-es6/src/model/ApiResponse.js b/samples/client/petstore/javascript-promise-es6/src/model/ApiResponse.js
index 49ddd1ac27..48142ded09 100644
--- a/samples/client/petstore/javascript-promise-es6/src/model/ApiResponse.js
+++ b/samples/client/petstore/javascript-promise-es6/src/model/ApiResponse.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-promise-es6/src/model/ArrayOfArrayOfNumberOnly.js b/samples/client/petstore/javascript-promise-es6/src/model/ArrayOfArrayOfNumberOnly.js
index 1dfd4487c6..acfac49ce0 100644
--- a/samples/client/petstore/javascript-promise-es6/src/model/ArrayOfArrayOfNumberOnly.js
+++ b/samples/client/petstore/javascript-promise-es6/src/model/ArrayOfArrayOfNumberOnly.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-promise-es6/src/model/ArrayOfNumberOnly.js b/samples/client/petstore/javascript-promise-es6/src/model/ArrayOfNumberOnly.js
index 379a19ba3f..28a47d0bb7 100644
--- a/samples/client/petstore/javascript-promise-es6/src/model/ArrayOfNumberOnly.js
+++ b/samples/client/petstore/javascript-promise-es6/src/model/ArrayOfNumberOnly.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-promise-es6/src/model/ArrayTest.js b/samples/client/petstore/javascript-promise-es6/src/model/ArrayTest.js
index 58e9ac5884..eff8b23dd8 100644
--- a/samples/client/petstore/javascript-promise-es6/src/model/ArrayTest.js
+++ b/samples/client/petstore/javascript-promise-es6/src/model/ArrayTest.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-promise-es6/src/model/Capitalization.js b/samples/client/petstore/javascript-promise-es6/src/model/Capitalization.js
index 12f3f3f559..41c6ff9af3 100644
--- a/samples/client/petstore/javascript-promise-es6/src/model/Capitalization.js
+++ b/samples/client/petstore/javascript-promise-es6/src/model/Capitalization.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-promise-es6/src/model/Cat.js b/samples/client/petstore/javascript-promise-es6/src/model/Cat.js
index da946664d0..cc75909988 100644
--- a/samples/client/petstore/javascript-promise-es6/src/model/Cat.js
+++ b/samples/client/petstore/javascript-promise-es6/src/model/Cat.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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.
*
*/
@@ -30,14 +30,15 @@ export default class Cat {
* @alias module:model/Cat
* @class
* @extends module:model/Animal
- * @param className {String}
+ * @implements module:model/Animal
+ * @param className {}
*/
constructor(className) {
Animal.call(this, className);
-
+ Animal.call(this, className);
@@ -58,7 +59,7 @@ export default class Cat {
Animal.constructFromObject(data, obj);
-
+ Animal.constructFromObject(data, obj);
if (data.hasOwnProperty('declawed')) {
obj['declawed'] = ApiClient.convertToType(data['declawed'], 'Boolean');
@@ -73,6 +74,17 @@ export default class Cat {
declawed = undefined;
+ // Implement Animal interface:
+ /**
+ * @member {String} className
+ */
+ className = undefined;
+/**
+ * @member {String} color
+ * @default 'red'
+ */
+ color = 'red';
+
diff --git a/samples/client/petstore/javascript-promise-es6/src/model/Category.js b/samples/client/petstore/javascript-promise-es6/src/model/Category.js
index a281817b72..cdd487022d 100644
--- a/samples/client/petstore/javascript-promise-es6/src/model/Category.js
+++ b/samples/client/petstore/javascript-promise-es6/src/model/Category.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-promise-es6/src/model/ClassModel.js b/samples/client/petstore/javascript-promise-es6/src/model/ClassModel.js
index 6a558444ad..c9c39c22ff 100644
--- a/samples/client/petstore/javascript-promise-es6/src/model/ClassModel.js
+++ b/samples/client/petstore/javascript-promise-es6/src/model/ClassModel.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-promise-es6/src/model/Client.js b/samples/client/petstore/javascript-promise-es6/src/model/Client.js
index a4f9b23515..82dca1732b 100644
--- a/samples/client/petstore/javascript-promise-es6/src/model/Client.js
+++ b/samples/client/petstore/javascript-promise-es6/src/model/Client.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-promise-es6/src/model/Dog.js b/samples/client/petstore/javascript-promise-es6/src/model/Dog.js
index e5bc0d3cec..9216890482 100644
--- a/samples/client/petstore/javascript-promise-es6/src/model/Dog.js
+++ b/samples/client/petstore/javascript-promise-es6/src/model/Dog.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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.
*
*/
@@ -30,14 +30,15 @@ export default class Dog {
* @alias module:model/Dog
* @class
* @extends module:model/Animal
- * @param className {String}
+ * @implements module:model/Animal
+ * @param className {}
*/
constructor(className) {
Animal.call(this, className);
-
+ Animal.call(this, className);
@@ -58,7 +59,7 @@ export default class Dog {
Animal.constructFromObject(data, obj);
-
+ Animal.constructFromObject(data, obj);
if (data.hasOwnProperty('breed')) {
obj['breed'] = ApiClient.convertToType(data['breed'], 'String');
@@ -73,6 +74,17 @@ export default class Dog {
breed = undefined;
+ // Implement Animal interface:
+ /**
+ * @member {String} className
+ */
+ className = undefined;
+/**
+ * @member {String} color
+ * @default 'red'
+ */
+ color = 'red';
+
diff --git a/samples/client/petstore/javascript-promise-es6/src/model/EnumArrays.js b/samples/client/petstore/javascript-promise-es6/src/model/EnumArrays.js
index 20a74f0d88..f017d9a539 100644
--- a/samples/client/petstore/javascript-promise-es6/src/model/EnumArrays.js
+++ b/samples/client/petstore/javascript-promise-es6/src/model/EnumArrays.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-promise-es6/src/model/EnumClass.js b/samples/client/petstore/javascript-promise-es6/src/model/EnumClass.js
index eeb08ca286..feb022bc83 100644
--- a/samples/client/petstore/javascript-promise-es6/src/model/EnumClass.js
+++ b/samples/client/petstore/javascript-promise-es6/src/model/EnumClass.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-promise-es6/src/model/EnumTest.js b/samples/client/petstore/javascript-promise-es6/src/model/EnumTest.js
index b1f9b0b6c6..eaf874922b 100644
--- a/samples/client/petstore/javascript-promise-es6/src/model/EnumTest.js
+++ b/samples/client/petstore/javascript-promise-es6/src/model/EnumTest.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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.
*
*/
@@ -29,15 +29,16 @@ export default class EnumTest {
* Constructs a new EnumTest.
* @alias module:model/EnumTest
* @class
+ * @param enumStringRequired {module:model/EnumTest.EnumStringRequiredEnum}
*/
- constructor() {
+ constructor(enumStringRequired) {
-
+ this['enum_string_required'] = enumStringRequired;
}
@@ -60,6 +61,9 @@ export default class EnumTest {
if (data.hasOwnProperty('enum_string')) {
obj['enum_string'] = ApiClient.convertToType(data['enum_string'], 'String');
}
+ if (data.hasOwnProperty('enum_string_required')) {
+ obj['enum_string_required'] = ApiClient.convertToType(data['enum_string_required'], 'String');
+ }
if (data.hasOwnProperty('enum_integer')) {
obj['enum_integer'] = ApiClient.convertToType(data['enum_integer'], 'Number');
}
@@ -78,6 +82,10 @@ export default class EnumTest {
*/
enum_string = undefined;
/**
+ * @member {module:model/EnumTest.EnumStringRequiredEnum} enum_string_required
+ */
+ enum_string_required = undefined;
+ /**
* @member {module:model/EnumTest.EnumIntegerEnum} enum_integer
*/
enum_integer = undefined;
@@ -121,6 +129,32 @@ export default class EnumTest {
"empty": ""
};
+ /**
+ * Allowed values for the enum_string_required property.
+ * @enum {String}
+ * @readonly
+ */
+ static EnumStringRequiredEnum = {
+
+ /**
+ * value: "UPPER"
+ * @const
+ */
+ "UPPER": "UPPER",
+
+ /**
+ * value: "lower"
+ * @const
+ */
+ "lower": "lower",
+
+ /**
+ * value: ""
+ * @const
+ */
+ "empty": ""
+ };
+
/**
* Allowed values for the enum_integer property.
* @enum {Number}
diff --git a/samples/client/petstore/javascript-promise-es6/src/model/FormatTest.js b/samples/client/petstore/javascript-promise-es6/src/model/FormatTest.js
index 8773a3a775..7d04ffd26d 100644
--- a/samples/client/petstore/javascript-promise-es6/src/model/FormatTest.js
+++ b/samples/client/petstore/javascript-promise-es6/src/model/FormatTest.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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.
*
*/
@@ -85,7 +85,7 @@ export default class FormatTest {
obj['byte'] = ApiClient.convertToType(data['byte'], 'Blob');
}
if (data.hasOwnProperty('binary')) {
- obj['binary'] = ApiClient.convertToType(data['binary'], 'Blob');
+ obj['binary'] = ApiClient.convertToType(data['binary'], File);
}
if (data.hasOwnProperty('date')) {
obj['date'] = ApiClient.convertToType(data['date'], 'Date');
@@ -136,7 +136,7 @@ export default class FormatTest {
*/
byte = undefined;
/**
- * @member {Blob} binary
+ * @member {File} binary
*/
binary = undefined;
/**
diff --git a/samples/client/petstore/javascript-promise-es6/src/model/HasOnlyReadOnly.js b/samples/client/petstore/javascript-promise-es6/src/model/HasOnlyReadOnly.js
index cb859fe3e5..e5f746c32b 100644
--- a/samples/client/petstore/javascript-promise-es6/src/model/HasOnlyReadOnly.js
+++ b/samples/client/petstore/javascript-promise-es6/src/model/HasOnlyReadOnly.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-promise-es6/src/model/List.js b/samples/client/petstore/javascript-promise-es6/src/model/List.js
index 513acd45af..67d6d9ef14 100644
--- a/samples/client/petstore/javascript-promise-es6/src/model/List.js
+++ b/samples/client/petstore/javascript-promise-es6/src/model/List.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-promise-es6/src/model/MapTest.js b/samples/client/petstore/javascript-promise-es6/src/model/MapTest.js
index b7a60cd8d9..e4be468e25 100644
--- a/samples/client/petstore/javascript-promise-es6/src/model/MapTest.js
+++ b/samples/client/petstore/javascript-promise-es6/src/model/MapTest.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-promise-es6/src/model/MixedPropertiesAndAdditionalPropertiesClass.js b/samples/client/petstore/javascript-promise-es6/src/model/MixedPropertiesAndAdditionalPropertiesClass.js
index 6d912ceeb9..17ea09bd69 100644
--- a/samples/client/petstore/javascript-promise-es6/src/model/MixedPropertiesAndAdditionalPropertiesClass.js
+++ b/samples/client/petstore/javascript-promise-es6/src/model/MixedPropertiesAndAdditionalPropertiesClass.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-promise-es6/src/model/Model200Response.js b/samples/client/petstore/javascript-promise-es6/src/model/Model200Response.js
index df4d957df7..3dbecac133 100644
--- a/samples/client/petstore/javascript-promise-es6/src/model/Model200Response.js
+++ b/samples/client/petstore/javascript-promise-es6/src/model/Model200Response.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-promise-es6/src/model/ModelReturn.js b/samples/client/petstore/javascript-promise-es6/src/model/ModelReturn.js
index 88fd97ab85..0f287b7228 100644
--- a/samples/client/petstore/javascript-promise-es6/src/model/ModelReturn.js
+++ b/samples/client/petstore/javascript-promise-es6/src/model/ModelReturn.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-promise-es6/src/model/Name.js b/samples/client/petstore/javascript-promise-es6/src/model/Name.js
index f355fbdd40..0da2f21ca4 100644
--- a/samples/client/petstore/javascript-promise-es6/src/model/Name.js
+++ b/samples/client/petstore/javascript-promise-es6/src/model/Name.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-promise-es6/src/model/NumberOnly.js b/samples/client/petstore/javascript-promise-es6/src/model/NumberOnly.js
index bee6687089..e1f7978f7f 100644
--- a/samples/client/petstore/javascript-promise-es6/src/model/NumberOnly.js
+++ b/samples/client/petstore/javascript-promise-es6/src/model/NumberOnly.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-promise-es6/src/model/Order.js b/samples/client/petstore/javascript-promise-es6/src/model/Order.js
index ff704900bb..fb8bdd4ab9 100644
--- a/samples/client/petstore/javascript-promise-es6/src/model/Order.js
+++ b/samples/client/petstore/javascript-promise-es6/src/model/Order.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-promise-es6/src/model/OuterComposite.js b/samples/client/petstore/javascript-promise-es6/src/model/OuterComposite.js
index 327e303467..ebacb2837d 100644
--- a/samples/client/petstore/javascript-promise-es6/src/model/OuterComposite.js
+++ b/samples/client/petstore/javascript-promise-es6/src/model/OuterComposite.js
@@ -1,21 +1,18 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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.
*
*/
import ApiClient from '../ApiClient';
-import OuterBoolean from './OuterBoolean';
-import OuterNumber from './OuterNumber';
-import OuterString from './OuterString';
@@ -60,28 +57,28 @@ export default class OuterComposite {
if (data.hasOwnProperty('my_number')) {
- obj['my_number'] = OuterNumber.constructFromObject(data['my_number']);
+ obj['my_number'] = 'Number'.constructFromObject(data['my_number']);
}
if (data.hasOwnProperty('my_string')) {
- obj['my_string'] = OuterString.constructFromObject(data['my_string']);
+ obj['my_string'] = 'String'.constructFromObject(data['my_string']);
}
if (data.hasOwnProperty('my_boolean')) {
- obj['my_boolean'] = OuterBoolean.constructFromObject(data['my_boolean']);
+ obj['my_boolean'] = 'Boolean'.constructFromObject(data['my_boolean']);
}
}
return obj;
}
/**
- * @member {module:model/OuterNumber} my_number
+ * @member {Number} my_number
*/
my_number = undefined;
/**
- * @member {module:model/OuterString} my_string
+ * @member {String} my_string
*/
my_string = undefined;
/**
- * @member {module:model/OuterBoolean} my_boolean
+ * @member {Boolean} my_boolean
*/
my_boolean = undefined;
diff --git a/samples/client/petstore/javascript-promise-es6/src/model/OuterEnum.js b/samples/client/petstore/javascript-promise-es6/src/model/OuterEnum.js
index bf264fd8f6..a31e00b729 100644
--- a/samples/client/petstore/javascript-promise-es6/src/model/OuterEnum.js
+++ b/samples/client/petstore/javascript-promise-es6/src/model/OuterEnum.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-promise-es6/src/model/Pet.js b/samples/client/petstore/javascript-promise-es6/src/model/Pet.js
index bb84915202..4edbd6e3d7 100644
--- a/samples/client/petstore/javascript-promise-es6/src/model/Pet.js
+++ b/samples/client/petstore/javascript-promise-es6/src/model/Pet.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-promise-es6/src/model/ReadOnlyFirst.js b/samples/client/petstore/javascript-promise-es6/src/model/ReadOnlyFirst.js
index 143b34f3eb..5aee0fce32 100644
--- a/samples/client/petstore/javascript-promise-es6/src/model/ReadOnlyFirst.js
+++ b/samples/client/petstore/javascript-promise-es6/src/model/ReadOnlyFirst.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-promise-es6/src/model/SpecialModelName.js b/samples/client/petstore/javascript-promise-es6/src/model/SpecialModelName.js
index 4e0dd379b1..c00da7303e 100644
--- a/samples/client/petstore/javascript-promise-es6/src/model/SpecialModelName.js
+++ b/samples/client/petstore/javascript-promise-es6/src/model/SpecialModelName.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-promise-es6/src/model/Tag.js b/samples/client/petstore/javascript-promise-es6/src/model/Tag.js
index 759b3fa04e..994da23e2a 100644
--- a/samples/client/petstore/javascript-promise-es6/src/model/Tag.js
+++ b/samples/client/petstore/javascript-promise-es6/src/model/Tag.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-promise-es6/src/model/User.js b/samples/client/petstore/javascript-promise-es6/src/model/User.js
index 36311e7593..c0f5ef56e6 100644
--- a/samples/client/petstore/javascript-promise-es6/src/model/User.js
+++ b/samples/client/petstore/javascript-promise-es6/src/model/User.js
@@ -1,12 +1,12 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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/javascript-promise/.openapi-generator/VERSION b/samples/client/petstore/javascript-promise/.openapi-generator/VERSION
index f9f7450d13..1c00c51815 100644
--- a/samples/client/petstore/javascript-promise/.openapi-generator/VERSION
+++ b/samples/client/petstore/javascript-promise/.openapi-generator/VERSION
@@ -1 +1 @@
-2.3.0-SNAPSHOT
\ No newline at end of file
+3.0.2-SNAPSHOT
\ No newline at end of file
diff --git a/samples/client/petstore/javascript-promise/README.md b/samples/client/petstore/javascript-promise/README.md
index 3dbc2e674d..a78275aee6 100644
--- a/samples/client/petstore/javascript-promise/README.md
+++ b/samples/client/petstore/javascript-promise/README.md
@@ -1,12 +1,12 @@
-# swagger_petstore
+# open_api_petstore
-SwaggerPetstore - JavaScript client for swagger_petstore
+OpenApiPetstore - JavaScript client for open_api_petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
-This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
+This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
- API version: 1.0.0
- Package version: 1.0.0
-- Build package: io.swagger.codegen.languages.JavascriptClientCodegen
+- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
## Installation
@@ -20,7 +20,7 @@ please follow the procedure in ["Publishing npm packages"](https://docs.npmjs.co
Then install it via:
```shell
-npm install swagger_petstore --save
+npm install open_api_petstore --save
```
##### Local development
@@ -38,13 +38,13 @@ Next, [link](https://docs.npmjs.com/cli/link) it globally in npm with the follow
npm link
```
-Finally, switch to the directory you want to use your swagger_petstore from, and run:
+Finally, switch to the directory you want to use your open_api_petstore from, and run:
```shell
npm link /path/to/
```
-You should now be able to `require('swagger_petstore')` in javascript files from the directory you ran the last
+You should now be able to `require('open_api_petstore')` in javascript files from the directory you ran the last
command above from.
#### git
@@ -93,13 +93,11 @@ module: {
Please follow the [installation](#installation) instruction and execute the following JS code:
```javascript
-var SwaggerPetstore = require('swagger_petstore');
+var OpenApiPetstore = require('open_api_petstore');
-var api = new SwaggerPetstore.AnotherFakeApi()
-
-var body = new SwaggerPetstore.Client(); // {Client} client model
-
-api.testSpecialTags(body).then(function(data) {
+var api = new OpenApiPetstore.AnotherFakeApi()
+var client = new OpenApiPetstore.Client(); // {Client} client model
+api.testSpecialTags(client).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
@@ -114,77 +112,75 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
-*SwaggerPetstore.AnotherFakeApi* | [**testSpecialTags**](docs/AnotherFakeApi.md#testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
-*SwaggerPetstore.FakeApi* | [**fakeOuterBooleanSerialize**](docs/FakeApi.md#fakeOuterBooleanSerialize) | **POST** /fake/outer/boolean |
-*SwaggerPetstore.FakeApi* | [**fakeOuterCompositeSerialize**](docs/FakeApi.md#fakeOuterCompositeSerialize) | **POST** /fake/outer/composite |
-*SwaggerPetstore.FakeApi* | [**fakeOuterNumberSerialize**](docs/FakeApi.md#fakeOuterNumberSerialize) | **POST** /fake/outer/number |
-*SwaggerPetstore.FakeApi* | [**fakeOuterStringSerialize**](docs/FakeApi.md#fakeOuterStringSerialize) | **POST** /fake/outer/string |
-*SwaggerPetstore.FakeApi* | [**testClientModel**](docs/FakeApi.md#testClientModel) | **PATCH** /fake | To test \"client\" model
-*SwaggerPetstore.FakeApi* | [**testEndpointParameters**](docs/FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
-*SwaggerPetstore.FakeApi* | [**testEnumParameters**](docs/FakeApi.md#testEnumParameters) | **GET** /fake | To test enum parameters
-*SwaggerPetstore.FakeApi* | [**testInlineAdditionalProperties**](docs/FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties
-*SwaggerPetstore.FakeApi* | [**testJsonFormData**](docs/FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data
-*SwaggerPetstore.FakeClassnameTags123Api* | [**testClassname**](docs/FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case
-*SwaggerPetstore.PetApi* | [**addPet**](docs/PetApi.md#addPet) | **POST** /pet | Add a new pet to the store
-*SwaggerPetstore.PetApi* | [**deletePet**](docs/PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet
-*SwaggerPetstore.PetApi* | [**findPetsByStatus**](docs/PetApi.md#findPetsByStatus) | **GET** /pet/findByStatus | Finds Pets by status
-*SwaggerPetstore.PetApi* | [**findPetsByTags**](docs/PetApi.md#findPetsByTags) | **GET** /pet/findByTags | Finds Pets by tags
-*SwaggerPetstore.PetApi* | [**getPetById**](docs/PetApi.md#getPetById) | **GET** /pet/{petId} | Find pet by ID
-*SwaggerPetstore.PetApi* | [**updatePet**](docs/PetApi.md#updatePet) | **PUT** /pet | Update an existing pet
-*SwaggerPetstore.PetApi* | [**updatePetWithForm**](docs/PetApi.md#updatePetWithForm) | **POST** /pet/{petId} | Updates a pet in the store with form data
-*SwaggerPetstore.PetApi* | [**uploadFile**](docs/PetApi.md#uploadFile) | **POST** /pet/{petId}/uploadImage | uploads an image
-*SwaggerPetstore.StoreApi* | [**deleteOrder**](docs/StoreApi.md#deleteOrder) | **DELETE** /store/order/{order_id} | Delete purchase order by ID
-*SwaggerPetstore.StoreApi* | [**getInventory**](docs/StoreApi.md#getInventory) | **GET** /store/inventory | Returns pet inventories by status
-*SwaggerPetstore.StoreApi* | [**getOrderById**](docs/StoreApi.md#getOrderById) | **GET** /store/order/{order_id} | Find purchase order by ID
-*SwaggerPetstore.StoreApi* | [**placeOrder**](docs/StoreApi.md#placeOrder) | **POST** /store/order | Place an order for a pet
-*SwaggerPetstore.UserApi* | [**createUser**](docs/UserApi.md#createUser) | **POST** /user | Create user
-*SwaggerPetstore.UserApi* | [**createUsersWithArrayInput**](docs/UserApi.md#createUsersWithArrayInput) | **POST** /user/createWithArray | Creates list of users with given input array
-*SwaggerPetstore.UserApi* | [**createUsersWithListInput**](docs/UserApi.md#createUsersWithListInput) | **POST** /user/createWithList | Creates list of users with given input array
-*SwaggerPetstore.UserApi* | [**deleteUser**](docs/UserApi.md#deleteUser) | **DELETE** /user/{username} | Delete user
-*SwaggerPetstore.UserApi* | [**getUserByName**](docs/UserApi.md#getUserByName) | **GET** /user/{username} | Get user by user name
-*SwaggerPetstore.UserApi* | [**loginUser**](docs/UserApi.md#loginUser) | **GET** /user/login | Logs user into the system
-*SwaggerPetstore.UserApi* | [**logoutUser**](docs/UserApi.md#logoutUser) | **GET** /user/logout | Logs out current logged in user session
-*SwaggerPetstore.UserApi* | [**updateUser**](docs/UserApi.md#updateUser) | **PUT** /user/{username} | Updated user
+*OpenApiPetstore.AnotherFakeApi* | [**testSpecialTags**](docs/AnotherFakeApi.md#testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
+*OpenApiPetstore.FakeApi* | [**fakeOuterBooleanSerialize**](docs/FakeApi.md#fakeOuterBooleanSerialize) | **POST** /fake/outer/boolean |
+*OpenApiPetstore.FakeApi* | [**fakeOuterCompositeSerialize**](docs/FakeApi.md#fakeOuterCompositeSerialize) | **POST** /fake/outer/composite |
+*OpenApiPetstore.FakeApi* | [**fakeOuterNumberSerialize**](docs/FakeApi.md#fakeOuterNumberSerialize) | **POST** /fake/outer/number |
+*OpenApiPetstore.FakeApi* | [**fakeOuterStringSerialize**](docs/FakeApi.md#fakeOuterStringSerialize) | **POST** /fake/outer/string |
+*OpenApiPetstore.FakeApi* | [**testBodyWithQueryParams**](docs/FakeApi.md#testBodyWithQueryParams) | **PUT** /fake/body-with-query-params |
+*OpenApiPetstore.FakeApi* | [**testClientModel**](docs/FakeApi.md#testClientModel) | **PATCH** /fake | To test \"client\" model
+*OpenApiPetstore.FakeApi* | [**testEndpointParameters**](docs/FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
+*OpenApiPetstore.FakeApi* | [**testEnumParameters**](docs/FakeApi.md#testEnumParameters) | **GET** /fake | To test enum parameters
+*OpenApiPetstore.FakeApi* | [**testInlineAdditionalProperties**](docs/FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties
+*OpenApiPetstore.FakeApi* | [**testJsonFormData**](docs/FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data
+*OpenApiPetstore.FakeClassnameTags123Api* | [**testClassname**](docs/FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case
+*OpenApiPetstore.PetApi* | [**addPet**](docs/PetApi.md#addPet) | **POST** /pet | Add a new pet to the store
+*OpenApiPetstore.PetApi* | [**deletePet**](docs/PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet
+*OpenApiPetstore.PetApi* | [**findPetsByStatus**](docs/PetApi.md#findPetsByStatus) | **GET** /pet/findByStatus | Finds Pets by status
+*OpenApiPetstore.PetApi* | [**findPetsByTags**](docs/PetApi.md#findPetsByTags) | **GET** /pet/findByTags | Finds Pets by tags
+*OpenApiPetstore.PetApi* | [**getPetById**](docs/PetApi.md#getPetById) | **GET** /pet/{petId} | Find pet by ID
+*OpenApiPetstore.PetApi* | [**updatePet**](docs/PetApi.md#updatePet) | **PUT** /pet | Update an existing pet
+*OpenApiPetstore.PetApi* | [**updatePetWithForm**](docs/PetApi.md#updatePetWithForm) | **POST** /pet/{petId} | Updates a pet in the store with form data
+*OpenApiPetstore.PetApi* | [**uploadFile**](docs/PetApi.md#uploadFile) | **POST** /pet/{petId}/uploadImage | uploads an image
+*OpenApiPetstore.StoreApi* | [**deleteOrder**](docs/StoreApi.md#deleteOrder) | **DELETE** /store/order/{order_id} | Delete purchase order by ID
+*OpenApiPetstore.StoreApi* | [**getInventory**](docs/StoreApi.md#getInventory) | **GET** /store/inventory | Returns pet inventories by status
+*OpenApiPetstore.StoreApi* | [**getOrderById**](docs/StoreApi.md#getOrderById) | **GET** /store/order/{order_id} | Find purchase order by ID
+*OpenApiPetstore.StoreApi* | [**placeOrder**](docs/StoreApi.md#placeOrder) | **POST** /store/order | Place an order for a pet
+*OpenApiPetstore.UserApi* | [**createUser**](docs/UserApi.md#createUser) | **POST** /user | Create user
+*OpenApiPetstore.UserApi* | [**createUsersWithArrayInput**](docs/UserApi.md#createUsersWithArrayInput) | **POST** /user/createWithArray | Creates list of users with given input array
+*OpenApiPetstore.UserApi* | [**createUsersWithListInput**](docs/UserApi.md#createUsersWithListInput) | **POST** /user/createWithList | Creates list of users with given input array
+*OpenApiPetstore.UserApi* | [**deleteUser**](docs/UserApi.md#deleteUser) | **DELETE** /user/{username} | Delete user
+*OpenApiPetstore.UserApi* | [**getUserByName**](docs/UserApi.md#getUserByName) | **GET** /user/{username} | Get user by user name
+*OpenApiPetstore.UserApi* | [**loginUser**](docs/UserApi.md#loginUser) | **GET** /user/login | Logs user into the system
+*OpenApiPetstore.UserApi* | [**logoutUser**](docs/UserApi.md#logoutUser) | **GET** /user/logout | Logs out current logged in user session
+*OpenApiPetstore.UserApi* | [**updateUser**](docs/UserApi.md#updateUser) | **PUT** /user/{username} | Updated user
## Documentation for Models
- - [SwaggerPetstore.AdditionalPropertiesClass](docs/AdditionalPropertiesClass.md)
- - [SwaggerPetstore.Animal](docs/Animal.md)
- - [SwaggerPetstore.AnimalFarm](docs/AnimalFarm.md)
- - [SwaggerPetstore.ApiResponse](docs/ApiResponse.md)
- - [SwaggerPetstore.ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md)
- - [SwaggerPetstore.ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md)
- - [SwaggerPetstore.ArrayTest](docs/ArrayTest.md)
- - [SwaggerPetstore.Capitalization](docs/Capitalization.md)
- - [SwaggerPetstore.Category](docs/Category.md)
- - [SwaggerPetstore.ClassModel](docs/ClassModel.md)
- - [SwaggerPetstore.Client](docs/Client.md)
- - [SwaggerPetstore.EnumArrays](docs/EnumArrays.md)
- - [SwaggerPetstore.EnumClass](docs/EnumClass.md)
- - [SwaggerPetstore.EnumTest](docs/EnumTest.md)
- - [SwaggerPetstore.FormatTest](docs/FormatTest.md)
- - [SwaggerPetstore.HasOnlyReadOnly](docs/HasOnlyReadOnly.md)
- - [SwaggerPetstore.List](docs/List.md)
- - [SwaggerPetstore.MapTest](docs/MapTest.md)
- - [SwaggerPetstore.MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md)
- - [SwaggerPetstore.Model200Response](docs/Model200Response.md)
- - [SwaggerPetstore.ModelReturn](docs/ModelReturn.md)
- - [SwaggerPetstore.Name](docs/Name.md)
- - [SwaggerPetstore.NumberOnly](docs/NumberOnly.md)
- - [SwaggerPetstore.Order](docs/Order.md)
- - [SwaggerPetstore.OuterBoolean](docs/OuterBoolean.md)
- - [SwaggerPetstore.OuterComposite](docs/OuterComposite.md)
- - [SwaggerPetstore.OuterEnum](docs/OuterEnum.md)
- - [SwaggerPetstore.OuterNumber](docs/OuterNumber.md)
- - [SwaggerPetstore.OuterString](docs/OuterString.md)
- - [SwaggerPetstore.Pet](docs/Pet.md)
- - [SwaggerPetstore.ReadOnlyFirst](docs/ReadOnlyFirst.md)
- - [SwaggerPetstore.SpecialModelName](docs/SpecialModelName.md)
- - [SwaggerPetstore.Tag](docs/Tag.md)
- - [SwaggerPetstore.User](docs/User.md)
- - [SwaggerPetstore.Cat](docs/Cat.md)
- - [SwaggerPetstore.Dog](docs/Dog.md)
+ - [OpenApiPetstore.AdditionalPropertiesClass](docs/AdditionalPropertiesClass.md)
+ - [OpenApiPetstore.Animal](docs/Animal.md)
+ - [OpenApiPetstore.AnimalFarm](docs/AnimalFarm.md)
+ - [OpenApiPetstore.ApiResponse](docs/ApiResponse.md)
+ - [OpenApiPetstore.ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md)
+ - [OpenApiPetstore.ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md)
+ - [OpenApiPetstore.ArrayTest](docs/ArrayTest.md)
+ - [OpenApiPetstore.Capitalization](docs/Capitalization.md)
+ - [OpenApiPetstore.Cat](docs/Cat.md)
+ - [OpenApiPetstore.Category](docs/Category.md)
+ - [OpenApiPetstore.ClassModel](docs/ClassModel.md)
+ - [OpenApiPetstore.Client](docs/Client.md)
+ - [OpenApiPetstore.Dog](docs/Dog.md)
+ - [OpenApiPetstore.EnumArrays](docs/EnumArrays.md)
+ - [OpenApiPetstore.EnumClass](docs/EnumClass.md)
+ - [OpenApiPetstore.EnumTest](docs/EnumTest.md)
+ - [OpenApiPetstore.FormatTest](docs/FormatTest.md)
+ - [OpenApiPetstore.HasOnlyReadOnly](docs/HasOnlyReadOnly.md)
+ - [OpenApiPetstore.List](docs/List.md)
+ - [OpenApiPetstore.MapTest](docs/MapTest.md)
+ - [OpenApiPetstore.MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md)
+ - [OpenApiPetstore.Model200Response](docs/Model200Response.md)
+ - [OpenApiPetstore.ModelReturn](docs/ModelReturn.md)
+ - [OpenApiPetstore.Name](docs/Name.md)
+ - [OpenApiPetstore.NumberOnly](docs/NumberOnly.md)
+ - [OpenApiPetstore.Order](docs/Order.md)
+ - [OpenApiPetstore.OuterComposite](docs/OuterComposite.md)
+ - [OpenApiPetstore.OuterEnum](docs/OuterEnum.md)
+ - [OpenApiPetstore.Pet](docs/Pet.md)
+ - [OpenApiPetstore.ReadOnlyFirst](docs/ReadOnlyFirst.md)
+ - [OpenApiPetstore.SpecialModelName](docs/SpecialModelName.md)
+ - [OpenApiPetstore.Tag](docs/Tag.md)
+ - [OpenApiPetstore.User](docs/User.md)
## Documentation for Authorization
diff --git a/samples/client/petstore/javascript-promise/docs/AdditionalPropertiesClass.md b/samples/client/petstore/javascript-promise/docs/AdditionalPropertiesClass.md
index 0ea13d4bb6..7df1c7b339 100644
--- a/samples/client/petstore/javascript-promise/docs/AdditionalPropertiesClass.md
+++ b/samples/client/petstore/javascript-promise/docs/AdditionalPropertiesClass.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.AdditionalPropertiesClass
+# OpenApiPetstore.AdditionalPropertiesClass
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/javascript-promise/docs/Animal.md b/samples/client/petstore/javascript-promise/docs/Animal.md
index 3ae52d9db1..7bff016758 100644
--- a/samples/client/petstore/javascript-promise/docs/Animal.md
+++ b/samples/client/petstore/javascript-promise/docs/Animal.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.Animal
+# OpenApiPetstore.Animal
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/javascript-promise/docs/AnimalFarm.md b/samples/client/petstore/javascript-promise/docs/AnimalFarm.md
index b72739a44c..ab153513ca 100644
--- a/samples/client/petstore/javascript-promise/docs/AnimalFarm.md
+++ b/samples/client/petstore/javascript-promise/docs/AnimalFarm.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.AnimalFarm
+# OpenApiPetstore.AnimalFarm
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/javascript-promise/docs/AnotherFakeApi.md b/samples/client/petstore/javascript-promise/docs/AnotherFakeApi.md
index 34529644bb..6666cbc0df 100644
--- a/samples/client/petstore/javascript-promise/docs/AnotherFakeApi.md
+++ b/samples/client/petstore/javascript-promise/docs/AnotherFakeApi.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.AnotherFakeApi
+# OpenApiPetstore.AnotherFakeApi
All URIs are relative to *http://petstore.swagger.io:80/v2*
@@ -9,7 +9,7 @@ Method | HTTP request | Description
# **testSpecialTags**
-> Client testSpecialTags(body)
+> Client testSpecialTags(client)
To test special tags
@@ -17,13 +17,11 @@ To test special tags
### Example
```javascript
-var SwaggerPetstore = require('swagger_petstore');
+var OpenApiPetstore = require('open_api_petstore');
-var apiInstance = new SwaggerPetstore.AnotherFakeApi();
-
-var body = new SwaggerPetstore.Client(); // Client | client model
-
-apiInstance.testSpecialTags(body).then(function(data) {
+var apiInstance = new OpenApiPetstore.AnotherFakeApi();
+var client = new OpenApiPetstore.Client(); // Client | client model
+apiInstance.testSpecialTags(client).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
@@ -35,7 +33,7 @@ apiInstance.testSpecialTags(body).then(function(data) {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**Client**](Client.md)| client model |
+ **client** | [**Client**](Client.md)| client model |
### Return type
diff --git a/samples/client/petstore/javascript-promise/docs/ApiResponse.md b/samples/client/petstore/javascript-promise/docs/ApiResponse.md
index 7f023aff60..e60378fcbf 100644
--- a/samples/client/petstore/javascript-promise/docs/ApiResponse.md
+++ b/samples/client/petstore/javascript-promise/docs/ApiResponse.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.ApiResponse
+# OpenApiPetstore.ApiResponse
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/javascript-promise/docs/ArrayOfArrayOfNumberOnly.md b/samples/client/petstore/javascript-promise/docs/ArrayOfArrayOfNumberOnly.md
index 1d38c9d2ed..7a1426ef81 100644
--- a/samples/client/petstore/javascript-promise/docs/ArrayOfArrayOfNumberOnly.md
+++ b/samples/client/petstore/javascript-promise/docs/ArrayOfArrayOfNumberOnly.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.ArrayOfArrayOfNumberOnly
+# OpenApiPetstore.ArrayOfArrayOfNumberOnly
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/javascript-promise/docs/ArrayOfNumberOnly.md b/samples/client/petstore/javascript-promise/docs/ArrayOfNumberOnly.md
index 07a86a3cef..7cec2e71d4 100644
--- a/samples/client/petstore/javascript-promise/docs/ArrayOfNumberOnly.md
+++ b/samples/client/petstore/javascript-promise/docs/ArrayOfNumberOnly.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.ArrayOfNumberOnly
+# OpenApiPetstore.ArrayOfNumberOnly
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/javascript-promise/docs/ArrayTest.md b/samples/client/petstore/javascript-promise/docs/ArrayTest.md
index e6048e9ea9..5828f6ee75 100644
--- a/samples/client/petstore/javascript-promise/docs/ArrayTest.md
+++ b/samples/client/petstore/javascript-promise/docs/ArrayTest.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.ArrayTest
+# OpenApiPetstore.ArrayTest
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/javascript-promise/docs/Capitalization.md b/samples/client/petstore/javascript-promise/docs/Capitalization.md
index c223a4ee98..abeff984c6 100644
--- a/samples/client/petstore/javascript-promise/docs/Capitalization.md
+++ b/samples/client/petstore/javascript-promise/docs/Capitalization.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.Capitalization
+# OpenApiPetstore.Capitalization
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/javascript-promise/docs/Cat.md b/samples/client/petstore/javascript-promise/docs/Cat.md
index 8cd391bc91..6dd0f057c8 100644
--- a/samples/client/petstore/javascript-promise/docs/Cat.md
+++ b/samples/client/petstore/javascript-promise/docs/Cat.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.Cat
+# OpenApiPetstore.Cat
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/javascript-promise/docs/Category.md b/samples/client/petstore/javascript-promise/docs/Category.md
index 02b2488a27..e3f934442a 100644
--- a/samples/client/petstore/javascript-promise/docs/Category.md
+++ b/samples/client/petstore/javascript-promise/docs/Category.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.Category
+# OpenApiPetstore.Category
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/javascript-promise/docs/ClassModel.md b/samples/client/petstore/javascript-promise/docs/ClassModel.md
index bf8343b84b..6fe9c501a5 100644
--- a/samples/client/petstore/javascript-promise/docs/ClassModel.md
+++ b/samples/client/petstore/javascript-promise/docs/ClassModel.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.ClassModel
+# OpenApiPetstore.ClassModel
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/javascript-promise/docs/Client.md b/samples/client/petstore/javascript-promise/docs/Client.md
index 6ba2831968..a6c7711e74 100644
--- a/samples/client/petstore/javascript-promise/docs/Client.md
+++ b/samples/client/petstore/javascript-promise/docs/Client.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.Client
+# OpenApiPetstore.Client
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/javascript-promise/docs/Dog.md b/samples/client/petstore/javascript-promise/docs/Dog.md
index 9253eace01..f35663407e 100644
--- a/samples/client/petstore/javascript-promise/docs/Dog.md
+++ b/samples/client/petstore/javascript-promise/docs/Dog.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.Dog
+# OpenApiPetstore.Dog
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/javascript-promise/docs/EnumArrays.md b/samples/client/petstore/javascript-promise/docs/EnumArrays.md
index 449a96fdbb..5f624e5db4 100644
--- a/samples/client/petstore/javascript-promise/docs/EnumArrays.md
+++ b/samples/client/petstore/javascript-promise/docs/EnumArrays.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.EnumArrays
+# OpenApiPetstore.EnumArrays
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/javascript-promise/docs/EnumClass.md b/samples/client/petstore/javascript-promise/docs/EnumClass.md
index 04b8936294..cef9bb57a5 100644
--- a/samples/client/petstore/javascript-promise/docs/EnumClass.md
+++ b/samples/client/petstore/javascript-promise/docs/EnumClass.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.EnumClass
+# OpenApiPetstore.EnumClass
## Enum
diff --git a/samples/client/petstore/javascript-promise/docs/EnumTest.md b/samples/client/petstore/javascript-promise/docs/EnumTest.md
index 9d85a20016..c9e7ce86fe 100644
--- a/samples/client/petstore/javascript-promise/docs/EnumTest.md
+++ b/samples/client/petstore/javascript-promise/docs/EnumTest.md
@@ -1,9 +1,10 @@
-# SwaggerPetstore.EnumTest
+# OpenApiPetstore.EnumTest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**enumString** | **String** | | [optional]
+**enumStringRequired** | **String** | |
**enumInteger** | **Number** | | [optional]
**enumNumber** | **Number** | | [optional]
**outerEnum** | [**OuterEnum**](OuterEnum.md) | | [optional]
@@ -22,6 +23,19 @@ Name | Type | Description | Notes
+
+## Enum: EnumStringRequiredEnum
+
+
+* `UPPER` (value: `"UPPER"`)
+
+* `lower` (value: `"lower"`)
+
+* `empty` (value: `""`)
+
+
+
+
## Enum: EnumIntegerEnum
diff --git a/samples/client/petstore/javascript-promise/docs/FakeApi.md b/samples/client/petstore/javascript-promise/docs/FakeApi.md
index fe941fdb18..9d56939ca6 100644
--- a/samples/client/petstore/javascript-promise/docs/FakeApi.md
+++ b/samples/client/petstore/javascript-promise/docs/FakeApi.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.FakeApi
+# OpenApiPetstore.FakeApi
All URIs are relative to *http://petstore.swagger.io:80/v2*
@@ -8,6 +8,7 @@ Method | HTTP request | Description
[**fakeOuterCompositeSerialize**](FakeApi.md#fakeOuterCompositeSerialize) | **POST** /fake/outer/composite |
[**fakeOuterNumberSerialize**](FakeApi.md#fakeOuterNumberSerialize) | **POST** /fake/outer/number |
[**fakeOuterStringSerialize**](FakeApi.md#fakeOuterStringSerialize) | **POST** /fake/outer/string |
+[**testBodyWithQueryParams**](FakeApi.md#testBodyWithQueryParams) | **PUT** /fake/body-with-query-params |
[**testClientModel**](FakeApi.md#testClientModel) | **PATCH** /fake | To test \"client\" model
[**testEndpointParameters**](FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
[**testEnumParameters**](FakeApi.md#testEnumParameters) | **GET** /fake | To test enum parameters
@@ -17,7 +18,7 @@ Method | HTTP request | Description
# **fakeOuterBooleanSerialize**
-> OuterBoolean fakeOuterBooleanSerialize(opts)
+> Boolean fakeOuterBooleanSerialize(opts)
@@ -25,12 +26,11 @@ Test serialization of outer boolean types
### Example
```javascript
-var SwaggerPetstore = require('swagger_petstore');
+var OpenApiPetstore = require('open_api_petstore');
-var apiInstance = new SwaggerPetstore.FakeApi();
-
-var opts = {
- 'body': new SwaggerPetstore.OuterBoolean() // OuterBoolean | Input boolean as post body
+var apiInstance = new OpenApiPetstore.FakeApi();
+var opts = {
+ 'body': true // Boolean | Input boolean as post body
};
apiInstance.fakeOuterBooleanSerialize(opts).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
@@ -44,11 +44,11 @@ apiInstance.fakeOuterBooleanSerialize(opts).then(function(data) {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**OuterBoolean**](OuterBoolean.md)| Input boolean as post body | [optional]
+ **body** | **Boolean**| Input boolean as post body | [optional]
### Return type
-[**OuterBoolean**](OuterBoolean.md)
+**Boolean**
### Authorization
@@ -57,7 +57,7 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: Not defined
+ - **Accept**: */*
# **fakeOuterCompositeSerialize**
@@ -69,12 +69,11 @@ Test serialization of object with outer number type
### Example
```javascript
-var SwaggerPetstore = require('swagger_petstore');
+var OpenApiPetstore = require('open_api_petstore');
-var apiInstance = new SwaggerPetstore.FakeApi();
-
-var opts = {
- 'body': new SwaggerPetstore.OuterComposite() // OuterComposite | Input composite as post body
+var apiInstance = new OpenApiPetstore.FakeApi();
+var opts = {
+ 'outerComposite': new OpenApiPetstore.OuterComposite() // OuterComposite | Input composite as post body
};
apiInstance.fakeOuterCompositeSerialize(opts).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
@@ -88,7 +87,7 @@ apiInstance.fakeOuterCompositeSerialize(opts).then(function(data) {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional]
+ **outerComposite** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional]
### Return type
@@ -101,11 +100,11 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: Not defined
+ - **Accept**: */*
# **fakeOuterNumberSerialize**
-> OuterNumber fakeOuterNumberSerialize(opts)
+> Number fakeOuterNumberSerialize(opts)
@@ -113,12 +112,11 @@ Test serialization of outer number types
### Example
```javascript
-var SwaggerPetstore = require('swagger_petstore');
+var OpenApiPetstore = require('open_api_petstore');
-var apiInstance = new SwaggerPetstore.FakeApi();
-
-var opts = {
- 'body': new SwaggerPetstore.OuterNumber() // OuterNumber | Input number as post body
+var apiInstance = new OpenApiPetstore.FakeApi();
+var opts = {
+ 'body': 3.4 // Number | Input number as post body
};
apiInstance.fakeOuterNumberSerialize(opts).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
@@ -132,11 +130,11 @@ apiInstance.fakeOuterNumberSerialize(opts).then(function(data) {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**OuterNumber**](OuterNumber.md)| Input number as post body | [optional]
+ **body** | **Number**| Input number as post body | [optional]
### Return type
-[**OuterNumber**](OuterNumber.md)
+**Number**
### Authorization
@@ -145,11 +143,11 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: Not defined
+ - **Accept**: */*
# **fakeOuterStringSerialize**
-> OuterString fakeOuterStringSerialize(opts)
+> String fakeOuterStringSerialize(opts)
@@ -157,12 +155,11 @@ Test serialization of outer string types
### Example
```javascript
-var SwaggerPetstore = require('swagger_petstore');
+var OpenApiPetstore = require('open_api_petstore');
-var apiInstance = new SwaggerPetstore.FakeApi();
-
-var opts = {
- 'body': new SwaggerPetstore.OuterString() // OuterString | Input string as post body
+var apiInstance = new OpenApiPetstore.FakeApi();
+var opts = {
+ 'body': "body_example" // String | Input string as post body
};
apiInstance.fakeOuterStringSerialize(opts).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
@@ -176,11 +173,11 @@ apiInstance.fakeOuterStringSerialize(opts).then(function(data) {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**OuterString**](OuterString.md)| Input string as post body | [optional]
+ **body** | **String**| Input string as post body | [optional]
### Return type
-[**OuterString**](OuterString.md)
+**String**
### Authorization
@@ -189,11 +186,52 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
+ - **Accept**: */*
+
+
+# **testBodyWithQueryParams**
+> testBodyWithQueryParams(query, user)
+
+
+
+### Example
+```javascript
+var OpenApiPetstore = require('open_api_petstore');
+
+var apiInstance = new OpenApiPetstore.FakeApi();
+var query = "query_example"; // String |
+var user = new OpenApiPetstore.User(); // User |
+apiInstance.testBodyWithQueryParams(query, user).then(function() {
+ console.log('API called successfully.');
+}, function(error) {
+ console.error(error);
+});
+
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **query** | **String**| |
+ **user** | [**User**](User.md)| |
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
- **Accept**: Not defined
# **testClientModel**
-> Client testClientModel(body)
+> Client testClientModel(client)
To test \"client\" model
@@ -201,13 +239,11 @@ To test \"client\" model
### Example
```javascript
-var SwaggerPetstore = require('swagger_petstore');
+var OpenApiPetstore = require('open_api_petstore');
-var apiInstance = new SwaggerPetstore.FakeApi();
-
-var body = new SwaggerPetstore.Client(); // Client | client model
-
-apiInstance.testClientModel(body).then(function(data) {
+var apiInstance = new OpenApiPetstore.FakeApi();
+var client = new OpenApiPetstore.Client(); // Client | client model
+apiInstance.testClientModel(client).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
@@ -219,7 +255,7 @@ apiInstance.testClientModel(body).then(function(data) {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**Client**](Client.md)| client model |
+ **client** | [**Client**](Client.md)| client model |
### Return type
@@ -244,31 +280,26 @@ Fake endpoint for testing various parameters 假端點 偽のエンドポイン
### Example
```javascript
-var SwaggerPetstore = require('swagger_petstore');
-var defaultClient = SwaggerPetstore.ApiClient.instance;
+var OpenApiPetstore = require('open_api_petstore');
+var defaultClient = OpenApiPetstore.ApiClient.instance;
// Configure HTTP basic authorization: http_basic_test
var http_basic_test = defaultClient.authentications['http_basic_test'];
http_basic_test.username = 'YOUR USERNAME';
http_basic_test.password = 'YOUR PASSWORD';
-var apiInstance = new SwaggerPetstore.FakeApi();
-
-var _number = 8.14; // Number | None
-
-var _double = 1.2; // Number | None
-
+var apiInstance = new OpenApiPetstore.FakeApi();
+var _number = 3.4; // Number | None
+var _double = 3.4; // Number | None
var patternWithoutDelimiter = "patternWithoutDelimiter_example"; // String | None
-
-var _byte = B; // Blob | None
-
-var opts = {
+var _byte = null; // Blob | None
+var opts = {
'integer': 56, // Number | None
'int32': 56, // Number | None
'int64': 789, // Number | None
'_float': 3.4, // Number | None
'_string': "_string_example", // String | None
- 'binary': B, // Blob | None
+ 'binary': "/path/to/file", // File | None
'_date': new Date("2013-10-20"), // Date | None
'dateTime': new Date("2013-10-20T19:20:30+01:00"), // Date | None
'password': "password_example", // String | None
@@ -295,7 +326,7 @@ Name | Type | Description | Notes
**int64** | **Number**| None | [optional]
**_float** | **Number**| None | [optional]
**_string** | **String**| None | [optional]
- **binary** | **Blob**| None | [optional]
+ **binary** | **File**| None | [optional]
**_date** | **Date**| None | [optional]
**dateTime** | **Date**| None | [optional]
**password** | **String**| None | [optional]
@@ -311,8 +342,8 @@ null (empty response body)
### HTTP request headers
- - **Content-Type**: application/xml; charset=utf-8, application/json; charset=utf-8
- - **Accept**: application/xml; charset=utf-8, application/json; charset=utf-8
+ - **Content-Type**: application/x-www-form-urlencoded
+ - **Accept**: Not defined
# **testEnumParameters**
@@ -324,19 +355,18 @@ To test enum parameters
### Example
```javascript
-var SwaggerPetstore = require('swagger_petstore');
+var OpenApiPetstore = require('open_api_petstore');
-var apiInstance = new SwaggerPetstore.FakeApi();
-
-var opts = {
- 'enumFormStringArray': ["enumFormStringArray_example"], // [String] | Form parameter enum test (string array)
- 'enumFormString': "-efg", // String | Form parameter enum test (string)
- 'enumHeaderStringArray': ["enumHeaderStringArray_example"], // [String] | Header parameter enum test (string array)
- 'enumHeaderString': "-efg", // String | Header parameter enum test (string)
- 'enumQueryStringArray': ["enumQueryStringArray_example"], // [String] | Query parameter enum test (string array)
- 'enumQueryString': "-efg", // String | Query parameter enum test (string)
+var apiInstance = new OpenApiPetstore.FakeApi();
+var opts = {
+ 'enumHeaderStringArray': ["'$'"], // [String] | Header parameter enum test (string array)
+ 'enumHeaderString': "'-efg'", // String | Header parameter enum test (string)
+ 'enumQueryStringArray': ["'$'"], // [String] | Query parameter enum test (string array)
+ 'enumQueryString': "'-efg'", // String | Query parameter enum test (string)
'enumQueryInteger': 56, // Number | Query parameter enum test (double)
- 'enumQueryDouble': 1.2 // Number | Query parameter enum test (double)
+ 'enumQueryDouble': 3.4, // Number | Query parameter enum test (double)
+ 'enumFormStringArray': "'$'", // [String] | Form parameter enum test (string array)
+ 'enumFormString': "'-efg'" // String | Form parameter enum test (string)
};
apiInstance.testEnumParameters(opts).then(function() {
console.log('API called successfully.');
@@ -350,14 +380,14 @@ apiInstance.testEnumParameters(opts).then(function() {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **enumFormStringArray** | [**[String]**](String.md)| Form parameter enum test (string array) | [optional]
- **enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to -efg]
**enumHeaderStringArray** | [**[String]**](String.md)| Header parameter enum test (string array) | [optional]
- **enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to -efg]
+ **enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to '-efg']
**enumQueryStringArray** | [**[String]**](String.md)| Query parameter enum test (string array) | [optional]
- **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg]
+ **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to '-efg']
**enumQueryInteger** | **Number**| Query parameter enum test (double) | [optional]
**enumQueryDouble** | **Number**| Query parameter enum test (double) | [optional]
+ **enumFormStringArray** | [**[String]**](String.md)| Form parameter enum test (string array) | [optional] [default to '$']
+ **enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to '-efg']
### Return type
@@ -369,26 +399,22 @@ No authorization required
### HTTP request headers
- - **Content-Type**: */*
- - **Accept**: */*
+ - **Content-Type**: application/x-www-form-urlencoded
+ - **Accept**: Not defined
# **testInlineAdditionalProperties**
-> testInlineAdditionalProperties(param)
+> testInlineAdditionalProperties(requestBody)
test inline additionalProperties
-
-
### Example
```javascript
-var SwaggerPetstore = require('swagger_petstore');
+var OpenApiPetstore = require('open_api_petstore');
-var apiInstance = new SwaggerPetstore.FakeApi();
-
-var param = null; // Object | request body
-
-apiInstance.testInlineAdditionalProperties(param).then(function() {
+var apiInstance = new OpenApiPetstore.FakeApi();
+var requestBody = {key: "inner_example"}; // {String: String} | request body
+apiInstance.testInlineAdditionalProperties(requestBody).then(function() {
console.log('API called successfully.');
}, function(error) {
console.error(error);
@@ -400,7 +426,7 @@ apiInstance.testInlineAdditionalProperties(param).then(function() {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **param** | **Object**| request body |
+ **requestBody** | [**{String: String}**](String.md)| request body |
### Return type
@@ -421,18 +447,13 @@ No authorization required
test json serialization of form data
-
-
### Example
```javascript
-var SwaggerPetstore = require('swagger_petstore');
-
-var apiInstance = new SwaggerPetstore.FakeApi();
+var OpenApiPetstore = require('open_api_petstore');
+var apiInstance = new OpenApiPetstore.FakeApi();
var param = "param_example"; // String | field1
-
var param2 = "param2_example"; // String | field2
-
apiInstance.testJsonFormData(param, param2).then(function() {
console.log('API called successfully.');
}, function(error) {
@@ -458,6 +479,6 @@ No authorization required
### HTTP request headers
- - **Content-Type**: application/json
+ - **Content-Type**: application/x-www-form-urlencoded
- **Accept**: Not defined
diff --git a/samples/client/petstore/javascript-promise/docs/FakeClassnameTags123Api.md b/samples/client/petstore/javascript-promise/docs/FakeClassnameTags123Api.md
index 670ed04c19..b2e98f7d75 100644
--- a/samples/client/petstore/javascript-promise/docs/FakeClassnameTags123Api.md
+++ b/samples/client/petstore/javascript-promise/docs/FakeClassnameTags123Api.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.FakeClassnameTags123Api
+# OpenApiPetstore.FakeClassnameTags123Api
All URIs are relative to *http://petstore.swagger.io:80/v2*
@@ -9,26 +9,25 @@ Method | HTTP request | Description
# **testClassname**
-> Client testClassname(body)
+> Client testClassname(client)
+
+To test class name in snake case
To test class name in snake case
### Example
```javascript
-var SwaggerPetstore = require('swagger_petstore');
-var defaultClient = SwaggerPetstore.ApiClient.instance;
-
+var OpenApiPetstore = require('open_api_petstore');
+var defaultClient = OpenApiPetstore.ApiClient.instance;
// Configure API key authorization: api_key_query
var api_key_query = defaultClient.authentications['api_key_query'];
api_key_query.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key_query.apiKeyPrefix = 'Token';
-var apiInstance = new SwaggerPetstore.FakeClassnameTags123Api();
-
-var body = new SwaggerPetstore.Client(); // Client | client model
-
-apiInstance.testClassname(body).then(function(data) {
+var apiInstance = new OpenApiPetstore.FakeClassnameTags123Api();
+var client = new OpenApiPetstore.Client(); // Client | client model
+apiInstance.testClassname(client).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
@@ -40,7 +39,7 @@ apiInstance.testClassname(body).then(function(data) {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**Client**](Client.md)| client model |
+ **client** | [**Client**](Client.md)| client model |
### Return type
diff --git a/samples/client/petstore/javascript-promise/docs/FormatTest.md b/samples/client/petstore/javascript-promise/docs/FormatTest.md
index cb5b11416f..0f4a840544 100644
--- a/samples/client/petstore/javascript-promise/docs/FormatTest.md
+++ b/samples/client/petstore/javascript-promise/docs/FormatTest.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.FormatTest
+# OpenApiPetstore.FormatTest
## Properties
Name | Type | Description | Notes
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
**_double** | **Number** | | [optional]
**_string** | **String** | | [optional]
**_byte** | **Blob** | |
-**binary** | **Blob** | | [optional]
+**binary** | **File** | | [optional]
**_date** | **Date** | |
**dateTime** | **Date** | | [optional]
**uuid** | **String** | | [optional]
diff --git a/samples/client/petstore/javascript-promise/docs/HasOnlyReadOnly.md b/samples/client/petstore/javascript-promise/docs/HasOnlyReadOnly.md
index b9b975fced..abc4ce6218 100644
--- a/samples/client/petstore/javascript-promise/docs/HasOnlyReadOnly.md
+++ b/samples/client/petstore/javascript-promise/docs/HasOnlyReadOnly.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.HasOnlyReadOnly
+# OpenApiPetstore.HasOnlyReadOnly
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/javascript-promise/docs/List.md b/samples/client/petstore/javascript-promise/docs/List.md
index 12166562e8..3a9555e34e 100644
--- a/samples/client/petstore/javascript-promise/docs/List.md
+++ b/samples/client/petstore/javascript-promise/docs/List.md
@@ -1,8 +1,8 @@
-# SwaggerPetstore.List
+# OpenApiPetstore.List
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**_123List** | **String** | | [optional]
+**_123list** | **String** | | [optional]
diff --git a/samples/client/petstore/javascript-promise/docs/MapTest.md b/samples/client/petstore/javascript-promise/docs/MapTest.md
index 8550252a3f..4a128da00f 100644
--- a/samples/client/petstore/javascript-promise/docs/MapTest.md
+++ b/samples/client/petstore/javascript-promise/docs/MapTest.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.MapTest
+# OpenApiPetstore.MapTest
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/javascript-promise/docs/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/client/petstore/javascript-promise/docs/MixedPropertiesAndAdditionalPropertiesClass.md
index 31bf8b314c..051f771930 100644
--- a/samples/client/petstore/javascript-promise/docs/MixedPropertiesAndAdditionalPropertiesClass.md
+++ b/samples/client/petstore/javascript-promise/docs/MixedPropertiesAndAdditionalPropertiesClass.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.MixedPropertiesAndAdditionalPropertiesClass
+# OpenApiPetstore.MixedPropertiesAndAdditionalPropertiesClass
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/javascript-promise/docs/Model200Response.md b/samples/client/petstore/javascript-promise/docs/Model200Response.md
index f18f963c96..0a0d02cc32 100644
--- a/samples/client/petstore/javascript-promise/docs/Model200Response.md
+++ b/samples/client/petstore/javascript-promise/docs/Model200Response.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.Model200Response
+# OpenApiPetstore.Model200Response
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/javascript-promise/docs/ModelReturn.md b/samples/client/petstore/javascript-promise/docs/ModelReturn.md
index b602b39b0c..9ce6e20387 100644
--- a/samples/client/petstore/javascript-promise/docs/ModelReturn.md
+++ b/samples/client/petstore/javascript-promise/docs/ModelReturn.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.ModelReturn
+# OpenApiPetstore.ModelReturn
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/javascript-promise/docs/Name.md b/samples/client/petstore/javascript-promise/docs/Name.md
index 51dad9ca57..8dfcc46036 100644
--- a/samples/client/petstore/javascript-promise/docs/Name.md
+++ b/samples/client/petstore/javascript-promise/docs/Name.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.Name
+# OpenApiPetstore.Name
## Properties
Name | Type | Description | Notes
@@ -6,6 +6,6 @@ Name | Type | Description | Notes
**name** | **Number** | |
**snakeCase** | **Number** | | [optional]
**property** | **String** | | [optional]
-**_123Number** | **Number** | | [optional]
+**_123number** | **Number** | | [optional]
diff --git a/samples/client/petstore/javascript-promise/docs/NumberOnly.md b/samples/client/petstore/javascript-promise/docs/NumberOnly.md
index f7bf0abd42..cf84674ed4 100644
--- a/samples/client/petstore/javascript-promise/docs/NumberOnly.md
+++ b/samples/client/petstore/javascript-promise/docs/NumberOnly.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.NumberOnly
+# OpenApiPetstore.NumberOnly
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/javascript-promise/docs/Order.md b/samples/client/petstore/javascript-promise/docs/Order.md
index 6dc0b19cd2..987992caa7 100644
--- a/samples/client/petstore/javascript-promise/docs/Order.md
+++ b/samples/client/petstore/javascript-promise/docs/Order.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.Order
+# OpenApiPetstore.Order
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/javascript-promise/docs/OuterComposite.md b/samples/client/petstore/javascript-promise/docs/OuterComposite.md
index e4cb57f35a..c49b32ff32 100644
--- a/samples/client/petstore/javascript-promise/docs/OuterComposite.md
+++ b/samples/client/petstore/javascript-promise/docs/OuterComposite.md
@@ -1,10 +1,10 @@
-# SwaggerPetstore.OuterComposite
+# OpenApiPetstore.OuterComposite
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**myNumber** | [**OuterNumber**](OuterNumber.md) | | [optional]
-**myString** | [**OuterString**](OuterString.md) | | [optional]
-**myBoolean** | [**OuterBoolean**](OuterBoolean.md) | | [optional]
+**myNumber** | **Number** | | [optional]
+**myString** | **String** | | [optional]
+**myBoolean** | **Boolean** | | [optional]
diff --git a/samples/client/petstore/javascript-promise/docs/OuterEnum.md b/samples/client/petstore/javascript-promise/docs/OuterEnum.md
index 4caf04ae09..445d3f4074 100644
--- a/samples/client/petstore/javascript-promise/docs/OuterEnum.md
+++ b/samples/client/petstore/javascript-promise/docs/OuterEnum.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.OuterEnum
+# OpenApiPetstore.OuterEnum
## Enum
diff --git a/samples/client/petstore/javascript-promise/docs/Pet.md b/samples/client/petstore/javascript-promise/docs/Pet.md
index cae89de06d..e91ae688aa 100644
--- a/samples/client/petstore/javascript-promise/docs/Pet.md
+++ b/samples/client/petstore/javascript-promise/docs/Pet.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.Pet
+# OpenApiPetstore.Pet
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/javascript-promise/docs/PetApi.md b/samples/client/petstore/javascript-promise/docs/PetApi.md
index 8b88dab5f5..28469bc95a 100644
--- a/samples/client/petstore/javascript-promise/docs/PetApi.md
+++ b/samples/client/petstore/javascript-promise/docs/PetApi.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.PetApi
+# OpenApiPetstore.PetApi
All URIs are relative to *http://petstore.swagger.io:80/v2*
@@ -16,26 +16,21 @@ Method | HTTP request | Description
# **addPet**
-> addPet(body)
+> addPet(pet)
Add a new pet to the store
-
-
### Example
```javascript
-var SwaggerPetstore = require('swagger_petstore');
-var defaultClient = SwaggerPetstore.ApiClient.instance;
-
+var OpenApiPetstore = require('open_api_petstore');
+var defaultClient = OpenApiPetstore.ApiClient.instance;
// Configure OAuth2 access token for authorization: petstore_auth
var petstore_auth = defaultClient.authentications['petstore_auth'];
petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
-var apiInstance = new SwaggerPetstore.PetApi();
-
-var body = new SwaggerPetstore.Pet(); // Pet | Pet object that needs to be added to the store
-
-apiInstance.addPet(body).then(function() {
+var apiInstance = new OpenApiPetstore.PetApi();
+var pet = new OpenApiPetstore.Pet(); // Pet | Pet object that needs to be added to the store
+apiInstance.addPet(pet).then(function() {
console.log('API called successfully.');
}, function(error) {
console.error(error);
@@ -47,7 +42,7 @@ apiInstance.addPet(body).then(function() {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
+ **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
### Return type
@@ -60,7 +55,7 @@ null (empty response body)
### HTTP request headers
- **Content-Type**: application/json, application/xml
- - **Accept**: application/xml, application/json
+ - **Accept**: Not defined
# **deletePet**
@@ -68,22 +63,17 @@ null (empty response body)
Deletes a pet
-
-
### Example
```javascript
-var SwaggerPetstore = require('swagger_petstore');
-var defaultClient = SwaggerPetstore.ApiClient.instance;
-
+var OpenApiPetstore = require('open_api_petstore');
+var defaultClient = OpenApiPetstore.ApiClient.instance;
// Configure OAuth2 access token for authorization: petstore_auth
var petstore_auth = defaultClient.authentications['petstore_auth'];
petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
-var apiInstance = new SwaggerPetstore.PetApi();
-
+var apiInstance = new OpenApiPetstore.PetApi();
var petId = 789; // Number | Pet id to delete
-
-var opts = {
+var opts = {
'apiKey': "apiKey_example" // String |
};
apiInstance.deletePet(petId, opts).then(function() {
@@ -112,7 +102,7 @@ null (empty response body)
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
+ - **Accept**: Not defined
# **findPetsByStatus**
@@ -124,17 +114,14 @@ Multiple status values can be provided with comma separated strings
### Example
```javascript
-var SwaggerPetstore = require('swagger_petstore');
-var defaultClient = SwaggerPetstore.ApiClient.instance;
-
+var OpenApiPetstore = require('open_api_petstore');
+var defaultClient = OpenApiPetstore.ApiClient.instance;
// Configure OAuth2 access token for authorization: petstore_auth
var petstore_auth = defaultClient.authentications['petstore_auth'];
petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
-var apiInstance = new SwaggerPetstore.PetApi();
-
-var status = ["status_example"]; // [String] | Status values that need to be considered for filter
-
+var apiInstance = new OpenApiPetstore.PetApi();
+var status = ["'available'"]; // [String] | Status values that need to be considered for filter
apiInstance.findPetsByStatus(status).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
@@ -172,17 +159,14 @@ Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3
### Example
```javascript
-var SwaggerPetstore = require('swagger_petstore');
-var defaultClient = SwaggerPetstore.ApiClient.instance;
-
+var OpenApiPetstore = require('open_api_petstore');
+var defaultClient = OpenApiPetstore.ApiClient.instance;
// Configure OAuth2 access token for authorization: petstore_auth
var petstore_auth = defaultClient.authentications['petstore_auth'];
petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
-var apiInstance = new SwaggerPetstore.PetApi();
-
-var tags = ["tags_example"]; // [String] | Tags to filter by
-
+var apiInstance = new OpenApiPetstore.PetApi();
+var tags = ["inner_example"]; // [String] | Tags to filter by
apiInstance.findPetsByTags(tags).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
@@ -220,19 +204,16 @@ Returns a single pet
### Example
```javascript
-var SwaggerPetstore = require('swagger_petstore');
-var defaultClient = SwaggerPetstore.ApiClient.instance;
-
+var OpenApiPetstore = require('open_api_petstore');
+var defaultClient = OpenApiPetstore.ApiClient.instance;
// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';
-var apiInstance = new SwaggerPetstore.PetApi();
-
+var apiInstance = new OpenApiPetstore.PetApi();
var petId = 789; // Number | ID of pet to return
-
apiInstance.getPetById(petId).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
@@ -262,26 +243,21 @@ Name | Type | Description | Notes
# **updatePet**
-> updatePet(body)
+> updatePet(pet)
Update an existing pet
-
-
### Example
```javascript
-var SwaggerPetstore = require('swagger_petstore');
-var defaultClient = SwaggerPetstore.ApiClient.instance;
-
+var OpenApiPetstore = require('open_api_petstore');
+var defaultClient = OpenApiPetstore.ApiClient.instance;
// Configure OAuth2 access token for authorization: petstore_auth
var petstore_auth = defaultClient.authentications['petstore_auth'];
petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
-var apiInstance = new SwaggerPetstore.PetApi();
-
-var body = new SwaggerPetstore.Pet(); // Pet | Pet object that needs to be added to the store
-
-apiInstance.updatePet(body).then(function() {
+var apiInstance = new OpenApiPetstore.PetApi();
+var pet = new OpenApiPetstore.Pet(); // Pet | Pet object that needs to be added to the store
+apiInstance.updatePet(pet).then(function() {
console.log('API called successfully.');
}, function(error) {
console.error(error);
@@ -293,7 +269,7 @@ apiInstance.updatePet(body).then(function() {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
+ **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
### Return type
@@ -306,7 +282,7 @@ null (empty response body)
### HTTP request headers
- **Content-Type**: application/json, application/xml
- - **Accept**: application/xml, application/json
+ - **Accept**: Not defined
# **updatePetWithForm**
@@ -314,22 +290,17 @@ null (empty response body)
Updates a pet in the store with form data
-
-
### Example
```javascript
-var SwaggerPetstore = require('swagger_petstore');
-var defaultClient = SwaggerPetstore.ApiClient.instance;
-
+var OpenApiPetstore = require('open_api_petstore');
+var defaultClient = OpenApiPetstore.ApiClient.instance;
// Configure OAuth2 access token for authorization: petstore_auth
var petstore_auth = defaultClient.authentications['petstore_auth'];
petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
-var apiInstance = new SwaggerPetstore.PetApi();
-
+var apiInstance = new OpenApiPetstore.PetApi();
var petId = 789; // Number | ID of pet that needs to be updated
-
-var opts = {
+var opts = {
'name': "name_example", // String | Updated name of the pet
'status': "status_example" // String | Updated status of the pet
};
@@ -360,7 +331,7 @@ null (empty response body)
### HTTP request headers
- **Content-Type**: application/x-www-form-urlencoded
- - **Accept**: application/xml, application/json
+ - **Accept**: Not defined
# **uploadFile**
@@ -368,24 +339,19 @@ null (empty response body)
uploads an image
-
-
### Example
```javascript
-var SwaggerPetstore = require('swagger_petstore');
-var defaultClient = SwaggerPetstore.ApiClient.instance;
-
+var OpenApiPetstore = require('open_api_petstore');
+var defaultClient = OpenApiPetstore.ApiClient.instance;
// Configure OAuth2 access token for authorization: petstore_auth
var petstore_auth = defaultClient.authentications['petstore_auth'];
petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
-var apiInstance = new SwaggerPetstore.PetApi();
-
+var apiInstance = new OpenApiPetstore.PetApi();
var petId = 789; // Number | ID of pet to update
-
-var opts = {
+var opts = {
'additionalMetadata': "additionalMetadata_example", // String | Additional data to pass to server
- 'file': "/path/to/file.txt" // File | file to upload
+ 'file': "/path/to/file" // File | file to upload
};
apiInstance.uploadFile(petId, opts).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
diff --git a/samples/client/petstore/javascript-promise/docs/ReadOnlyFirst.md b/samples/client/petstore/javascript-promise/docs/ReadOnlyFirst.md
index 5a16f8acce..671280fba3 100644
--- a/samples/client/petstore/javascript-promise/docs/ReadOnlyFirst.md
+++ b/samples/client/petstore/javascript-promise/docs/ReadOnlyFirst.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.ReadOnlyFirst
+# OpenApiPetstore.ReadOnlyFirst
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/javascript-promise/docs/SpecialModelName.md b/samples/client/petstore/javascript-promise/docs/SpecialModelName.md
index a204af143a..6039f53de3 100644
--- a/samples/client/petstore/javascript-promise/docs/SpecialModelName.md
+++ b/samples/client/petstore/javascript-promise/docs/SpecialModelName.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.SpecialModelName
+# OpenApiPetstore.SpecialModelName
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/javascript-promise/docs/StoreApi.md b/samples/client/petstore/javascript-promise/docs/StoreApi.md
index e077137853..26255c9345 100644
--- a/samples/client/petstore/javascript-promise/docs/StoreApi.md
+++ b/samples/client/petstore/javascript-promise/docs/StoreApi.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.StoreApi
+# OpenApiPetstore.StoreApi
All URIs are relative to *http://petstore.swagger.io:80/v2*
@@ -20,12 +20,10 @@ For valid response try integer IDs with value < 1000. Anything above 1000 or
### Example
```javascript
-var SwaggerPetstore = require('swagger_petstore');
-
-var apiInstance = new SwaggerPetstore.StoreApi();
+var OpenApiPetstore = require('open_api_petstore');
+var apiInstance = new OpenApiPetstore.StoreApi();
var orderId = "orderId_example"; // String | ID of the order that needs to be deleted
-
apiInstance.deleteOrder(orderId).then(function() {
console.log('API called successfully.');
}, function(error) {
@@ -51,11 +49,11 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
+ - **Accept**: Not defined
# **getInventory**
-> {'String': 'Number'} getInventory()
+> {String: Number} getInventory()
Returns pet inventories by status
@@ -63,16 +61,15 @@ Returns a map of status codes to quantities
### Example
```javascript
-var SwaggerPetstore = require('swagger_petstore');
-var defaultClient = SwaggerPetstore.ApiClient.instance;
-
+var OpenApiPetstore = require('open_api_petstore');
+var defaultClient = OpenApiPetstore.ApiClient.instance;
// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';
-var apiInstance = new SwaggerPetstore.StoreApi();
+var apiInstance = new OpenApiPetstore.StoreApi();
apiInstance.getInventory().then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
@@ -86,7 +83,7 @@ This endpoint does not need any parameter.
### Return type
-**{'String': 'Number'}**
+**{String: Number}**
### Authorization
@@ -107,12 +104,10 @@ For valid response try integer IDs with value <= 5 or > 10. Other val
### Example
```javascript
-var SwaggerPetstore = require('swagger_petstore');
-
-var apiInstance = new SwaggerPetstore.StoreApi();
+var OpenApiPetstore = require('open_api_petstore');
+var apiInstance = new OpenApiPetstore.StoreApi();
var orderId = 789; // Number | ID of pet that needs to be fetched
-
apiInstance.getOrderById(orderId).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
@@ -142,21 +137,17 @@ No authorization required
# **placeOrder**
-> Order placeOrder(body)
+> Order placeOrder(order)
Place an order for a pet
-
-
### Example
```javascript
-var SwaggerPetstore = require('swagger_petstore');
+var OpenApiPetstore = require('open_api_petstore');
-var apiInstance = new SwaggerPetstore.StoreApi();
-
-var body = new SwaggerPetstore.Order(); // Order | order placed for purchasing the pet
-
-apiInstance.placeOrder(body).then(function(data) {
+var apiInstance = new OpenApiPetstore.StoreApi();
+var order = new OpenApiPetstore.Order(); // Order | order placed for purchasing the pet
+apiInstance.placeOrder(order).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
@@ -168,7 +159,7 @@ apiInstance.placeOrder(body).then(function(data) {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**Order**](Order.md)| order placed for purchasing the pet |
+ **order** | [**Order**](Order.md)| order placed for purchasing the pet |
### Return type
diff --git a/samples/client/petstore/javascript-promise/docs/Tag.md b/samples/client/petstore/javascript-promise/docs/Tag.md
index c0277cae8f..a53941e80e 100644
--- a/samples/client/petstore/javascript-promise/docs/Tag.md
+++ b/samples/client/petstore/javascript-promise/docs/Tag.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.Tag
+# OpenApiPetstore.Tag
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/javascript-promise/docs/User.md b/samples/client/petstore/javascript-promise/docs/User.md
index 2cac604cfa..2e86dd378b 100644
--- a/samples/client/petstore/javascript-promise/docs/User.md
+++ b/samples/client/petstore/javascript-promise/docs/User.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.User
+# OpenApiPetstore.User
## Properties
Name | Type | Description | Notes
diff --git a/samples/client/petstore/javascript-promise/docs/UserApi.md b/samples/client/petstore/javascript-promise/docs/UserApi.md
index 3102a61d64..3439dda5cd 100644
--- a/samples/client/petstore/javascript-promise/docs/UserApi.md
+++ b/samples/client/petstore/javascript-promise/docs/UserApi.md
@@ -1,4 +1,4 @@
-# SwaggerPetstore.UserApi
+# OpenApiPetstore.UserApi
All URIs are relative to *http://petstore.swagger.io:80/v2*
@@ -16,7 +16,7 @@ Method | HTTP request | Description
# **createUser**
-> createUser(body)
+> createUser(user)
Create user
@@ -24,13 +24,11 @@ This can only be done by the logged in user.
### Example
```javascript
-var SwaggerPetstore = require('swagger_petstore');
+var OpenApiPetstore = require('open_api_petstore');
-var apiInstance = new SwaggerPetstore.UserApi();
-
-var body = new SwaggerPetstore.User(); // User | Created user object
-
-apiInstance.createUser(body).then(function() {
+var apiInstance = new OpenApiPetstore.UserApi();
+var user = new OpenApiPetstore.User(); // User | Created user object
+apiInstance.createUser(user).then(function() {
console.log('API called successfully.');
}, function(error) {
console.error(error);
@@ -42,7 +40,7 @@ apiInstance.createUser(body).then(function() {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**User**](User.md)| Created user object |
+ **user** | [**User**](User.md)| Created user object |
### Return type
@@ -55,25 +53,21 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
+ - **Accept**: Not defined
# **createUsersWithArrayInput**
-> createUsersWithArrayInput(body)
+> createUsersWithArrayInput(user)
Creates list of users with given input array
-
-
### Example
```javascript
-var SwaggerPetstore = require('swagger_petstore');
+var OpenApiPetstore = require('open_api_petstore');
-var apiInstance = new SwaggerPetstore.UserApi();
-
-var body = [new SwaggerPetstore.User()]; // [User] | List of user object
-
-apiInstance.createUsersWithArrayInput(body).then(function() {
+var apiInstance = new OpenApiPetstore.UserApi();
+var user = [new OpenApiPetstore.User()]; // [User] | List of user object
+apiInstance.createUsersWithArrayInput(user).then(function() {
console.log('API called successfully.');
}, function(error) {
console.error(error);
@@ -85,7 +79,7 @@ apiInstance.createUsersWithArrayInput(body).then(function() {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**[User]**](User.md)| List of user object |
+ **user** | [**[User]**](Array.md)| List of user object |
### Return type
@@ -98,25 +92,21 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
+ - **Accept**: Not defined
# **createUsersWithListInput**
-> createUsersWithListInput(body)
+> createUsersWithListInput(user)
Creates list of users with given input array
-
-
### Example
```javascript
-var SwaggerPetstore = require('swagger_petstore');
+var OpenApiPetstore = require('open_api_petstore');
-var apiInstance = new SwaggerPetstore.UserApi();
-
-var body = [new SwaggerPetstore.User()]; // [User] | List of user object
-
-apiInstance.createUsersWithListInput(body).then(function() {
+var apiInstance = new OpenApiPetstore.UserApi();
+var user = [new OpenApiPetstore.User()]; // [User] | List of user object
+apiInstance.createUsersWithListInput(user).then(function() {
console.log('API called successfully.');
}, function(error) {
console.error(error);
@@ -128,7 +118,7 @@ apiInstance.createUsersWithListInput(body).then(function() {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**[User]**](User.md)| List of user object |
+ **user** | [**[User]**](Array.md)| List of user object |
### Return type
@@ -141,7 +131,7 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
+ - **Accept**: Not defined
# **deleteUser**
@@ -153,12 +143,10 @@ This can only be done by the logged in user.
### Example
```javascript
-var SwaggerPetstore = require('swagger_petstore');
-
-var apiInstance = new SwaggerPetstore.UserApi();
+var OpenApiPetstore = require('open_api_petstore');
+var apiInstance = new OpenApiPetstore.UserApi();
var username = "username_example"; // String | The name that needs to be deleted
-
apiInstance.deleteUser(username).then(function() {
console.log('API called successfully.');
}, function(error) {
@@ -184,7 +172,7 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
+ - **Accept**: Not defined
# **getUserByName**
@@ -192,16 +180,12 @@ No authorization required
Get user by user name
-
-
### Example
```javascript
-var SwaggerPetstore = require('swagger_petstore');
-
-var apiInstance = new SwaggerPetstore.UserApi();
-
-var username = "username_example"; // String | The name that needs to be fetched. Use user1 for testing.
+var OpenApiPetstore = require('open_api_petstore');
+var apiInstance = new OpenApiPetstore.UserApi();
+var username = "username_example"; // String | The name that needs to be fetched. Use user1 for testing.
apiInstance.getUserByName(username).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
@@ -214,7 +198,7 @@ apiInstance.getUserByName(username).then(function(data) {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **username** | **String**| The name that needs to be fetched. Use user1 for testing. |
+ **username** | **String**| The name that needs to be fetched. Use user1 for testing. |
### Return type
@@ -231,22 +215,17 @@ No authorization required
# **loginUser**
-> 'String' loginUser(username, password)
+> String loginUser(username, password)
Logs user into the system
-
-
### Example
```javascript
-var SwaggerPetstore = require('swagger_petstore');
-
-var apiInstance = new SwaggerPetstore.UserApi();
+var OpenApiPetstore = require('open_api_petstore');
+var apiInstance = new OpenApiPetstore.UserApi();
var username = "username_example"; // String | The user name for login
-
var password = "password_example"; // String | The password for login in clear text
-
apiInstance.loginUser(username, password).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
@@ -264,7 +243,7 @@ Name | Type | Description | Notes
### Return type
-**'String'**
+**String**
### Authorization
@@ -281,13 +260,11 @@ No authorization required
Logs out current logged in user session
-
-
### Example
```javascript
-var SwaggerPetstore = require('swagger_petstore');
+var OpenApiPetstore = require('open_api_petstore');
-var apiInstance = new SwaggerPetstore.UserApi();
+var apiInstance = new OpenApiPetstore.UserApi();
apiInstance.logoutUser().then(function() {
console.log('API called successfully.');
}, function(error) {
@@ -310,11 +287,11 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
+ - **Accept**: Not defined
# **updateUser**
-> updateUser(username, body)
+> updateUser(username, user)
Updated user
@@ -322,15 +299,12 @@ This can only be done by the logged in user.
### Example
```javascript
-var SwaggerPetstore = require('swagger_petstore');
-
-var apiInstance = new SwaggerPetstore.UserApi();
+var OpenApiPetstore = require('open_api_petstore');
+var apiInstance = new OpenApiPetstore.UserApi();
var username = "username_example"; // String | name that need to be deleted
-
-var body = new SwaggerPetstore.User(); // User | Updated user object
-
-apiInstance.updateUser(username, body).then(function() {
+var user = new OpenApiPetstore.User(); // User | Updated user object
+apiInstance.updateUser(username, user).then(function() {
console.log('API called successfully.');
}, function(error) {
console.error(error);
@@ -343,7 +317,7 @@ apiInstance.updateUser(username, body).then(function() {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**username** | **String**| name that need to be deleted |
- **body** | [**User**](User.md)| Updated user object |
+ **user** | [**User**](User.md)| Updated user object |
### Return type
@@ -356,5 +330,5 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
+ - **Accept**: Not defined
diff --git a/samples/client/petstore/javascript-promise/git_push.sh b/samples/client/petstore/javascript-promise/git_push.sh
index 0d041ad0ba..04dd5df38e 100644
--- a/samples/client/petstore/javascript-promise/git_push.sh
+++ b/samples/client/petstore/javascript-promise/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/javascript-promise/package.json b/samples/client/petstore/javascript-promise/package.json
index e9678cd187..6cee197195 100644
--- a/samples/client/petstore/javascript-promise/package.json
+++ b/samples/client/petstore/javascript-promise/package.json
@@ -1,5 +1,5 @@
{
- "name": "swagger_petstore",
+ "name": "open_api_petstore",
"version": "1.0.0",
"description": "This_spec_is_mainly_for_testing_Petstore_server_and_contains_fake_endpoints_models__Please_do_not_use_this_for_any_other_purpose__Special_characters__",
"license": "Apache-2.0",
diff --git a/samples/client/petstore/javascript-promise/src/ApiClient.js b/samples/client/petstore/javascript-promise/src/ApiClient.js
index 691f409db9..435175dc8d 100644
--- a/samples/client/petstore/javascript-promise/src/ApiClient.js
+++ b/samples/client/petstore/javascript-promise/src/ApiClient.js
@@ -1,14 +1,13 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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
*
- * Swagger Codegen version: 2.3.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
@@ -23,10 +22,10 @@
module.exports = factory(require('superagent'), require('querystring'));
} else {
// Browser globals (root is window)
- if (!root.SwaggerPetstore) {
- root.SwaggerPetstore = {};
+ if (!root.OpenApiPetstore) {
+ root.OpenApiPetstore = {};
}
- root.SwaggerPetstore.ApiClient = factory(root.superagent, root.querystring);
+ root.OpenApiPetstore.ApiClient = factory(root.superagent, root.querystring);
}
}(this, function(superagent, querystring) {
'use strict';
diff --git a/samples/client/petstore/javascript-promise/src/api/AnotherFakeApi.js b/samples/client/petstore/javascript-promise/src/api/AnotherFakeApi.js
index eabb53763c..7821ec7a22 100644
--- a/samples/client/petstore/javascript-promise/src/api/AnotherFakeApi.js
+++ b/samples/client/petstore/javascript-promise/src/api/AnotherFakeApi.js
@@ -1,14 +1,13 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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
*
- * Swagger Codegen version: 2.3.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
@@ -23,10 +22,10 @@
module.exports = factory(require('../ApiClient'), require('../model/Client'));
} else {
// Browser globals (root is window)
- if (!root.SwaggerPetstore) {
- root.SwaggerPetstore = {};
+ if (!root.OpenApiPetstore) {
+ root.OpenApiPetstore = {};
}
- root.SwaggerPetstore.AnotherFakeApi = factory(root.SwaggerPetstore.ApiClient, root.SwaggerPetstore.Client);
+ root.OpenApiPetstore.AnotherFakeApi = factory(root.OpenApiPetstore.ApiClient, root.OpenApiPetstore.Client);
}
}(this, function(ApiClient, Client) {
'use strict';
@@ -52,15 +51,15 @@
/**
* To test special tags
* To test special tags
- * @param {module:model/Client} body client model
+ * @param {module:model/Client} client client model
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Client} and HTTP response
*/
- this.testSpecialTagsWithHttpInfo = function(body) {
- var postBody = body;
+ this.testSpecialTagsWithHttpInfo = function(client) {
+ var postBody = client;
- // verify the required parameter 'body' is set
- if (body === undefined || body === null) {
- throw new Error("Missing the required parameter 'body' when calling testSpecialTags");
+ // verify the required parameter 'client' is set
+ if (client === undefined || client === null) {
+ throw new Error("Missing the required parameter 'client' when calling testSpecialTags");
}
@@ -90,11 +89,11 @@
/**
* To test special tags
* To test special tags
- * @param {module:model/Client} body client model
+ * @param {module:model/Client} client client model
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Client}
*/
- this.testSpecialTags = function(body) {
- return this.testSpecialTagsWithHttpInfo(body)
+ this.testSpecialTags = function(client) {
+ return this.testSpecialTagsWithHttpInfo(client)
.then(function(response_and_data) {
return response_and_data.data;
});
diff --git a/samples/client/petstore/javascript-promise/src/api/FakeApi.js b/samples/client/petstore/javascript-promise/src/api/FakeApi.js
index 0f06c046e0..7144e267fd 100644
--- a/samples/client/petstore/javascript-promise/src/api/FakeApi.js
+++ b/samples/client/petstore/javascript-promise/src/api/FakeApi.js
@@ -1,14 +1,13 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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
*
- * Swagger Codegen version: 2.3.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
@@ -17,18 +16,18 @@
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
- define(['ApiClient', 'model/Client', 'model/OuterBoolean', 'model/OuterComposite', 'model/OuterNumber', 'model/OuterString'], factory);
+ define(['ApiClient', 'model/Client', 'model/OuterComposite', 'model/User'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
- module.exports = factory(require('../ApiClient'), require('../model/Client'), require('../model/OuterBoolean'), require('../model/OuterComposite'), require('../model/OuterNumber'), require('../model/OuterString'));
+ module.exports = factory(require('../ApiClient'), require('../model/Client'), require('../model/OuterComposite'), require('../model/User'));
} else {
// Browser globals (root is window)
- if (!root.SwaggerPetstore) {
- root.SwaggerPetstore = {};
+ if (!root.OpenApiPetstore) {
+ root.OpenApiPetstore = {};
}
- root.SwaggerPetstore.FakeApi = factory(root.SwaggerPetstore.ApiClient, root.SwaggerPetstore.Client, root.SwaggerPetstore.OuterBoolean, root.SwaggerPetstore.OuterComposite, root.SwaggerPetstore.OuterNumber, root.SwaggerPetstore.OuterString);
+ root.OpenApiPetstore.FakeApi = factory(root.OpenApiPetstore.ApiClient, root.OpenApiPetstore.Client, root.OpenApiPetstore.OuterComposite, root.OpenApiPetstore.User);
}
-}(this, function(ApiClient, Client, OuterBoolean, OuterComposite, OuterNumber, OuterString) {
+}(this, function(ApiClient, Client, OuterComposite, User) {
'use strict';
/**
@@ -52,8 +51,8 @@
/**
* Test serialization of outer boolean types
* @param {Object} opts Optional parameters
- * @param {module:model/OuterBoolean} opts.body Input boolean as post body
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OuterBoolean} and HTTP response
+ * @param {Boolean} opts.body Input boolean as post body
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Boolean} and HTTP response
*/
this.fakeOuterBooleanSerializeWithHttpInfo = function(opts) {
opts = opts || {};
@@ -73,8 +72,8 @@
var authNames = [];
var contentTypes = [];
- var accepts = [];
- var returnType = OuterBoolean;
+ var accepts = ['*/*'];
+ var returnType = Boolean;
return this.apiClient.callApi(
'/fake/outer/boolean', 'POST',
@@ -86,8 +85,8 @@
/**
* Test serialization of outer boolean types
* @param {Object} opts Optional parameters
- * @param {module:model/OuterBoolean} opts.body Input boolean as post body
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OuterBoolean}
+ * @param {Boolean} opts.body Input boolean as post body
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Boolean}
*/
this.fakeOuterBooleanSerialize = function(opts) {
return this.fakeOuterBooleanSerializeWithHttpInfo(opts)
@@ -100,12 +99,12 @@
/**
* Test serialization of object with outer number type
* @param {Object} opts Optional parameters
- * @param {module:model/OuterComposite} opts.body Input composite as post body
+ * @param {module:model/OuterComposite} opts.outerComposite Input composite as post body
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OuterComposite} and HTTP response
*/
this.fakeOuterCompositeSerializeWithHttpInfo = function(opts) {
opts = opts || {};
- var postBody = opts['body'];
+ var postBody = opts['outerComposite'];
var pathParams = {
@@ -121,7 +120,7 @@
var authNames = [];
var contentTypes = [];
- var accepts = [];
+ var accepts = ['*/*'];
var returnType = OuterComposite;
return this.apiClient.callApi(
@@ -134,7 +133,7 @@
/**
* Test serialization of object with outer number type
* @param {Object} opts Optional parameters
- * @param {module:model/OuterComposite} opts.body Input composite as post body
+ * @param {module:model/OuterComposite} opts.outerComposite Input composite as post body
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OuterComposite}
*/
this.fakeOuterCompositeSerialize = function(opts) {
@@ -148,8 +147,8 @@
/**
* Test serialization of outer number types
* @param {Object} opts Optional parameters
- * @param {module:model/OuterNumber} opts.body Input number as post body
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OuterNumber} and HTTP response
+ * @param {Number} opts.body Input number as post body
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Number} and HTTP response
*/
this.fakeOuterNumberSerializeWithHttpInfo = function(opts) {
opts = opts || {};
@@ -169,8 +168,8 @@
var authNames = [];
var contentTypes = [];
- var accepts = [];
- var returnType = OuterNumber;
+ var accepts = ['*/*'];
+ var returnType = Number;
return this.apiClient.callApi(
'/fake/outer/number', 'POST',
@@ -182,8 +181,8 @@
/**
* Test serialization of outer number types
* @param {Object} opts Optional parameters
- * @param {module:model/OuterNumber} opts.body Input number as post body
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OuterNumber}
+ * @param {Number} opts.body Input number as post body
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Number}
*/
this.fakeOuterNumberSerialize = function(opts) {
return this.fakeOuterNumberSerializeWithHttpInfo(opts)
@@ -196,8 +195,8 @@
/**
* Test serialization of outer string types
* @param {Object} opts Optional parameters
- * @param {module:model/OuterString} opts.body Input string as post body
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OuterString} and HTTP response
+ * @param {String} opts.body Input string as post body
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link String} and HTTP response
*/
this.fakeOuterStringSerializeWithHttpInfo = function(opts) {
opts = opts || {};
@@ -217,8 +216,8 @@
var authNames = [];
var contentTypes = [];
- var accepts = [];
- var returnType = OuterString;
+ var accepts = ['*/*'];
+ var returnType = String;
return this.apiClient.callApi(
'/fake/outer/string', 'POST',
@@ -230,8 +229,8 @@
/**
* Test serialization of outer string types
* @param {Object} opts Optional parameters
- * @param {module:model/OuterString} opts.body Input string as post body
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OuterString}
+ * @param {String} opts.body Input string as post body
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link String}
*/
this.fakeOuterStringSerialize = function(opts) {
return this.fakeOuterStringSerializeWithHttpInfo(opts)
@@ -241,18 +240,74 @@
}
+ /**
+ * @param {String} query
+ * @param {module:model/User} user
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
+ */
+ this.testBodyWithQueryParamsWithHttpInfo = function(query, user) {
+ var postBody = user;
+
+ // verify the required parameter 'query' is set
+ if (query === undefined || query === null) {
+ throw new Error("Missing the required parameter 'query' when calling testBodyWithQueryParams");
+ }
+
+ // verify the required parameter 'user' is set
+ if (user === undefined || user === null) {
+ throw new Error("Missing the required parameter 'user' when calling testBodyWithQueryParams");
+ }
+
+
+ var pathParams = {
+ };
+ var queryParams = {
+ 'query': query,
+ };
+ var collectionQueryParams = {
+ };
+ var headerParams = {
+ };
+ var formParams = {
+ };
+
+ var authNames = [];
+ var contentTypes = ['application/json'];
+ var accepts = [];
+ var returnType = null;
+
+ return this.apiClient.callApi(
+ '/fake/body-with-query-params', 'PUT',
+ pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
+ authNames, contentTypes, accepts, returnType
+ );
+ }
+
+ /**
+ * @param {String} query
+ * @param {module:model/User} user
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
+ */
+ this.testBodyWithQueryParams = function(query, user) {
+ return this.testBodyWithQueryParamsWithHttpInfo(query, user)
+ .then(function(response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+
/**
* To test \"client\" model
* To test \"client\" model
- * @param {module:model/Client} body client model
+ * @param {module:model/Client} client client model
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Client} and HTTP response
*/
- this.testClientModelWithHttpInfo = function(body) {
- var postBody = body;
+ this.testClientModelWithHttpInfo = function(client) {
+ var postBody = client;
- // verify the required parameter 'body' is set
- if (body === undefined || body === null) {
- throw new Error("Missing the required parameter 'body' when calling testClientModel");
+ // verify the required parameter 'client' is set
+ if (client === undefined || client === null) {
+ throw new Error("Missing the required parameter 'client' when calling testClientModel");
}
@@ -282,11 +337,11 @@
/**
* To test \"client\" model
* To test \"client\" model
- * @param {module:model/Client} body client model
+ * @param {module:model/Client} client client model
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Client}
*/
- this.testClientModel = function(body) {
- return this.testClientModelWithHttpInfo(body)
+ this.testClientModel = function(client) {
+ return this.testClientModelWithHttpInfo(client)
.then(function(response_and_data) {
return response_and_data.data;
});
@@ -306,7 +361,7 @@
* @param {Number} opts.int64 None
* @param {Number} opts._float None
* @param {String} opts._string None
- * @param {Blob} opts.binary None
+ * @param {File} opts.binary None
* @param {Date} opts._date None
* @param {Date} opts.dateTime None
* @param {String} opts.password None
@@ -364,8 +419,8 @@
};
var authNames = ['http_basic_test'];
- var contentTypes = ['application/xml; charset=utf-8', 'application/json; charset=utf-8'];
- var accepts = ['application/xml; charset=utf-8', 'application/json; charset=utf-8'];
+ var contentTypes = ['application/x-www-form-urlencoded'];
+ var accepts = [];
var returnType = null;
return this.apiClient.callApi(
@@ -388,7 +443,7 @@
* @param {Number} opts.int64 None
* @param {Number} opts._float None
* @param {String} opts._string None
- * @param {Blob} opts.binary None
+ * @param {File} opts.binary None
* @param {Date} opts._date None
* @param {Date} opts.dateTime None
* @param {String} opts.password None
@@ -407,14 +462,14 @@
* To test enum parameters
* To test enum parameters
* @param {Object} opts Optional parameters
- * @param {Array.} opts.enumFormStringArray Form parameter enum test (string array)
- * @param {module:model/String} opts.enumFormString Form parameter enum test (string) (default to -efg)
* @param {Array.} opts.enumHeaderStringArray Header parameter enum test (string array)
- * @param {module:model/String} opts.enumHeaderString Header parameter enum test (string) (default to -efg)
+ * @param {module:model/String} opts.enumHeaderString Header parameter enum test (string) (default to '-efg')
* @param {Array.} opts.enumQueryStringArray Query parameter enum test (string array)
- * @param {module:model/String} opts.enumQueryString Query parameter enum test (string) (default to -efg)
+ * @param {module:model/String} opts.enumQueryString Query parameter enum test (string) (default to '-efg')
* @param {module:model/Number} opts.enumQueryInteger Query parameter enum test (double)
* @param {module:model/Number} opts.enumQueryDouble Query parameter enum test (double)
+ * @param {Array.} opts.enumFormStringArray Form parameter enum test (string array) (default to '$')
+ * @param {module:model/String} opts.enumFormString Form parameter enum test (string) (default to '-efg')
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
*/
this.testEnumParametersWithHttpInfo = function(opts) {
@@ -427,6 +482,7 @@
var queryParams = {
'enum_query_string': opts['enumQueryString'],
'enum_query_integer': opts['enumQueryInteger'],
+ 'enum_query_double': opts['enumQueryDouble'],
};
var collectionQueryParams = {
'enum_query_string_array': {
@@ -440,13 +496,12 @@
};
var formParams = {
'enum_form_string_array': this.apiClient.buildCollectionParam(opts['enumFormStringArray'], 'csv'),
- 'enum_form_string': opts['enumFormString'],
- 'enum_query_double': opts['enumQueryDouble']
+ 'enum_form_string': opts['enumFormString']
};
var authNames = [];
- var contentTypes = ['*/*'];
- var accepts = ['*/*'];
+ var contentTypes = ['application/x-www-form-urlencoded'];
+ var accepts = [];
var returnType = null;
return this.apiClient.callApi(
@@ -460,14 +515,14 @@
* To test enum parameters
* To test enum parameters
* @param {Object} opts Optional parameters
- * @param {Array.} opts.enumFormStringArray Form parameter enum test (string array)
- * @param {module:model/String} opts.enumFormString Form parameter enum test (string) (default to -efg)
* @param {Array.} opts.enumHeaderStringArray Header parameter enum test (string array)
- * @param {module:model/String} opts.enumHeaderString Header parameter enum test (string) (default to -efg)
+ * @param {module:model/String} opts.enumHeaderString Header parameter enum test (string) (default to '-efg')
* @param {Array.} opts.enumQueryStringArray Query parameter enum test (string array)
- * @param {module:model/String} opts.enumQueryString Query parameter enum test (string) (default to -efg)
+ * @param {module:model/String} opts.enumQueryString Query parameter enum test (string) (default to '-efg')
* @param {module:model/Number} opts.enumQueryInteger Query parameter enum test (double)
* @param {module:model/Number} opts.enumQueryDouble Query parameter enum test (double)
+ * @param {Array.} opts.enumFormStringArray Form parameter enum test (string array) (default to '$')
+ * @param {module:model/String} opts.enumFormString Form parameter enum test (string) (default to '-efg')
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
this.testEnumParameters = function(opts) {
@@ -480,16 +535,15 @@
/**
* test inline additionalProperties
- *
- * @param {Object} param request body
+ * @param {Object.} requestBody request body
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
*/
- this.testInlineAdditionalPropertiesWithHttpInfo = function(param) {
- var postBody = param;
+ this.testInlineAdditionalPropertiesWithHttpInfo = function(requestBody) {
+ var postBody = requestBody;
- // verify the required parameter 'param' is set
- if (param === undefined || param === null) {
- throw new Error("Missing the required parameter 'param' when calling testInlineAdditionalProperties");
+ // verify the required parameter 'requestBody' is set
+ if (requestBody === undefined || requestBody === null) {
+ throw new Error("Missing the required parameter 'requestBody' when calling testInlineAdditionalProperties");
}
@@ -518,12 +572,11 @@
/**
* test inline additionalProperties
- *
- * @param {Object} param request body
+ * @param {Object.} requestBody request body
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.testInlineAdditionalProperties = function(param) {
- return this.testInlineAdditionalPropertiesWithHttpInfo(param)
+ this.testInlineAdditionalProperties = function(requestBody) {
+ return this.testInlineAdditionalPropertiesWithHttpInfo(requestBody)
.then(function(response_and_data) {
return response_and_data.data;
});
@@ -532,7 +585,6 @@
/**
* test json serialization of form data
- *
* @param {String} param field1
* @param {String} param2 field2
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
@@ -565,7 +617,7 @@
};
var authNames = [];
- var contentTypes = ['application/json'];
+ var contentTypes = ['application/x-www-form-urlencoded'];
var accepts = [];
var returnType = null;
@@ -578,7 +630,6 @@
/**
* test json serialization of form data
- *
* @param {String} param field1
* @param {String} param2 field2
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
diff --git a/samples/client/petstore/javascript-promise/src/api/FakeClassnameTags123Api.js b/samples/client/petstore/javascript-promise/src/api/FakeClassnameTags123Api.js
index fdae9bbaeb..7293a03fe8 100644
--- a/samples/client/petstore/javascript-promise/src/api/FakeClassnameTags123Api.js
+++ b/samples/client/petstore/javascript-promise/src/api/FakeClassnameTags123Api.js
@@ -1,14 +1,13 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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
*
- * Swagger Codegen version: 2.3.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
@@ -23,10 +22,10 @@
module.exports = factory(require('../ApiClient'), require('../model/Client'));
} else {
// Browser globals (root is window)
- if (!root.SwaggerPetstore) {
- root.SwaggerPetstore = {};
+ if (!root.OpenApiPetstore) {
+ root.OpenApiPetstore = {};
}
- root.SwaggerPetstore.FakeClassnameTags123Api = factory(root.SwaggerPetstore.ApiClient, root.SwaggerPetstore.Client);
+ root.OpenApiPetstore.FakeClassnameTags123Api = factory(root.OpenApiPetstore.ApiClient, root.OpenApiPetstore.Client);
}
}(this, function(ApiClient, Client) {
'use strict';
@@ -51,15 +50,16 @@
/**
* To test class name in snake case
- * @param {module:model/Client} body client model
+ * To test class name in snake case
+ * @param {module:model/Client} client client model
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Client} and HTTP response
*/
- this.testClassnameWithHttpInfo = function(body) {
- var postBody = body;
+ this.testClassnameWithHttpInfo = function(client) {
+ var postBody = client;
- // verify the required parameter 'body' is set
- if (body === undefined || body === null) {
- throw new Error("Missing the required parameter 'body' when calling testClassname");
+ // verify the required parameter 'client' is set
+ if (client === undefined || client === null) {
+ throw new Error("Missing the required parameter 'client' when calling testClassname");
}
@@ -88,11 +88,12 @@
/**
* To test class name in snake case
- * @param {module:model/Client} body client model
+ * To test class name in snake case
+ * @param {module:model/Client} client client model
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Client}
*/
- this.testClassname = function(body) {
- return this.testClassnameWithHttpInfo(body)
+ this.testClassname = function(client) {
+ return this.testClassnameWithHttpInfo(client)
.then(function(response_and_data) {
return response_and_data.data;
});
diff --git a/samples/client/petstore/javascript-promise/src/api/PetApi.js b/samples/client/petstore/javascript-promise/src/api/PetApi.js
index 655f36436f..68d7bd7e10 100644
--- a/samples/client/petstore/javascript-promise/src/api/PetApi.js
+++ b/samples/client/petstore/javascript-promise/src/api/PetApi.js
@@ -1,14 +1,13 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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
*
- * Swagger Codegen version: 2.3.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
@@ -23,10 +22,10 @@
module.exports = factory(require('../ApiClient'), require('../model/ApiResponse'), require('../model/Pet'));
} else {
// Browser globals (root is window)
- if (!root.SwaggerPetstore) {
- root.SwaggerPetstore = {};
+ if (!root.OpenApiPetstore) {
+ root.OpenApiPetstore = {};
}
- root.SwaggerPetstore.PetApi = factory(root.SwaggerPetstore.ApiClient, root.SwaggerPetstore.ApiResponse, root.SwaggerPetstore.Pet);
+ root.OpenApiPetstore.PetApi = factory(root.OpenApiPetstore.ApiClient, root.OpenApiPetstore.ApiResponse, root.OpenApiPetstore.Pet);
}
}(this, function(ApiClient, ApiResponse, Pet) {
'use strict';
@@ -51,16 +50,15 @@
/**
* Add a new pet to the store
- *
- * @param {module:model/Pet} body Pet object that needs to be added to the store
+ * @param {module:model/Pet} pet Pet object that needs to be added to the store
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
*/
- this.addPetWithHttpInfo = function(body) {
- var postBody = body;
+ this.addPetWithHttpInfo = function(pet) {
+ var postBody = pet;
- // verify the required parameter 'body' is set
- if (body === undefined || body === null) {
- throw new Error("Missing the required parameter 'body' when calling addPet");
+ // verify the required parameter 'pet' is set
+ if (pet === undefined || pet === null) {
+ throw new Error("Missing the required parameter 'pet' when calling addPet");
}
@@ -77,7 +75,7 @@
var authNames = ['petstore_auth'];
var contentTypes = ['application/json', 'application/xml'];
- var accepts = ['application/xml', 'application/json'];
+ var accepts = [];
var returnType = null;
return this.apiClient.callApi(
@@ -89,12 +87,11 @@
/**
* Add a new pet to the store
- *
- * @param {module:model/Pet} body Pet object that needs to be added to the store
+ * @param {module:model/Pet} pet Pet object that needs to be added to the store
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.addPet = function(body) {
- return this.addPetWithHttpInfo(body)
+ this.addPet = function(pet) {
+ return this.addPetWithHttpInfo(pet)
.then(function(response_and_data) {
return response_and_data.data;
});
@@ -103,7 +100,6 @@
/**
* Deletes a pet
- *
* @param {Number} petId Pet id to delete
* @param {Object} opts Optional parameters
* @param {String} opts.apiKey
@@ -134,7 +130,7 @@
var authNames = ['petstore_auth'];
var contentTypes = [];
- var accepts = ['application/xml', 'application/json'];
+ var accepts = [];
var returnType = null;
return this.apiClient.callApi(
@@ -146,7 +142,6 @@
/**
* Deletes a pet
- *
* @param {Number} petId Pet id to delete
* @param {Object} opts Optional parameters
* @param {String} opts.apiKey
@@ -327,16 +322,15 @@
/**
* Update an existing pet
- *
- * @param {module:model/Pet} body Pet object that needs to be added to the store
+ * @param {module:model/Pet} pet Pet object that needs to be added to the store
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
*/
- this.updatePetWithHttpInfo = function(body) {
- var postBody = body;
+ this.updatePetWithHttpInfo = function(pet) {
+ var postBody = pet;
- // verify the required parameter 'body' is set
- if (body === undefined || body === null) {
- throw new Error("Missing the required parameter 'body' when calling updatePet");
+ // verify the required parameter 'pet' is set
+ if (pet === undefined || pet === null) {
+ throw new Error("Missing the required parameter 'pet' when calling updatePet");
}
@@ -353,7 +347,7 @@
var authNames = ['petstore_auth'];
var contentTypes = ['application/json', 'application/xml'];
- var accepts = ['application/xml', 'application/json'];
+ var accepts = [];
var returnType = null;
return this.apiClient.callApi(
@@ -365,12 +359,11 @@
/**
* Update an existing pet
- *
- * @param {module:model/Pet} body Pet object that needs to be added to the store
+ * @param {module:model/Pet} pet Pet object that needs to be added to the store
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.updatePet = function(body) {
- return this.updatePetWithHttpInfo(body)
+ this.updatePet = function(pet) {
+ return this.updatePetWithHttpInfo(pet)
.then(function(response_and_data) {
return response_and_data.data;
});
@@ -379,7 +372,6 @@
/**
* Updates a pet in the store with form data
- *
* @param {Number} petId ID of pet that needs to be updated
* @param {Object} opts Optional parameters
* @param {String} opts.name Updated name of the pet
@@ -412,7 +404,7 @@
var authNames = ['petstore_auth'];
var contentTypes = ['application/x-www-form-urlencoded'];
- var accepts = ['application/xml', 'application/json'];
+ var accepts = [];
var returnType = null;
return this.apiClient.callApi(
@@ -424,7 +416,6 @@
/**
* Updates a pet in the store with form data
- *
* @param {Number} petId ID of pet that needs to be updated
* @param {Object} opts Optional parameters
* @param {String} opts.name Updated name of the pet
@@ -441,7 +432,6 @@
/**
* uploads an image
- *
* @param {Number} petId ID of pet to update
* @param {Object} opts Optional parameters
* @param {String} opts.additionalMetadata Additional data to pass to server
@@ -486,7 +476,6 @@
/**
* uploads an image
- *
* @param {Number} petId ID of pet to update
* @param {Object} opts Optional parameters
* @param {String} opts.additionalMetadata Additional data to pass to server
diff --git a/samples/client/petstore/javascript-promise/src/api/StoreApi.js b/samples/client/petstore/javascript-promise/src/api/StoreApi.js
index dc39ad3349..08268a9849 100644
--- a/samples/client/petstore/javascript-promise/src/api/StoreApi.js
+++ b/samples/client/petstore/javascript-promise/src/api/StoreApi.js
@@ -1,14 +1,13 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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
*
- * Swagger Codegen version: 2.3.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
@@ -23,10 +22,10 @@
module.exports = factory(require('../ApiClient'), require('../model/Order'));
} else {
// Browser globals (root is window)
- if (!root.SwaggerPetstore) {
- root.SwaggerPetstore = {};
+ if (!root.OpenApiPetstore) {
+ root.OpenApiPetstore = {};
}
- root.SwaggerPetstore.StoreApi = factory(root.SwaggerPetstore.ApiClient, root.SwaggerPetstore.Order);
+ root.OpenApiPetstore.StoreApi = factory(root.OpenApiPetstore.ApiClient, root.OpenApiPetstore.Order);
}
}(this, function(ApiClient, Order) {
'use strict';
@@ -78,7 +77,7 @@
var authNames = [];
var contentTypes = [];
- var accepts = ['application/xml', 'application/json'];
+ var accepts = [];
var returnType = null;
return this.apiClient.callApi(
@@ -105,7 +104,7 @@
/**
* Returns pet inventories by status
* Returns a map of status codes to quantities
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object.} and HTTP response
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object.} and HTTP response
*/
this.getInventoryWithHttpInfo = function() {
var postBody = null;
@@ -125,7 +124,7 @@
var authNames = ['api_key'];
var contentTypes = [];
var accepts = ['application/json'];
- var returnType = {'String': 'Number'};
+ var returnType = {String: Number};
return this.apiClient.callApi(
'/store/inventory', 'GET',
@@ -137,7 +136,7 @@
/**
* Returns pet inventories by status
* Returns a map of status codes to quantities
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object.}
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object.}
*/
this.getInventory = function() {
return this.getInventoryWithHttpInfo()
@@ -202,16 +201,15 @@
/**
* Place an order for a pet
- *
- * @param {module:model/Order} body order placed for purchasing the pet
+ * @param {module:model/Order} order order placed for purchasing the pet
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Order} and HTTP response
*/
- this.placeOrderWithHttpInfo = function(body) {
- var postBody = body;
+ this.placeOrderWithHttpInfo = function(order) {
+ var postBody = order;
- // verify the required parameter 'body' is set
- if (body === undefined || body === null) {
- throw new Error("Missing the required parameter 'body' when calling placeOrder");
+ // verify the required parameter 'order' is set
+ if (order === undefined || order === null) {
+ throw new Error("Missing the required parameter 'order' when calling placeOrder");
}
@@ -240,12 +238,11 @@
/**
* Place an order for a pet
- *
- * @param {module:model/Order} body order placed for purchasing the pet
+ * @param {module:model/Order} order order placed for purchasing the pet
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Order}
*/
- this.placeOrder = function(body) {
- return this.placeOrderWithHttpInfo(body)
+ this.placeOrder = function(order) {
+ return this.placeOrderWithHttpInfo(order)
.then(function(response_and_data) {
return response_and_data.data;
});
diff --git a/samples/client/petstore/javascript-promise/src/api/UserApi.js b/samples/client/petstore/javascript-promise/src/api/UserApi.js
index 3d6e216aaa..babd9e513c 100644
--- a/samples/client/petstore/javascript-promise/src/api/UserApi.js
+++ b/samples/client/petstore/javascript-promise/src/api/UserApi.js
@@ -1,14 +1,13 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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
*
- * Swagger Codegen version: 2.3.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
@@ -23,10 +22,10 @@
module.exports = factory(require('../ApiClient'), require('../model/User'));
} else {
// Browser globals (root is window)
- if (!root.SwaggerPetstore) {
- root.SwaggerPetstore = {};
+ if (!root.OpenApiPetstore) {
+ root.OpenApiPetstore = {};
}
- root.SwaggerPetstore.UserApi = factory(root.SwaggerPetstore.ApiClient, root.SwaggerPetstore.User);
+ root.OpenApiPetstore.UserApi = factory(root.OpenApiPetstore.ApiClient, root.OpenApiPetstore.User);
}
}(this, function(ApiClient, User) {
'use strict';
@@ -52,15 +51,15 @@
/**
* Create user
* This can only be done by the logged in user.
- * @param {module:model/User} body Created user object
+ * @param {module:model/User} user Created user object
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
*/
- this.createUserWithHttpInfo = function(body) {
- var postBody = body;
+ this.createUserWithHttpInfo = function(user) {
+ var postBody = user;
- // verify the required parameter 'body' is set
- if (body === undefined || body === null) {
- throw new Error("Missing the required parameter 'body' when calling createUser");
+ // verify the required parameter 'user' is set
+ if (user === undefined || user === null) {
+ throw new Error("Missing the required parameter 'user' when calling createUser");
}
@@ -77,7 +76,7 @@
var authNames = [];
var contentTypes = [];
- var accepts = ['application/xml', 'application/json'];
+ var accepts = [];
var returnType = null;
return this.apiClient.callApi(
@@ -90,11 +89,11 @@
/**
* Create user
* This can only be done by the logged in user.
- * @param {module:model/User} body Created user object
+ * @param {module:model/User} user Created user object
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.createUser = function(body) {
- return this.createUserWithHttpInfo(body)
+ this.createUser = function(user) {
+ return this.createUserWithHttpInfo(user)
.then(function(response_and_data) {
return response_and_data.data;
});
@@ -103,16 +102,15 @@
/**
* Creates list of users with given input array
- *
- * @param {Array.} body List of user object
+ * @param {Array.} user List of user object
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
*/
- this.createUsersWithArrayInputWithHttpInfo = function(body) {
- var postBody = body;
+ this.createUsersWithArrayInputWithHttpInfo = function(user) {
+ var postBody = user;
- // verify the required parameter 'body' is set
- if (body === undefined || body === null) {
- throw new Error("Missing the required parameter 'body' when calling createUsersWithArrayInput");
+ // verify the required parameter 'user' is set
+ if (user === undefined || user === null) {
+ throw new Error("Missing the required parameter 'user' when calling createUsersWithArrayInput");
}
@@ -129,7 +127,7 @@
var authNames = [];
var contentTypes = [];
- var accepts = ['application/xml', 'application/json'];
+ var accepts = [];
var returnType = null;
return this.apiClient.callApi(
@@ -141,12 +139,11 @@
/**
* Creates list of users with given input array
- *
- * @param {Array.} body List of user object
+ * @param {Array.} user List of user object
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.createUsersWithArrayInput = function(body) {
- return this.createUsersWithArrayInputWithHttpInfo(body)
+ this.createUsersWithArrayInput = function(user) {
+ return this.createUsersWithArrayInputWithHttpInfo(user)
.then(function(response_and_data) {
return response_and_data.data;
});
@@ -155,16 +152,15 @@
/**
* Creates list of users with given input array
- *
- * @param {Array.} body List of user object
+ * @param {Array.} user List of user object
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
*/
- this.createUsersWithListInputWithHttpInfo = function(body) {
- var postBody = body;
+ this.createUsersWithListInputWithHttpInfo = function(user) {
+ var postBody = user;
- // verify the required parameter 'body' is set
- if (body === undefined || body === null) {
- throw new Error("Missing the required parameter 'body' when calling createUsersWithListInput");
+ // verify the required parameter 'user' is set
+ if (user === undefined || user === null) {
+ throw new Error("Missing the required parameter 'user' when calling createUsersWithListInput");
}
@@ -181,7 +177,7 @@
var authNames = [];
var contentTypes = [];
- var accepts = ['application/xml', 'application/json'];
+ var accepts = [];
var returnType = null;
return this.apiClient.callApi(
@@ -193,12 +189,11 @@
/**
* Creates list of users with given input array
- *
- * @param {Array.} body List of user object
+ * @param {Array.} user List of user object
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.createUsersWithListInput = function(body) {
- return this.createUsersWithListInputWithHttpInfo(body)
+ this.createUsersWithListInput = function(user) {
+ return this.createUsersWithListInputWithHttpInfo(user)
.then(function(response_and_data) {
return response_and_data.data;
});
@@ -234,7 +229,7 @@
var authNames = [];
var contentTypes = [];
- var accepts = ['application/xml', 'application/json'];
+ var accepts = [];
var returnType = null;
return this.apiClient.callApi(
@@ -260,8 +255,7 @@
/**
* Get user by user name
- *
- * @param {String} username The name that needs to be fetched. Use user1 for testing.
+ * @param {String} username The name that needs to be fetched. Use user1 for testing.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/User} and HTTP response
*/
this.getUserByNameWithHttpInfo = function(username) {
@@ -299,8 +293,7 @@
/**
* Get user by user name
- *
- * @param {String} username The name that needs to be fetched. Use user1 for testing.
+ * @param {String} username The name that needs to be fetched. Use user1 for testing.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/User}
*/
this.getUserByName = function(username) {
@@ -313,10 +306,9 @@
/**
* Logs user into the system
- *
* @param {String} username The user name for login
* @param {String} password The password for login in clear text
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link 'String'} and HTTP response
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link String} and HTTP response
*/
this.loginUserWithHttpInfo = function(username, password) {
var postBody = null;
@@ -348,7 +340,7 @@
var authNames = [];
var contentTypes = [];
var accepts = ['application/xml', 'application/json'];
- var returnType = 'String';
+ var returnType = String;
return this.apiClient.callApi(
'/user/login', 'GET',
@@ -359,10 +351,9 @@
/**
* Logs user into the system
- *
* @param {String} username The user name for login
* @param {String} password The password for login in clear text
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link 'String'}
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link String}
*/
this.loginUser = function(username, password) {
return this.loginUserWithHttpInfo(username, password)
@@ -374,7 +365,6 @@
/**
* Logs out current logged in user session
- *
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
*/
this.logoutUserWithHttpInfo = function() {
@@ -394,7 +384,7 @@
var authNames = [];
var contentTypes = [];
- var accepts = ['application/xml', 'application/json'];
+ var accepts = [];
var returnType = null;
return this.apiClient.callApi(
@@ -406,7 +396,6 @@
/**
* Logs out current logged in user session
- *
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
this.logoutUser = function() {
@@ -421,20 +410,20 @@
* Updated user
* This can only be done by the logged in user.
* @param {String} username name that need to be deleted
- * @param {module:model/User} body Updated user object
+ * @param {module:model/User} user Updated user object
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
*/
- this.updateUserWithHttpInfo = function(username, body) {
- var postBody = body;
+ this.updateUserWithHttpInfo = function(username, user) {
+ var postBody = user;
// verify the required parameter 'username' is set
if (username === undefined || username === null) {
throw new Error("Missing the required parameter 'username' when calling updateUser");
}
- // verify the required parameter 'body' is set
- if (body === undefined || body === null) {
- throw new Error("Missing the required parameter 'body' when calling updateUser");
+ // verify the required parameter 'user' is set
+ if (user === undefined || user === null) {
+ throw new Error("Missing the required parameter 'user' when calling updateUser");
}
@@ -452,7 +441,7 @@
var authNames = [];
var contentTypes = [];
- var accepts = ['application/xml', 'application/json'];
+ var accepts = [];
var returnType = null;
return this.apiClient.callApi(
@@ -466,11 +455,11 @@
* Updated user
* This can only be done by the logged in user.
* @param {String} username name that need to be deleted
- * @param {module:model/User} body Updated user object
+ * @param {module:model/User} user Updated user object
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
- this.updateUser = function(username, body) {
- return this.updateUserWithHttpInfo(username, body)
+ this.updateUser = function(username, user) {
+ return this.updateUserWithHttpInfo(username, user)
.then(function(response_and_data) {
return response_and_data.data;
});
diff --git a/samples/client/petstore/javascript-promise/src/index.js b/samples/client/petstore/javascript-promise/src/index.js
index 480a6d3ead..25685095fb 100644
--- a/samples/client/petstore/javascript-promise/src/index.js
+++ b/samples/client/petstore/javascript-promise/src/index.js
@@ -1,14 +1,13 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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
*
- * Swagger Codegen version: 2.3.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
@@ -17,12 +16,12 @@
(function(factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
- define(['ApiClient', 'model/AdditionalPropertiesClass', 'model/Animal', 'model/AnimalFarm', 'model/ApiResponse', 'model/ArrayOfArrayOfNumberOnly', 'model/ArrayOfNumberOnly', 'model/ArrayTest', 'model/Capitalization', 'model/Category', 'model/ClassModel', 'model/Client', 'model/EnumArrays', 'model/EnumClass', 'model/EnumTest', 'model/FormatTest', 'model/HasOnlyReadOnly', 'model/List', 'model/MapTest', 'model/MixedPropertiesAndAdditionalPropertiesClass', 'model/Model200Response', 'model/ModelReturn', 'model/Name', 'model/NumberOnly', 'model/Order', 'model/OuterBoolean', 'model/OuterComposite', 'model/OuterEnum', 'model/OuterNumber', 'model/OuterString', 'model/Pet', 'model/ReadOnlyFirst', 'model/SpecialModelName', 'model/Tag', 'model/User', 'model/Cat', 'model/Dog', 'api/AnotherFakeApi', 'api/FakeApi', 'api/FakeClassnameTags123Api', 'api/PetApi', 'api/StoreApi', 'api/UserApi'], factory);
+ define(['ApiClient', 'model/AdditionalPropertiesClass', 'model/Animal', 'model/AnimalFarm', 'model/ApiResponse', 'model/ArrayOfArrayOfNumberOnly', 'model/ArrayOfNumberOnly', 'model/ArrayTest', 'model/Capitalization', 'model/Cat', 'model/Category', 'model/ClassModel', 'model/Client', 'model/Dog', 'model/EnumArrays', 'model/EnumClass', 'model/EnumTest', 'model/FormatTest', 'model/HasOnlyReadOnly', 'model/List', 'model/MapTest', 'model/MixedPropertiesAndAdditionalPropertiesClass', 'model/Model200Response', 'model/ModelReturn', 'model/Name', 'model/NumberOnly', 'model/Order', 'model/OuterComposite', 'model/OuterEnum', 'model/Pet', 'model/ReadOnlyFirst', 'model/SpecialModelName', 'model/Tag', 'model/User', 'api/AnotherFakeApi', 'api/FakeApi', 'api/FakeClassnameTags123Api', 'api/PetApi', 'api/StoreApi', 'api/UserApi'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
- module.exports = factory(require('./ApiClient'), require('./model/AdditionalPropertiesClass'), require('./model/Animal'), require('./model/AnimalFarm'), require('./model/ApiResponse'), require('./model/ArrayOfArrayOfNumberOnly'), require('./model/ArrayOfNumberOnly'), require('./model/ArrayTest'), require('./model/Capitalization'), require('./model/Category'), require('./model/ClassModel'), require('./model/Client'), require('./model/EnumArrays'), require('./model/EnumClass'), require('./model/EnumTest'), require('./model/FormatTest'), require('./model/HasOnlyReadOnly'), require('./model/List'), require('./model/MapTest'), require('./model/MixedPropertiesAndAdditionalPropertiesClass'), require('./model/Model200Response'), require('./model/ModelReturn'), require('./model/Name'), require('./model/NumberOnly'), require('./model/Order'), require('./model/OuterBoolean'), require('./model/OuterComposite'), require('./model/OuterEnum'), require('./model/OuterNumber'), require('./model/OuterString'), require('./model/Pet'), require('./model/ReadOnlyFirst'), require('./model/SpecialModelName'), require('./model/Tag'), require('./model/User'), require('./model/Cat'), require('./model/Dog'), require('./api/AnotherFakeApi'), require('./api/FakeApi'), require('./api/FakeClassnameTags123Api'), require('./api/PetApi'), require('./api/StoreApi'), require('./api/UserApi'));
+ module.exports = factory(require('./ApiClient'), require('./model/AdditionalPropertiesClass'), require('./model/Animal'), require('./model/AnimalFarm'), require('./model/ApiResponse'), require('./model/ArrayOfArrayOfNumberOnly'), require('./model/ArrayOfNumberOnly'), require('./model/ArrayTest'), require('./model/Capitalization'), require('./model/Cat'), require('./model/Category'), require('./model/ClassModel'), require('./model/Client'), require('./model/Dog'), require('./model/EnumArrays'), require('./model/EnumClass'), require('./model/EnumTest'), require('./model/FormatTest'), require('./model/HasOnlyReadOnly'), require('./model/List'), require('./model/MapTest'), require('./model/MixedPropertiesAndAdditionalPropertiesClass'), require('./model/Model200Response'), require('./model/ModelReturn'), require('./model/Name'), require('./model/NumberOnly'), require('./model/Order'), require('./model/OuterComposite'), require('./model/OuterEnum'), require('./model/Pet'), require('./model/ReadOnlyFirst'), require('./model/SpecialModelName'), require('./model/Tag'), require('./model/User'), require('./api/AnotherFakeApi'), require('./api/FakeApi'), require('./api/FakeClassnameTags123Api'), require('./api/PetApi'), require('./api/StoreApi'), require('./api/UserApi'));
}
-}(function(ApiClient, AdditionalPropertiesClass, Animal, AnimalFarm, ApiResponse, ArrayOfArrayOfNumberOnly, ArrayOfNumberOnly, ArrayTest, Capitalization, Category, ClassModel, Client, EnumArrays, EnumClass, EnumTest, FormatTest, HasOnlyReadOnly, List, MapTest, MixedPropertiesAndAdditionalPropertiesClass, Model200Response, ModelReturn, Name, NumberOnly, Order, OuterBoolean, OuterComposite, OuterEnum, OuterNumber, OuterString, Pet, ReadOnlyFirst, SpecialModelName, Tag, User, Cat, Dog, AnotherFakeApi, FakeApi, FakeClassnameTags123Api, PetApi, StoreApi, UserApi) {
+}(function(ApiClient, AdditionalPropertiesClass, Animal, AnimalFarm, ApiResponse, ArrayOfArrayOfNumberOnly, ArrayOfNumberOnly, ArrayTest, Capitalization, Cat, Category, ClassModel, Client, Dog, EnumArrays, EnumClass, EnumTest, FormatTest, HasOnlyReadOnly, List, MapTest, MixedPropertiesAndAdditionalPropertiesClass, Model200Response, ModelReturn, Name, NumberOnly, Order, OuterComposite, OuterEnum, Pet, ReadOnlyFirst, SpecialModelName, Tag, User, AnotherFakeApi, FakeApi, FakeClassnameTags123Api, PetApi, StoreApi, UserApi) {
'use strict';
/**
@@ -31,9 +30,9 @@
*
* An AMD (recommended!) or CommonJS application will generally do something equivalent to the following:
*
- * var SwaggerPetstore = require('index'); // See note below*.
- * var xxxSvc = new SwaggerPetstore.XxxApi(); // Allocate the API class we're going to use.
- * var yyyModel = new SwaggerPetstore.Yyy(); // Construct a model instance.
+ * var OpenApiPetstore = require('index'); // See note below*.
+ * var xxxSvc = new OpenApiPetstore.XxxApi(); // Allocate the API class we're going to use.
+ * var yyyModel = new OpenApiPetstore.Yyy(); // Construct a model instance.
* yyyModel.someProperty = 'someValue';
* ...
* var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
@@ -45,8 +44,8 @@
*
* A non-AMD browser application (discouraged) might do something like this:
*
- * var xxxSvc = new SwaggerPetstore.XxxApi(); // Allocate the API class we're going to use.
- * var yyy = new SwaggerPetstore.Yyy(); // Construct a model instance.
+ * var xxxSvc = new OpenApiPetstore.XxxApi(); // Allocate the API class we're going to use.
+ * var yyy = new OpenApiPetstore.Yyy(); // Construct a model instance.
* yyyModel.someProperty = 'someValue';
* ...
* var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
@@ -102,6 +101,11 @@
* @property {module:model/Capitalization}
*/
Capitalization: Capitalization,
+ /**
+ * The Cat model constructor.
+ * @property {module:model/Cat}
+ */
+ Cat: Cat,
/**
* The Category model constructor.
* @property {module:model/Category}
@@ -117,6 +121,11 @@
* @property {module:model/Client}
*/
Client: Client,
+ /**
+ * The Dog model constructor.
+ * @property {module:model/Dog}
+ */
+ Dog: Dog,
/**
* The EnumArrays model constructor.
* @property {module:model/EnumArrays}
@@ -182,11 +191,6 @@
* @property {module:model/Order}
*/
Order: Order,
- /**
- * The OuterBoolean model constructor.
- * @property {module:model/OuterBoolean}
- */
- OuterBoolean: OuterBoolean,
/**
* The OuterComposite model constructor.
* @property {module:model/OuterComposite}
@@ -197,16 +201,6 @@
* @property {module:model/OuterEnum}
*/
OuterEnum: OuterEnum,
- /**
- * The OuterNumber model constructor.
- * @property {module:model/OuterNumber}
- */
- OuterNumber: OuterNumber,
- /**
- * The OuterString model constructor.
- * @property {module:model/OuterString}
- */
- OuterString: OuterString,
/**
* The Pet model constructor.
* @property {module:model/Pet}
@@ -232,16 +226,6 @@
* @property {module:model/User}
*/
User: User,
- /**
- * The Cat model constructor.
- * @property {module:model/Cat}
- */
- Cat: Cat,
- /**
- * The Dog model constructor.
- * @property {module:model/Dog}
- */
- Dog: Dog,
/**
* The AnotherFakeApi service constructor.
* @property {module:api/AnotherFakeApi}
diff --git a/samples/client/petstore/javascript-promise/src/model/AdditionalPropertiesClass.js b/samples/client/petstore/javascript-promise/src/model/AdditionalPropertiesClass.js
index 4399d89bdc..08572d9008 100644
--- a/samples/client/petstore/javascript-promise/src/model/AdditionalPropertiesClass.js
+++ b/samples/client/petstore/javascript-promise/src/model/AdditionalPropertiesClass.js
@@ -1,14 +1,13 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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
*
- * Swagger Codegen version: 2.3.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
@@ -23,10 +22,10 @@
module.exports = factory(require('../ApiClient'));
} else {
// Browser globals (root is window)
- if (!root.SwaggerPetstore) {
- root.SwaggerPetstore = {};
+ if (!root.OpenApiPetstore) {
+ root.OpenApiPetstore = {};
}
- root.SwaggerPetstore.AdditionalPropertiesClass = factory(root.SwaggerPetstore.ApiClient);
+ root.OpenApiPetstore.AdditionalPropertiesClass = factory(root.OpenApiPetstore.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
diff --git a/samples/client/petstore/javascript-promise/src/model/Animal.js b/samples/client/petstore/javascript-promise/src/model/Animal.js
index eee2768eeb..29376d771b 100644
--- a/samples/client/petstore/javascript-promise/src/model/Animal.js
+++ b/samples/client/petstore/javascript-promise/src/model/Animal.js
@@ -1,14 +1,13 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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
*
- * Swagger Codegen version: 2.3.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
@@ -23,10 +22,10 @@
module.exports = factory(require('../ApiClient'));
} else {
// Browser globals (root is window)
- if (!root.SwaggerPetstore) {
- root.SwaggerPetstore = {};
+ if (!root.OpenApiPetstore) {
+ root.OpenApiPetstore = {};
}
- root.SwaggerPetstore.Animal = factory(root.SwaggerPetstore.ApiClient);
+ root.OpenApiPetstore.Animal = factory(root.OpenApiPetstore.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
diff --git a/samples/client/petstore/javascript-promise/src/model/AnimalFarm.js b/samples/client/petstore/javascript-promise/src/model/AnimalFarm.js
index b24078dee2..e1a4797eec 100644
--- a/samples/client/petstore/javascript-promise/src/model/AnimalFarm.js
+++ b/samples/client/petstore/javascript-promise/src/model/AnimalFarm.js
@@ -1,14 +1,13 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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
*
- * Swagger Codegen version: 2.3.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
@@ -23,10 +22,10 @@
module.exports = factory(require('../ApiClient'), require('./Animal'));
} else {
// Browser globals (root is window)
- if (!root.SwaggerPetstore) {
- root.SwaggerPetstore = {};
+ if (!root.OpenApiPetstore) {
+ root.OpenApiPetstore = {};
}
- root.SwaggerPetstore.AnimalFarm = factory(root.SwaggerPetstore.ApiClient, root.SwaggerPetstore.Animal);
+ root.OpenApiPetstore.AnimalFarm = factory(root.OpenApiPetstore.ApiClient, root.OpenApiPetstore.Animal);
}
}(this, function(ApiClient, Animal) {
'use strict';
diff --git a/samples/client/petstore/javascript-promise/src/model/ApiResponse.js b/samples/client/petstore/javascript-promise/src/model/ApiResponse.js
index 9588ce4cf3..5c11241818 100644
--- a/samples/client/petstore/javascript-promise/src/model/ApiResponse.js
+++ b/samples/client/petstore/javascript-promise/src/model/ApiResponse.js
@@ -1,14 +1,13 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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
*
- * Swagger Codegen version: 2.3.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
@@ -23,10 +22,10 @@
module.exports = factory(require('../ApiClient'));
} else {
// Browser globals (root is window)
- if (!root.SwaggerPetstore) {
- root.SwaggerPetstore = {};
+ if (!root.OpenApiPetstore) {
+ root.OpenApiPetstore = {};
}
- root.SwaggerPetstore.ApiResponse = factory(root.SwaggerPetstore.ApiClient);
+ root.OpenApiPetstore.ApiResponse = factory(root.OpenApiPetstore.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
diff --git a/samples/client/petstore/javascript-promise/src/model/ArrayOfArrayOfNumberOnly.js b/samples/client/petstore/javascript-promise/src/model/ArrayOfArrayOfNumberOnly.js
index 0b91fc0433..024c26469d 100644
--- a/samples/client/petstore/javascript-promise/src/model/ArrayOfArrayOfNumberOnly.js
+++ b/samples/client/petstore/javascript-promise/src/model/ArrayOfArrayOfNumberOnly.js
@@ -1,14 +1,13 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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
*
- * Swagger Codegen version: 2.3.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
@@ -23,10 +22,10 @@
module.exports = factory(require('../ApiClient'));
} else {
// Browser globals (root is window)
- if (!root.SwaggerPetstore) {
- root.SwaggerPetstore = {};
+ if (!root.OpenApiPetstore) {
+ root.OpenApiPetstore = {};
}
- root.SwaggerPetstore.ArrayOfArrayOfNumberOnly = factory(root.SwaggerPetstore.ApiClient);
+ root.OpenApiPetstore.ArrayOfArrayOfNumberOnly = factory(root.OpenApiPetstore.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
diff --git a/samples/client/petstore/javascript-promise/src/model/ArrayOfNumberOnly.js b/samples/client/petstore/javascript-promise/src/model/ArrayOfNumberOnly.js
index f79ab37c07..ca79a7c2a6 100644
--- a/samples/client/petstore/javascript-promise/src/model/ArrayOfNumberOnly.js
+++ b/samples/client/petstore/javascript-promise/src/model/ArrayOfNumberOnly.js
@@ -1,14 +1,13 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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
*
- * Swagger Codegen version: 2.3.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
@@ -23,10 +22,10 @@
module.exports = factory(require('../ApiClient'));
} else {
// Browser globals (root is window)
- if (!root.SwaggerPetstore) {
- root.SwaggerPetstore = {};
+ if (!root.OpenApiPetstore) {
+ root.OpenApiPetstore = {};
}
- root.SwaggerPetstore.ArrayOfNumberOnly = factory(root.SwaggerPetstore.ApiClient);
+ root.OpenApiPetstore.ArrayOfNumberOnly = factory(root.OpenApiPetstore.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
diff --git a/samples/client/petstore/javascript-promise/src/model/ArrayTest.js b/samples/client/petstore/javascript-promise/src/model/ArrayTest.js
index 8698b21a15..01b97a1b58 100644
--- a/samples/client/petstore/javascript-promise/src/model/ArrayTest.js
+++ b/samples/client/petstore/javascript-promise/src/model/ArrayTest.js
@@ -1,14 +1,13 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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
*
- * Swagger Codegen version: 2.3.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
@@ -23,10 +22,10 @@
module.exports = factory(require('../ApiClient'), require('./ReadOnlyFirst'));
} else {
// Browser globals (root is window)
- if (!root.SwaggerPetstore) {
- root.SwaggerPetstore = {};
+ if (!root.OpenApiPetstore) {
+ root.OpenApiPetstore = {};
}
- root.SwaggerPetstore.ArrayTest = factory(root.SwaggerPetstore.ApiClient, root.SwaggerPetstore.ReadOnlyFirst);
+ root.OpenApiPetstore.ArrayTest = factory(root.OpenApiPetstore.ApiClient, root.OpenApiPetstore.ReadOnlyFirst);
}
}(this, function(ApiClient, ReadOnlyFirst) {
'use strict';
diff --git a/samples/client/petstore/javascript-promise/src/model/Capitalization.js b/samples/client/petstore/javascript-promise/src/model/Capitalization.js
index e4d1cce1e9..05934fb253 100644
--- a/samples/client/petstore/javascript-promise/src/model/Capitalization.js
+++ b/samples/client/petstore/javascript-promise/src/model/Capitalization.js
@@ -1,14 +1,13 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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
*
- * Swagger Codegen version: 2.3.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
@@ -23,10 +22,10 @@
module.exports = factory(require('../ApiClient'));
} else {
// Browser globals (root is window)
- if (!root.SwaggerPetstore) {
- root.SwaggerPetstore = {};
+ if (!root.OpenApiPetstore) {
+ root.OpenApiPetstore = {};
}
- root.SwaggerPetstore.Capitalization = factory(root.SwaggerPetstore.ApiClient);
+ root.OpenApiPetstore.Capitalization = factory(root.OpenApiPetstore.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
diff --git a/samples/client/petstore/javascript-promise/src/model/Cat.js b/samples/client/petstore/javascript-promise/src/model/Cat.js
index 55f0a0c983..10b787fed4 100644
--- a/samples/client/petstore/javascript-promise/src/model/Cat.js
+++ b/samples/client/petstore/javascript-promise/src/model/Cat.js
@@ -1,14 +1,13 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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
*
- * Swagger Codegen version: 2.3.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
@@ -23,10 +22,10 @@
module.exports = factory(require('../ApiClient'), require('./Animal'));
} else {
// Browser globals (root is window)
- if (!root.SwaggerPetstore) {
- root.SwaggerPetstore = {};
+ if (!root.OpenApiPetstore) {
+ root.OpenApiPetstore = {};
}
- root.SwaggerPetstore.Cat = factory(root.SwaggerPetstore.ApiClient, root.SwaggerPetstore.Animal);
+ root.OpenApiPetstore.Cat = factory(root.OpenApiPetstore.ApiClient, root.OpenApiPetstore.Animal);
}
}(this, function(ApiClient, Animal) {
'use strict';
@@ -45,11 +44,13 @@
* @alias module:model/Cat
* @class
* @extends module:model/Animal
- * @param className {String}
+ * @implements module:model/Animal
+ * @param className {}
*/
var exports = function(className) {
var _this = this;
Animal.call(_this, className);
+ Animal.call(_this, className);
};
@@ -64,6 +65,7 @@
if (data) {
obj = obj || new exports();
Animal.constructFromObject(data, obj);
+ Animal.constructFromObject(data, obj);
if (data.hasOwnProperty('declawed')) {
obj['declawed'] = ApiClient.convertToType(data['declawed'], 'Boolean');
}
@@ -79,6 +81,18 @@
*/
exports.prototype['declawed'] = undefined;
+ // Implement Animal interface:
+ /**
+ * @member {String} className
+ */
+exports.prototype['className'] = undefined;
+
+ /**
+ * @member {String} color
+ * @default 'red'
+ */
+exports.prototype['color'] = 'red';
+
return exports;
diff --git a/samples/client/petstore/javascript-promise/src/model/Category.js b/samples/client/petstore/javascript-promise/src/model/Category.js
index 37f547c79a..c289c6b8e5 100644
--- a/samples/client/petstore/javascript-promise/src/model/Category.js
+++ b/samples/client/petstore/javascript-promise/src/model/Category.js
@@ -1,14 +1,13 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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
*
- * Swagger Codegen version: 2.3.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
@@ -23,10 +22,10 @@
module.exports = factory(require('../ApiClient'));
} else {
// Browser globals (root is window)
- if (!root.SwaggerPetstore) {
- root.SwaggerPetstore = {};
+ if (!root.OpenApiPetstore) {
+ root.OpenApiPetstore = {};
}
- root.SwaggerPetstore.Category = factory(root.SwaggerPetstore.ApiClient);
+ root.OpenApiPetstore.Category = factory(root.OpenApiPetstore.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
diff --git a/samples/client/petstore/javascript-promise/src/model/ClassModel.js b/samples/client/petstore/javascript-promise/src/model/ClassModel.js
index bd390a2252..6edd8fbadd 100644
--- a/samples/client/petstore/javascript-promise/src/model/ClassModel.js
+++ b/samples/client/petstore/javascript-promise/src/model/ClassModel.js
@@ -1,14 +1,13 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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
*
- * Swagger Codegen version: 2.3.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
@@ -23,10 +22,10 @@
module.exports = factory(require('../ApiClient'));
} else {
// Browser globals (root is window)
- if (!root.SwaggerPetstore) {
- root.SwaggerPetstore = {};
+ if (!root.OpenApiPetstore) {
+ root.OpenApiPetstore = {};
}
- root.SwaggerPetstore.ClassModel = factory(root.SwaggerPetstore.ApiClient);
+ root.OpenApiPetstore.ClassModel = factory(root.OpenApiPetstore.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
diff --git a/samples/client/petstore/javascript-promise/src/model/Client.js b/samples/client/petstore/javascript-promise/src/model/Client.js
index 21add8d7f9..e563bcf7ea 100644
--- a/samples/client/petstore/javascript-promise/src/model/Client.js
+++ b/samples/client/petstore/javascript-promise/src/model/Client.js
@@ -1,14 +1,13 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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
*
- * Swagger Codegen version: 2.3.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
@@ -23,10 +22,10 @@
module.exports = factory(require('../ApiClient'));
} else {
// Browser globals (root is window)
- if (!root.SwaggerPetstore) {
- root.SwaggerPetstore = {};
+ if (!root.OpenApiPetstore) {
+ root.OpenApiPetstore = {};
}
- root.SwaggerPetstore.Client = factory(root.SwaggerPetstore.ApiClient);
+ root.OpenApiPetstore.Client = factory(root.OpenApiPetstore.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
diff --git a/samples/client/petstore/javascript-promise/src/model/Dog.js b/samples/client/petstore/javascript-promise/src/model/Dog.js
index f567953b62..c308f3dc9f 100644
--- a/samples/client/petstore/javascript-promise/src/model/Dog.js
+++ b/samples/client/petstore/javascript-promise/src/model/Dog.js
@@ -1,14 +1,13 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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
*
- * Swagger Codegen version: 2.3.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
@@ -23,10 +22,10 @@
module.exports = factory(require('../ApiClient'), require('./Animal'));
} else {
// Browser globals (root is window)
- if (!root.SwaggerPetstore) {
- root.SwaggerPetstore = {};
+ if (!root.OpenApiPetstore) {
+ root.OpenApiPetstore = {};
}
- root.SwaggerPetstore.Dog = factory(root.SwaggerPetstore.ApiClient, root.SwaggerPetstore.Animal);
+ root.OpenApiPetstore.Dog = factory(root.OpenApiPetstore.ApiClient, root.OpenApiPetstore.Animal);
}
}(this, function(ApiClient, Animal) {
'use strict';
@@ -45,11 +44,13 @@
* @alias module:model/Dog
* @class
* @extends module:model/Animal
- * @param className {String}
+ * @implements module:model/Animal
+ * @param className {}
*/
var exports = function(className) {
var _this = this;
Animal.call(_this, className);
+ Animal.call(_this, className);
};
@@ -64,6 +65,7 @@
if (data) {
obj = obj || new exports();
Animal.constructFromObject(data, obj);
+ Animal.constructFromObject(data, obj);
if (data.hasOwnProperty('breed')) {
obj['breed'] = ApiClient.convertToType(data['breed'], 'String');
}
@@ -79,6 +81,18 @@
*/
exports.prototype['breed'] = undefined;
+ // Implement Animal interface:
+ /**
+ * @member {String} className
+ */
+exports.prototype['className'] = undefined;
+
+ /**
+ * @member {String} color
+ * @default 'red'
+ */
+exports.prototype['color'] = 'red';
+
return exports;
diff --git a/samples/client/petstore/javascript-promise/src/model/EnumArrays.js b/samples/client/petstore/javascript-promise/src/model/EnumArrays.js
index 00036542ba..07d52b119d 100644
--- a/samples/client/petstore/javascript-promise/src/model/EnumArrays.js
+++ b/samples/client/petstore/javascript-promise/src/model/EnumArrays.js
@@ -1,14 +1,13 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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
*
- * Swagger Codegen version: 2.3.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
@@ -23,10 +22,10 @@
module.exports = factory(require('../ApiClient'));
} else {
// Browser globals (root is window)
- if (!root.SwaggerPetstore) {
- root.SwaggerPetstore = {};
+ if (!root.OpenApiPetstore) {
+ root.OpenApiPetstore = {};
}
- root.SwaggerPetstore.EnumArrays = factory(root.SwaggerPetstore.ApiClient);
+ root.OpenApiPetstore.EnumArrays = factory(root.OpenApiPetstore.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
diff --git a/samples/client/petstore/javascript-promise/src/model/EnumClass.js b/samples/client/petstore/javascript-promise/src/model/EnumClass.js
index f03ab350d2..d4a9f39f56 100644
--- a/samples/client/petstore/javascript-promise/src/model/EnumClass.js
+++ b/samples/client/petstore/javascript-promise/src/model/EnumClass.js
@@ -1,14 +1,13 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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
*
- * Swagger Codegen version: 2.3.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
@@ -23,10 +22,10 @@
module.exports = factory(require('../ApiClient'));
} else {
// Browser globals (root is window)
- if (!root.SwaggerPetstore) {
- root.SwaggerPetstore = {};
+ if (!root.OpenApiPetstore) {
+ root.OpenApiPetstore = {};
}
- root.SwaggerPetstore.EnumClass = factory(root.SwaggerPetstore.ApiClient);
+ root.OpenApiPetstore.EnumClass = factory(root.OpenApiPetstore.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
diff --git a/samples/client/petstore/javascript-promise/src/model/EnumTest.js b/samples/client/petstore/javascript-promise/src/model/EnumTest.js
index 3e7c9311aa..4dfc675332 100644
--- a/samples/client/petstore/javascript-promise/src/model/EnumTest.js
+++ b/samples/client/petstore/javascript-promise/src/model/EnumTest.js
@@ -1,14 +1,13 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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
*
- * Swagger Codegen version: 2.3.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
@@ -23,10 +22,10 @@
module.exports = factory(require('../ApiClient'), require('./OuterEnum'));
} else {
// Browser globals (root is window)
- if (!root.SwaggerPetstore) {
- root.SwaggerPetstore = {};
+ if (!root.OpenApiPetstore) {
+ root.OpenApiPetstore = {};
}
- root.SwaggerPetstore.EnumTest = factory(root.SwaggerPetstore.ApiClient, root.SwaggerPetstore.OuterEnum);
+ root.OpenApiPetstore.EnumTest = factory(root.OpenApiPetstore.ApiClient, root.OpenApiPetstore.OuterEnum);
}
}(this, function(ApiClient, OuterEnum) {
'use strict';
@@ -44,11 +43,13 @@
* Constructs a new EnumTest.
* @alias module:model/EnumTest
* @class
+ * @param enumStringRequired {module:model/EnumTest.EnumStringRequiredEnum}
*/
- var exports = function() {
+ var exports = function(enumStringRequired) {
var _this = this;
+ _this['enum_string_required'] = enumStringRequired;
@@ -68,6 +69,9 @@
if (data.hasOwnProperty('enum_string')) {
obj['enum_string'] = ApiClient.convertToType(data['enum_string'], 'String');
}
+ if (data.hasOwnProperty('enum_string_required')) {
+ obj['enum_string_required'] = ApiClient.convertToType(data['enum_string_required'], 'String');
+ }
if (data.hasOwnProperty('enum_integer')) {
obj['enum_integer'] = ApiClient.convertToType(data['enum_integer'], 'Number');
}
@@ -85,6 +89,10 @@
* @member {module:model/EnumTest.EnumStringEnum} enum_string
*/
exports.prototype['enum_string'] = undefined;
+ /**
+ * @member {module:model/EnumTest.EnumStringRequiredEnum} enum_string_required
+ */
+ exports.prototype['enum_string_required'] = undefined;
/**
* @member {module:model/EnumTest.EnumIntegerEnum} enum_integer
*/
@@ -121,6 +129,28 @@
*/
"empty": "" };
+ /**
+ * Allowed values for the enum_string_required property.
+ * @enum {String}
+ * @readonly
+ */
+ exports.EnumStringRequiredEnum = {
+ /**
+ * value: "UPPER"
+ * @const
+ */
+ "UPPER": "UPPER",
+ /**
+ * value: "lower"
+ * @const
+ */
+ "lower": "lower",
+ /**
+ * value: ""
+ * @const
+ */
+ "empty": "" };
+
/**
* Allowed values for the enum_integer property.
* @enum {Number}
diff --git a/samples/client/petstore/javascript-promise/src/model/FormatTest.js b/samples/client/petstore/javascript-promise/src/model/FormatTest.js
index 9b93b06b7c..6c5986d489 100644
--- a/samples/client/petstore/javascript-promise/src/model/FormatTest.js
+++ b/samples/client/petstore/javascript-promise/src/model/FormatTest.js
@@ -1,14 +1,13 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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
*
- * Swagger Codegen version: 2.3.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
@@ -23,10 +22,10 @@
module.exports = factory(require('../ApiClient'));
} else {
// Browser globals (root is window)
- if (!root.SwaggerPetstore) {
- root.SwaggerPetstore = {};
+ if (!root.OpenApiPetstore) {
+ root.OpenApiPetstore = {};
}
- root.SwaggerPetstore.FormatTest = factory(root.SwaggerPetstore.ApiClient);
+ root.OpenApiPetstore.FormatTest = factory(root.OpenApiPetstore.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
@@ -103,7 +102,7 @@
obj['byte'] = ApiClient.convertToType(data['byte'], 'Blob');
}
if (data.hasOwnProperty('binary')) {
- obj['binary'] = ApiClient.convertToType(data['binary'], 'Blob');
+ obj['binary'] = ApiClient.convertToType(data['binary'], File);
}
if (data.hasOwnProperty('date')) {
obj['date'] = ApiClient.convertToType(data['date'], 'Date');
@@ -154,7 +153,7 @@
*/
exports.prototype['byte'] = undefined;
/**
- * @member {Blob} binary
+ * @member {File} binary
*/
exports.prototype['binary'] = undefined;
/**
diff --git a/samples/client/petstore/javascript-promise/src/model/HasOnlyReadOnly.js b/samples/client/petstore/javascript-promise/src/model/HasOnlyReadOnly.js
index 17c09dfca7..484fd0c999 100644
--- a/samples/client/petstore/javascript-promise/src/model/HasOnlyReadOnly.js
+++ b/samples/client/petstore/javascript-promise/src/model/HasOnlyReadOnly.js
@@ -1,14 +1,13 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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
*
- * Swagger Codegen version: 2.3.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
@@ -23,10 +22,10 @@
module.exports = factory(require('../ApiClient'));
} else {
// Browser globals (root is window)
- if (!root.SwaggerPetstore) {
- root.SwaggerPetstore = {};
+ if (!root.OpenApiPetstore) {
+ root.OpenApiPetstore = {};
}
- root.SwaggerPetstore.HasOnlyReadOnly = factory(root.SwaggerPetstore.ApiClient);
+ root.OpenApiPetstore.HasOnlyReadOnly = factory(root.OpenApiPetstore.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
diff --git a/samples/client/petstore/javascript-promise/src/model/List.js b/samples/client/petstore/javascript-promise/src/model/List.js
index ce54341bb1..ab3c2e34e3 100644
--- a/samples/client/petstore/javascript-promise/src/model/List.js
+++ b/samples/client/petstore/javascript-promise/src/model/List.js
@@ -1,14 +1,13 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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
*
- * Swagger Codegen version: 2.3.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
@@ -23,10 +22,10 @@
module.exports = factory(require('../ApiClient'));
} else {
// Browser globals (root is window)
- if (!root.SwaggerPetstore) {
- root.SwaggerPetstore = {};
+ if (!root.OpenApiPetstore) {
+ root.OpenApiPetstore = {};
}
- root.SwaggerPetstore.List = factory(root.SwaggerPetstore.ApiClient);
+ root.OpenApiPetstore.List = factory(root.OpenApiPetstore.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
diff --git a/samples/client/petstore/javascript-promise/src/model/MapTest.js b/samples/client/petstore/javascript-promise/src/model/MapTest.js
index b7d0164b99..adf82a358c 100644
--- a/samples/client/petstore/javascript-promise/src/model/MapTest.js
+++ b/samples/client/petstore/javascript-promise/src/model/MapTest.js
@@ -1,14 +1,13 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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
*
- * Swagger Codegen version: 2.3.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
@@ -23,10 +22,10 @@
module.exports = factory(require('../ApiClient'));
} else {
// Browser globals (root is window)
- if (!root.SwaggerPetstore) {
- root.SwaggerPetstore = {};
+ if (!root.OpenApiPetstore) {
+ root.OpenApiPetstore = {};
}
- root.SwaggerPetstore.MapTest = factory(root.SwaggerPetstore.ApiClient);
+ root.OpenApiPetstore.MapTest = factory(root.OpenApiPetstore.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
diff --git a/samples/client/petstore/javascript-promise/src/model/MixedPropertiesAndAdditionalPropertiesClass.js b/samples/client/petstore/javascript-promise/src/model/MixedPropertiesAndAdditionalPropertiesClass.js
index 973ca5a65e..62c7a2f59e 100644
--- a/samples/client/petstore/javascript-promise/src/model/MixedPropertiesAndAdditionalPropertiesClass.js
+++ b/samples/client/petstore/javascript-promise/src/model/MixedPropertiesAndAdditionalPropertiesClass.js
@@ -1,14 +1,13 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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
*
- * Swagger Codegen version: 2.3.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
@@ -23,10 +22,10 @@
module.exports = factory(require('../ApiClient'), require('./Animal'));
} else {
// Browser globals (root is window)
- if (!root.SwaggerPetstore) {
- root.SwaggerPetstore = {};
+ if (!root.OpenApiPetstore) {
+ root.OpenApiPetstore = {};
}
- root.SwaggerPetstore.MixedPropertiesAndAdditionalPropertiesClass = factory(root.SwaggerPetstore.ApiClient, root.SwaggerPetstore.Animal);
+ root.OpenApiPetstore.MixedPropertiesAndAdditionalPropertiesClass = factory(root.OpenApiPetstore.ApiClient, root.OpenApiPetstore.Animal);
}
}(this, function(ApiClient, Animal) {
'use strict';
diff --git a/samples/client/petstore/javascript-promise/src/model/Model200Response.js b/samples/client/petstore/javascript-promise/src/model/Model200Response.js
index c382f33334..84131169fb 100644
--- a/samples/client/petstore/javascript-promise/src/model/Model200Response.js
+++ b/samples/client/petstore/javascript-promise/src/model/Model200Response.js
@@ -1,14 +1,13 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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
*
- * Swagger Codegen version: 2.3.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
@@ -23,10 +22,10 @@
module.exports = factory(require('../ApiClient'));
} else {
// Browser globals (root is window)
- if (!root.SwaggerPetstore) {
- root.SwaggerPetstore = {};
+ if (!root.OpenApiPetstore) {
+ root.OpenApiPetstore = {};
}
- root.SwaggerPetstore.Model200Response = factory(root.SwaggerPetstore.ApiClient);
+ root.OpenApiPetstore.Model200Response = factory(root.OpenApiPetstore.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
diff --git a/samples/client/petstore/javascript-promise/src/model/ModelReturn.js b/samples/client/petstore/javascript-promise/src/model/ModelReturn.js
index fa5bc9910f..87484d2ee2 100644
--- a/samples/client/petstore/javascript-promise/src/model/ModelReturn.js
+++ b/samples/client/petstore/javascript-promise/src/model/ModelReturn.js
@@ -1,14 +1,13 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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
*
- * Swagger Codegen version: 2.3.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
@@ -23,10 +22,10 @@
module.exports = factory(require('../ApiClient'));
} else {
// Browser globals (root is window)
- if (!root.SwaggerPetstore) {
- root.SwaggerPetstore = {};
+ if (!root.OpenApiPetstore) {
+ root.OpenApiPetstore = {};
}
- root.SwaggerPetstore.ModelReturn = factory(root.SwaggerPetstore.ApiClient);
+ root.OpenApiPetstore.ModelReturn = factory(root.OpenApiPetstore.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
diff --git a/samples/client/petstore/javascript-promise/src/model/Name.js b/samples/client/petstore/javascript-promise/src/model/Name.js
index 0671311976..8c851c4cec 100644
--- a/samples/client/petstore/javascript-promise/src/model/Name.js
+++ b/samples/client/petstore/javascript-promise/src/model/Name.js
@@ -1,14 +1,13 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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
*
- * Swagger Codegen version: 2.3.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
@@ -23,10 +22,10 @@
module.exports = factory(require('../ApiClient'));
} else {
// Browser globals (root is window)
- if (!root.SwaggerPetstore) {
- root.SwaggerPetstore = {};
+ if (!root.OpenApiPetstore) {
+ root.OpenApiPetstore = {};
}
- root.SwaggerPetstore.Name = factory(root.SwaggerPetstore.ApiClient);
+ root.OpenApiPetstore.Name = factory(root.OpenApiPetstore.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
diff --git a/samples/client/petstore/javascript-promise/src/model/NumberOnly.js b/samples/client/petstore/javascript-promise/src/model/NumberOnly.js
index d9ee8fcd3a..389ad08e8c 100644
--- a/samples/client/petstore/javascript-promise/src/model/NumberOnly.js
+++ b/samples/client/petstore/javascript-promise/src/model/NumberOnly.js
@@ -1,14 +1,13 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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
*
- * Swagger Codegen version: 2.3.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
@@ -23,10 +22,10 @@
module.exports = factory(require('../ApiClient'));
} else {
// Browser globals (root is window)
- if (!root.SwaggerPetstore) {
- root.SwaggerPetstore = {};
+ if (!root.OpenApiPetstore) {
+ root.OpenApiPetstore = {};
}
- root.SwaggerPetstore.NumberOnly = factory(root.SwaggerPetstore.ApiClient);
+ root.OpenApiPetstore.NumberOnly = factory(root.OpenApiPetstore.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
diff --git a/samples/client/petstore/javascript-promise/src/model/Order.js b/samples/client/petstore/javascript-promise/src/model/Order.js
index f082668517..bfd5f3714b 100644
--- a/samples/client/petstore/javascript-promise/src/model/Order.js
+++ b/samples/client/petstore/javascript-promise/src/model/Order.js
@@ -1,14 +1,13 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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
*
- * Swagger Codegen version: 2.3.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
@@ -23,10 +22,10 @@
module.exports = factory(require('../ApiClient'));
} else {
// Browser globals (root is window)
- if (!root.SwaggerPetstore) {
- root.SwaggerPetstore = {};
+ if (!root.OpenApiPetstore) {
+ root.OpenApiPetstore = {};
}
- root.SwaggerPetstore.Order = factory(root.SwaggerPetstore.ApiClient);
+ root.OpenApiPetstore.Order = factory(root.OpenApiPetstore.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
diff --git a/samples/client/petstore/javascript-promise/src/model/OuterComposite.js b/samples/client/petstore/javascript-promise/src/model/OuterComposite.js
index 14e7775588..b4fc48476d 100644
--- a/samples/client/petstore/javascript-promise/src/model/OuterComposite.js
+++ b/samples/client/petstore/javascript-promise/src/model/OuterComposite.js
@@ -1,14 +1,13 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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
*
- * Swagger Codegen version: 2.3.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
@@ -17,18 +16,18 @@
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
- define(['ApiClient', 'model/OuterBoolean', 'model/OuterNumber', 'model/OuterString'], factory);
+ define(['ApiClient'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
- module.exports = factory(require('../ApiClient'), require('./OuterBoolean'), require('./OuterNumber'), require('./OuterString'));
+ module.exports = factory(require('../ApiClient'));
} else {
// Browser globals (root is window)
- if (!root.SwaggerPetstore) {
- root.SwaggerPetstore = {};
+ if (!root.OpenApiPetstore) {
+ root.OpenApiPetstore = {};
}
- root.SwaggerPetstore.OuterComposite = factory(root.SwaggerPetstore.ApiClient, root.SwaggerPetstore.OuterBoolean, root.SwaggerPetstore.OuterNumber, root.SwaggerPetstore.OuterString);
+ root.OpenApiPetstore.OuterComposite = factory(root.OpenApiPetstore.ApiClient);
}
-}(this, function(ApiClient, OuterBoolean, OuterNumber, OuterString) {
+}(this, function(ApiClient) {
'use strict';
@@ -65,28 +64,28 @@
obj = obj || new exports();
if (data.hasOwnProperty('my_number')) {
- obj['my_number'] = OuterNumber.constructFromObject(data['my_number']);
+ obj['my_number'] = 'Number'.constructFromObject(data['my_number']);
}
if (data.hasOwnProperty('my_string')) {
- obj['my_string'] = OuterString.constructFromObject(data['my_string']);
+ obj['my_string'] = 'String'.constructFromObject(data['my_string']);
}
if (data.hasOwnProperty('my_boolean')) {
- obj['my_boolean'] = OuterBoolean.constructFromObject(data['my_boolean']);
+ obj['my_boolean'] = 'Boolean'.constructFromObject(data['my_boolean']);
}
}
return obj;
}
/**
- * @member {module:model/OuterNumber} my_number
+ * @member {Number} my_number
*/
exports.prototype['my_number'] = undefined;
/**
- * @member {module:model/OuterString} my_string
+ * @member {String} my_string
*/
exports.prototype['my_string'] = undefined;
/**
- * @member {module:model/OuterBoolean} my_boolean
+ * @member {Boolean} my_boolean
*/
exports.prototype['my_boolean'] = undefined;
diff --git a/samples/client/petstore/javascript-promise/src/model/OuterEnum.js b/samples/client/petstore/javascript-promise/src/model/OuterEnum.js
index cdd4309836..9e1f532b44 100644
--- a/samples/client/petstore/javascript-promise/src/model/OuterEnum.js
+++ b/samples/client/petstore/javascript-promise/src/model/OuterEnum.js
@@ -1,14 +1,13 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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
*
- * Swagger Codegen version: 2.3.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
@@ -23,10 +22,10 @@
module.exports = factory(require('../ApiClient'));
} else {
// Browser globals (root is window)
- if (!root.SwaggerPetstore) {
- root.SwaggerPetstore = {};
+ if (!root.OpenApiPetstore) {
+ root.OpenApiPetstore = {};
}
- root.SwaggerPetstore.OuterEnum = factory(root.SwaggerPetstore.ApiClient);
+ root.OpenApiPetstore.OuterEnum = factory(root.OpenApiPetstore.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
diff --git a/samples/client/petstore/javascript-promise/src/model/Pet.js b/samples/client/petstore/javascript-promise/src/model/Pet.js
index 7edd65724b..55997490b7 100644
--- a/samples/client/petstore/javascript-promise/src/model/Pet.js
+++ b/samples/client/petstore/javascript-promise/src/model/Pet.js
@@ -1,14 +1,13 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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
*
- * Swagger Codegen version: 2.3.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
@@ -23,10 +22,10 @@
module.exports = factory(require('../ApiClient'), require('./Category'), require('./Tag'));
} else {
// Browser globals (root is window)
- if (!root.SwaggerPetstore) {
- root.SwaggerPetstore = {};
+ if (!root.OpenApiPetstore) {
+ root.OpenApiPetstore = {};
}
- root.SwaggerPetstore.Pet = factory(root.SwaggerPetstore.ApiClient, root.SwaggerPetstore.Category, root.SwaggerPetstore.Tag);
+ root.OpenApiPetstore.Pet = factory(root.OpenApiPetstore.ApiClient, root.OpenApiPetstore.Category, root.OpenApiPetstore.Tag);
}
}(this, function(ApiClient, Category, Tag) {
'use strict';
diff --git a/samples/client/petstore/javascript-promise/src/model/ReadOnlyFirst.js b/samples/client/petstore/javascript-promise/src/model/ReadOnlyFirst.js
index f6f0064fd9..1b0ae1104c 100644
--- a/samples/client/petstore/javascript-promise/src/model/ReadOnlyFirst.js
+++ b/samples/client/petstore/javascript-promise/src/model/ReadOnlyFirst.js
@@ -1,14 +1,13 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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
*
- * Swagger Codegen version: 2.3.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
@@ -23,10 +22,10 @@
module.exports = factory(require('../ApiClient'));
} else {
// Browser globals (root is window)
- if (!root.SwaggerPetstore) {
- root.SwaggerPetstore = {};
+ if (!root.OpenApiPetstore) {
+ root.OpenApiPetstore = {};
}
- root.SwaggerPetstore.ReadOnlyFirst = factory(root.SwaggerPetstore.ApiClient);
+ root.OpenApiPetstore.ReadOnlyFirst = factory(root.OpenApiPetstore.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
diff --git a/samples/client/petstore/javascript-promise/src/model/SpecialModelName.js b/samples/client/petstore/javascript-promise/src/model/SpecialModelName.js
index 921a1e8737..22464bbe7a 100644
--- a/samples/client/petstore/javascript-promise/src/model/SpecialModelName.js
+++ b/samples/client/petstore/javascript-promise/src/model/SpecialModelName.js
@@ -1,14 +1,13 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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
*
- * Swagger Codegen version: 2.3.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
@@ -23,10 +22,10 @@
module.exports = factory(require('../ApiClient'));
} else {
// Browser globals (root is window)
- if (!root.SwaggerPetstore) {
- root.SwaggerPetstore = {};
+ if (!root.OpenApiPetstore) {
+ root.OpenApiPetstore = {};
}
- root.SwaggerPetstore.SpecialModelName = factory(root.SwaggerPetstore.ApiClient);
+ root.OpenApiPetstore.SpecialModelName = factory(root.OpenApiPetstore.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
diff --git a/samples/client/petstore/javascript-promise/src/model/Tag.js b/samples/client/petstore/javascript-promise/src/model/Tag.js
index 6308751e08..9e4f88b087 100644
--- a/samples/client/petstore/javascript-promise/src/model/Tag.js
+++ b/samples/client/petstore/javascript-promise/src/model/Tag.js
@@ -1,14 +1,13 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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
*
- * Swagger Codegen version: 2.3.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
@@ -23,10 +22,10 @@
module.exports = factory(require('../ApiClient'));
} else {
// Browser globals (root is window)
- if (!root.SwaggerPetstore) {
- root.SwaggerPetstore = {};
+ if (!root.OpenApiPetstore) {
+ root.OpenApiPetstore = {};
}
- root.SwaggerPetstore.Tag = factory(root.SwaggerPetstore.ApiClient);
+ root.OpenApiPetstore.Tag = factory(root.OpenApiPetstore.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
diff --git a/samples/client/petstore/javascript-promise/src/model/User.js b/samples/client/petstore/javascript-promise/src/model/User.js
index 1d251e22b3..06d4e6e7ad 100644
--- a/samples/client/petstore/javascript-promise/src/model/User.js
+++ b/samples/client/petstore/javascript-promise/src/model/User.js
@@ -1,14 +1,13 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* 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
*
- * Swagger Codegen version: 2.3.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
@@ -23,10 +22,10 @@
module.exports = factory(require('../ApiClient'));
} else {
// Browser globals (root is window)
- if (!root.SwaggerPetstore) {
- root.SwaggerPetstore = {};
+ if (!root.OpenApiPetstore) {
+ root.OpenApiPetstore = {};
}
- root.SwaggerPetstore.User = factory(root.SwaggerPetstore.ApiClient);
+ root.OpenApiPetstore.User = factory(root.OpenApiPetstore.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
diff --git a/samples/client/petstore/javascript/.openapi-generator/VERSION b/samples/client/petstore/javascript/.openapi-generator/VERSION
index 096bf47efe..1c00c51815 100644
--- a/samples/client/petstore/javascript/.openapi-generator/VERSION
+++ b/samples/client/petstore/javascript/.openapi-generator/VERSION
@@ -1 +1 @@
-3.0.0-SNAPSHOT
\ No newline at end of file
+3.0.2-SNAPSHOT
\ No newline at end of file
diff --git a/samples/client/petstore/javascript/docs/AdditionalPropertiesClass.md b/samples/client/petstore/javascript/docs/AdditionalPropertiesClass.md
new file mode 100644
index 0000000000..7df1c7b339
--- /dev/null
+++ b/samples/client/petstore/javascript/docs/AdditionalPropertiesClass.md
@@ -0,0 +1,9 @@
+# OpenApiPetstore.AdditionalPropertiesClass
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**mapProperty** | **{String: String}** | | [optional]
+**mapOfMapProperty** | **{String: {String: String}}** | | [optional]
+
+
diff --git a/samples/client/petstore/javascript/docs/Animal.md b/samples/client/petstore/javascript/docs/Animal.md
new file mode 100644
index 0000000000..7bff016758
--- /dev/null
+++ b/samples/client/petstore/javascript/docs/Animal.md
@@ -0,0 +1,9 @@
+# OpenApiPetstore.Animal
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**className** | **String** | |
+**color** | **String** | | [optional] [default to 'red']
+
+
diff --git a/samples/client/petstore/javascript/docs/AnimalFarm.md b/samples/client/petstore/javascript/docs/AnimalFarm.md
new file mode 100644
index 0000000000..ab153513ca
--- /dev/null
+++ b/samples/client/petstore/javascript/docs/AnimalFarm.md
@@ -0,0 +1,7 @@
+# OpenApiPetstore.AnimalFarm
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+
+
diff --git a/samples/client/petstore/javascript/docs/AnotherFakeApi.md b/samples/client/petstore/javascript/docs/AnotherFakeApi.md
new file mode 100644
index 0000000000..4529aa0c18
--- /dev/null
+++ b/samples/client/petstore/javascript/docs/AnotherFakeApi.md
@@ -0,0 +1,52 @@
+# OpenApiPetstore.AnotherFakeApi
+
+All URIs are relative to *http://petstore.swagger.io:80/v2*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**testSpecialTags**](AnotherFakeApi.md#testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
+
+
+
+# **testSpecialTags**
+> Client testSpecialTags(client)
+
+To test special tags
+
+To test special tags
+
+### Example
+```javascript
+var OpenApiPetstore = require('open_api_petstore');
+
+var apiInstance = new OpenApiPetstore.AnotherFakeApi();
+var client = new OpenApiPetstore.Client(); // Client | client model
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully. Returned data: ' + data);
+ }
+};
+apiInstance.testSpecialTags(client, callback);
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **client** | [**Client**](Client.md)| client model |
+
+### Return type
+
+[**Client**](Client.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
diff --git a/samples/client/petstore/javascript/docs/ApiResponse.md b/samples/client/petstore/javascript/docs/ApiResponse.md
new file mode 100644
index 0000000000..e60378fcbf
--- /dev/null
+++ b/samples/client/petstore/javascript/docs/ApiResponse.md
@@ -0,0 +1,10 @@
+# OpenApiPetstore.ApiResponse
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **Number** | | [optional]
+**type** | **String** | | [optional]
+**message** | **String** | | [optional]
+
+
diff --git a/samples/client/petstore/javascript/docs/ArrayOfArrayOfNumberOnly.md b/samples/client/petstore/javascript/docs/ArrayOfArrayOfNumberOnly.md
new file mode 100644
index 0000000000..7a1426ef81
--- /dev/null
+++ b/samples/client/petstore/javascript/docs/ArrayOfArrayOfNumberOnly.md
@@ -0,0 +1,8 @@
+# OpenApiPetstore.ArrayOfArrayOfNumberOnly
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**arrayArrayNumber** | **[[Number]]** | | [optional]
+
+
diff --git a/samples/client/petstore/javascript/docs/ArrayOfNumberOnly.md b/samples/client/petstore/javascript/docs/ArrayOfNumberOnly.md
new file mode 100644
index 0000000000..7cec2e71d4
--- /dev/null
+++ b/samples/client/petstore/javascript/docs/ArrayOfNumberOnly.md
@@ -0,0 +1,8 @@
+# OpenApiPetstore.ArrayOfNumberOnly
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**arrayNumber** | **[Number]** | | [optional]
+
+
diff --git a/samples/client/petstore/javascript/docs/ArrayTest.md b/samples/client/petstore/javascript/docs/ArrayTest.md
new file mode 100644
index 0000000000..5828f6ee75
--- /dev/null
+++ b/samples/client/petstore/javascript/docs/ArrayTest.md
@@ -0,0 +1,10 @@
+# OpenApiPetstore.ArrayTest
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**arrayOfString** | **[String]** | | [optional]
+**arrayArrayOfInteger** | **[[Number]]** | | [optional]
+**arrayArrayOfModel** | **[[ReadOnlyFirst]]** | | [optional]
+
+
diff --git a/samples/client/petstore/javascript/docs/Capitalization.md b/samples/client/petstore/javascript/docs/Capitalization.md
new file mode 100644
index 0000000000..abeff984c6
--- /dev/null
+++ b/samples/client/petstore/javascript/docs/Capitalization.md
@@ -0,0 +1,13 @@
+# OpenApiPetstore.Capitalization
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**smallCamel** | **String** | | [optional]
+**capitalCamel** | **String** | | [optional]
+**smallSnake** | **String** | | [optional]
+**capitalSnake** | **String** | | [optional]
+**sCAETHFlowPoints** | **String** | | [optional]
+**ATT_NAME** | **String** | Name of the pet | [optional]
+
+
diff --git a/samples/client/petstore/javascript/docs/Cat.md b/samples/client/petstore/javascript/docs/Cat.md
new file mode 100644
index 0000000000..6dd0f057c8
--- /dev/null
+++ b/samples/client/petstore/javascript/docs/Cat.md
@@ -0,0 +1,8 @@
+# OpenApiPetstore.Cat
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**declawed** | **Boolean** | | [optional]
+
+
diff --git a/samples/client/petstore/javascript/docs/Category.md b/samples/client/petstore/javascript/docs/Category.md
new file mode 100644
index 0000000000..e3f934442a
--- /dev/null
+++ b/samples/client/petstore/javascript/docs/Category.md
@@ -0,0 +1,9 @@
+# OpenApiPetstore.Category
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **Number** | | [optional]
+**name** | **String** | | [optional]
+
+
diff --git a/samples/client/petstore/javascript/docs/ClassModel.md b/samples/client/petstore/javascript/docs/ClassModel.md
new file mode 100644
index 0000000000..6fe9c501a5
--- /dev/null
+++ b/samples/client/petstore/javascript/docs/ClassModel.md
@@ -0,0 +1,8 @@
+# OpenApiPetstore.ClassModel
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**_class** | **String** | | [optional]
+
+
diff --git a/samples/client/petstore/javascript/docs/Client.md b/samples/client/petstore/javascript/docs/Client.md
new file mode 100644
index 0000000000..a6c7711e74
--- /dev/null
+++ b/samples/client/petstore/javascript/docs/Client.md
@@ -0,0 +1,8 @@
+# OpenApiPetstore.Client
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**client** | **String** | | [optional]
+
+
diff --git a/samples/client/petstore/javascript/docs/Dog.md b/samples/client/petstore/javascript/docs/Dog.md
new file mode 100644
index 0000000000..f35663407e
--- /dev/null
+++ b/samples/client/petstore/javascript/docs/Dog.md
@@ -0,0 +1,8 @@
+# OpenApiPetstore.Dog
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**breed** | **String** | | [optional]
+
+
diff --git a/samples/client/petstore/javascript/docs/EnumArrays.md b/samples/client/petstore/javascript/docs/EnumArrays.md
new file mode 100644
index 0000000000..5f624e5db4
--- /dev/null
+++ b/samples/client/petstore/javascript/docs/EnumArrays.md
@@ -0,0 +1,31 @@
+# OpenApiPetstore.EnumArrays
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**justSymbol** | **String** | | [optional]
+**arrayEnum** | **[String]** | | [optional]
+
+
+
+## Enum: JustSymbolEnum
+
+
+* `GREATER_THAN_OR_EQUAL_TO` (value: `">="`)
+
+* `DOLLAR` (value: `"$"`)
+
+
+
+
+
+## Enum: [ArrayEnumEnum]
+
+
+* `fish` (value: `"fish"`)
+
+* `crab` (value: `"crab"`)
+
+
+
+
diff --git a/samples/client/petstore/javascript/docs/EnumClass.md b/samples/client/petstore/javascript/docs/EnumClass.md
new file mode 100644
index 0000000000..cef9bb57a5
--- /dev/null
+++ b/samples/client/petstore/javascript/docs/EnumClass.md
@@ -0,0 +1,12 @@
+# OpenApiPetstore.EnumClass
+
+## Enum
+
+
+* `_abc` (value: `"_abc"`)
+
+* `-efg` (value: `"-efg"`)
+
+* `(xyz)` (value: `"(xyz)"`)
+
+
diff --git a/samples/client/petstore/javascript/docs/EnumTest.md b/samples/client/petstore/javascript/docs/EnumTest.md
new file mode 100644
index 0000000000..c9e7ce86fe
--- /dev/null
+++ b/samples/client/petstore/javascript/docs/EnumTest.md
@@ -0,0 +1,60 @@
+# OpenApiPetstore.EnumTest
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**enumString** | **String** | | [optional]
+**enumStringRequired** | **String** | |
+**enumInteger** | **Number** | | [optional]
+**enumNumber** | **Number** | | [optional]
+**outerEnum** | [**OuterEnum**](OuterEnum.md) | | [optional]
+
+
+
+## Enum: EnumStringEnum
+
+
+* `UPPER` (value: `"UPPER"`)
+
+* `lower` (value: `"lower"`)
+
+* `empty` (value: `""`)
+
+
+
+
+
+## Enum: EnumStringRequiredEnum
+
+
+* `UPPER` (value: `"UPPER"`)
+
+* `lower` (value: `"lower"`)
+
+* `empty` (value: `""`)
+
+
+
+
+
+## Enum: EnumIntegerEnum
+
+
+* `1` (value: `1`)
+
+* `-1` (value: `-1`)
+
+
+
+
+
+## Enum: EnumNumberEnum
+
+
+* `1.1` (value: `1.1`)
+
+* `-1.2` (value: `-1.2`)
+
+
+
+
diff --git a/samples/client/petstore/javascript/docs/FakeApi.md b/samples/client/petstore/javascript/docs/FakeApi.md
new file mode 100644
index 0000000000..e0aa348e90
--- /dev/null
+++ b/samples/client/petstore/javascript/docs/FakeApi.md
@@ -0,0 +1,504 @@
+# OpenApiPetstore.FakeApi
+
+All URIs are relative to *http://petstore.swagger.io:80/v2*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**fakeOuterBooleanSerialize**](FakeApi.md#fakeOuterBooleanSerialize) | **POST** /fake/outer/boolean |
+[**fakeOuterCompositeSerialize**](FakeApi.md#fakeOuterCompositeSerialize) | **POST** /fake/outer/composite |
+[**fakeOuterNumberSerialize**](FakeApi.md#fakeOuterNumberSerialize) | **POST** /fake/outer/number |
+[**fakeOuterStringSerialize**](FakeApi.md#fakeOuterStringSerialize) | **POST** /fake/outer/string |
+[**testBodyWithQueryParams**](FakeApi.md#testBodyWithQueryParams) | **PUT** /fake/body-with-query-params |
+[**testClientModel**](FakeApi.md#testClientModel) | **PATCH** /fake | To test \"client\" model
+[**testEndpointParameters**](FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
+[**testEnumParameters**](FakeApi.md#testEnumParameters) | **GET** /fake | To test enum parameters
+[**testInlineAdditionalProperties**](FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties
+[**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data
+
+
+
+# **fakeOuterBooleanSerialize**
+> Boolean fakeOuterBooleanSerialize(opts)
+
+
+
+Test serialization of outer boolean types
+
+### Example
+```javascript
+var OpenApiPetstore = require('open_api_petstore');
+
+var apiInstance = new OpenApiPetstore.FakeApi();
+var opts = {
+ 'body': true // Boolean | Input boolean as post body
+};
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully. Returned data: ' + data);
+ }
+};
+apiInstance.fakeOuterBooleanSerialize(opts, callback);
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | **Boolean**| Input boolean as post body | [optional]
+
+### Return type
+
+**Boolean**
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: */*
+
+
+# **fakeOuterCompositeSerialize**
+> OuterComposite fakeOuterCompositeSerialize(opts)
+
+
+
+Test serialization of object with outer number type
+
+### Example
+```javascript
+var OpenApiPetstore = require('open_api_petstore');
+
+var apiInstance = new OpenApiPetstore.FakeApi();
+var opts = {
+ 'outerComposite': new OpenApiPetstore.OuterComposite() // OuterComposite | Input composite as post body
+};
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully. Returned data: ' + data);
+ }
+};
+apiInstance.fakeOuterCompositeSerialize(opts, callback);
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **outerComposite** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional]
+
+### Return type
+
+[**OuterComposite**](OuterComposite.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: */*
+
+
+# **fakeOuterNumberSerialize**
+> Number fakeOuterNumberSerialize(opts)
+
+
+
+Test serialization of outer number types
+
+### Example
+```javascript
+var OpenApiPetstore = require('open_api_petstore');
+
+var apiInstance = new OpenApiPetstore.FakeApi();
+var opts = {
+ 'body': 3.4 // Number | Input number as post body
+};
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully. Returned data: ' + data);
+ }
+};
+apiInstance.fakeOuterNumberSerialize(opts, callback);
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | **Number**| Input number as post body | [optional]
+
+### Return type
+
+**Number**
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: */*
+
+
+# **fakeOuterStringSerialize**
+> String fakeOuterStringSerialize(opts)
+
+
+
+Test serialization of outer string types
+
+### Example
+```javascript
+var OpenApiPetstore = require('open_api_petstore');
+
+var apiInstance = new OpenApiPetstore.FakeApi();
+var opts = {
+ 'body': "body_example" // String | Input string as post body
+};
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully. Returned data: ' + data);
+ }
+};
+apiInstance.fakeOuterStringSerialize(opts, callback);
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | **String**| Input string as post body | [optional]
+
+### Return type
+
+**String**
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: */*
+
+
+# **testBodyWithQueryParams**
+> testBodyWithQueryParams(query, user)
+
+
+
+### Example
+```javascript
+var OpenApiPetstore = require('open_api_petstore');
+
+var apiInstance = new OpenApiPetstore.FakeApi();
+var query = "query_example"; // String |
+var user = new OpenApiPetstore.User(); // User |
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully.');
+ }
+};
+apiInstance.testBodyWithQueryParams(query, user, callback);
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **query** | **String**| |
+ **user** | [**User**](User.md)| |
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: Not defined
+
+
+# **testClientModel**
+> Client testClientModel(client)
+
+To test \"client\" model
+
+To test \"client\" model
+
+### Example
+```javascript
+var OpenApiPetstore = require('open_api_petstore');
+
+var apiInstance = new OpenApiPetstore.FakeApi();
+var client = new OpenApiPetstore.Client(); // Client | client model
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully. Returned data: ' + data);
+ }
+};
+apiInstance.testClientModel(client, callback);
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **client** | [**Client**](Client.md)| client model |
+
+### Return type
+
+[**Client**](Client.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+# **testEndpointParameters**
+> testEndpointParameters(_number, _double, patternWithoutDelimiter, _byte, opts)
+
+Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
+
+Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
+
+### Example
+```javascript
+var OpenApiPetstore = require('open_api_petstore');
+var defaultClient = OpenApiPetstore.ApiClient.instance;
+
+// Configure HTTP basic authorization: http_basic_test
+var http_basic_test = defaultClient.authentications['http_basic_test'];
+http_basic_test.username = 'YOUR USERNAME';
+http_basic_test.password = 'YOUR PASSWORD';
+
+var apiInstance = new OpenApiPetstore.FakeApi();
+var _number = 3.4; // Number | None
+var _double = 3.4; // Number | None
+var patternWithoutDelimiter = "patternWithoutDelimiter_example"; // String | None
+var _byte = null; // Blob | None
+var opts = {
+ 'integer': 56, // Number | None
+ 'int32': 56, // Number | None
+ 'int64': 789, // Number | None
+ '_float': 3.4, // Number | None
+ '_string': "_string_example", // String | None
+ 'binary': "/path/to/file", // File | None
+ '_date': new Date("2013-10-20"), // Date | None
+ 'dateTime': new Date("2013-10-20T19:20:30+01:00"), // Date | None
+ 'password': "password_example", // String | None
+ 'callback': "callback_example" // String | None
+};
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully.');
+ }
+};
+apiInstance.testEndpointParameters(_number, _double, patternWithoutDelimiter, _byte, opts, callback);
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **_number** | **Number**| None |
+ **_double** | **Number**| None |
+ **patternWithoutDelimiter** | **String**| None |
+ **_byte** | **Blob**| None |
+ **integer** | **Number**| None | [optional]
+ **int32** | **Number**| None | [optional]
+ **int64** | **Number**| None | [optional]
+ **_float** | **Number**| None | [optional]
+ **_string** | **String**| None | [optional]
+ **binary** | **File**| None | [optional]
+ **_date** | **Date**| None | [optional]
+ **dateTime** | **Date**| None | [optional]
+ **password** | **String**| None | [optional]
+ **callback** | **String**| None | [optional]
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+[http_basic_test](../README.md#http_basic_test)
+
+### HTTP request headers
+
+ - **Content-Type**: application/x-www-form-urlencoded
+ - **Accept**: Not defined
+
+
+# **testEnumParameters**
+> testEnumParameters(opts)
+
+To test enum parameters
+
+To test enum parameters
+
+### Example
+```javascript
+var OpenApiPetstore = require('open_api_petstore');
+
+var apiInstance = new OpenApiPetstore.FakeApi();
+var opts = {
+ 'enumHeaderStringArray': ["'$'"], // [String] | Header parameter enum test (string array)
+ 'enumHeaderString': "'-efg'", // String | Header parameter enum test (string)
+ 'enumQueryStringArray': ["'$'"], // [String] | Query parameter enum test (string array)
+ 'enumQueryString': "'-efg'", // String | Query parameter enum test (string)
+ 'enumQueryInteger': 56, // Number | Query parameter enum test (double)
+ 'enumQueryDouble': 3.4, // Number | Query parameter enum test (double)
+ 'enumFormStringArray': "'$'", // [String] | Form parameter enum test (string array)
+ 'enumFormString': "'-efg'" // String | Form parameter enum test (string)
+};
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully.');
+ }
+};
+apiInstance.testEnumParameters(opts, callback);
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **enumHeaderStringArray** | [**[String]**](String.md)| Header parameter enum test (string array) | [optional]
+ **enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to '-efg']
+ **enumQueryStringArray** | [**[String]**](String.md)| Query parameter enum test (string array) | [optional]
+ **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to '-efg']
+ **enumQueryInteger** | **Number**| Query parameter enum test (double) | [optional]
+ **enumQueryDouble** | **Number**| Query parameter enum test (double) | [optional]
+ **enumFormStringArray** | [**[String]**](String.md)| Form parameter enum test (string array) | [optional] [default to '$']
+ **enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to '-efg']
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: application/x-www-form-urlencoded
+ - **Accept**: Not defined
+
+
+# **testInlineAdditionalProperties**
+> testInlineAdditionalProperties(requestBody)
+
+test inline additionalProperties
+
+### Example
+```javascript
+var OpenApiPetstore = require('open_api_petstore');
+
+var apiInstance = new OpenApiPetstore.FakeApi();
+var requestBody = {key: "inner_example"}; // {String: String} | request body
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully.');
+ }
+};
+apiInstance.testInlineAdditionalProperties(requestBody, callback);
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **requestBody** | [**{String: String}**](String.md)| request body |
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: Not defined
+
+
+# **testJsonFormData**
+> testJsonFormData(param, param2)
+
+test json serialization of form data
+
+### Example
+```javascript
+var OpenApiPetstore = require('open_api_petstore');
+
+var apiInstance = new OpenApiPetstore.FakeApi();
+var param = "param_example"; // String | field1
+var param2 = "param2_example"; // String | field2
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully.');
+ }
+};
+apiInstance.testJsonFormData(param, param2, callback);
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **param** | **String**| field1 |
+ **param2** | **String**| field2 |
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: application/x-www-form-urlencoded
+ - **Accept**: Not defined
+
diff --git a/samples/client/petstore/javascript/docs/FakeClassnameTags123Api.md b/samples/client/petstore/javascript/docs/FakeClassnameTags123Api.md
new file mode 100644
index 0000000000..1d0a71149f
--- /dev/null
+++ b/samples/client/petstore/javascript/docs/FakeClassnameTags123Api.md
@@ -0,0 +1,58 @@
+# OpenApiPetstore.FakeClassnameTags123Api
+
+All URIs are relative to *http://petstore.swagger.io:80/v2*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**testClassname**](FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case
+
+
+
+# **testClassname**
+> Client testClassname(client)
+
+To test class name in snake case
+
+To test class name in snake case
+
+### Example
+```javascript
+var OpenApiPetstore = require('open_api_petstore');
+var defaultClient = OpenApiPetstore.ApiClient.instance;
+// Configure API key authorization: api_key_query
+var api_key_query = defaultClient.authentications['api_key_query'];
+api_key_query.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//api_key_query.apiKeyPrefix = 'Token';
+
+var apiInstance = new OpenApiPetstore.FakeClassnameTags123Api();
+var client = new OpenApiPetstore.Client(); // Client | client model
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully. Returned data: ' + data);
+ }
+};
+apiInstance.testClassname(client, callback);
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **client** | [**Client**](Client.md)| client model |
+
+### Return type
+
+[**Client**](Client.md)
+
+### Authorization
+
+[api_key_query](../README.md#api_key_query)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
diff --git a/samples/client/petstore/javascript/docs/FormatTest.md b/samples/client/petstore/javascript/docs/FormatTest.md
new file mode 100644
index 0000000000..0f4a840544
--- /dev/null
+++ b/samples/client/petstore/javascript/docs/FormatTest.md
@@ -0,0 +1,20 @@
+# OpenApiPetstore.FormatTest
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**integer** | **Number** | | [optional]
+**int32** | **Number** | | [optional]
+**int64** | **Number** | | [optional]
+**_number** | **Number** | |
+**_float** | **Number** | | [optional]
+**_double** | **Number** | | [optional]
+**_string** | **String** | | [optional]
+**_byte** | **Blob** | |
+**binary** | **File** | | [optional]
+**_date** | **Date** | |
+**dateTime** | **Date** | | [optional]
+**uuid** | **String** | | [optional]
+**password** | **String** | |
+
+
diff --git a/samples/client/petstore/javascript/docs/HasOnlyReadOnly.md b/samples/client/petstore/javascript/docs/HasOnlyReadOnly.md
new file mode 100644
index 0000000000..abc4ce6218
--- /dev/null
+++ b/samples/client/petstore/javascript/docs/HasOnlyReadOnly.md
@@ -0,0 +1,9 @@
+# OpenApiPetstore.HasOnlyReadOnly
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**bar** | **String** | | [optional]
+**foo** | **String** | | [optional]
+
+
diff --git a/samples/client/petstore/javascript/docs/List.md b/samples/client/petstore/javascript/docs/List.md
new file mode 100644
index 0000000000..3a9555e34e
--- /dev/null
+++ b/samples/client/petstore/javascript/docs/List.md
@@ -0,0 +1,8 @@
+# OpenApiPetstore.List
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**_123list** | **String** | | [optional]
+
+
diff --git a/samples/client/petstore/javascript/docs/MapTest.md b/samples/client/petstore/javascript/docs/MapTest.md
new file mode 100644
index 0000000000..4a128da00f
--- /dev/null
+++ b/samples/client/petstore/javascript/docs/MapTest.md
@@ -0,0 +1,20 @@
+# OpenApiPetstore.MapTest
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**mapMapOfString** | **{String: {String: String}}** | | [optional]
+**mapOfEnumString** | **{String: String}** | | [optional]
+
+
+
+## Enum: {String: String}
+
+
+* `UPPER` (value: `"UPPER"`)
+
+* `lower` (value: `"lower"`)
+
+
+
+
diff --git a/samples/client/petstore/javascript/docs/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/client/petstore/javascript/docs/MixedPropertiesAndAdditionalPropertiesClass.md
new file mode 100644
index 0000000000..051f771930
--- /dev/null
+++ b/samples/client/petstore/javascript/docs/MixedPropertiesAndAdditionalPropertiesClass.md
@@ -0,0 +1,10 @@
+# OpenApiPetstore.MixedPropertiesAndAdditionalPropertiesClass
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**uuid** | **String** | | [optional]
+**dateTime** | **Date** | | [optional]
+**map** | [**{String: Animal}**](Animal.md) | | [optional]
+
+
diff --git a/samples/client/petstore/javascript/docs/Model200Response.md b/samples/client/petstore/javascript/docs/Model200Response.md
new file mode 100644
index 0000000000..0a0d02cc32
--- /dev/null
+++ b/samples/client/petstore/javascript/docs/Model200Response.md
@@ -0,0 +1,9 @@
+# OpenApiPetstore.Model200Response
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | **Number** | | [optional]
+**_class** | **String** | | [optional]
+
+
diff --git a/samples/client/petstore/javascript/docs/ModelReturn.md b/samples/client/petstore/javascript/docs/ModelReturn.md
new file mode 100644
index 0000000000..9ce6e20387
--- /dev/null
+++ b/samples/client/petstore/javascript/docs/ModelReturn.md
@@ -0,0 +1,8 @@
+# OpenApiPetstore.ModelReturn
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**_return** | **Number** | | [optional]
+
+
diff --git a/samples/client/petstore/javascript/docs/Name.md b/samples/client/petstore/javascript/docs/Name.md
new file mode 100644
index 0000000000..8dfcc46036
--- /dev/null
+++ b/samples/client/petstore/javascript/docs/Name.md
@@ -0,0 +1,11 @@
+# OpenApiPetstore.Name
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | **Number** | |
+**snakeCase** | **Number** | | [optional]
+**property** | **String** | | [optional]
+**_123number** | **Number** | | [optional]
+
+
diff --git a/samples/client/petstore/javascript/docs/NumberOnly.md b/samples/client/petstore/javascript/docs/NumberOnly.md
new file mode 100644
index 0000000000..cf84674ed4
--- /dev/null
+++ b/samples/client/petstore/javascript/docs/NumberOnly.md
@@ -0,0 +1,8 @@
+# OpenApiPetstore.NumberOnly
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**justNumber** | **Number** | | [optional]
+
+
diff --git a/samples/client/petstore/javascript/docs/Order.md b/samples/client/petstore/javascript/docs/Order.md
new file mode 100644
index 0000000000..987992caa7
--- /dev/null
+++ b/samples/client/petstore/javascript/docs/Order.md
@@ -0,0 +1,26 @@
+# OpenApiPetstore.Order
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **Number** | | [optional]
+**petId** | **Number** | | [optional]
+**quantity** | **Number** | | [optional]
+**shipDate** | **Date** | | [optional]
+**status** | **String** | Order Status | [optional]
+**complete** | **Boolean** | | [optional] [default to false]
+
+
+
+## Enum: StatusEnum
+
+
+* `placed` (value: `"placed"`)
+
+* `approved` (value: `"approved"`)
+
+* `delivered` (value: `"delivered"`)
+
+
+
+
diff --git a/samples/client/petstore/javascript/docs/OuterComposite.md b/samples/client/petstore/javascript/docs/OuterComposite.md
new file mode 100644
index 0000000000..c49b32ff32
--- /dev/null
+++ b/samples/client/petstore/javascript/docs/OuterComposite.md
@@ -0,0 +1,10 @@
+# OpenApiPetstore.OuterComposite
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**myNumber** | **Number** | | [optional]
+**myString** | **String** | | [optional]
+**myBoolean** | **Boolean** | | [optional]
+
+
diff --git a/samples/client/petstore/javascript/docs/OuterEnum.md b/samples/client/petstore/javascript/docs/OuterEnum.md
new file mode 100644
index 0000000000..445d3f4074
--- /dev/null
+++ b/samples/client/petstore/javascript/docs/OuterEnum.md
@@ -0,0 +1,12 @@
+# OpenApiPetstore.OuterEnum
+
+## Enum
+
+
+* `placed` (value: `"placed"`)
+
+* `approved` (value: `"approved"`)
+
+* `delivered` (value: `"delivered"`)
+
+
diff --git a/samples/client/petstore/javascript/docs/Pet.md b/samples/client/petstore/javascript/docs/Pet.md
new file mode 100644
index 0000000000..e91ae688aa
--- /dev/null
+++ b/samples/client/petstore/javascript/docs/Pet.md
@@ -0,0 +1,26 @@
+# OpenApiPetstore.Pet
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **Number** | | [optional]
+**category** | [**Category**](Category.md) | | [optional]
+**name** | **String** | |
+**photoUrls** | **[String]** | |
+**tags** | [**[Tag]**](Tag.md) | | [optional]
+**status** | **String** | pet status in the store | [optional]
+
+
+
+## Enum: StatusEnum
+
+
+* `available` (value: `"available"`)
+
+* `pending` (value: `"pending"`)
+
+* `sold` (value: `"sold"`)
+
+
+
+
diff --git a/samples/client/petstore/javascript/docs/PetApi.md b/samples/client/petstore/javascript/docs/PetApi.md
new file mode 100644
index 0000000000..fbcca8372c
--- /dev/null
+++ b/samples/client/petstore/javascript/docs/PetApi.md
@@ -0,0 +1,400 @@
+# OpenApiPetstore.PetApi
+
+All URIs are relative to *http://petstore.swagger.io:80/v2*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**addPet**](PetApi.md#addPet) | **POST** /pet | Add a new pet to the store
+[**deletePet**](PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet
+[**findPetsByStatus**](PetApi.md#findPetsByStatus) | **GET** /pet/findByStatus | Finds Pets by status
+[**findPetsByTags**](PetApi.md#findPetsByTags) | **GET** /pet/findByTags | Finds Pets by tags
+[**getPetById**](PetApi.md#getPetById) | **GET** /pet/{petId} | Find pet by ID
+[**updatePet**](PetApi.md#updatePet) | **PUT** /pet | Update an existing pet
+[**updatePetWithForm**](PetApi.md#updatePetWithForm) | **POST** /pet/{petId} | Updates a pet in the store with form data
+[**uploadFile**](PetApi.md#uploadFile) | **POST** /pet/{petId}/uploadImage | uploads an image
+
+
+
+# **addPet**
+> addPet(pet)
+
+Add a new pet to the store
+
+### Example
+```javascript
+var OpenApiPetstore = require('open_api_petstore');
+var defaultClient = OpenApiPetstore.ApiClient.instance;
+// Configure OAuth2 access token for authorization: petstore_auth
+var petstore_auth = defaultClient.authentications['petstore_auth'];
+petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
+
+var apiInstance = new OpenApiPetstore.PetApi();
+var pet = new OpenApiPetstore.Pet(); // Pet | Pet object that needs to be added to the store
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully.');
+ }
+};
+apiInstance.addPet(pet, callback);
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+[petstore_auth](../README.md#petstore_auth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json, application/xml
+ - **Accept**: Not defined
+
+
+# **deletePet**
+> deletePet(petId, opts)
+
+Deletes a pet
+
+### Example
+```javascript
+var OpenApiPetstore = require('open_api_petstore');
+var defaultClient = OpenApiPetstore.ApiClient.instance;
+// Configure OAuth2 access token for authorization: petstore_auth
+var petstore_auth = defaultClient.authentications['petstore_auth'];
+petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
+
+var apiInstance = new OpenApiPetstore.PetApi();
+var petId = 789; // Number | Pet id to delete
+var opts = {
+ 'apiKey': "apiKey_example" // String |
+};
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully.');
+ }
+};
+apiInstance.deletePet(petId, opts, callback);
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **petId** | **Number**| Pet id to delete |
+ **apiKey** | **String**| | [optional]
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+[petstore_auth](../README.md#petstore_auth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: Not defined
+
+
+# **findPetsByStatus**
+> [Pet] findPetsByStatus(status)
+
+Finds Pets by status
+
+Multiple status values can be provided with comma separated strings
+
+### Example
+```javascript
+var OpenApiPetstore = require('open_api_petstore');
+var defaultClient = OpenApiPetstore.ApiClient.instance;
+// Configure OAuth2 access token for authorization: petstore_auth
+var petstore_auth = defaultClient.authentications['petstore_auth'];
+petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
+
+var apiInstance = new OpenApiPetstore.PetApi();
+var status = ["'available'"]; // [String] | Status values that need to be considered for filter
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully. Returned data: ' + data);
+ }
+};
+apiInstance.findPetsByStatus(status, callback);
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **status** | [**[String]**](String.md)| Status values that need to be considered for filter |
+
+### Return type
+
+[**[Pet]**](Pet.md)
+
+### Authorization
+
+[petstore_auth](../README.md#petstore_auth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/xml, application/json
+
+
+# **findPetsByTags**
+> [Pet] findPetsByTags(tags)
+
+Finds Pets by tags
+
+Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
+
+### Example
+```javascript
+var OpenApiPetstore = require('open_api_petstore');
+var defaultClient = OpenApiPetstore.ApiClient.instance;
+// Configure OAuth2 access token for authorization: petstore_auth
+var petstore_auth = defaultClient.authentications['petstore_auth'];
+petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
+
+var apiInstance = new OpenApiPetstore.PetApi();
+var tags = ["inner_example"]; // [String] | Tags to filter by
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully. Returned data: ' + data);
+ }
+};
+apiInstance.findPetsByTags(tags, callback);
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **tags** | [**[String]**](String.md)| Tags to filter by |
+
+### Return type
+
+[**[Pet]**](Pet.md)
+
+### Authorization
+
+[petstore_auth](../README.md#petstore_auth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/xml, application/json
+
+
+# **getPetById**
+> Pet getPetById(petId)
+
+Find pet by ID
+
+Returns a single pet
+
+### Example
+```javascript
+var OpenApiPetstore = require('open_api_petstore');
+var defaultClient = OpenApiPetstore.ApiClient.instance;
+// Configure API key authorization: api_key
+var api_key = defaultClient.authentications['api_key'];
+api_key.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//api_key.apiKeyPrefix = 'Token';
+
+var apiInstance = new OpenApiPetstore.PetApi();
+var petId = 789; // Number | ID of pet to return
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully. Returned data: ' + data);
+ }
+};
+apiInstance.getPetById(petId, callback);
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **petId** | **Number**| ID of pet to return |
+
+### Return type
+
+[**Pet**](Pet.md)
+
+### Authorization
+
+[api_key](../README.md#api_key)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/xml, application/json
+
+
+# **updatePet**
+> updatePet(pet)
+
+Update an existing pet
+
+### Example
+```javascript
+var OpenApiPetstore = require('open_api_petstore');
+var defaultClient = OpenApiPetstore.ApiClient.instance;
+// Configure OAuth2 access token for authorization: petstore_auth
+var petstore_auth = defaultClient.authentications['petstore_auth'];
+petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
+
+var apiInstance = new OpenApiPetstore.PetApi();
+var pet = new OpenApiPetstore.Pet(); // Pet | Pet object that needs to be added to the store
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully.');
+ }
+};
+apiInstance.updatePet(pet, callback);
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+[petstore_auth](../README.md#petstore_auth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json, application/xml
+ - **Accept**: Not defined
+
+
+# **updatePetWithForm**
+> updatePetWithForm(petId, opts)
+
+Updates a pet in the store with form data
+
+### Example
+```javascript
+var OpenApiPetstore = require('open_api_petstore');
+var defaultClient = OpenApiPetstore.ApiClient.instance;
+// Configure OAuth2 access token for authorization: petstore_auth
+var petstore_auth = defaultClient.authentications['petstore_auth'];
+petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
+
+var apiInstance = new OpenApiPetstore.PetApi();
+var petId = 789; // Number | ID of pet that needs to be updated
+var opts = {
+ 'name': "name_example", // String | Updated name of the pet
+ 'status': "status_example" // String | Updated status of the pet
+};
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully.');
+ }
+};
+apiInstance.updatePetWithForm(petId, opts, callback);
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **petId** | **Number**| ID of pet that needs to be updated |
+ **name** | **String**| Updated name of the pet | [optional]
+ **status** | **String**| Updated status of the pet | [optional]
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+[petstore_auth](../README.md#petstore_auth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/x-www-form-urlencoded
+ - **Accept**: Not defined
+
+
+# **uploadFile**
+> ApiResponse uploadFile(petId, opts)
+
+uploads an image
+
+### Example
+```javascript
+var OpenApiPetstore = require('open_api_petstore');
+var defaultClient = OpenApiPetstore.ApiClient.instance;
+// Configure OAuth2 access token for authorization: petstore_auth
+var petstore_auth = defaultClient.authentications['petstore_auth'];
+petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
+
+var apiInstance = new OpenApiPetstore.PetApi();
+var petId = 789; // Number | ID of pet to update
+var opts = {
+ 'additionalMetadata': "additionalMetadata_example", // String | Additional data to pass to server
+ 'file': "/path/to/file" // File | file to upload
+};
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully. Returned data: ' + data);
+ }
+};
+apiInstance.uploadFile(petId, opts, callback);
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **petId** | **Number**| ID of pet to update |
+ **additionalMetadata** | **String**| Additional data to pass to server | [optional]
+ **file** | **File**| file to upload | [optional]
+
+### Return type
+
+[**ApiResponse**](ApiResponse.md)
+
+### Authorization
+
+[petstore_auth](../README.md#petstore_auth)
+
+### HTTP request headers
+
+ - **Content-Type**: multipart/form-data
+ - **Accept**: application/json
+
diff --git a/samples/client/petstore/javascript/docs/ReadOnlyFirst.md b/samples/client/petstore/javascript/docs/ReadOnlyFirst.md
new file mode 100644
index 0000000000..671280fba3
--- /dev/null
+++ b/samples/client/petstore/javascript/docs/ReadOnlyFirst.md
@@ -0,0 +1,9 @@
+# OpenApiPetstore.ReadOnlyFirst
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**bar** | **String** | | [optional]
+**baz** | **String** | | [optional]
+
+
diff --git a/samples/client/petstore/javascript/docs/SpecialModelName.md b/samples/client/petstore/javascript/docs/SpecialModelName.md
new file mode 100644
index 0000000000..6039f53de3
--- /dev/null
+++ b/samples/client/petstore/javascript/docs/SpecialModelName.md
@@ -0,0 +1,8 @@
+# OpenApiPetstore.SpecialModelName
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**specialPropertyName** | **Number** | | [optional]
+
+
diff --git a/samples/client/petstore/javascript/docs/StoreApi.md b/samples/client/petstore/javascript/docs/StoreApi.md
new file mode 100644
index 0000000000..6f1e0816f0
--- /dev/null
+++ b/samples/client/petstore/javascript/docs/StoreApi.md
@@ -0,0 +1,184 @@
+# OpenApiPetstore.StoreApi
+
+All URIs are relative to *http://petstore.swagger.io:80/v2*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**deleteOrder**](StoreApi.md#deleteOrder) | **DELETE** /store/order/{order_id} | Delete purchase order by ID
+[**getInventory**](StoreApi.md#getInventory) | **GET** /store/inventory | Returns pet inventories by status
+[**getOrderById**](StoreApi.md#getOrderById) | **GET** /store/order/{order_id} | Find purchase order by ID
+[**placeOrder**](StoreApi.md#placeOrder) | **POST** /store/order | Place an order for a pet
+
+
+
+# **deleteOrder**
+> deleteOrder(orderId)
+
+Delete purchase order by ID
+
+For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
+
+### Example
+```javascript
+var OpenApiPetstore = require('open_api_petstore');
+
+var apiInstance = new OpenApiPetstore.StoreApi();
+var orderId = "orderId_example"; // String | ID of the order that needs to be deleted
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully.');
+ }
+};
+apiInstance.deleteOrder(orderId, callback);
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **orderId** | **String**| ID of the order that needs to be deleted |
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: Not defined
+
+
+# **getInventory**
+> {String: Number} getInventory()
+
+Returns pet inventories by status
+
+Returns a map of status codes to quantities
+
+### Example
+```javascript
+var OpenApiPetstore = require('open_api_petstore');
+var defaultClient = OpenApiPetstore.ApiClient.instance;
+// Configure API key authorization: api_key
+var api_key = defaultClient.authentications['api_key'];
+api_key.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//api_key.apiKeyPrefix = 'Token';
+
+var apiInstance = new OpenApiPetstore.StoreApi();
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully. Returned data: ' + data);
+ }
+};
+apiInstance.getInventory(callback);
+```
+
+### Parameters
+This endpoint does not need any parameter.
+
+### Return type
+
+**{String: Number}**
+
+### Authorization
+
+[api_key](../README.md#api_key)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+# **getOrderById**
+> Order getOrderById(orderId)
+
+Find purchase order by ID
+
+For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
+
+### Example
+```javascript
+var OpenApiPetstore = require('open_api_petstore');
+
+var apiInstance = new OpenApiPetstore.StoreApi();
+var orderId = 789; // Number | ID of pet that needs to be fetched
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully. Returned data: ' + data);
+ }
+};
+apiInstance.getOrderById(orderId, callback);
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **orderId** | **Number**| ID of pet that needs to be fetched |
+
+### Return type
+
+[**Order**](Order.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/xml, application/json
+
+
+# **placeOrder**
+> Order placeOrder(order)
+
+Place an order for a pet
+
+### Example
+```javascript
+var OpenApiPetstore = require('open_api_petstore');
+
+var apiInstance = new OpenApiPetstore.StoreApi();
+var order = new OpenApiPetstore.Order(); // Order | order placed for purchasing the pet
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully. Returned data: ' + data);
+ }
+};
+apiInstance.placeOrder(order, callback);
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **order** | [**Order**](Order.md)| order placed for purchasing the pet |
+
+### Return type
+
+[**Order**](Order.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/xml, application/json
+
diff --git a/samples/client/petstore/javascript/docs/Tag.md b/samples/client/petstore/javascript/docs/Tag.md
new file mode 100644
index 0000000000..a53941e80e
--- /dev/null
+++ b/samples/client/petstore/javascript/docs/Tag.md
@@ -0,0 +1,9 @@
+# OpenApiPetstore.Tag
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **Number** | | [optional]
+**name** | **String** | | [optional]
+
+
diff --git a/samples/client/petstore/javascript/docs/User.md b/samples/client/petstore/javascript/docs/User.md
new file mode 100644
index 0000000000..2e86dd378b
--- /dev/null
+++ b/samples/client/petstore/javascript/docs/User.md
@@ -0,0 +1,15 @@
+# OpenApiPetstore.User
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **Number** | | [optional]
+**username** | **String** | | [optional]
+**firstName** | **String** | | [optional]
+**lastName** | **String** | | [optional]
+**email** | **String** | | [optional]
+**password** | **String** | | [optional]
+**phone** | **String** | | [optional]
+**userStatus** | **Number** | User Status | [optional]
+
+
diff --git a/samples/client/petstore/javascript/docs/UserApi.md b/samples/client/petstore/javascript/docs/UserApi.md
new file mode 100644
index 0000000000..d75bf078ea
--- /dev/null
+++ b/samples/client/petstore/javascript/docs/UserApi.md
@@ -0,0 +1,350 @@
+# OpenApiPetstore.UserApi
+
+All URIs are relative to *http://petstore.swagger.io:80/v2*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**createUser**](UserApi.md#createUser) | **POST** /user | Create user
+[**createUsersWithArrayInput**](UserApi.md#createUsersWithArrayInput) | **POST** /user/createWithArray | Creates list of users with given input array
+[**createUsersWithListInput**](UserApi.md#createUsersWithListInput) | **POST** /user/createWithList | Creates list of users with given input array
+[**deleteUser**](UserApi.md#deleteUser) | **DELETE** /user/{username} | Delete user
+[**getUserByName**](UserApi.md#getUserByName) | **GET** /user/{username} | Get user by user name
+[**loginUser**](UserApi.md#loginUser) | **GET** /user/login | Logs user into the system
+[**logoutUser**](UserApi.md#logoutUser) | **GET** /user/logout | Logs out current logged in user session
+[**updateUser**](UserApi.md#updateUser) | **PUT** /user/{username} | Updated user
+
+
+
+# **createUser**
+> createUser(user)
+
+Create user
+
+This can only be done by the logged in user.
+
+### Example
+```javascript
+var OpenApiPetstore = require('open_api_petstore');
+
+var apiInstance = new OpenApiPetstore.UserApi();
+var user = new OpenApiPetstore.User(); // User | Created user object
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully.');
+ }
+};
+apiInstance.createUser(user, callback);
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **user** | [**User**](User.md)| Created user object |
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: Not defined
+
+
+# **createUsersWithArrayInput**
+> createUsersWithArrayInput(user)
+
+Creates list of users with given input array
+
+### Example
+```javascript
+var OpenApiPetstore = require('open_api_petstore');
+
+var apiInstance = new OpenApiPetstore.UserApi();
+var user = [new OpenApiPetstore.User()]; // [User] | List of user object
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully.');
+ }
+};
+apiInstance.createUsersWithArrayInput(user, callback);
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **user** | [**[User]**](Array.md)| List of user object |
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: Not defined
+
+
+# **createUsersWithListInput**
+> createUsersWithListInput(user)
+
+Creates list of users with given input array
+
+### Example
+```javascript
+var OpenApiPetstore = require('open_api_petstore');
+
+var apiInstance = new OpenApiPetstore.UserApi();
+var user = [new OpenApiPetstore.User()]; // [User] | List of user object
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully.');
+ }
+};
+apiInstance.createUsersWithListInput(user, callback);
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **user** | [**[User]**](Array.md)| List of user object |
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: Not defined
+
+
+# **deleteUser**
+> deleteUser(username)
+
+Delete user
+
+This can only be done by the logged in user.
+
+### Example
+```javascript
+var OpenApiPetstore = require('open_api_petstore');
+
+var apiInstance = new OpenApiPetstore.UserApi();
+var username = "username_example"; // String | The name that needs to be deleted
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully.');
+ }
+};
+apiInstance.deleteUser(username, callback);
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **username** | **String**| The name that needs to be deleted |
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: Not defined
+
+
+# **getUserByName**
+> User getUserByName(username)
+
+Get user by user name
+
+### Example
+```javascript
+var OpenApiPetstore = require('open_api_petstore');
+
+var apiInstance = new OpenApiPetstore.UserApi();
+var username = "username_example"; // String | The name that needs to be fetched. Use user1 for testing.
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully. Returned data: ' + data);
+ }
+};
+apiInstance.getUserByName(username, callback);
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **username** | **String**| The name that needs to be fetched. Use user1 for testing. |
+
+### Return type
+
+[**User**](User.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/xml, application/json
+
+
+# **loginUser**
+> String loginUser(username, password)
+
+Logs user into the system
+
+### Example
+```javascript
+var OpenApiPetstore = require('open_api_petstore');
+
+var apiInstance = new OpenApiPetstore.UserApi();
+var username = "username_example"; // String | The user name for login
+var password = "password_example"; // String | The password for login in clear text
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully. Returned data: ' + data);
+ }
+};
+apiInstance.loginUser(username, password, callback);
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **username** | **String**| The user name for login |
+ **password** | **String**| The password for login in clear text |
+
+### Return type
+
+**String**
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/xml, application/json
+
+
+# **logoutUser**
+> logoutUser()
+
+Logs out current logged in user session
+
+### Example
+```javascript
+var OpenApiPetstore = require('open_api_petstore');
+
+var apiInstance = new OpenApiPetstore.UserApi();
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully.');
+ }
+};
+apiInstance.logoutUser(callback);
+```
+
+### Parameters
+This endpoint does not need any parameter.
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: Not defined
+
+
+# **updateUser**
+> updateUser(username, user)
+
+Updated user
+
+This can only be done by the logged in user.
+
+### Example
+```javascript
+var OpenApiPetstore = require('open_api_petstore');
+
+var apiInstance = new OpenApiPetstore.UserApi();
+var username = "username_example"; // String | name that need to be deleted
+var user = new OpenApiPetstore.User(); // User | Updated user object
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully.');
+ }
+};
+apiInstance.updateUser(username, user, callback);
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **username** | **String**| name that need to be deleted |
+ **user** | [**User**](User.md)| Updated user object |
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: Not defined
+
diff --git a/samples/client/petstore/javascript/src/ApiClient.js b/samples/client/petstore/javascript/src/ApiClient.js
index b5ba7388a9..f43711962b 100644
--- a/samples/client/petstore/javascript/src/ApiClient.js
+++ b/samples/client/petstore/javascript/src/ApiClient.js
@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
- * OpenAPI Generator version: 3.0.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
diff --git a/samples/client/petstore/javascript/src/api/AnotherFakeApi.js b/samples/client/petstore/javascript/src/api/AnotherFakeApi.js
index 87716e7982..73b690b0d5 100644
--- a/samples/client/petstore/javascript/src/api/AnotherFakeApi.js
+++ b/samples/client/petstore/javascript/src/api/AnotherFakeApi.js
@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
- * OpenAPI Generator version: 3.0.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
diff --git a/samples/client/petstore/javascript/src/api/FakeApi.js b/samples/client/petstore/javascript/src/api/FakeApi.js
index 0654ab3178..e36feba7bd 100644
--- a/samples/client/petstore/javascript/src/api/FakeApi.js
+++ b/samples/client/petstore/javascript/src/api/FakeApi.js
@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
- * OpenAPI Generator version: 3.0.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
diff --git a/samples/client/petstore/javascript/src/api/FakeClassnameTags123Api.js b/samples/client/petstore/javascript/src/api/FakeClassnameTags123Api.js
index a266529623..469890d60b 100644
--- a/samples/client/petstore/javascript/src/api/FakeClassnameTags123Api.js
+++ b/samples/client/petstore/javascript/src/api/FakeClassnameTags123Api.js
@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
- * OpenAPI Generator version: 3.0.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
diff --git a/samples/client/petstore/javascript/src/api/PetApi.js b/samples/client/petstore/javascript/src/api/PetApi.js
index 4db2caf67f..840cb2fa67 100644
--- a/samples/client/petstore/javascript/src/api/PetApi.js
+++ b/samples/client/petstore/javascript/src/api/PetApi.js
@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
- * OpenAPI Generator version: 3.0.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
diff --git a/samples/client/petstore/javascript/src/api/StoreApi.js b/samples/client/petstore/javascript/src/api/StoreApi.js
index 2632b4ff2f..f09beb807d 100644
--- a/samples/client/petstore/javascript/src/api/StoreApi.js
+++ b/samples/client/petstore/javascript/src/api/StoreApi.js
@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
- * OpenAPI Generator version: 3.0.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
diff --git a/samples/client/petstore/javascript/src/api/UserApi.js b/samples/client/petstore/javascript/src/api/UserApi.js
index ce94461102..319572cf2a 100644
--- a/samples/client/petstore/javascript/src/api/UserApi.js
+++ b/samples/client/petstore/javascript/src/api/UserApi.js
@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
- * OpenAPI Generator version: 3.0.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
diff --git a/samples/client/petstore/javascript/src/index.js b/samples/client/petstore/javascript/src/index.js
index dabafded7e..25685095fb 100644
--- a/samples/client/petstore/javascript/src/index.js
+++ b/samples/client/petstore/javascript/src/index.js
@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
- * OpenAPI Generator version: 3.0.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
diff --git a/samples/client/petstore/javascript/src/model/AdditionalPropertiesClass.js b/samples/client/petstore/javascript/src/model/AdditionalPropertiesClass.js
index cd548267e9..08572d9008 100644
--- a/samples/client/petstore/javascript/src/model/AdditionalPropertiesClass.js
+++ b/samples/client/petstore/javascript/src/model/AdditionalPropertiesClass.js
@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
- * OpenAPI Generator version: 3.0.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
diff --git a/samples/client/petstore/javascript/src/model/Animal.js b/samples/client/petstore/javascript/src/model/Animal.js
index 68534d978c..29376d771b 100644
--- a/samples/client/petstore/javascript/src/model/Animal.js
+++ b/samples/client/petstore/javascript/src/model/Animal.js
@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
- * OpenAPI Generator version: 3.0.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
diff --git a/samples/client/petstore/javascript/src/model/AnimalFarm.js b/samples/client/petstore/javascript/src/model/AnimalFarm.js
index 8129a6e8f6..e1a4797eec 100644
--- a/samples/client/petstore/javascript/src/model/AnimalFarm.js
+++ b/samples/client/petstore/javascript/src/model/AnimalFarm.js
@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
- * OpenAPI Generator version: 3.0.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
diff --git a/samples/client/petstore/javascript/src/model/ApiResponse.js b/samples/client/petstore/javascript/src/model/ApiResponse.js
index ece36148c2..5c11241818 100644
--- a/samples/client/petstore/javascript/src/model/ApiResponse.js
+++ b/samples/client/petstore/javascript/src/model/ApiResponse.js
@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
- * OpenAPI Generator version: 3.0.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
diff --git a/samples/client/petstore/javascript/src/model/ArrayOfArrayOfNumberOnly.js b/samples/client/petstore/javascript/src/model/ArrayOfArrayOfNumberOnly.js
index a4b18f5b2a..024c26469d 100644
--- a/samples/client/petstore/javascript/src/model/ArrayOfArrayOfNumberOnly.js
+++ b/samples/client/petstore/javascript/src/model/ArrayOfArrayOfNumberOnly.js
@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
- * OpenAPI Generator version: 3.0.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
diff --git a/samples/client/petstore/javascript/src/model/ArrayOfNumberOnly.js b/samples/client/petstore/javascript/src/model/ArrayOfNumberOnly.js
index ff02ae19d0..ca79a7c2a6 100644
--- a/samples/client/petstore/javascript/src/model/ArrayOfNumberOnly.js
+++ b/samples/client/petstore/javascript/src/model/ArrayOfNumberOnly.js
@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
- * OpenAPI Generator version: 3.0.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
diff --git a/samples/client/petstore/javascript/src/model/ArrayTest.js b/samples/client/petstore/javascript/src/model/ArrayTest.js
index 65a075c34e..01b97a1b58 100644
--- a/samples/client/petstore/javascript/src/model/ArrayTest.js
+++ b/samples/client/petstore/javascript/src/model/ArrayTest.js
@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
- * OpenAPI Generator version: 3.0.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
diff --git a/samples/client/petstore/javascript/src/model/Capitalization.js b/samples/client/petstore/javascript/src/model/Capitalization.js
index a0a7c0251d..05934fb253 100644
--- a/samples/client/petstore/javascript/src/model/Capitalization.js
+++ b/samples/client/petstore/javascript/src/model/Capitalization.js
@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
- * OpenAPI Generator version: 3.0.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
diff --git a/samples/client/petstore/javascript/src/model/Cat.js b/samples/client/petstore/javascript/src/model/Cat.js
index 624a8fbcc4..10b787fed4 100644
--- a/samples/client/petstore/javascript/src/model/Cat.js
+++ b/samples/client/petstore/javascript/src/model/Cat.js
@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
- * OpenAPI Generator version: 3.0.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
diff --git a/samples/client/petstore/javascript/src/model/Category.js b/samples/client/petstore/javascript/src/model/Category.js
index 6754b1ff38..c289c6b8e5 100644
--- a/samples/client/petstore/javascript/src/model/Category.js
+++ b/samples/client/petstore/javascript/src/model/Category.js
@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
- * OpenAPI Generator version: 3.0.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
diff --git a/samples/client/petstore/javascript/src/model/ClassModel.js b/samples/client/petstore/javascript/src/model/ClassModel.js
index 67d65de1bf..6edd8fbadd 100644
--- a/samples/client/petstore/javascript/src/model/ClassModel.js
+++ b/samples/client/petstore/javascript/src/model/ClassModel.js
@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
- * OpenAPI Generator version: 3.0.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
diff --git a/samples/client/petstore/javascript/src/model/Client.js b/samples/client/petstore/javascript/src/model/Client.js
index f02784e56e..e563bcf7ea 100644
--- a/samples/client/petstore/javascript/src/model/Client.js
+++ b/samples/client/petstore/javascript/src/model/Client.js
@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
- * OpenAPI Generator version: 3.0.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
diff --git a/samples/client/petstore/javascript/src/model/Dog.js b/samples/client/petstore/javascript/src/model/Dog.js
index e4772e1ea8..c308f3dc9f 100644
--- a/samples/client/petstore/javascript/src/model/Dog.js
+++ b/samples/client/petstore/javascript/src/model/Dog.js
@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
- * OpenAPI Generator version: 3.0.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
diff --git a/samples/client/petstore/javascript/src/model/EnumArrays.js b/samples/client/petstore/javascript/src/model/EnumArrays.js
index b6eaef5dd2..07d52b119d 100644
--- a/samples/client/petstore/javascript/src/model/EnumArrays.js
+++ b/samples/client/petstore/javascript/src/model/EnumArrays.js
@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
- * OpenAPI Generator version: 3.0.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
diff --git a/samples/client/petstore/javascript/src/model/EnumClass.js b/samples/client/petstore/javascript/src/model/EnumClass.js
index 7a454e5bf9..d4a9f39f56 100644
--- a/samples/client/petstore/javascript/src/model/EnumClass.js
+++ b/samples/client/petstore/javascript/src/model/EnumClass.js
@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
- * OpenAPI Generator version: 3.0.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
diff --git a/samples/client/petstore/javascript/src/model/EnumTest.js b/samples/client/petstore/javascript/src/model/EnumTest.js
index a1fa0b7514..4dfc675332 100644
--- a/samples/client/petstore/javascript/src/model/EnumTest.js
+++ b/samples/client/petstore/javascript/src/model/EnumTest.js
@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
- * OpenAPI Generator version: 3.0.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
diff --git a/samples/client/petstore/javascript/src/model/FormatTest.js b/samples/client/petstore/javascript/src/model/FormatTest.js
index 458b81001d..6c5986d489 100644
--- a/samples/client/petstore/javascript/src/model/FormatTest.js
+++ b/samples/client/petstore/javascript/src/model/FormatTest.js
@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
- * OpenAPI Generator version: 3.0.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
diff --git a/samples/client/petstore/javascript/src/model/HasOnlyReadOnly.js b/samples/client/petstore/javascript/src/model/HasOnlyReadOnly.js
index 7efb6d62c1..484fd0c999 100644
--- a/samples/client/petstore/javascript/src/model/HasOnlyReadOnly.js
+++ b/samples/client/petstore/javascript/src/model/HasOnlyReadOnly.js
@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
- * OpenAPI Generator version: 3.0.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
diff --git a/samples/client/petstore/javascript/src/model/List.js b/samples/client/petstore/javascript/src/model/List.js
index ceeaf6e437..ab3c2e34e3 100644
--- a/samples/client/petstore/javascript/src/model/List.js
+++ b/samples/client/petstore/javascript/src/model/List.js
@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
- * OpenAPI Generator version: 3.0.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
diff --git a/samples/client/petstore/javascript/src/model/MapTest.js b/samples/client/petstore/javascript/src/model/MapTest.js
index c0cebc6d01..adf82a358c 100644
--- a/samples/client/petstore/javascript/src/model/MapTest.js
+++ b/samples/client/petstore/javascript/src/model/MapTest.js
@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
- * OpenAPI Generator version: 3.0.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
diff --git a/samples/client/petstore/javascript/src/model/MixedPropertiesAndAdditionalPropertiesClass.js b/samples/client/petstore/javascript/src/model/MixedPropertiesAndAdditionalPropertiesClass.js
index db59e1155b..62c7a2f59e 100644
--- a/samples/client/petstore/javascript/src/model/MixedPropertiesAndAdditionalPropertiesClass.js
+++ b/samples/client/petstore/javascript/src/model/MixedPropertiesAndAdditionalPropertiesClass.js
@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
- * OpenAPI Generator version: 3.0.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
diff --git a/samples/client/petstore/javascript/src/model/Model200Response.js b/samples/client/petstore/javascript/src/model/Model200Response.js
index 46bd28aab8..84131169fb 100644
--- a/samples/client/petstore/javascript/src/model/Model200Response.js
+++ b/samples/client/petstore/javascript/src/model/Model200Response.js
@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
- * OpenAPI Generator version: 3.0.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
diff --git a/samples/client/petstore/javascript/src/model/ModelReturn.js b/samples/client/petstore/javascript/src/model/ModelReturn.js
index 3fb41de6d8..87484d2ee2 100644
--- a/samples/client/petstore/javascript/src/model/ModelReturn.js
+++ b/samples/client/petstore/javascript/src/model/ModelReturn.js
@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
- * OpenAPI Generator version: 3.0.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
diff --git a/samples/client/petstore/javascript/src/model/Name.js b/samples/client/petstore/javascript/src/model/Name.js
index e091e1974f..8c851c4cec 100644
--- a/samples/client/petstore/javascript/src/model/Name.js
+++ b/samples/client/petstore/javascript/src/model/Name.js
@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
- * OpenAPI Generator version: 3.0.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
diff --git a/samples/client/petstore/javascript/src/model/NumberOnly.js b/samples/client/petstore/javascript/src/model/NumberOnly.js
index eb056e86ee..389ad08e8c 100644
--- a/samples/client/petstore/javascript/src/model/NumberOnly.js
+++ b/samples/client/petstore/javascript/src/model/NumberOnly.js
@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
- * OpenAPI Generator version: 3.0.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
diff --git a/samples/client/petstore/javascript/src/model/Order.js b/samples/client/petstore/javascript/src/model/Order.js
index 70c445deac..bfd5f3714b 100644
--- a/samples/client/petstore/javascript/src/model/Order.js
+++ b/samples/client/petstore/javascript/src/model/Order.js
@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
- * OpenAPI Generator version: 3.0.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
diff --git a/samples/client/petstore/javascript/src/model/OuterComposite.js b/samples/client/petstore/javascript/src/model/OuterComposite.js
index cee1b9a083..b4fc48476d 100644
--- a/samples/client/petstore/javascript/src/model/OuterComposite.js
+++ b/samples/client/petstore/javascript/src/model/OuterComposite.js
@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
- * OpenAPI Generator version: 3.0.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
diff --git a/samples/client/petstore/javascript/src/model/OuterEnum.js b/samples/client/petstore/javascript/src/model/OuterEnum.js
index ebae6bbc54..9e1f532b44 100644
--- a/samples/client/petstore/javascript/src/model/OuterEnum.js
+++ b/samples/client/petstore/javascript/src/model/OuterEnum.js
@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
- * OpenAPI Generator version: 3.0.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
diff --git a/samples/client/petstore/javascript/src/model/Pet.js b/samples/client/petstore/javascript/src/model/Pet.js
index ff1df0c02f..55997490b7 100644
--- a/samples/client/petstore/javascript/src/model/Pet.js
+++ b/samples/client/petstore/javascript/src/model/Pet.js
@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
- * OpenAPI Generator version: 3.0.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
diff --git a/samples/client/petstore/javascript/src/model/ReadOnlyFirst.js b/samples/client/petstore/javascript/src/model/ReadOnlyFirst.js
index a0460724c2..1b0ae1104c 100644
--- a/samples/client/petstore/javascript/src/model/ReadOnlyFirst.js
+++ b/samples/client/petstore/javascript/src/model/ReadOnlyFirst.js
@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
- * OpenAPI Generator version: 3.0.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
diff --git a/samples/client/petstore/javascript/src/model/SpecialModelName.js b/samples/client/petstore/javascript/src/model/SpecialModelName.js
index 8474a682d2..22464bbe7a 100644
--- a/samples/client/petstore/javascript/src/model/SpecialModelName.js
+++ b/samples/client/petstore/javascript/src/model/SpecialModelName.js
@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
- * OpenAPI Generator version: 3.0.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
diff --git a/samples/client/petstore/javascript/src/model/Tag.js b/samples/client/petstore/javascript/src/model/Tag.js
index b4f7d51e2a..9e4f88b087 100644
--- a/samples/client/petstore/javascript/src/model/Tag.js
+++ b/samples/client/petstore/javascript/src/model/Tag.js
@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
- * OpenAPI Generator version: 3.0.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*
diff --git a/samples/client/petstore/javascript/src/model/User.js b/samples/client/petstore/javascript/src/model/User.js
index 5ba53768ad..06d4e6e7ad 100644
--- a/samples/client/petstore/javascript/src/model/User.js
+++ b/samples/client/petstore/javascript/src/model/User.js
@@ -7,7 +7,7 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
*
- * OpenAPI Generator version: 3.0.0-SNAPSHOT
+ * OpenAPI Generator version: 3.0.2-SNAPSHOT
*
* Do not edit the class manually.
*