diff --git a/samples/client/petstore/javascript-promise/docs/ArrayOfArrayOfNumberOnly.md b/samples/client/petstore/javascript-promise/docs/ArrayOfArrayOfNumberOnly.md
new file mode 100644
index 0000000000..1d38c9d2ed
--- /dev/null
+++ b/samples/client/petstore/javascript-promise/docs/ArrayOfArrayOfNumberOnly.md
@@ -0,0 +1,8 @@
+# SwaggerPetstore.ArrayOfArrayOfNumberOnly
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**arrayArrayNumber** | **[[Number]]** | | [optional]
+
+
diff --git a/samples/client/petstore/javascript-promise/docs/ArrayOfNumberOnly.md b/samples/client/petstore/javascript-promise/docs/ArrayOfNumberOnly.md
new file mode 100644
index 0000000000..07a86a3cef
--- /dev/null
+++ b/samples/client/petstore/javascript-promise/docs/ArrayOfNumberOnly.md
@@ -0,0 +1,8 @@
+# SwaggerPetstore.ArrayOfNumberOnly
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**arrayNumber** | **[Number]** | | [optional]
+
+
diff --git a/samples/client/petstore/javascript-promise/docs/HasOnlyReadOnly.md b/samples/client/petstore/javascript-promise/docs/HasOnlyReadOnly.md
new file mode 100644
index 0000000000..b9b975fced
--- /dev/null
+++ b/samples/client/petstore/javascript-promise/docs/HasOnlyReadOnly.md
@@ -0,0 +1,9 @@
+# SwaggerPetstore.HasOnlyReadOnly
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**bar** | **String** | | [optional]
+**foo** | **String** | | [optional]
+
+
diff --git a/samples/client/petstore/javascript-promise/docs/MapTest.md b/samples/client/petstore/javascript-promise/docs/MapTest.md
new file mode 100644
index 0000000000..ae77813d9c
--- /dev/null
+++ b/samples/client/petstore/javascript-promise/docs/MapTest.md
@@ -0,0 +1,16 @@
+# SwaggerPetstore.MapTest
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**mapMapOfString** | **{String: {String: String}}** | | [optional]
+**mapOfEnumString** | **{String: String}** | | [optional]
+
+
+
+## Enum: {String: String}
+
+
+
+
+
diff --git a/samples/client/petstore/javascript-promise/docs/NumberOnly.md b/samples/client/petstore/javascript-promise/docs/NumberOnly.md
new file mode 100644
index 0000000000..f7bf0abd42
--- /dev/null
+++ b/samples/client/petstore/javascript-promise/docs/NumberOnly.md
@@ -0,0 +1,8 @@
+# SwaggerPetstore.NumberOnly
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**justNumber** | **Number** | | [optional]
+
+
diff --git a/samples/client/petstore/javascript-promise/src/model/ArrayOfArrayOfNumberOnly.js b/samples/client/petstore/javascript-promise/src/model/ArrayOfArrayOfNumberOnly.js
new file mode 100644
index 0000000000..92ceb210c9
--- /dev/null
+++ b/samples/client/petstore/javascript-promise/src/model/ArrayOfArrayOfNumberOnly.js
@@ -0,0 +1,90 @@
+/**
+ * Swagger 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
+ * Do not edit the class manually.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['ApiClient'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../ApiClient'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.SwaggerPetstore) {
+ root.SwaggerPetstore = {};
+ }
+ root.SwaggerPetstore.ArrayOfArrayOfNumberOnly = factory(root.SwaggerPetstore.ApiClient);
+ }
+}(this, function(ApiClient) {
+ 'use strict';
+
+
+
+
+ /**
+ * The ArrayOfArrayOfNumberOnly model module.
+ * @module model/ArrayOfArrayOfNumberOnly
+ * @version 1.0.0
+ */
+
+ /**
+ * Constructs a new ArrayOfArrayOfNumberOnly.
+ * @alias module:model/ArrayOfArrayOfNumberOnly
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+ };
+
+ /**
+ * Constructs a ArrayOfArrayOfNumberOnly from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ArrayOfArrayOfNumberOnly} obj Optional instance to populate.
+ * @return {module:model/ArrayOfArrayOfNumberOnly} The populated ArrayOfArrayOfNumberOnly instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ArrayArrayNumber')) {
+ obj['ArrayArrayNumber'] = ApiClient.convertToType(data['ArrayArrayNumber'], [['Number']]);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.>} ArrayArrayNumber
+ */
+ exports.prototype['ArrayArrayNumber'] = undefined;
+
+
+
+ return exports;
+}));
+
+
diff --git a/samples/client/petstore/javascript-promise/src/model/ArrayOfNumberOnly.js b/samples/client/petstore/javascript-promise/src/model/ArrayOfNumberOnly.js
new file mode 100644
index 0000000000..36fec3aef4
--- /dev/null
+++ b/samples/client/petstore/javascript-promise/src/model/ArrayOfNumberOnly.js
@@ -0,0 +1,90 @@
+/**
+ * Swagger 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
+ * Do not edit the class manually.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['ApiClient'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../ApiClient'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.SwaggerPetstore) {
+ root.SwaggerPetstore = {};
+ }
+ root.SwaggerPetstore.ArrayOfNumberOnly = factory(root.SwaggerPetstore.ApiClient);
+ }
+}(this, function(ApiClient) {
+ 'use strict';
+
+
+
+
+ /**
+ * The ArrayOfNumberOnly model module.
+ * @module model/ArrayOfNumberOnly
+ * @version 1.0.0
+ */
+
+ /**
+ * Constructs a new ArrayOfNumberOnly.
+ * @alias module:model/ArrayOfNumberOnly
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+ };
+
+ /**
+ * Constructs a ArrayOfNumberOnly from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ArrayOfNumberOnly} obj Optional instance to populate.
+ * @return {module:model/ArrayOfNumberOnly} The populated ArrayOfNumberOnly instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ArrayNumber')) {
+ obj['ArrayNumber'] = ApiClient.convertToType(data['ArrayNumber'], ['Number']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.} ArrayNumber
+ */
+ exports.prototype['ArrayNumber'] = undefined;
+
+
+
+ return exports;
+}));
+
+
diff --git a/samples/client/petstore/javascript-promise/src/model/HasOnlyReadOnly.js b/samples/client/petstore/javascript-promise/src/model/HasOnlyReadOnly.js
new file mode 100644
index 0000000000..7763b9b8c8
--- /dev/null
+++ b/samples/client/petstore/javascript-promise/src/model/HasOnlyReadOnly.js
@@ -0,0 +1,98 @@
+/**
+ * Swagger 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
+ * Do not edit the class manually.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['ApiClient'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../ApiClient'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.SwaggerPetstore) {
+ root.SwaggerPetstore = {};
+ }
+ root.SwaggerPetstore.HasOnlyReadOnly = factory(root.SwaggerPetstore.ApiClient);
+ }
+}(this, function(ApiClient) {
+ 'use strict';
+
+
+
+
+ /**
+ * The HasOnlyReadOnly model module.
+ * @module model/HasOnlyReadOnly
+ * @version 1.0.0
+ */
+
+ /**
+ * Constructs a new HasOnlyReadOnly.
+ * @alias module:model/HasOnlyReadOnly
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a HasOnlyReadOnly from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/HasOnlyReadOnly} obj Optional instance to populate.
+ * @return {module:model/HasOnlyReadOnly} The populated HasOnlyReadOnly instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('bar')) {
+ obj['bar'] = ApiClient.convertToType(data['bar'], 'String');
+ }
+ if (data.hasOwnProperty('foo')) {
+ obj['foo'] = ApiClient.convertToType(data['foo'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} bar
+ */
+ exports.prototype['bar'] = undefined;
+ /**
+ * @member {String} foo
+ */
+ exports.prototype['foo'] = undefined;
+
+
+
+ return exports;
+}));
+
+
diff --git a/samples/client/petstore/javascript-promise/src/model/MapTest.js b/samples/client/petstore/javascript-promise/src/model/MapTest.js
new file mode 100644
index 0000000000..eaa61ee005
--- /dev/null
+++ b/samples/client/petstore/javascript-promise/src/model/MapTest.js
@@ -0,0 +1,115 @@
+/**
+ * Swagger 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
+ * Do not edit the class manually.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['ApiClient'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../ApiClient'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.SwaggerPetstore) {
+ root.SwaggerPetstore = {};
+ }
+ root.SwaggerPetstore.MapTest = factory(root.SwaggerPetstore.ApiClient);
+ }
+}(this, function(ApiClient) {
+ 'use strict';
+
+
+
+
+ /**
+ * The MapTest model module.
+ * @module model/MapTest
+ * @version 1.0.0
+ */
+
+ /**
+ * Constructs a new MapTest.
+ * @alias module:model/MapTest
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a MapTest from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/MapTest} obj Optional instance to populate.
+ * @return {module:model/MapTest} The populated MapTest instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('map_map_of_string')) {
+ obj['map_map_of_string'] = ApiClient.convertToType(data['map_map_of_string'], {'String': {'String': 'String'}});
+ }
+ if (data.hasOwnProperty('map_of_enum_string')) {
+ obj['map_of_enum_string'] = ApiClient.convertToType(data['map_of_enum_string'], {'String': 'String'});
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Object.>} map_map_of_string
+ */
+ exports.prototype['map_map_of_string'] = undefined;
+ /**
+ * @member {Object.} map_of_enum_string
+ */
+ exports.prototype['map_of_enum_string'] = undefined;
+
+
+ /**
+ * Allowed values for the inner property.
+ * @enum {String}
+ * @readonly
+ */
+ exports.InnerEnum = {
+ /**
+ * value: "UPPER"
+ * @const
+ */
+ "UPPER": "UPPER",
+ /**
+ * value: "lower"
+ * @const
+ */
+ "lower": "lower" };
+
+
+ return exports;
+}));
+
+
diff --git a/samples/client/petstore/javascript-promise/src/model/NumberOnly.js b/samples/client/petstore/javascript-promise/src/model/NumberOnly.js
new file mode 100644
index 0000000000..eff239bb41
--- /dev/null
+++ b/samples/client/petstore/javascript-promise/src/model/NumberOnly.js
@@ -0,0 +1,90 @@
+/**
+ * Swagger 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
+ * Do not edit the class manually.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['ApiClient'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../ApiClient'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.SwaggerPetstore) {
+ root.SwaggerPetstore = {};
+ }
+ root.SwaggerPetstore.NumberOnly = factory(root.SwaggerPetstore.ApiClient);
+ }
+}(this, function(ApiClient) {
+ 'use strict';
+
+
+
+
+ /**
+ * The NumberOnly model module.
+ * @module model/NumberOnly
+ * @version 1.0.0
+ */
+
+ /**
+ * Constructs a new NumberOnly.
+ * @alias module:model/NumberOnly
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+ };
+
+ /**
+ * Constructs a NumberOnly from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/NumberOnly} obj Optional instance to populate.
+ * @return {module:model/NumberOnly} The populated NumberOnly instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('JustNumber')) {
+ obj['JustNumber'] = ApiClient.convertToType(data['JustNumber'], 'Number');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Number} JustNumber
+ */
+ exports.prototype['JustNumber'] = undefined;
+
+
+
+ return exports;
+}));
+
+
diff --git a/samples/client/petstore/javascript-promise/test/model/ArrayOfArrayOfNumberOnly.spec.js b/samples/client/petstore/javascript-promise/test/model/ArrayOfArrayOfNumberOnly.spec.js
new file mode 100644
index 0000000000..98c97fb0c3
--- /dev/null
+++ b/samples/client/petstore/javascript-promise/test/model/ArrayOfArrayOfNumberOnly.spec.js
@@ -0,0 +1,76 @@
+/**
+ * Swagger 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
+ * Do not edit the class manually.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD.
+ define(['expect.js', '../../src/index'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ factory(require('expect.js'), require('../../src/index'));
+ } else {
+ // Browser globals (root is window)
+ factory(root.expect, root.SwaggerPetstore);
+ }
+}(this, function(expect, SwaggerPetstore) {
+ 'use strict';
+
+ var instance;
+
+ beforeEach(function() {
+ instance = new SwaggerPetstore.ArrayOfArrayOfNumberOnly();
+ });
+
+ var getProperty = function(object, getter, property) {
+ // Use getter method if present; otherwise, get the property directly.
+ if (typeof object[getter] === 'function')
+ return object[getter]();
+ else
+ return object[property];
+ }
+
+ var setProperty = function(object, setter, property, value) {
+ // Use setter method if present; otherwise, set the property directly.
+ if (typeof object[setter] === 'function')
+ object[setter](value);
+ else
+ object[property] = value;
+ }
+
+ describe('ArrayOfArrayOfNumberOnly', function() {
+ it('should create an instance of ArrayOfArrayOfNumberOnly', function() {
+ // uncomment below and update the code to test ArrayOfArrayOfNumberOnly
+ //var instane = new SwaggerPetstore.ArrayOfArrayOfNumberOnly();
+ //expect(instance).to.be.a(SwaggerPetstore.ArrayOfArrayOfNumberOnly);
+ });
+
+ it('should have the property arrayArrayNumber (base name: "ArrayArrayNumber")', function() {
+ // uncomment below and update the code to test the property arrayArrayNumber
+ //var instane = new SwaggerPetstore.ArrayOfArrayOfNumberOnly();
+ //expect(instance).to.be();
+ });
+
+ });
+
+}));
diff --git a/samples/client/petstore/javascript-promise/test/model/ArrayOfNumberOnly.spec.js b/samples/client/petstore/javascript-promise/test/model/ArrayOfNumberOnly.spec.js
new file mode 100644
index 0000000000..e19fd12235
--- /dev/null
+++ b/samples/client/petstore/javascript-promise/test/model/ArrayOfNumberOnly.spec.js
@@ -0,0 +1,76 @@
+/**
+ * Swagger 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
+ * Do not edit the class manually.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD.
+ define(['expect.js', '../../src/index'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ factory(require('expect.js'), require('../../src/index'));
+ } else {
+ // Browser globals (root is window)
+ factory(root.expect, root.SwaggerPetstore);
+ }
+}(this, function(expect, SwaggerPetstore) {
+ 'use strict';
+
+ var instance;
+
+ beforeEach(function() {
+ instance = new SwaggerPetstore.ArrayOfNumberOnly();
+ });
+
+ var getProperty = function(object, getter, property) {
+ // Use getter method if present; otherwise, get the property directly.
+ if (typeof object[getter] === 'function')
+ return object[getter]();
+ else
+ return object[property];
+ }
+
+ var setProperty = function(object, setter, property, value) {
+ // Use setter method if present; otherwise, set the property directly.
+ if (typeof object[setter] === 'function')
+ object[setter](value);
+ else
+ object[property] = value;
+ }
+
+ describe('ArrayOfNumberOnly', function() {
+ it('should create an instance of ArrayOfNumberOnly', function() {
+ // uncomment below and update the code to test ArrayOfNumberOnly
+ //var instane = new SwaggerPetstore.ArrayOfNumberOnly();
+ //expect(instance).to.be.a(SwaggerPetstore.ArrayOfNumberOnly);
+ });
+
+ it('should have the property arrayNumber (base name: "ArrayNumber")', function() {
+ // uncomment below and update the code to test the property arrayNumber
+ //var instane = new SwaggerPetstore.ArrayOfNumberOnly();
+ //expect(instance).to.be();
+ });
+
+ });
+
+}));
diff --git a/samples/client/petstore/javascript-promise/test/model/HasOnlyReadOnly.spec.js b/samples/client/petstore/javascript-promise/test/model/HasOnlyReadOnly.spec.js
new file mode 100644
index 0000000000..6e9d87fd4a
--- /dev/null
+++ b/samples/client/petstore/javascript-promise/test/model/HasOnlyReadOnly.spec.js
@@ -0,0 +1,82 @@
+/**
+ * Swagger 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
+ * Do not edit the class manually.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD.
+ define(['expect.js', '../../src/index'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ factory(require('expect.js'), require('../../src/index'));
+ } else {
+ // Browser globals (root is window)
+ factory(root.expect, root.SwaggerPetstore);
+ }
+}(this, function(expect, SwaggerPetstore) {
+ 'use strict';
+
+ var instance;
+
+ beforeEach(function() {
+ instance = new SwaggerPetstore.HasOnlyReadOnly();
+ });
+
+ var getProperty = function(object, getter, property) {
+ // Use getter method if present; otherwise, get the property directly.
+ if (typeof object[getter] === 'function')
+ return object[getter]();
+ else
+ return object[property];
+ }
+
+ var setProperty = function(object, setter, property, value) {
+ // Use setter method if present; otherwise, set the property directly.
+ if (typeof object[setter] === 'function')
+ object[setter](value);
+ else
+ object[property] = value;
+ }
+
+ describe('HasOnlyReadOnly', function() {
+ it('should create an instance of HasOnlyReadOnly', function() {
+ // uncomment below and update the code to test HasOnlyReadOnly
+ //var instane = new SwaggerPetstore.HasOnlyReadOnly();
+ //expect(instance).to.be.a(SwaggerPetstore.HasOnlyReadOnly);
+ });
+
+ it('should have the property bar (base name: "bar")', function() {
+ // uncomment below and update the code to test the property bar
+ //var instane = new SwaggerPetstore.HasOnlyReadOnly();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property foo (base name: "foo")', function() {
+ // uncomment below and update the code to test the property foo
+ //var instane = new SwaggerPetstore.HasOnlyReadOnly();
+ //expect(instance).to.be();
+ });
+
+ });
+
+}));
diff --git a/samples/client/petstore/javascript-promise/test/model/MapTest.spec.js b/samples/client/petstore/javascript-promise/test/model/MapTest.spec.js
new file mode 100644
index 0000000000..c9faa01895
--- /dev/null
+++ b/samples/client/petstore/javascript-promise/test/model/MapTest.spec.js
@@ -0,0 +1,82 @@
+/**
+ * Swagger 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
+ * Do not edit the class manually.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD.
+ define(['expect.js', '../../src/index'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ factory(require('expect.js'), require('../../src/index'));
+ } else {
+ // Browser globals (root is window)
+ factory(root.expect, root.SwaggerPetstore);
+ }
+}(this, function(expect, SwaggerPetstore) {
+ 'use strict';
+
+ var instance;
+
+ beforeEach(function() {
+ instance = new SwaggerPetstore.MapTest();
+ });
+
+ var getProperty = function(object, getter, property) {
+ // Use getter method if present; otherwise, get the property directly.
+ if (typeof object[getter] === 'function')
+ return object[getter]();
+ else
+ return object[property];
+ }
+
+ var setProperty = function(object, setter, property, value) {
+ // Use setter method if present; otherwise, set the property directly.
+ if (typeof object[setter] === 'function')
+ object[setter](value);
+ else
+ object[property] = value;
+ }
+
+ describe('MapTest', function() {
+ it('should create an instance of MapTest', function() {
+ // uncomment below and update the code to test MapTest
+ //var instane = new SwaggerPetstore.MapTest();
+ //expect(instance).to.be.a(SwaggerPetstore.MapTest);
+ });
+
+ it('should have the property mapMapOfString (base name: "map_map_of_string")', function() {
+ // uncomment below and update the code to test the property mapMapOfString
+ //var instane = new SwaggerPetstore.MapTest();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property mapOfEnumString (base name: "map_of_enum_string")', function() {
+ // uncomment below and update the code to test the property mapOfEnumString
+ //var instane = new SwaggerPetstore.MapTest();
+ //expect(instance).to.be();
+ });
+
+ });
+
+}));
diff --git a/samples/client/petstore/javascript-promise/test/model/NumberOnly.spec.js b/samples/client/petstore/javascript-promise/test/model/NumberOnly.spec.js
new file mode 100644
index 0000000000..f8b8327a2e
--- /dev/null
+++ b/samples/client/petstore/javascript-promise/test/model/NumberOnly.spec.js
@@ -0,0 +1,76 @@
+/**
+ * Swagger 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
+ * Do not edit the class manually.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD.
+ define(['expect.js', '../../src/index'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ factory(require('expect.js'), require('../../src/index'));
+ } else {
+ // Browser globals (root is window)
+ factory(root.expect, root.SwaggerPetstore);
+ }
+}(this, function(expect, SwaggerPetstore) {
+ 'use strict';
+
+ var instance;
+
+ beforeEach(function() {
+ instance = new SwaggerPetstore.NumberOnly();
+ });
+
+ var getProperty = function(object, getter, property) {
+ // Use getter method if present; otherwise, get the property directly.
+ if (typeof object[getter] === 'function')
+ return object[getter]();
+ else
+ return object[property];
+ }
+
+ var setProperty = function(object, setter, property, value) {
+ // Use setter method if present; otherwise, set the property directly.
+ if (typeof object[setter] === 'function')
+ object[setter](value);
+ else
+ object[property] = value;
+ }
+
+ describe('NumberOnly', function() {
+ it('should create an instance of NumberOnly', function() {
+ // uncomment below and update the code to test NumberOnly
+ //var instane = new SwaggerPetstore.NumberOnly();
+ //expect(instance).to.be.a(SwaggerPetstore.NumberOnly);
+ });
+
+ it('should have the property justNumber (base name: "JustNumber")', function() {
+ // uncomment below and update the code to test the property justNumber
+ //var instane = new SwaggerPetstore.NumberOnly();
+ //expect(instance).to.be();
+ });
+
+ });
+
+}));
diff --git a/samples/client/petstore/javascript/docs/ArrayOfArrayOfNumberOnly.md b/samples/client/petstore/javascript/docs/ArrayOfArrayOfNumberOnly.md
new file mode 100644
index 0000000000..1d38c9d2ed
--- /dev/null
+++ b/samples/client/petstore/javascript/docs/ArrayOfArrayOfNumberOnly.md
@@ -0,0 +1,8 @@
+# SwaggerPetstore.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..07a86a3cef
--- /dev/null
+++ b/samples/client/petstore/javascript/docs/ArrayOfNumberOnly.md
@@ -0,0 +1,8 @@
+# SwaggerPetstore.ArrayOfNumberOnly
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**arrayNumber** | **[Number]** | | [optional]
+
+
diff --git a/samples/client/petstore/javascript/docs/HasOnlyReadOnly.md b/samples/client/petstore/javascript/docs/HasOnlyReadOnly.md
new file mode 100644
index 0000000000..b9b975fced
--- /dev/null
+++ b/samples/client/petstore/javascript/docs/HasOnlyReadOnly.md
@@ -0,0 +1,9 @@
+# SwaggerPetstore.HasOnlyReadOnly
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**bar** | **String** | | [optional]
+**foo** | **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..ae77813d9c
--- /dev/null
+++ b/samples/client/petstore/javascript/docs/MapTest.md
@@ -0,0 +1,16 @@
+# SwaggerPetstore.MapTest
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**mapMapOfString** | **{String: {String: String}}** | | [optional]
+**mapOfEnumString** | **{String: String}** | | [optional]
+
+
+
+## Enum: {String: String}
+
+
+
+
+
diff --git a/samples/client/petstore/javascript/docs/NumberOnly.md b/samples/client/petstore/javascript/docs/NumberOnly.md
new file mode 100644
index 0000000000..f7bf0abd42
--- /dev/null
+++ b/samples/client/petstore/javascript/docs/NumberOnly.md
@@ -0,0 +1,8 @@
+# SwaggerPetstore.NumberOnly
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**justNumber** | **Number** | | [optional]
+
+
diff --git a/samples/client/petstore/javascript/src/model/ArrayOfArrayOfNumberOnly.js b/samples/client/petstore/javascript/src/model/ArrayOfArrayOfNumberOnly.js
new file mode 100644
index 0000000000..92ceb210c9
--- /dev/null
+++ b/samples/client/petstore/javascript/src/model/ArrayOfArrayOfNumberOnly.js
@@ -0,0 +1,90 @@
+/**
+ * Swagger 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
+ * Do not edit the class manually.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['ApiClient'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../ApiClient'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.SwaggerPetstore) {
+ root.SwaggerPetstore = {};
+ }
+ root.SwaggerPetstore.ArrayOfArrayOfNumberOnly = factory(root.SwaggerPetstore.ApiClient);
+ }
+}(this, function(ApiClient) {
+ 'use strict';
+
+
+
+
+ /**
+ * The ArrayOfArrayOfNumberOnly model module.
+ * @module model/ArrayOfArrayOfNumberOnly
+ * @version 1.0.0
+ */
+
+ /**
+ * Constructs a new ArrayOfArrayOfNumberOnly.
+ * @alias module:model/ArrayOfArrayOfNumberOnly
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+ };
+
+ /**
+ * Constructs a ArrayOfArrayOfNumberOnly from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ArrayOfArrayOfNumberOnly} obj Optional instance to populate.
+ * @return {module:model/ArrayOfArrayOfNumberOnly} The populated ArrayOfArrayOfNumberOnly instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ArrayArrayNumber')) {
+ obj['ArrayArrayNumber'] = ApiClient.convertToType(data['ArrayArrayNumber'], [['Number']]);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.>} ArrayArrayNumber
+ */
+ exports.prototype['ArrayArrayNumber'] = undefined;
+
+
+
+ return exports;
+}));
+
+
diff --git a/samples/client/petstore/javascript/src/model/ArrayOfNumberOnly.js b/samples/client/petstore/javascript/src/model/ArrayOfNumberOnly.js
new file mode 100644
index 0000000000..36fec3aef4
--- /dev/null
+++ b/samples/client/petstore/javascript/src/model/ArrayOfNumberOnly.js
@@ -0,0 +1,90 @@
+/**
+ * Swagger 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
+ * Do not edit the class manually.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['ApiClient'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../ApiClient'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.SwaggerPetstore) {
+ root.SwaggerPetstore = {};
+ }
+ root.SwaggerPetstore.ArrayOfNumberOnly = factory(root.SwaggerPetstore.ApiClient);
+ }
+}(this, function(ApiClient) {
+ 'use strict';
+
+
+
+
+ /**
+ * The ArrayOfNumberOnly model module.
+ * @module model/ArrayOfNumberOnly
+ * @version 1.0.0
+ */
+
+ /**
+ * Constructs a new ArrayOfNumberOnly.
+ * @alias module:model/ArrayOfNumberOnly
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+ };
+
+ /**
+ * Constructs a ArrayOfNumberOnly from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ArrayOfNumberOnly} obj Optional instance to populate.
+ * @return {module:model/ArrayOfNumberOnly} The populated ArrayOfNumberOnly instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('ArrayNumber')) {
+ obj['ArrayNumber'] = ApiClient.convertToType(data['ArrayNumber'], ['Number']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Array.} ArrayNumber
+ */
+ exports.prototype['ArrayNumber'] = undefined;
+
+
+
+ return exports;
+}));
+
+
diff --git a/samples/client/petstore/javascript/src/model/HasOnlyReadOnly.js b/samples/client/petstore/javascript/src/model/HasOnlyReadOnly.js
new file mode 100644
index 0000000000..7763b9b8c8
--- /dev/null
+++ b/samples/client/petstore/javascript/src/model/HasOnlyReadOnly.js
@@ -0,0 +1,98 @@
+/**
+ * Swagger 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
+ * Do not edit the class manually.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['ApiClient'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../ApiClient'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.SwaggerPetstore) {
+ root.SwaggerPetstore = {};
+ }
+ root.SwaggerPetstore.HasOnlyReadOnly = factory(root.SwaggerPetstore.ApiClient);
+ }
+}(this, function(ApiClient) {
+ 'use strict';
+
+
+
+
+ /**
+ * The HasOnlyReadOnly model module.
+ * @module model/HasOnlyReadOnly
+ * @version 1.0.0
+ */
+
+ /**
+ * Constructs a new HasOnlyReadOnly.
+ * @alias module:model/HasOnlyReadOnly
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a HasOnlyReadOnly from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/HasOnlyReadOnly} obj Optional instance to populate.
+ * @return {module:model/HasOnlyReadOnly} The populated HasOnlyReadOnly instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('bar')) {
+ obj['bar'] = ApiClient.convertToType(data['bar'], 'String');
+ }
+ if (data.hasOwnProperty('foo')) {
+ obj['foo'] = ApiClient.convertToType(data['foo'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {String} bar
+ */
+ exports.prototype['bar'] = undefined;
+ /**
+ * @member {String} foo
+ */
+ exports.prototype['foo'] = undefined;
+
+
+
+ return exports;
+}));
+
+
diff --git a/samples/client/petstore/javascript/src/model/MapTest.js b/samples/client/petstore/javascript/src/model/MapTest.js
new file mode 100644
index 0000000000..eaa61ee005
--- /dev/null
+++ b/samples/client/petstore/javascript/src/model/MapTest.js
@@ -0,0 +1,115 @@
+/**
+ * Swagger 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
+ * Do not edit the class manually.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['ApiClient'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../ApiClient'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.SwaggerPetstore) {
+ root.SwaggerPetstore = {};
+ }
+ root.SwaggerPetstore.MapTest = factory(root.SwaggerPetstore.ApiClient);
+ }
+}(this, function(ApiClient) {
+ 'use strict';
+
+
+
+
+ /**
+ * The MapTest model module.
+ * @module model/MapTest
+ * @version 1.0.0
+ */
+
+ /**
+ * Constructs a new MapTest.
+ * @alias module:model/MapTest
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+
+ };
+
+ /**
+ * Constructs a MapTest from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/MapTest} obj Optional instance to populate.
+ * @return {module:model/MapTest} The populated MapTest instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('map_map_of_string')) {
+ obj['map_map_of_string'] = ApiClient.convertToType(data['map_map_of_string'], {'String': {'String': 'String'}});
+ }
+ if (data.hasOwnProperty('map_of_enum_string')) {
+ obj['map_of_enum_string'] = ApiClient.convertToType(data['map_of_enum_string'], {'String': 'String'});
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Object.>} map_map_of_string
+ */
+ exports.prototype['map_map_of_string'] = undefined;
+ /**
+ * @member {Object.} map_of_enum_string
+ */
+ exports.prototype['map_of_enum_string'] = undefined;
+
+
+ /**
+ * Allowed values for the inner property.
+ * @enum {String}
+ * @readonly
+ */
+ exports.InnerEnum = {
+ /**
+ * value: "UPPER"
+ * @const
+ */
+ "UPPER": "UPPER",
+ /**
+ * value: "lower"
+ * @const
+ */
+ "lower": "lower" };
+
+
+ return exports;
+}));
+
+
diff --git a/samples/client/petstore/javascript/src/model/NumberOnly.js b/samples/client/petstore/javascript/src/model/NumberOnly.js
new file mode 100644
index 0000000000..eff239bb41
--- /dev/null
+++ b/samples/client/petstore/javascript/src/model/NumberOnly.js
@@ -0,0 +1,90 @@
+/**
+ * Swagger 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
+ * Do not edit the class manually.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(['ApiClient'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ module.exports = factory(require('../ApiClient'));
+ } else {
+ // Browser globals (root is window)
+ if (!root.SwaggerPetstore) {
+ root.SwaggerPetstore = {};
+ }
+ root.SwaggerPetstore.NumberOnly = factory(root.SwaggerPetstore.ApiClient);
+ }
+}(this, function(ApiClient) {
+ 'use strict';
+
+
+
+
+ /**
+ * The NumberOnly model module.
+ * @module model/NumberOnly
+ * @version 1.0.0
+ */
+
+ /**
+ * Constructs a new NumberOnly.
+ * @alias module:model/NumberOnly
+ * @class
+ */
+ var exports = function() {
+ var _this = this;
+
+
+ };
+
+ /**
+ * Constructs a NumberOnly from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/NumberOnly} obj Optional instance to populate.
+ * @return {module:model/NumberOnly} The populated NumberOnly instance.
+ */
+ exports.constructFromObject = function(data, obj) {
+ if (data) {
+ obj = obj || new exports();
+
+ if (data.hasOwnProperty('JustNumber')) {
+ obj['JustNumber'] = ApiClient.convertToType(data['JustNumber'], 'Number');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * @member {Number} JustNumber
+ */
+ exports.prototype['JustNumber'] = undefined;
+
+
+
+ return exports;
+}));
+
+
diff --git a/samples/client/petstore/javascript/test/model/ArrayOfArrayOfNumberOnly.spec.js b/samples/client/petstore/javascript/test/model/ArrayOfArrayOfNumberOnly.spec.js
new file mode 100644
index 0000000000..98c97fb0c3
--- /dev/null
+++ b/samples/client/petstore/javascript/test/model/ArrayOfArrayOfNumberOnly.spec.js
@@ -0,0 +1,76 @@
+/**
+ * Swagger 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
+ * Do not edit the class manually.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD.
+ define(['expect.js', '../../src/index'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ factory(require('expect.js'), require('../../src/index'));
+ } else {
+ // Browser globals (root is window)
+ factory(root.expect, root.SwaggerPetstore);
+ }
+}(this, function(expect, SwaggerPetstore) {
+ 'use strict';
+
+ var instance;
+
+ beforeEach(function() {
+ instance = new SwaggerPetstore.ArrayOfArrayOfNumberOnly();
+ });
+
+ var getProperty = function(object, getter, property) {
+ // Use getter method if present; otherwise, get the property directly.
+ if (typeof object[getter] === 'function')
+ return object[getter]();
+ else
+ return object[property];
+ }
+
+ var setProperty = function(object, setter, property, value) {
+ // Use setter method if present; otherwise, set the property directly.
+ if (typeof object[setter] === 'function')
+ object[setter](value);
+ else
+ object[property] = value;
+ }
+
+ describe('ArrayOfArrayOfNumberOnly', function() {
+ it('should create an instance of ArrayOfArrayOfNumberOnly', function() {
+ // uncomment below and update the code to test ArrayOfArrayOfNumberOnly
+ //var instane = new SwaggerPetstore.ArrayOfArrayOfNumberOnly();
+ //expect(instance).to.be.a(SwaggerPetstore.ArrayOfArrayOfNumberOnly);
+ });
+
+ it('should have the property arrayArrayNumber (base name: "ArrayArrayNumber")', function() {
+ // uncomment below and update the code to test the property arrayArrayNumber
+ //var instane = new SwaggerPetstore.ArrayOfArrayOfNumberOnly();
+ //expect(instance).to.be();
+ });
+
+ });
+
+}));
diff --git a/samples/client/petstore/javascript/test/model/ArrayOfNumberOnly.spec.js b/samples/client/petstore/javascript/test/model/ArrayOfNumberOnly.spec.js
new file mode 100644
index 0000000000..e19fd12235
--- /dev/null
+++ b/samples/client/petstore/javascript/test/model/ArrayOfNumberOnly.spec.js
@@ -0,0 +1,76 @@
+/**
+ * Swagger 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
+ * Do not edit the class manually.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD.
+ define(['expect.js', '../../src/index'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ factory(require('expect.js'), require('../../src/index'));
+ } else {
+ // Browser globals (root is window)
+ factory(root.expect, root.SwaggerPetstore);
+ }
+}(this, function(expect, SwaggerPetstore) {
+ 'use strict';
+
+ var instance;
+
+ beforeEach(function() {
+ instance = new SwaggerPetstore.ArrayOfNumberOnly();
+ });
+
+ var getProperty = function(object, getter, property) {
+ // Use getter method if present; otherwise, get the property directly.
+ if (typeof object[getter] === 'function')
+ return object[getter]();
+ else
+ return object[property];
+ }
+
+ var setProperty = function(object, setter, property, value) {
+ // Use setter method if present; otherwise, set the property directly.
+ if (typeof object[setter] === 'function')
+ object[setter](value);
+ else
+ object[property] = value;
+ }
+
+ describe('ArrayOfNumberOnly', function() {
+ it('should create an instance of ArrayOfNumberOnly', function() {
+ // uncomment below and update the code to test ArrayOfNumberOnly
+ //var instane = new SwaggerPetstore.ArrayOfNumberOnly();
+ //expect(instance).to.be.a(SwaggerPetstore.ArrayOfNumberOnly);
+ });
+
+ it('should have the property arrayNumber (base name: "ArrayNumber")', function() {
+ // uncomment below and update the code to test the property arrayNumber
+ //var instane = new SwaggerPetstore.ArrayOfNumberOnly();
+ //expect(instance).to.be();
+ });
+
+ });
+
+}));
diff --git a/samples/client/petstore/javascript/test/model/HasOnlyReadOnly.spec.js b/samples/client/petstore/javascript/test/model/HasOnlyReadOnly.spec.js
new file mode 100644
index 0000000000..6e9d87fd4a
--- /dev/null
+++ b/samples/client/petstore/javascript/test/model/HasOnlyReadOnly.spec.js
@@ -0,0 +1,82 @@
+/**
+ * Swagger 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
+ * Do not edit the class manually.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD.
+ define(['expect.js', '../../src/index'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ factory(require('expect.js'), require('../../src/index'));
+ } else {
+ // Browser globals (root is window)
+ factory(root.expect, root.SwaggerPetstore);
+ }
+}(this, function(expect, SwaggerPetstore) {
+ 'use strict';
+
+ var instance;
+
+ beforeEach(function() {
+ instance = new SwaggerPetstore.HasOnlyReadOnly();
+ });
+
+ var getProperty = function(object, getter, property) {
+ // Use getter method if present; otherwise, get the property directly.
+ if (typeof object[getter] === 'function')
+ return object[getter]();
+ else
+ return object[property];
+ }
+
+ var setProperty = function(object, setter, property, value) {
+ // Use setter method if present; otherwise, set the property directly.
+ if (typeof object[setter] === 'function')
+ object[setter](value);
+ else
+ object[property] = value;
+ }
+
+ describe('HasOnlyReadOnly', function() {
+ it('should create an instance of HasOnlyReadOnly', function() {
+ // uncomment below and update the code to test HasOnlyReadOnly
+ //var instane = new SwaggerPetstore.HasOnlyReadOnly();
+ //expect(instance).to.be.a(SwaggerPetstore.HasOnlyReadOnly);
+ });
+
+ it('should have the property bar (base name: "bar")', function() {
+ // uncomment below and update the code to test the property bar
+ //var instane = new SwaggerPetstore.HasOnlyReadOnly();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property foo (base name: "foo")', function() {
+ // uncomment below and update the code to test the property foo
+ //var instane = new SwaggerPetstore.HasOnlyReadOnly();
+ //expect(instance).to.be();
+ });
+
+ });
+
+}));
diff --git a/samples/client/petstore/javascript/test/model/MapTest.spec.js b/samples/client/petstore/javascript/test/model/MapTest.spec.js
new file mode 100644
index 0000000000..4c91b24d01
--- /dev/null
+++ b/samples/client/petstore/javascript/test/model/MapTest.spec.js
@@ -0,0 +1,88 @@
+/**
+ * Swagger 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
+ * Do not edit the class manually.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD.
+ define(['expect.js', '../../src/index'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ factory(require('expect.js'), require('../../src/index'));
+ } else {
+ // Browser globals (root is window)
+ factory(root.expect, root.SwaggerPetstore);
+ }
+}(this, function(expect, SwaggerPetstore) {
+ 'use strict';
+
+ var instance;
+
+ beforeEach(function() {
+ instance = new SwaggerPetstore.MapTest();
+ });
+
+ var getProperty = function(object, getter, property) {
+ // Use getter method if present; otherwise, get the property directly.
+ if (typeof object[getter] === 'function')
+ return object[getter]();
+ else
+ return object[property];
+ }
+
+ var setProperty = function(object, setter, property, value) {
+ // Use setter method if present; otherwise, set the property directly.
+ if (typeof object[setter] === 'function')
+ object[setter](value);
+ else
+ object[property] = value;
+ }
+
+ describe('MapTest', function() {
+ it('should create an instance of MapTest', function() {
+ // uncomment below and update the code to test MapTest
+ //var instane = new SwaggerPetstore.MapTest();
+ //expect(instance).to.be.a(SwaggerPetstore.MapTest);
+ });
+
+ it('should have the property mapMapOfString (base name: "map_map_of_string")', function() {
+ // uncomment below and update the code to test the property mapMapOfString
+ //var instane = new SwaggerPetstore.MapTest();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property mapMapOfEnum (base name: "map_map_of_enum")', function() {
+ // uncomment below and update the code to test the property mapMapOfEnum
+ //var instane = new SwaggerPetstore.MapTest();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property mapOfEnumString (base name: "map_of_enum_string")', function() {
+ // uncomment below and update the code to test the property mapOfEnumString
+ //var instane = new SwaggerPetstore.MapTest();
+ //expect(instance).to.be();
+ });
+
+ });
+
+}));
diff --git a/samples/client/petstore/javascript/test/model/NumberOnly.spec.js b/samples/client/petstore/javascript/test/model/NumberOnly.spec.js
new file mode 100644
index 0000000000..f8b8327a2e
--- /dev/null
+++ b/samples/client/petstore/javascript/test/model/NumberOnly.spec.js
@@ -0,0 +1,76 @@
+/**
+ * Swagger 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
+ * Do not edit the class manually.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD.
+ define(['expect.js', '../../src/index'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ factory(require('expect.js'), require('../../src/index'));
+ } else {
+ // Browser globals (root is window)
+ factory(root.expect, root.SwaggerPetstore);
+ }
+}(this, function(expect, SwaggerPetstore) {
+ 'use strict';
+
+ var instance;
+
+ beforeEach(function() {
+ instance = new SwaggerPetstore.NumberOnly();
+ });
+
+ var getProperty = function(object, getter, property) {
+ // Use getter method if present; otherwise, get the property directly.
+ if (typeof object[getter] === 'function')
+ return object[getter]();
+ else
+ return object[property];
+ }
+
+ var setProperty = function(object, setter, property, value) {
+ // Use setter method if present; otherwise, set the property directly.
+ if (typeof object[setter] === 'function')
+ object[setter](value);
+ else
+ object[property] = value;
+ }
+
+ describe('NumberOnly', function() {
+ it('should create an instance of NumberOnly', function() {
+ // uncomment below and update the code to test NumberOnly
+ //var instane = new SwaggerPetstore.NumberOnly();
+ //expect(instance).to.be.a(SwaggerPetstore.NumberOnly);
+ });
+
+ it('should have the property justNumber (base name: "JustNumber")', function() {
+ // uncomment below and update the code to test the property justNumber
+ //var instane = new SwaggerPetstore.NumberOnly();
+ //expect(instance).to.be();
+ });
+
+ });
+
+}));