Gh-4044: Enabling ES6 in javascript client (#5593)

* gh-4044: Added useES6 as an option for javascript templates

* gh-4044: Enabled ES6 in `javascript/api.mustache`

* gh-4044: Enabled ES6 in `javascript/ApiClient.mustache`

* gh-4044: Enabled ES6 in `javascript/enumClass.mustache`

* gh-4044: Added useES6 cli option to `javascript` clients and updated the test cases

* gh-4044: Enabled ES6 in `javascript/index.mustache`

* gh-4044: Enabled ES6 in `javascript` model templates
* `javascript/model.mustache`
* `javascript/partial_model_generic.mustache`
* `javascript/partial_model_enum_class.mustache`
* `javascript/partial_model_inner_enum.mustache`

* gh-4044: Separated `javascript-es6` templates to another folder

* gh-4044: Updated `javascript-es6/index.mustache`

* gh-4044: Enabled ES6 in `javascript-es6/api_doc.mustache`

* gh-4044: Added required dependencies for ES6

* gh-4044: Updated Supportig files for ES6 and non ES6

* gh-4044: Added test scripts to verify `javascript` useEs6 option

* gh-4044: Commented `javascript-es6` scripts due to the permission issues.
This commit is contained in:
Dinuka De Silva
2017-05-24 14:05:54 +05:30
committed by wing328
parent 296e0288ea
commit ca139ffc05
261 changed files with 21570 additions and 10 deletions

View File

@@ -0,0 +1,71 @@
/**
* 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.
*
*/
(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.AdditionalPropertiesClass();
});
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('AdditionalPropertiesClass', function() {
it('should create an instance of AdditionalPropertiesClass', function() {
// uncomment below and update the code to test AdditionalPropertiesClass
//var instane = new SwaggerPetstore.AdditionalPropertiesClass();
//expect(instance).to.be.a(SwaggerPetstore.AdditionalPropertiesClass);
});
it('should have the property mapProperty (base name: "map_property")', function() {
// uncomment below and update the code to test the property mapProperty
//var instane = new SwaggerPetstore.AdditionalPropertiesClass();
//expect(instance).to.be();
});
it('should have the property mapOfMapProperty (base name: "map_of_map_property")', function() {
// uncomment below and update the code to test the property mapOfMapProperty
//var instane = new SwaggerPetstore.AdditionalPropertiesClass();
//expect(instance).to.be();
});
});
}));

View File

@@ -0,0 +1,71 @@
/**
* 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.
*
*/
(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.Animal();
});
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('Animal', function() {
it('should create an instance of Animal', function() {
// uncomment below and update the code to test Animal
//var instane = new SwaggerPetstore.Animal();
//expect(instance).to.be.a(SwaggerPetstore.Animal);
});
it('should have the property className (base name: "className")', function() {
// uncomment below and update the code to test the property className
//var instane = new SwaggerPetstore.Animal();
//expect(instance).to.be();
});
it('should have the property color (base name: "color")', function() {
// uncomment below and update the code to test the property color
//var instane = new SwaggerPetstore.Animal();
//expect(instance).to.be();
});
});
}));

View File

@@ -0,0 +1,59 @@
/**
* 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.
*
*/
(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.AnimalFarm();
});
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('AnimalFarm', function() {
it('should create an instance of AnimalFarm', function() {
// uncomment below and update the code to test AnimalFarm
//var instane = new SwaggerPetstore.AnimalFarm();
//expect(instance).to.be.a(SwaggerPetstore.AnimalFarm);
});
});
}));

View File

@@ -0,0 +1,77 @@
/**
* 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.
*
*/
(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.ApiResponse();
});
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('ApiResponse', function() {
it('should create an instance of ApiResponse', function() {
// uncomment below and update the code to test ApiResponse
//var instane = new SwaggerPetstore.ApiResponse();
//expect(instance).to.be.a(SwaggerPetstore.ApiResponse);
});
it('should have the property code (base name: "code")', function() {
// uncomment below and update the code to test the property code
//var instane = new SwaggerPetstore.ApiResponse();
//expect(instance).to.be();
});
it('should have the property type (base name: "type")', function() {
// uncomment below and update the code to test the property type
//var instane = new SwaggerPetstore.ApiResponse();
//expect(instance).to.be();
});
it('should have the property message (base name: "message")', function() {
// uncomment below and update the code to test the property message
//var instane = new SwaggerPetstore.ApiResponse();
//expect(instance).to.be();
});
});
}));

View File

@@ -0,0 +1,65 @@
/**
* 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.
*
*/
(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();
});
});
}));

View File

@@ -0,0 +1,65 @@
/**
* 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.
*
*/
(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();
});
});
}));

View File

@@ -0,0 +1,77 @@
/**
* 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.
*
*/
(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.ArrayTest();
});
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('ArrayTest', function() {
it('should create an instance of ArrayTest', function() {
// uncomment below and update the code to test ArrayTest
//var instane = new SwaggerPetstore.ArrayTest();
//expect(instance).to.be.a(SwaggerPetstore.ArrayTest);
});
it('should have the property arrayOfString (base name: "array_of_string")', function() {
// uncomment below and update the code to test the property arrayOfString
//var instane = new SwaggerPetstore.ArrayTest();
//expect(instance).to.be();
});
it('should have the property arrayArrayOfInteger (base name: "array_array_of_integer")', function() {
// uncomment below and update the code to test the property arrayArrayOfInteger
//var instane = new SwaggerPetstore.ArrayTest();
//expect(instance).to.be();
});
it('should have the property arrayArrayOfModel (base name: "array_array_of_model")', function() {
// uncomment below and update the code to test the property arrayArrayOfModel
//var instane = new SwaggerPetstore.ArrayTest();
//expect(instance).to.be();
});
});
}));

View File

@@ -0,0 +1,95 @@
/**
* 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.
*
*/
(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.Capitalization();
});
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('Capitalization', function() {
it('should create an instance of Capitalization', function() {
// uncomment below and update the code to test Capitalization
//var instane = new SwaggerPetstore.Capitalization();
//expect(instance).to.be.a(SwaggerPetstore.Capitalization);
});
it('should have the property smallCamel (base name: "smallCamel")', function() {
// uncomment below and update the code to test the property smallCamel
//var instane = new SwaggerPetstore.Capitalization();
//expect(instance).to.be();
});
it('should have the property capitalCamel (base name: "CapitalCamel")', function() {
// uncomment below and update the code to test the property capitalCamel
//var instane = new SwaggerPetstore.Capitalization();
//expect(instance).to.be();
});
it('should have the property smallSnake (base name: "small_Snake")', function() {
// uncomment below and update the code to test the property smallSnake
//var instane = new SwaggerPetstore.Capitalization();
//expect(instance).to.be();
});
it('should have the property capitalSnake (base name: "Capital_Snake")', function() {
// uncomment below and update the code to test the property capitalSnake
//var instane = new SwaggerPetstore.Capitalization();
//expect(instance).to.be();
});
it('should have the property sCAETHFlowPoints (base name: "SCA_ETH_Flow_Points")', function() {
// uncomment below and update the code to test the property sCAETHFlowPoints
//var instane = new SwaggerPetstore.Capitalization();
//expect(instance).to.be();
});
it('should have the property ATT_NAME (base name: "ATT_NAME")', function() {
// uncomment below and update the code to test the property ATT_NAME
//var instane = new SwaggerPetstore.Capitalization();
//expect(instance).to.be();
});
});
}));

View File

@@ -0,0 +1,65 @@
/**
* 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.
*
*/
(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.Cat();
});
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('Cat', function() {
it('should create an instance of Cat', function() {
// uncomment below and update the code to test Cat
//var instane = new SwaggerPetstore.Cat();
//expect(instance).to.be.a(SwaggerPetstore.Cat);
});
it('should have the property declawed (base name: "declawed")', function() {
// uncomment below and update the code to test the property declawed
//var instane = new SwaggerPetstore.Cat();
//expect(instance).to.be();
});
});
}));

View File

@@ -0,0 +1,71 @@
/**
* 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.
*
*/
(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.Category();
});
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('Category', function() {
it('should create an instance of Category', function() {
// uncomment below and update the code to test Category
//var instane = new SwaggerPetstore.Category();
//expect(instance).to.be.a(SwaggerPetstore.Category);
});
it('should have the property id (base name: "id")', function() {
// uncomment below and update the code to test the property id
//var instane = new SwaggerPetstore.Category();
//expect(instance).to.be();
});
it('should have the property name (base name: "name")', function() {
// uncomment below and update the code to test the property name
//var instane = new SwaggerPetstore.Category();
//expect(instance).to.be();
});
});
}));

View File

@@ -0,0 +1,65 @@
/**
* 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.
*
*/
(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.ClassModel();
});
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('ClassModel', function() {
it('should create an instance of ClassModel', function() {
// uncomment below and update the code to test ClassModel
//var instane = new SwaggerPetstore.ClassModel();
//expect(instance).to.be.a(SwaggerPetstore.ClassModel);
});
it('should have the property _class (base name: "_class")', function() {
// uncomment below and update the code to test the property _class
//var instane = new SwaggerPetstore.ClassModel();
//expect(instance).to.be();
});
});
}));

View File

@@ -0,0 +1,65 @@
/**
* 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.
*
*/
(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.Client();
});
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('Client', function() {
it('should create an instance of Client', function() {
// uncomment below and update the code to test Client
//var instane = new SwaggerPetstore.Client();
//expect(instance).to.be.a(SwaggerPetstore.Client);
});
it('should have the property client (base name: "client")', function() {
// uncomment below and update the code to test the property client
//var instane = new SwaggerPetstore.Client();
//expect(instance).to.be();
});
});
}));

View File

@@ -0,0 +1,65 @@
/**
* 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.
*
*/
(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.Dog();
});
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('Dog', function() {
it('should create an instance of Dog', function() {
// uncomment below and update the code to test Dog
//var instane = new SwaggerPetstore.Dog();
//expect(instance).to.be.a(SwaggerPetstore.Dog);
});
it('should have the property breed (base name: "breed")', function() {
// uncomment below and update the code to test the property breed
//var instane = new SwaggerPetstore.Dog();
//expect(instance).to.be();
});
});
}));

View File

@@ -0,0 +1,71 @@
/**
* 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.
*
*/
(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.EnumArrays();
});
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('EnumArrays', function() {
it('should create an instance of EnumArrays', function() {
// uncomment below and update the code to test EnumArrays
//var instane = new SwaggerPetstore.EnumArrays();
//expect(instance).to.be.a(SwaggerPetstore.EnumArrays);
});
it('should have the property justSymbol (base name: "just_symbol")', function() {
// uncomment below and update the code to test the property justSymbol
//var instane = new SwaggerPetstore.EnumArrays();
//expect(instance).to.be();
});
it('should have the property arrayEnum (base name: "array_enum")', function() {
// uncomment below and update the code to test the property arrayEnum
//var instane = new SwaggerPetstore.EnumArrays();
//expect(instance).to.be();
});
});
}));

View File

@@ -0,0 +1,58 @@
/**
* 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.
*
*/
(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() {
});
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('EnumClass', function() {
it('should create an instance of EnumClass', function() {
// uncomment below and update the code to test EnumClass
//var instane = new SwaggerPetstore.EnumClass();
//expect(instance).to.be.a(SwaggerPetstore.EnumClass);
});
});
}));

View File

@@ -0,0 +1,83 @@
/**
* 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.
*
*/
(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.EnumTest();
});
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('EnumTest', function() {
it('should create an instance of EnumTest', function() {
// uncomment below and update the code to test EnumTest
//var instane = new SwaggerPetstore.EnumTest();
//expect(instance).to.be.a(SwaggerPetstore.EnumTest);
});
it('should have the property enumString (base name: "enum_string")', function() {
// uncomment below and update the code to test the property enumString
//var instane = new SwaggerPetstore.EnumTest();
//expect(instance).to.be();
});
it('should have the property enumInteger (base name: "enum_integer")', function() {
// uncomment below and update the code to test the property enumInteger
//var instane = new SwaggerPetstore.EnumTest();
//expect(instance).to.be();
});
it('should have the property enumNumber (base name: "enum_number")', function() {
// uncomment below and update the code to test the property enumNumber
//var instane = new SwaggerPetstore.EnumTest();
//expect(instance).to.be();
});
it('should have the property outerEnum (base name: "outerEnum")', function() {
// uncomment below and update the code to test the property outerEnum
//var instane = new SwaggerPetstore.EnumTest();
//expect(instance).to.be();
});
});
}));

View File

@@ -0,0 +1,137 @@
/**
* 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.
*
*/
(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.FormatTest();
});
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('FormatTest', function() {
it('should create an instance of FormatTest', function() {
// uncomment below and update the code to test FormatTest
//var instane = new SwaggerPetstore.FormatTest();
//expect(instance).to.be.a(SwaggerPetstore.FormatTest);
});
it('should have the property integer (base name: "integer")', function() {
// uncomment below and update the code to test the property integer
//var instane = new SwaggerPetstore.FormatTest();
//expect(instance).to.be();
});
it('should have the property int32 (base name: "int32")', function() {
// uncomment below and update the code to test the property int32
//var instane = new SwaggerPetstore.FormatTest();
//expect(instance).to.be();
});
it('should have the property int64 (base name: "int64")', function() {
// uncomment below and update the code to test the property int64
//var instane = new SwaggerPetstore.FormatTest();
//expect(instance).to.be();
});
it('should have the property _number (base name: "number")', function() {
// uncomment below and update the code to test the property _number
//var instane = new SwaggerPetstore.FormatTest();
//expect(instance).to.be();
});
it('should have the property _float (base name: "float")', function() {
// uncomment below and update the code to test the property _float
//var instane = new SwaggerPetstore.FormatTest();
//expect(instance).to.be();
});
it('should have the property _double (base name: "double")', function() {
// uncomment below and update the code to test the property _double
//var instane = new SwaggerPetstore.FormatTest();
//expect(instance).to.be();
});
it('should have the property _string (base name: "string")', function() {
// uncomment below and update the code to test the property _string
//var instane = new SwaggerPetstore.FormatTest();
//expect(instance).to.be();
});
it('should have the property _byte (base name: "byte")', function() {
// uncomment below and update the code to test the property _byte
//var instane = new SwaggerPetstore.FormatTest();
//expect(instance).to.be();
});
it('should have the property binary (base name: "binary")', function() {
// uncomment below and update the code to test the property binary
//var instane = new SwaggerPetstore.FormatTest();
//expect(instance).to.be();
});
it('should have the property _date (base name: "date")', function() {
// uncomment below and update the code to test the property _date
//var instane = new SwaggerPetstore.FormatTest();
//expect(instance).to.be();
});
it('should have the property dateTime (base name: "dateTime")', function() {
// uncomment below and update the code to test the property dateTime
//var instane = new SwaggerPetstore.FormatTest();
//expect(instance).to.be();
});
it('should have the property uuid (base name: "uuid")', function() {
// uncomment below and update the code to test the property uuid
//var instane = new SwaggerPetstore.FormatTest();
//expect(instance).to.be();
});
it('should have the property password (base name: "password")', function() {
// uncomment below and update the code to test the property password
//var instane = new SwaggerPetstore.FormatTest();
//expect(instance).to.be();
});
});
}));

View File

@@ -0,0 +1,71 @@
/**
* 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.
*
*/
(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();
});
});
}));

View File

@@ -0,0 +1,65 @@
/**
* 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.
*
*/
(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.List();
});
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('List', function() {
it('should create an instance of List', function() {
// uncomment below and update the code to test List
//var instane = new SwaggerPetstore.List();
//expect(instance).to.be.a(SwaggerPetstore.List);
});
it('should have the property _123List (base name: "123-list")', function() {
// uncomment below and update the code to test the property _123List
//var instane = new SwaggerPetstore.List();
//expect(instance).to.be();
});
});
}));

View File

@@ -0,0 +1,71 @@
/**
* 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.
*
*/
(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();
});
});
}));

View File

@@ -0,0 +1,77 @@
/**
* 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.
*
*/
(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.MixedPropertiesAndAdditionalPropertiesClass();
});
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('MixedPropertiesAndAdditionalPropertiesClass', function() {
it('should create an instance of MixedPropertiesAndAdditionalPropertiesClass', function() {
// uncomment below and update the code to test MixedPropertiesAndAdditionalPropertiesClass
//var instane = new SwaggerPetstore.MixedPropertiesAndAdditionalPropertiesClass();
//expect(instance).to.be.a(SwaggerPetstore.MixedPropertiesAndAdditionalPropertiesClass);
});
it('should have the property uuid (base name: "uuid")', function() {
// uncomment below and update the code to test the property uuid
//var instane = new SwaggerPetstore.MixedPropertiesAndAdditionalPropertiesClass();
//expect(instance).to.be();
});
it('should have the property dateTime (base name: "dateTime")', function() {
// uncomment below and update the code to test the property dateTime
//var instane = new SwaggerPetstore.MixedPropertiesAndAdditionalPropertiesClass();
//expect(instance).to.be();
});
it('should have the property map (base name: "map")', function() {
// uncomment below and update the code to test the property map
//var instane = new SwaggerPetstore.MixedPropertiesAndAdditionalPropertiesClass();
//expect(instance).to.be();
});
});
}));

View File

@@ -0,0 +1,71 @@
/**
* 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.
*
*/
(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.Model200Response();
});
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('Model200Response', function() {
it('should create an instance of Model200Response', function() {
// uncomment below and update the code to test Model200Response
//var instane = new SwaggerPetstore.Model200Response();
//expect(instance).to.be.a(SwaggerPetstore.Model200Response);
});
it('should have the property name (base name: "name")', function() {
// uncomment below and update the code to test the property name
//var instane = new SwaggerPetstore.Model200Response();
//expect(instance).to.be();
});
it('should have the property _class (base name: "class")', function() {
// uncomment below and update the code to test the property _class
//var instane = new SwaggerPetstore.Model200Response();
//expect(instance).to.be();
});
});
}));

View File

@@ -0,0 +1,65 @@
/**
* 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.
*
*/
(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.ModelReturn();
});
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('ModelReturn', function() {
it('should create an instance of ModelReturn', function() {
// uncomment below and update the code to test ModelReturn
//var instane = new SwaggerPetstore.ModelReturn();
//expect(instance).to.be.a(SwaggerPetstore.ModelReturn);
});
it('should have the property _return (base name: "return")', function() {
// uncomment below and update the code to test the property _return
//var instane = new SwaggerPetstore.ModelReturn();
//expect(instance).to.be();
});
});
}));

View File

@@ -0,0 +1,83 @@
/**
* 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.
*
*/
(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.Name();
});
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('Name', function() {
it('should create an instance of Name', function() {
// uncomment below and update the code to test Name
//var instane = new SwaggerPetstore.Name();
//expect(instance).to.be.a(SwaggerPetstore.Name);
});
it('should have the property name (base name: "name")', function() {
// uncomment below and update the code to test the property name
//var instane = new SwaggerPetstore.Name();
//expect(instance).to.be();
});
it('should have the property snakeCase (base name: "snake_case")', function() {
// uncomment below and update the code to test the property snakeCase
//var instane = new SwaggerPetstore.Name();
//expect(instance).to.be();
});
it('should have the property property (base name: "property")', function() {
// uncomment below and update the code to test the property property
//var instane = new SwaggerPetstore.Name();
//expect(instance).to.be();
});
it('should have the property _123Number (base name: "123Number")', function() {
// uncomment below and update the code to test the property _123Number
//var instane = new SwaggerPetstore.Name();
//expect(instance).to.be();
});
});
}));

View File

@@ -0,0 +1,65 @@
/**
* 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.
*
*/
(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();
});
});
}));

View File

@@ -0,0 +1,95 @@
/**
* 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.
*
*/
(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.Order();
});
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('Order', function() {
it('should create an instance of Order', function() {
// uncomment below and update the code to test Order
//var instane = new SwaggerPetstore.Order();
//expect(instance).to.be.a(SwaggerPetstore.Order);
});
it('should have the property id (base name: "id")', function() {
// uncomment below and update the code to test the property id
//var instane = new SwaggerPetstore.Order();
//expect(instance).to.be();
});
it('should have the property petId (base name: "petId")', function() {
// uncomment below and update the code to test the property petId
//var instane = new SwaggerPetstore.Order();
//expect(instance).to.be();
});
it('should have the property quantity (base name: "quantity")', function() {
// uncomment below and update the code to test the property quantity
//var instane = new SwaggerPetstore.Order();
//expect(instance).to.be();
});
it('should have the property shipDate (base name: "shipDate")', function() {
// uncomment below and update the code to test the property shipDate
//var instane = new SwaggerPetstore.Order();
//expect(instance).to.be();
});
it('should have the property status (base name: "status")', function() {
// uncomment below and update the code to test the property status
//var instane = new SwaggerPetstore.Order();
//expect(instance).to.be();
});
it('should have the property complete (base name: "complete")', function() {
// uncomment below and update the code to test the property complete
//var instane = new SwaggerPetstore.Order();
//expect(instance).to.be();
});
});
}));

View File

@@ -0,0 +1,58 @@
/**
* 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.
*
*/
(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() {
});
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('OuterEnum', function() {
it('should create an instance of OuterEnum', function() {
// uncomment below and update the code to test OuterEnum
//var instane = new SwaggerPetstore.OuterEnum();
//expect(instance).to.be.a(SwaggerPetstore.OuterEnum);
});
});
}));

View File

@@ -0,0 +1,95 @@
/**
* 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.
*
*/
(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.Pet();
});
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('Pet', function() {
it('should create an instance of Pet', function() {
// uncomment below and update the code to test Pet
//var instane = new SwaggerPetstore.Pet();
//expect(instance).to.be.a(SwaggerPetstore.Pet);
});
it('should have the property id (base name: "id")', function() {
// uncomment below and update the code to test the property id
//var instane = new SwaggerPetstore.Pet();
//expect(instance).to.be();
});
it('should have the property category (base name: "category")', function() {
// uncomment below and update the code to test the property category
//var instane = new SwaggerPetstore.Pet();
//expect(instance).to.be();
});
it('should have the property name (base name: "name")', function() {
// uncomment below and update the code to test the property name
//var instane = new SwaggerPetstore.Pet();
//expect(instance).to.be();
});
it('should have the property photoUrls (base name: "photoUrls")', function() {
// uncomment below and update the code to test the property photoUrls
//var instane = new SwaggerPetstore.Pet();
//expect(instance).to.be();
});
it('should have the property tags (base name: "tags")', function() {
// uncomment below and update the code to test the property tags
//var instane = new SwaggerPetstore.Pet();
//expect(instance).to.be();
});
it('should have the property status (base name: "status")', function() {
// uncomment below and update the code to test the property status
//var instane = new SwaggerPetstore.Pet();
//expect(instance).to.be();
});
});
}));

View File

@@ -0,0 +1,71 @@
/**
* 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.
*
*/
(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.ReadOnlyFirst();
});
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('ReadOnlyFirst', function() {
it('should create an instance of ReadOnlyFirst', function() {
// uncomment below and update the code to test ReadOnlyFirst
//var instane = new SwaggerPetstore.ReadOnlyFirst();
//expect(instance).to.be.a(SwaggerPetstore.ReadOnlyFirst);
});
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.ReadOnlyFirst();
//expect(instance).to.be();
});
it('should have the property baz (base name: "baz")', function() {
// uncomment below and update the code to test the property baz
//var instane = new SwaggerPetstore.ReadOnlyFirst();
//expect(instance).to.be();
});
});
}));

View File

@@ -0,0 +1,65 @@
/**
* 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.
*
*/
(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.SpecialModelName();
});
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('SpecialModelName', function() {
it('should create an instance of SpecialModelName', function() {
// uncomment below and update the code to test SpecialModelName
//var instane = new SwaggerPetstore.SpecialModelName();
//expect(instance).to.be.a(SwaggerPetstore.SpecialModelName);
});
it('should have the property specialPropertyName (base name: "$special[property.name]")', function() {
// uncomment below and update the code to test the property specialPropertyName
//var instane = new SwaggerPetstore.SpecialModelName();
//expect(instance).to.be();
});
});
}));

View File

@@ -0,0 +1,71 @@
/**
* 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.
*
*/
(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.Tag();
});
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('Tag', function() {
it('should create an instance of Tag', function() {
// uncomment below and update the code to test Tag
//var instane = new SwaggerPetstore.Tag();
//expect(instance).to.be.a(SwaggerPetstore.Tag);
});
it('should have the property id (base name: "id")', function() {
// uncomment below and update the code to test the property id
//var instane = new SwaggerPetstore.Tag();
//expect(instance).to.be();
});
it('should have the property name (base name: "name")', function() {
// uncomment below and update the code to test the property name
//var instane = new SwaggerPetstore.Tag();
//expect(instance).to.be();
});
});
}));

View File

@@ -0,0 +1,107 @@
/**
* 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.
*
*/
(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.User();
});
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('User', function() {
it('should create an instance of User', function() {
// uncomment below and update the code to test User
//var instane = new SwaggerPetstore.User();
//expect(instance).to.be.a(SwaggerPetstore.User);
});
it('should have the property id (base name: "id")', function() {
// uncomment below and update the code to test the property id
//var instane = new SwaggerPetstore.User();
//expect(instance).to.be();
});
it('should have the property username (base name: "username")', function() {
// uncomment below and update the code to test the property username
//var instane = new SwaggerPetstore.User();
//expect(instance).to.be();
});
it('should have the property firstName (base name: "firstName")', function() {
// uncomment below and update the code to test the property firstName
//var instane = new SwaggerPetstore.User();
//expect(instance).to.be();
});
it('should have the property lastName (base name: "lastName")', function() {
// uncomment below and update the code to test the property lastName
//var instane = new SwaggerPetstore.User();
//expect(instance).to.be();
});
it('should have the property email (base name: "email")', function() {
// uncomment below and update the code to test the property email
//var instane = new SwaggerPetstore.User();
//expect(instance).to.be();
});
it('should have the property password (base name: "password")', function() {
// uncomment below and update the code to test the property password
//var instane = new SwaggerPetstore.User();
//expect(instance).to.be();
});
it('should have the property phone (base name: "phone")', function() {
// uncomment below and update the code to test the property phone
//var instane = new SwaggerPetstore.User();
//expect(instance).to.be();
});
it('should have the property userStatus (base name: "userStatus")', function() {
// uncomment below and update the code to test the property userStatus
//var instane = new SwaggerPetstore.User();
//expect(instance).to.be();
});
});
}));