Combine javascript and javascript-apollo generators (#13270)

* Combine javascript and javascript-apollo generator functionality

* Combine javascript and javascript-apollo templates

* update configs

* deprecate javascript-apollo generator

* bonus magic string deletion 

* update samples

* update generator docs

* fix: include .babelrc in apollo generation

* update samples

* update samples

* rename javascript-apollo to javascript-apollo-deprecated

* fix javascript apollo library template

Apollo library now uses the partial_model_generic template file from the ES6 library, as it includes many fixes and improvements (including handling models with ill-named attributes)

* update samples

* Create javascript-apollo-deprecated.md

* Updated javascript generator template's gitignore

Updates .gitignore with that from https://github.com/github/gitignore/blob/main/Node.gitignore

Main reason for the update is to ignore the 'dist' folder with compiled files by default.

* javascript generator: merge api_test template files

The only difference is that Apollo is not designed for browser, so having a "if(browser)" check is useless, but doesn't hurt.

* update docs

* cleanup

* avoid possible config clash

* update javascript-apollo sample

* update javascript-es6 sample

I kept the pom.xml from before

* update javascript-promise-es6 sample

kept pom.xml

* update samples
This commit is contained in:
João Neto
2022-08-27 07:29:35 +02:00
committed by GitHub
parent 2c22a01779
commit 62a0878bae
353 changed files with 11411 additions and 5169 deletions

View File

@@ -0,0 +1,71 @@
/**
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.OpenApiPetstore);
}
}(this, function(expect, OpenApiPetstore) {
'use strict';
var instance;
beforeEach(function() {
instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.AdditionalPropertiesClass();
//expect(instance).to.be.a(OpenApiPetstore.AdditionalPropertiesClass);
});
it('should have the property mapProperty (base name: "map_property")', function() {
// uncomment below and update the code to test the property mapProperty
//var instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.AdditionalPropertiesClass();
//expect(instance).to.be();
});
});
}));

View File

@@ -0,0 +1,71 @@
/**
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.OpenApiPetstore);
}
}(this, function(expect, OpenApiPetstore) {
'use strict';
var instance;
beforeEach(function() {
instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.Animal();
//expect(instance).to.be.a(OpenApiPetstore.Animal);
});
it('should have the property className (base name: "className")', function() {
// uncomment below and update the code to test the property className
//var instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.Animal();
//expect(instance).to.be();
});
});
}));

View File

@@ -1,6 +1,6 @@
/**
* OpenAPI Petstore
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
@@ -50,25 +50,25 @@
describe('ApiResponse', function() {
it('should create an instance of ApiResponse', function() {
// uncomment below and update the code to test ApiResponse
//var instane = new OpenApiPetstore.ApiResponse();
//var instance = new OpenApiPetstore.ApiResponse();
//expect(instance).to.be.a(OpenApiPetstore.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 OpenApiPetstore.ApiResponse();
//var instance = new OpenApiPetstore.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 OpenApiPetstore.ApiResponse();
//var instance = new OpenApiPetstore.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 OpenApiPetstore.ApiResponse();
//var instance = new OpenApiPetstore.ApiResponse();
//expect(instance).to.be();
});

View File

@@ -0,0 +1,65 @@
/**
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.OpenApiPetstore);
}
}(this, function(expect, OpenApiPetstore) {
'use strict';
var instance;
beforeEach(function() {
instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.ArrayOfArrayOfNumberOnly();
//expect(instance).to.be.a(OpenApiPetstore.ArrayOfArrayOfNumberOnly);
});
it('should have the property arrayArrayNumber (base name: "ArrayArrayNumber")', function() {
// uncomment below and update the code to test the property arrayArrayNumber
//var instance = new OpenApiPetstore.ArrayOfArrayOfNumberOnly();
//expect(instance).to.be();
});
});
}));

View File

@@ -0,0 +1,65 @@
/**
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.OpenApiPetstore);
}
}(this, function(expect, OpenApiPetstore) {
'use strict';
var instance;
beforeEach(function() {
instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.ArrayOfNumberOnly();
//expect(instance).to.be.a(OpenApiPetstore.ArrayOfNumberOnly);
});
it('should have the property arrayNumber (base name: "ArrayNumber")', function() {
// uncomment below and update the code to test the property arrayNumber
//var instance = new OpenApiPetstore.ArrayOfNumberOnly();
//expect(instance).to.be();
});
});
}));

View File

@@ -0,0 +1,77 @@
/**
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.OpenApiPetstore);
}
}(this, function(expect, OpenApiPetstore) {
'use strict';
var instance;
beforeEach(function() {
instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.ArrayTest();
//expect(instance).to.be.a(OpenApiPetstore.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 instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.ArrayTest();
//expect(instance).to.be();
});
});
}));

View File

@@ -0,0 +1,95 @@
/**
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.OpenApiPetstore);
}
}(this, function(expect, OpenApiPetstore) {
'use strict';
var instance;
beforeEach(function() {
instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.Capitalization();
//expect(instance).to.be.a(OpenApiPetstore.Capitalization);
});
it('should have the property smallCamel (base name: "smallCamel")', function() {
// uncomment below and update the code to test the property smallCamel
//var instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.Capitalization();
//expect(instance).to.be();
});
});
}));

View File

@@ -0,0 +1,65 @@
/**
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.OpenApiPetstore);
}
}(this, function(expect, OpenApiPetstore) {
'use strict';
var instance;
beforeEach(function() {
instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.Cat();
//expect(instance).to.be.a(OpenApiPetstore.Cat);
});
it('should have the property declawed (base name: "declawed")', function() {
// uncomment below and update the code to test the property declawed
//var instance = new OpenApiPetstore.Cat();
//expect(instance).to.be();
});
});
}));

View File

@@ -0,0 +1,65 @@
/**
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.OpenApiPetstore);
}
}(this, function(expect, OpenApiPetstore) {
'use strict';
var instance;
beforeEach(function() {
instance = new OpenApiPetstore.CatAllOf();
});
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('CatAllOf', function() {
it('should create an instance of CatAllOf', function() {
// uncomment below and update the code to test CatAllOf
//var instance = new OpenApiPetstore.CatAllOf();
//expect(instance).to.be.a(OpenApiPetstore.CatAllOf);
});
it('should have the property declawed (base name: "declawed")', function() {
// uncomment below and update the code to test the property declawed
//var instance = new OpenApiPetstore.CatAllOf();
//expect(instance).to.be();
});
});
}));

View File

@@ -1,6 +1,6 @@
/**
* OpenAPI Petstore
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
@@ -50,19 +50,19 @@
describe('Category', function() {
it('should create an instance of Category', function() {
// uncomment below and update the code to test Category
//var instane = new OpenApiPetstore.Category();
//var instance = new OpenApiPetstore.Category();
//expect(instance).to.be.a(OpenApiPetstore.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 OpenApiPetstore.Category();
//var instance = new OpenApiPetstore.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 OpenApiPetstore.Category();
//var instance = new OpenApiPetstore.Category();
//expect(instance).to.be();
});

View File

@@ -0,0 +1,65 @@
/**
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.OpenApiPetstore);
}
}(this, function(expect, OpenApiPetstore) {
'use strict';
var instance;
beforeEach(function() {
instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.ClassModel();
//expect(instance).to.be.a(OpenApiPetstore.ClassModel);
});
it('should have the property _class (base name: "_class")', function() {
// uncomment below and update the code to test the property _class
//var instance = new OpenApiPetstore.ClassModel();
//expect(instance).to.be();
});
});
}));

View File

@@ -0,0 +1,65 @@
/**
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.OpenApiPetstore);
}
}(this, function(expect, OpenApiPetstore) {
'use strict';
var instance;
beforeEach(function() {
instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.Client();
//expect(instance).to.be.a(OpenApiPetstore.Client);
});
it('should have the property client (base name: "client")', function() {
// uncomment below and update the code to test the property client
//var instance = new OpenApiPetstore.Client();
//expect(instance).to.be();
});
});
}));

View File

@@ -0,0 +1,65 @@
/**
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.OpenApiPetstore);
}
}(this, function(expect, OpenApiPetstore) {
'use strict';
var instance;
beforeEach(function() {
instance = new OpenApiPetstore.DeprecatedObject();
});
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('DeprecatedObject', function() {
it('should create an instance of DeprecatedObject', function() {
// uncomment below and update the code to test DeprecatedObject
//var instance = new OpenApiPetstore.DeprecatedObject();
//expect(instance).to.be.a(OpenApiPetstore.DeprecatedObject);
});
it('should have the property name (base name: "name")', function() {
// uncomment below and update the code to test the property name
//var instance = new OpenApiPetstore.DeprecatedObject();
//expect(instance).to.be();
});
});
}));

View File

@@ -0,0 +1,65 @@
/**
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.OpenApiPetstore);
}
}(this, function(expect, OpenApiPetstore) {
'use strict';
var instance;
beforeEach(function() {
instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.Dog();
//expect(instance).to.be.a(OpenApiPetstore.Dog);
});
it('should have the property breed (base name: "breed")', function() {
// uncomment below and update the code to test the property breed
//var instance = new OpenApiPetstore.Dog();
//expect(instance).to.be();
});
});
}));

View File

@@ -0,0 +1,65 @@
/**
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.OpenApiPetstore);
}
}(this, function(expect, OpenApiPetstore) {
'use strict';
var instance;
beforeEach(function() {
instance = new OpenApiPetstore.DogAllOf();
});
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('DogAllOf', function() {
it('should create an instance of DogAllOf', function() {
// uncomment below and update the code to test DogAllOf
//var instance = new OpenApiPetstore.DogAllOf();
//expect(instance).to.be.a(OpenApiPetstore.DogAllOf);
});
it('should have the property breed (base name: "breed")', function() {
// uncomment below and update the code to test the property breed
//var instance = new OpenApiPetstore.DogAllOf();
//expect(instance).to.be();
});
});
}));

View File

@@ -0,0 +1,71 @@
/**
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.OpenApiPetstore);
}
}(this, function(expect, OpenApiPetstore) {
'use strict';
var instance;
beforeEach(function() {
instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.EnumArrays();
//expect(instance).to.be.a(OpenApiPetstore.EnumArrays);
});
it('should have the property justSymbol (base name: "just_symbol")', function() {
// uncomment below and update the code to test the property justSymbol
//var instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.EnumArrays();
//expect(instance).to.be();
});
});
}));

View File

@@ -0,0 +1,58 @@
/**
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.OpenApiPetstore);
}
}(this, function(expect, OpenApiPetstore) {
'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 instance = new OpenApiPetstore.EnumClass();
//expect(instance).to.be.a(OpenApiPetstore.EnumClass);
});
});
}));

View File

@@ -0,0 +1,107 @@
/**
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.OpenApiPetstore);
}
}(this, function(expect, OpenApiPetstore) {
'use strict';
var instance;
beforeEach(function() {
instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.EnumTest();
//expect(instance).to.be.a(OpenApiPetstore.EnumTest);
});
it('should have the property enumString (base name: "enum_string")', function() {
// uncomment below and update the code to test the property enumString
//var instance = new OpenApiPetstore.EnumTest();
//expect(instance).to.be();
});
it('should have the property enumStringRequired (base name: "enum_string_required")', function() {
// uncomment below and update the code to test the property enumStringRequired
//var instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.EnumTest();
//expect(instance).to.be();
});
it('should have the property outerEnumInteger (base name: "outerEnumInteger")', function() {
// uncomment below and update the code to test the property outerEnumInteger
//var instance = new OpenApiPetstore.EnumTest();
//expect(instance).to.be();
});
it('should have the property outerEnumDefaultValue (base name: "outerEnumDefaultValue")', function() {
// uncomment below and update the code to test the property outerEnumDefaultValue
//var instance = new OpenApiPetstore.EnumTest();
//expect(instance).to.be();
});
it('should have the property outerEnumIntegerDefaultValue (base name: "outerEnumIntegerDefaultValue")', function() {
// uncomment below and update the code to test the property outerEnumIntegerDefaultValue
//var instance = new OpenApiPetstore.EnumTest();
//expect(instance).to.be();
});
});
}));

View File

@@ -0,0 +1,65 @@
/**
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.OpenApiPetstore);
}
}(this, function(expect, OpenApiPetstore) {
'use strict';
var instance;
beforeEach(function() {
instance = new OpenApiPetstore.File();
});
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('File', function() {
it('should create an instance of File', function() {
// uncomment below and update the code to test File
//var instance = new OpenApiPetstore.File();
//expect(instance).to.be.a(OpenApiPetstore.File);
});
it('should have the property sourceURI (base name: "sourceURI")', function() {
// uncomment below and update the code to test the property sourceURI
//var instance = new OpenApiPetstore.File();
//expect(instance).to.be();
});
});
}));

View File

@@ -0,0 +1,71 @@
/**
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.OpenApiPetstore);
}
}(this, function(expect, OpenApiPetstore) {
'use strict';
var instance;
beforeEach(function() {
instance = new OpenApiPetstore.FileSchemaTestClass();
});
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('FileSchemaTestClass', function() {
it('should create an instance of FileSchemaTestClass', function() {
// uncomment below and update the code to test FileSchemaTestClass
//var instance = new OpenApiPetstore.FileSchemaTestClass();
//expect(instance).to.be.a(OpenApiPetstore.FileSchemaTestClass);
});
it('should have the property file (base name: "file")', function() {
// uncomment below and update the code to test the property file
//var instance = new OpenApiPetstore.FileSchemaTestClass();
//expect(instance).to.be();
});
it('should have the property files (base name: "files")', function() {
// uncomment below and update the code to test the property files
//var instance = new OpenApiPetstore.FileSchemaTestClass();
//expect(instance).to.be();
});
});
}));

View File

@@ -0,0 +1,65 @@
/**
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.OpenApiPetstore);
}
}(this, function(expect, OpenApiPetstore) {
'use strict';
var instance;
beforeEach(function() {
instance = new OpenApiPetstore.Foo();
});
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('Foo', function() {
it('should create an instance of Foo', function() {
// uncomment below and update the code to test Foo
//var instance = new OpenApiPetstore.Foo();
//expect(instance).to.be.a(OpenApiPetstore.Foo);
});
it('should have the property bar (base name: "bar")', function() {
// uncomment below and update the code to test the property bar
//var instance = new OpenApiPetstore.Foo();
//expect(instance).to.be();
});
});
}));

View File

@@ -0,0 +1,65 @@
/**
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.OpenApiPetstore);
}
}(this, function(expect, OpenApiPetstore) {
'use strict';
var instance;
beforeEach(function() {
instance = new OpenApiPetstore.FooGetDefaultResponse();
});
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('FooGetDefaultResponse', function() {
it('should create an instance of FooGetDefaultResponse', function() {
// uncomment below and update the code to test FooGetDefaultResponse
//var instance = new OpenApiPetstore.FooGetDefaultResponse();
//expect(instance).to.be.a(OpenApiPetstore.FooGetDefaultResponse);
});
it('should have the property string (base name: "string")', function() {
// uncomment below and update the code to test the property string
//var instance = new OpenApiPetstore.FooGetDefaultResponse();
//expect(instance).to.be();
});
});
}));

View File

@@ -0,0 +1,155 @@
/**
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.OpenApiPetstore);
}
}(this, function(expect, OpenApiPetstore) {
'use strict';
var instance;
beforeEach(function() {
instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.FormatTest();
//expect(instance).to.be.a(OpenApiPetstore.FormatTest);
});
it('should have the property integer (base name: "integer")', function() {
// uncomment below and update the code to test the property integer
//var instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.FormatTest();
//expect(instance).to.be();
});
it('should have the property decimal (base name: "decimal")', function() {
// uncomment below and update the code to test the property decimal
//var instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.FormatTest();
//expect(instance).to.be();
});
it('should have the property patternWithDigits (base name: "pattern_with_digits")', function() {
// uncomment below and update the code to test the property patternWithDigits
//var instance = new OpenApiPetstore.FormatTest();
//expect(instance).to.be();
});
it('should have the property patternWithDigitsAndDelimiter (base name: "pattern_with_digits_and_delimiter")', function() {
// uncomment below and update the code to test the property patternWithDigitsAndDelimiter
//var instance = new OpenApiPetstore.FormatTest();
//expect(instance).to.be();
});
});
}));

View File

@@ -0,0 +1,71 @@
/**
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.OpenApiPetstore);
}
}(this, function(expect, OpenApiPetstore) {
'use strict';
var instance;
beforeEach(function() {
instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.HasOnlyReadOnly();
//expect(instance).to.be.a(OpenApiPetstore.HasOnlyReadOnly);
});
it('should have the property bar (base name: "bar")', function() {
// uncomment below and update the code to test the property bar
//var instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.HasOnlyReadOnly();
//expect(instance).to.be();
});
});
}));

View File

@@ -0,0 +1,65 @@
/**
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.OpenApiPetstore);
}
}(this, function(expect, OpenApiPetstore) {
'use strict';
var instance;
beforeEach(function() {
instance = new OpenApiPetstore.HealthCheckResult();
});
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('HealthCheckResult', function() {
it('should create an instance of HealthCheckResult', function() {
// uncomment below and update the code to test HealthCheckResult
//var instance = new OpenApiPetstore.HealthCheckResult();
//expect(instance).to.be.a(OpenApiPetstore.HealthCheckResult);
});
it('should have the property nullableMessage (base name: "NullableMessage")', function() {
// uncomment below and update the code to test the property nullableMessage
//var instance = new OpenApiPetstore.HealthCheckResult();
//expect(instance).to.be();
});
});
}));

View File

@@ -0,0 +1,65 @@
/**
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.OpenApiPetstore);
}
}(this, function(expect, OpenApiPetstore) {
'use strict';
var instance;
beforeEach(function() {
instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.List();
//expect(instance).to.be.a(OpenApiPetstore.List);
});
it('should have the property _123list (base name: "123-list")', function() {
// uncomment below and update the code to test the property _123list
//var instance = new OpenApiPetstore.List();
//expect(instance).to.be();
});
});
}));

View File

@@ -0,0 +1,83 @@
/**
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.OpenApiPetstore);
}
}(this, function(expect, OpenApiPetstore) {
'use strict';
var instance;
beforeEach(function() {
instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.MapTest();
//expect(instance).to.be.a(OpenApiPetstore.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 instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.MapTest();
//expect(instance).to.be();
});
it('should have the property directMap (base name: "direct_map")', function() {
// uncomment below and update the code to test the property directMap
//var instance = new OpenApiPetstore.MapTest();
//expect(instance).to.be();
});
it('should have the property indirectMap (base name: "indirect_map")', function() {
// uncomment below and update the code to test the property indirectMap
//var instance = new OpenApiPetstore.MapTest();
//expect(instance).to.be();
});
});
}));

View File

@@ -0,0 +1,77 @@
/**
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.OpenApiPetstore);
}
}(this, function(expect, OpenApiPetstore) {
'use strict';
var instance;
beforeEach(function() {
instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.MixedPropertiesAndAdditionalPropertiesClass();
//expect(instance).to.be.a(OpenApiPetstore.MixedPropertiesAndAdditionalPropertiesClass);
});
it('should have the property uuid (base name: "uuid")', function() {
// uncomment below and update the code to test the property uuid
//var instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.MixedPropertiesAndAdditionalPropertiesClass();
//expect(instance).to.be();
});
});
}));

View File

@@ -0,0 +1,71 @@
/**
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.OpenApiPetstore);
}
}(this, function(expect, OpenApiPetstore) {
'use strict';
var instance;
beforeEach(function() {
instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.Model200Response();
//expect(instance).to.be.a(OpenApiPetstore.Model200Response);
});
it('should have the property name (base name: "name")', function() {
// uncomment below and update the code to test the property name
//var instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.Model200Response();
//expect(instance).to.be();
});
});
}));

View File

@@ -0,0 +1,83 @@
/**
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.OpenApiPetstore);
}
}(this, function(expect, OpenApiPetstore) {
'use strict';
var instance;
beforeEach(function() {
instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.Name();
//expect(instance).to.be.a(OpenApiPetstore.Name);
});
it('should have the property name (base name: "name")', function() {
// uncomment below and update the code to test the property name
//var instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.Name();
//expect(instance).to.be();
});
});
}));

View File

@@ -0,0 +1,131 @@
/**
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.OpenApiPetstore);
}
}(this, function(expect, OpenApiPetstore) {
'use strict';
var instance;
beforeEach(function() {
instance = new OpenApiPetstore.NullableClass();
});
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('NullableClass', function() {
it('should create an instance of NullableClass', function() {
// uncomment below and update the code to test NullableClass
//var instance = new OpenApiPetstore.NullableClass();
//expect(instance).to.be.a(OpenApiPetstore.NullableClass);
});
it('should have the property integerProp (base name: "integer_prop")', function() {
// uncomment below and update the code to test the property integerProp
//var instance = new OpenApiPetstore.NullableClass();
//expect(instance).to.be();
});
it('should have the property numberProp (base name: "number_prop")', function() {
// uncomment below and update the code to test the property numberProp
//var instance = new OpenApiPetstore.NullableClass();
//expect(instance).to.be();
});
it('should have the property booleanProp (base name: "boolean_prop")', function() {
// uncomment below and update the code to test the property booleanProp
//var instance = new OpenApiPetstore.NullableClass();
//expect(instance).to.be();
});
it('should have the property stringProp (base name: "string_prop")', function() {
// uncomment below and update the code to test the property stringProp
//var instance = new OpenApiPetstore.NullableClass();
//expect(instance).to.be();
});
it('should have the property dateProp (base name: "date_prop")', function() {
// uncomment below and update the code to test the property dateProp
//var instance = new OpenApiPetstore.NullableClass();
//expect(instance).to.be();
});
it('should have the property datetimeProp (base name: "datetime_prop")', function() {
// uncomment below and update the code to test the property datetimeProp
//var instance = new OpenApiPetstore.NullableClass();
//expect(instance).to.be();
});
it('should have the property arrayNullableProp (base name: "array_nullable_prop")', function() {
// uncomment below and update the code to test the property arrayNullableProp
//var instance = new OpenApiPetstore.NullableClass();
//expect(instance).to.be();
});
it('should have the property arrayAndItemsNullableProp (base name: "array_and_items_nullable_prop")', function() {
// uncomment below and update the code to test the property arrayAndItemsNullableProp
//var instance = new OpenApiPetstore.NullableClass();
//expect(instance).to.be();
});
it('should have the property arrayItemsNullable (base name: "array_items_nullable")', function() {
// uncomment below and update the code to test the property arrayItemsNullable
//var instance = new OpenApiPetstore.NullableClass();
//expect(instance).to.be();
});
it('should have the property objectNullableProp (base name: "object_nullable_prop")', function() {
// uncomment below and update the code to test the property objectNullableProp
//var instance = new OpenApiPetstore.NullableClass();
//expect(instance).to.be();
});
it('should have the property objectAndItemsNullableProp (base name: "object_and_items_nullable_prop")', function() {
// uncomment below and update the code to test the property objectAndItemsNullableProp
//var instance = new OpenApiPetstore.NullableClass();
//expect(instance).to.be();
});
it('should have the property objectItemsNullable (base name: "object_items_nullable")', function() {
// uncomment below and update the code to test the property objectItemsNullable
//var instance = new OpenApiPetstore.NullableClass();
//expect(instance).to.be();
});
});
}));

View File

@@ -0,0 +1,65 @@
/**
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.OpenApiPetstore);
}
}(this, function(expect, OpenApiPetstore) {
'use strict';
var instance;
beforeEach(function() {
instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.NumberOnly();
//expect(instance).to.be.a(OpenApiPetstore.NumberOnly);
});
it('should have the property justNumber (base name: "JustNumber")', function() {
// uncomment below and update the code to test the property justNumber
//var instance = new OpenApiPetstore.NumberOnly();
//expect(instance).to.be();
});
});
}));

View File

@@ -0,0 +1,83 @@
/**
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.OpenApiPetstore);
}
}(this, function(expect, OpenApiPetstore) {
'use strict';
var instance;
beforeEach(function() {
instance = new OpenApiPetstore.ObjectWithDeprecatedFields();
});
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('ObjectWithDeprecatedFields', function() {
it('should create an instance of ObjectWithDeprecatedFields', function() {
// uncomment below and update the code to test ObjectWithDeprecatedFields
//var instance = new OpenApiPetstore.ObjectWithDeprecatedFields();
//expect(instance).to.be.a(OpenApiPetstore.ObjectWithDeprecatedFields);
});
it('should have the property uuid (base name: "uuid")', function() {
// uncomment below and update the code to test the property uuid
//var instance = new OpenApiPetstore.ObjectWithDeprecatedFields();
//expect(instance).to.be();
});
it('should have the property id (base name: "id")', function() {
// uncomment below and update the code to test the property id
//var instance = new OpenApiPetstore.ObjectWithDeprecatedFields();
//expect(instance).to.be();
});
it('should have the property deprecatedRef (base name: "deprecatedRef")', function() {
// uncomment below and update the code to test the property deprecatedRef
//var instance = new OpenApiPetstore.ObjectWithDeprecatedFields();
//expect(instance).to.be();
});
it('should have the property bars (base name: "bars")', function() {
// uncomment below and update the code to test the property bars
//var instance = new OpenApiPetstore.ObjectWithDeprecatedFields();
//expect(instance).to.be();
});
});
}));

View File

@@ -1,6 +1,6 @@
/**
* OpenAPI Petstore
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
@@ -50,43 +50,43 @@
describe('Order', function() {
it('should create an instance of Order', function() {
// uncomment below and update the code to test Order
//var instane = new OpenApiPetstore.Order();
//var instance = new OpenApiPetstore.Order();
//expect(instance).to.be.a(OpenApiPetstore.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 OpenApiPetstore.Order();
//var instance = new OpenApiPetstore.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 OpenApiPetstore.Order();
//var instance = new OpenApiPetstore.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 OpenApiPetstore.Order();
//var instance = new OpenApiPetstore.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 OpenApiPetstore.Order();
//var instance = new OpenApiPetstore.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 OpenApiPetstore.Order();
//var instance = new OpenApiPetstore.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 OpenApiPetstore.Order();
//var instance = new OpenApiPetstore.Order();
//expect(instance).to.be();
});

View File

@@ -0,0 +1,77 @@
/**
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.OpenApiPetstore);
}
}(this, function(expect, OpenApiPetstore) {
'use strict';
var instance;
beforeEach(function() {
instance = new OpenApiPetstore.OuterComposite();
});
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('OuterComposite', function() {
it('should create an instance of OuterComposite', function() {
// uncomment below and update the code to test OuterComposite
//var instance = new OpenApiPetstore.OuterComposite();
//expect(instance).to.be.a(OpenApiPetstore.OuterComposite);
});
it('should have the property myNumber (base name: "my_number")', function() {
// uncomment below and update the code to test the property myNumber
//var instance = new OpenApiPetstore.OuterComposite();
//expect(instance).to.be();
});
it('should have the property myString (base name: "my_string")', function() {
// uncomment below and update the code to test the property myString
//var instance = new OpenApiPetstore.OuterComposite();
//expect(instance).to.be();
});
it('should have the property myBoolean (base name: "my_boolean")', function() {
// uncomment below and update the code to test the property myBoolean
//var instance = new OpenApiPetstore.OuterComposite();
//expect(instance).to.be();
});
});
}));

View File

@@ -0,0 +1,58 @@
/**
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.OpenApiPetstore);
}
}(this, function(expect, OpenApiPetstore) {
'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 instance = new OpenApiPetstore.OuterEnum();
//expect(instance).to.be.a(OpenApiPetstore.OuterEnum);
});
});
}));

View File

@@ -0,0 +1,58 @@
/**
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.OpenApiPetstore);
}
}(this, function(expect, OpenApiPetstore) {
'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('OuterEnumDefaultValue', function() {
it('should create an instance of OuterEnumDefaultValue', function() {
// uncomment below and update the code to test OuterEnumDefaultValue
//var instance = new OpenApiPetstore.OuterEnumDefaultValue();
//expect(instance).to.be.a(OpenApiPetstore.OuterEnumDefaultValue);
});
});
}));

View File

@@ -0,0 +1,58 @@
/**
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.OpenApiPetstore);
}
}(this, function(expect, OpenApiPetstore) {
'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('OuterEnumInteger', function() {
it('should create an instance of OuterEnumInteger', function() {
// uncomment below and update the code to test OuterEnumInteger
//var instance = new OpenApiPetstore.OuterEnumInteger();
//expect(instance).to.be.a(OpenApiPetstore.OuterEnumInteger);
});
});
}));

View File

@@ -0,0 +1,58 @@
/**
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.OpenApiPetstore);
}
}(this, function(expect, OpenApiPetstore) {
'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('OuterEnumIntegerDefaultValue', function() {
it('should create an instance of OuterEnumIntegerDefaultValue', function() {
// uncomment below and update the code to test OuterEnumIntegerDefaultValue
//var instance = new OpenApiPetstore.OuterEnumIntegerDefaultValue();
//expect(instance).to.be.a(OpenApiPetstore.OuterEnumIntegerDefaultValue);
});
});
}));

View File

@@ -0,0 +1,65 @@
/**
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.OpenApiPetstore);
}
}(this, function(expect, OpenApiPetstore) {
'use strict';
var instance;
beforeEach(function() {
instance = new OpenApiPetstore.OuterObjectWithEnumProperty();
});
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('OuterObjectWithEnumProperty', function() {
it('should create an instance of OuterObjectWithEnumProperty', function() {
// uncomment below and update the code to test OuterObjectWithEnumProperty
//var instance = new OpenApiPetstore.OuterObjectWithEnumProperty();
//expect(instance).to.be.a(OpenApiPetstore.OuterObjectWithEnumProperty);
});
it('should have the property value (base name: "value")', function() {
// uncomment below and update the code to test the property value
//var instance = new OpenApiPetstore.OuterObjectWithEnumProperty();
//expect(instance).to.be();
});
});
}));

View File

@@ -1,6 +1,6 @@
/**
* OpenAPI Petstore
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
@@ -50,43 +50,43 @@
describe('Pet', function() {
it('should create an instance of Pet', function() {
// uncomment below and update the code to test Pet
//var instane = new OpenApiPetstore.Pet();
//var instance = new OpenApiPetstore.Pet();
//expect(instance).to.be.a(OpenApiPetstore.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 OpenApiPetstore.Pet();
//var instance = new OpenApiPetstore.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 OpenApiPetstore.Pet();
//var instance = new OpenApiPetstore.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 OpenApiPetstore.Pet();
//var instance = new OpenApiPetstore.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 OpenApiPetstore.Pet();
//var instance = new OpenApiPetstore.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 OpenApiPetstore.Pet();
//var instance = new OpenApiPetstore.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 OpenApiPetstore.Pet();
//var instance = new OpenApiPetstore.Pet();
//expect(instance).to.be();
});

View File

@@ -0,0 +1,71 @@
/**
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.OpenApiPetstore);
}
}(this, function(expect, OpenApiPetstore) {
'use strict';
var instance;
beforeEach(function() {
instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.ReadOnlyFirst();
//expect(instance).to.be.a(OpenApiPetstore.ReadOnlyFirst);
});
it('should have the property bar (base name: "bar")', function() {
// uncomment below and update the code to test the property bar
//var instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.ReadOnlyFirst();
//expect(instance).to.be();
});
});
}));

View File

@@ -0,0 +1,65 @@
/**
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.OpenApiPetstore);
}
}(this, function(expect, OpenApiPetstore) {
'use strict';
var instance;
beforeEach(function() {
instance = new OpenApiPetstore.Return();
});
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('Return', function() {
it('should create an instance of Return', function() {
// uncomment below and update the code to test Return
//var instance = new OpenApiPetstore.Return();
//expect(instance).to.be.a(OpenApiPetstore.Return);
});
it('should have the property _return (base name: "return")', function() {
// uncomment below and update the code to test the property _return
//var instance = new OpenApiPetstore.Return();
//expect(instance).to.be();
});
});
}));

View File

@@ -0,0 +1,65 @@
/**
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.OpenApiPetstore);
}
}(this, function(expect, OpenApiPetstore) {
'use strict';
var instance;
beforeEach(function() {
instance = new OpenApiPetstore.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 instance = new OpenApiPetstore.SpecialModelName();
//expect(instance).to.be.a(OpenApiPetstore.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 instance = new OpenApiPetstore.SpecialModelName();
//expect(instance).to.be();
});
});
}));

View File

@@ -1,6 +1,6 @@
/**
* OpenAPI Petstore
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
@@ -50,19 +50,19 @@
describe('Tag', function() {
it('should create an instance of Tag', function() {
// uncomment below and update the code to test Tag
//var instane = new OpenApiPetstore.Tag();
//var instance = new OpenApiPetstore.Tag();
//expect(instance).to.be.a(OpenApiPetstore.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 OpenApiPetstore.Tag();
//var instance = new OpenApiPetstore.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 OpenApiPetstore.Tag();
//var instance = new OpenApiPetstore.Tag();
//expect(instance).to.be();
});

View File

@@ -1,6 +1,6 @@
/**
* OpenAPI Petstore
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
@@ -50,55 +50,55 @@
describe('User', function() {
it('should create an instance of User', function() {
// uncomment below and update the code to test User
//var instane = new OpenApiPetstore.User();
//var instance = new OpenApiPetstore.User();
//expect(instance).to.be.a(OpenApiPetstore.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 OpenApiPetstore.User();
//var instance = new OpenApiPetstore.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 OpenApiPetstore.User();
//var instance = new OpenApiPetstore.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 OpenApiPetstore.User();
//var instance = new OpenApiPetstore.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 OpenApiPetstore.User();
//var instance = new OpenApiPetstore.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 OpenApiPetstore.User();
//var instance = new OpenApiPetstore.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 OpenApiPetstore.User();
//var instance = new OpenApiPetstore.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 OpenApiPetstore.User();
//var instance = new OpenApiPetstore.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 OpenApiPetstore.User();
//var instance = new OpenApiPetstore.User();
//expect(instance).to.be();
});