diff --git a/.gitignore b/.gitignore
index 48aa66ae5e25..69f73917ac4e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -205,3 +205,6 @@ samples/server/petstore/erlang-server/rebar.lock
samples/client/petstore/dart/petstore/packages
samples/client/petstore/dart/flutter_petstore/test/packages
samples/client/petstore/dart/petstore/test/packages
+
+## JS
+samples/client/petstore/javascript/package-lock.json
diff --git a/.travis.yml b/.travis.yml
index 55d830161f25..ec5d486511ab 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -24,6 +24,7 @@ cache:
- $HOME/samples/client/petstore/typescript-fetch/npm/with-npm-version/typings
- $HOME/samples/client/petstore/typescript-angular/node_modules
- $HOME/samples/client/petstore/typescript-angular/typings
+ - $HOME/perl5
services:
- docker
@@ -34,6 +35,8 @@ addons:
- petstore.swagger.io
before_install:
+ # install rust
+ - curl -sSf https://static.rust-lang.org/rustup.sh | sh
# required when sudo: required for the Ruby petstore tests
- gem install bundler
- npm install -g typescript
@@ -51,8 +54,8 @@ before_install:
- sudo apt-get install -qq bats
- sudo apt-get install -qq curl
# install perl module
- - cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
- - cpanm Test::Exception Test::More Log::Any LWP::UserAgent JSON URI:Query Module::Runtime DateTime Module::Find Moose::Role
+ #- cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
+ #- cpanm Test::Exception Test::More Log::Any LWP::UserAgent JSON URI:Query Module::Runtime DateTime Module::Find Moose::Role
# comment out below as installation failed in travis
# Add rebar3 build tool and recent Erlang/OTP for Erlang petstore server tests.
# - Travis CI does not support rebar3 [yet](https://github.com/travis-ci/travis-ci/issues/6506#issuecomment-275189490).
diff --git a/CI/pom.xml.circleci b/CI/pom.xml.circleci
index 04576ac75195..14a3e021278f 100644
--- a/CI/pom.xml.circleci
+++ b/CI/pom.xml.circleci
@@ -855,7 +855,7 @@
OuterBoolean
.
- * @alias module:model/OuterBoolean
- * @class
- */
- var exports = function() {
- var _this = this;
-
- };
-
- /**
- * Constructs a OuterBoolean
from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/OuterBoolean} obj Optional instance to populate.
- * @return {module:model/OuterBoolean} The populated OuterBoolean
instance.
- */
- exports.constructFromObject = function(data, obj) {
- return data;
- }
-
-
-
-
- return exports;
-}));
-
-
diff --git a/samples/client/petstore/javascript/src/model/OuterNumber.js b/samples/client/petstore/javascript/src/model/OuterNumber.js
deleted file mode 100644
index 65bcfeb5b144..000000000000
--- a/samples/client/petstore/javascript/src/model/OuterNumber.js
+++ /dev/null
@@ -1,70 +0,0 @@
-/**
- * Swagger Petstore
- * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
- *
- * OpenAPI spec version: 1.0.0
- * Contact: apiteam@swagger.io
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- *
- * Swagger Codegen version: 2.4.0-SNAPSHOT
- *
- * Do not edit the class manually.
- *
- */
-
-(function(root, factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD. Register as an anonymous module.
- define(['ApiClient'], factory);
- } else if (typeof module === 'object' && module.exports) {
- // CommonJS-like environments that support module.exports, like Node.
- module.exports = factory(require('../ApiClient'));
- } else {
- // Browser globals (root is window)
- if (!root.SwaggerPetstore) {
- root.SwaggerPetstore = {};
- }
- root.SwaggerPetstore.OuterNumber = factory(root.SwaggerPetstore.ApiClient);
- }
-}(this, function(ApiClient) {
- 'use strict';
-
-
-
-
- /**
- * The OuterNumber model module.
- * @module model/OuterNumber
- * @version 1.0.0
- */
-
- /**
- * Constructs a new OuterNumber
.
- * @alias module:model/OuterNumber
- * @class
- */
- var exports = function() {
- var _this = this;
-
- };
-
- /**
- * Constructs a OuterNumber
from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/OuterNumber} obj Optional instance to populate.
- * @return {module:model/OuterNumber} The populated OuterNumber
instance.
- */
- exports.constructFromObject = function(data, obj) {
- return data;
- }
-
-
-
-
- return exports;
-}));
-
-
diff --git a/samples/client/petstore/javascript/src/model/OuterString.js b/samples/client/petstore/javascript/src/model/OuterString.js
deleted file mode 100644
index cae250dc6e37..000000000000
--- a/samples/client/petstore/javascript/src/model/OuterString.js
+++ /dev/null
@@ -1,70 +0,0 @@
-/**
- * Swagger Petstore
- * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
- *
- * OpenAPI spec version: 1.0.0
- * Contact: apiteam@swagger.io
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- *
- * Swagger Codegen version: 2.4.0-SNAPSHOT
- *
- * Do not edit the class manually.
- *
- */
-
-(function(root, factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD. Register as an anonymous module.
- define(['ApiClient'], factory);
- } else if (typeof module === 'object' && module.exports) {
- // CommonJS-like environments that support module.exports, like Node.
- module.exports = factory(require('../ApiClient'));
- } else {
- // Browser globals (root is window)
- if (!root.SwaggerPetstore) {
- root.SwaggerPetstore = {};
- }
- root.SwaggerPetstore.OuterString = factory(root.SwaggerPetstore.ApiClient);
- }
-}(this, function(ApiClient) {
- 'use strict';
-
-
-
-
- /**
- * The OuterString model module.
- * @module model/OuterString
- * @version 1.0.0
- */
-
- /**
- * Constructs a new OuterString
.
- * @alias module:model/OuterString
- * @class
- */
- var exports = function() {
- var _this = this;
-
- };
-
- /**
- * Constructs a OuterString
from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/OuterString} obj Optional instance to populate.
- * @return {module:model/OuterString} The populated OuterString
instance.
- */
- exports.constructFromObject = function(data, obj) {
- return data;
- }
-
-
-
-
- return exports;
-}));
-
-
diff --git a/samples/client/petstore/javascript/test/ApiClientTest.js b/samples/client/petstore/javascript/test/ApiClientTest.js
index c0f5c82c2194..2674cf9e1359 100755
--- a/samples/client/petstore/javascript/test/ApiClientTest.js
+++ b/samples/client/petstore/javascript/test/ApiClientTest.js
@@ -1,10 +1,10 @@
if (typeof module === 'object' && module.exports) {
var expect = require('expect.js');
- var SwaggerPetstore = require('../src/index');
+ var OpenAPIPetstore = require('../src/index');
var sinon = require('sinon');
}
-var apiClient = SwaggerPetstore.ApiClient.instance;
+var apiClient = OpenAPIPetstore.ApiClient.instance;
describe('ApiClient', function() {
describe('defaults', function() {
@@ -45,7 +45,7 @@ describe('ApiClient', function() {
});
it('should have correct default values with new API client and can customize it', function() {
- var newClient = new SwaggerPetstore.ApiClient;
+ var newClient = new OpenAPIPetstore.ApiClient;
expect(newClient.basePath).to.be('http://petstore.swagger.io:80/v2');
expect(newClient.buildUrl('/abc', {})).to.be('http://petstore.swagger.io:80/v2/abc');
@@ -143,7 +143,7 @@ describe('ApiClient', function() {
sinon.stub(req, 'auth');
sinon.stub(req, 'set');
sinon.stub(req, 'query');
- newClient = new SwaggerPetstore.ApiClient();
+ newClient = new OpenAPIPetstore.ApiClient();
});
describe('basic', function() {
@@ -343,7 +343,7 @@ describe('ApiClient', function() {
});
it('should put default headers in request', function() {
- var newClient = new SwaggerPetstore.ApiClient;
+ var newClient = new OpenAPIPetstore.ApiClient;
newClient.defaultHeaders['Content-Type'] = 'text/plain'
newClient.defaultHeaders['api_key'] = 'special-key'
@@ -355,7 +355,7 @@ describe('ApiClient', function() {
});
it('should override default headers with provided header params', function() {
- var newClient = new SwaggerPetstore.ApiClient;
+ var newClient = new OpenAPIPetstore.ApiClient;
newClient.defaultHeaders['Content-Type'] = 'text/plain'
newClient.defaultHeaders['api_key'] = 'special-key'
diff --git a/samples/client/petstore/javascript/test/api/AnotherFakeApi.spec.js b/samples/client/petstore/javascript/test/api/AnotherFakeApi.spec.js
index 593e828d3cd5..ada97141e537 100644
--- a/samples/client/petstore/javascript/test/api/AnotherFakeApi.spec.js
+++ b/samples/client/petstore/javascript/test/api/AnotherFakeApi.spec.js
@@ -1,5 +1,5 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
@@ -8,7 +8,7 @@
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
- * Swagger Codegen version: 2.3.0-SNAPSHOT
+ * OpenAPI Codegen version: 2.3.0-SNAPSHOT
*
* Do not edit the class manually.
*
@@ -23,15 +23,15 @@
factory(require('expect.js'), require('../../src/index'));
} else {
// Browser globals (root is window)
- factory(root.expect, root.SwaggerPetstore);
+ factory(root.expect, root.OpenAPIPetstore);
}
-}(this, function(expect, SwaggerPetstore) {
+}(this, function(expect, OpenAPIPetstore) {
'use strict';
var instance;
beforeEach(function() {
- instance = new SwaggerPetstore.AnotherFakeApi();
+ instance = new OpenAPIPetstore.AnotherFakeApi();
});
var getProperty = function(object, getter, property) {
diff --git a/samples/client/petstore/javascript/test/api/FakeApi.spec.js b/samples/client/petstore/javascript/test/api/FakeApi.spec.js
index 9f22eb2c3c6d..af78655426db 100644
--- a/samples/client/petstore/javascript/test/api/FakeApi.spec.js
+++ b/samples/client/petstore/javascript/test/api/FakeApi.spec.js
@@ -7,15 +7,15 @@
factory(require('expect.js'), require('../../src/index'));
} else {
// Browser globals (root is window)
- factory(root.expect, root.SwaggerPetstore);
+ factory(root.expect, root.OpenAPIPetstore);
}
-}(this, function(expect, SwaggerPetstore) {
+}(this, function(expect, OpenAPIPetstore) {
'use strict';
var instance;
beforeEach(function() {
- instance = new SwaggerPetstore.FakeApi();
+ instance = new OpenAPIPetstore.FakeApi();
});
var getProperty = function(object, getter, property) {
diff --git a/samples/client/petstore/javascript/test/api/FakeClassnameTags123Api.spec.js b/samples/client/petstore/javascript/test/api/FakeClassnameTags123Api.spec.js
index 065045595112..d5df4514d61b 100644
--- a/samples/client/petstore/javascript/test/api/FakeClassnameTags123Api.spec.js
+++ b/samples/client/petstore/javascript/test/api/FakeClassnameTags123Api.spec.js
@@ -1,5 +1,5 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
@@ -8,7 +8,7 @@
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
- * Swagger Codegen version: 2.3.0-SNAPSHOT
+ * OpenAPI Codegen version: 2.3.0-SNAPSHOT
*
* Do not edit the class manually.
*
@@ -23,15 +23,15 @@
factory(require('expect.js'), require('../../src/index'));
} else {
// Browser globals (root is window)
- factory(root.expect, root.SwaggerPetstore);
+ factory(root.expect, root.OpenAPIPetstore);
}
-}(this, function(expect, SwaggerPetstore) {
+}(this, function(expect, OpenAPIPetstore) {
'use strict';
var instance;
beforeEach(function() {
- instance = new SwaggerPetstore.FakeClassnameTags123Api();
+ instance = new OpenAPIPetstore.FakeClassnameTags123Api();
});
var getProperty = function(object, getter, property) {
diff --git a/samples/client/petstore/javascript/test/api/PetApi.spec.js b/samples/client/petstore/javascript/test/api/PetApi.spec.js
index 213660d8058d..b133ad102296 100644
--- a/samples/client/petstore/javascript/test/api/PetApi.spec.js
+++ b/samples/client/petstore/javascript/test/api/PetApi.spec.js
@@ -7,15 +7,15 @@
factory(require('expect.js'), require('../../src/index'));
} else {
// Browser globals (root is window)
- factory(root.expect, root.SwaggerPetstore);
+ factory(root.expect, root.OpenAPIPetstore);
}
-}(this, function(expect, SwaggerPetstore) {
+}(this, function(expect, OpenAPIPetstore) {
'use strict';
var api;
beforeEach(function() {
- api = new SwaggerPetstore.PetApi();
+ api = new OpenAPIPetstore.PetApi();
});
var getProperty = function(object, getter, property) {
@@ -36,11 +36,11 @@
var createRandomPet = function() {
var id = new Date().getTime();
- var pet = new SwaggerPetstore.Pet();
+ var pet = new OpenAPIPetstore.Pet();
setProperty(pet, "setId", "id", id);
setProperty(pet, "setName", "name", "pet" + id);
- var category = new SwaggerPetstore.Category();
+ var category = new OpenAPIPetstore.Category();
setProperty(category, "setId", "id", id);
setProperty(category, "setName", "name", "category" + id);
setProperty(pet, "setCategory", "category", category);
@@ -64,12 +64,12 @@
expect(response.ok).to.be(true);
expect(response.get('Content-Type')).to.be('application/json');
- expect(fetched).to.be.a(SwaggerPetstore.Pet);
+ expect(fetched).to.be.a(OpenAPIPetstore.Pet);
expect(fetched.id).to.be(pet.id);
expect(getProperty(fetched, "getPhotoUrls", "photoUrls"))
.to.eql(getProperty(pet, "getPhotoUrls", "photoUrls"));
expect(getProperty(fetched, "getCategory", "category"))
- .to.be.a(SwaggerPetstore.Category);
+ .to.be.a(OpenAPIPetstore.Category);
expect(getProperty(getProperty(fetched, "getCategory", "category"), "getName", "name"))
.to.be(getProperty(getProperty(pet, "getCategory", "category"), "getName", "name"));
@@ -89,13 +89,13 @@
api.getPetByIdInObject(pet.id, function(error, fetched) {
if (error) throw error;
- expect(fetched).to.be.a(SwaggerPetstore.InlineResponse200);
+ expect(fetched).to.be.a(OpenAPIPetstore.InlineResponse200);
expect(fetched.id).to.be(pet.id);
expect(fetched.name).to.be(pet.name);
var categoryObj = fetched.category;
expect(categoryObj).to.be.a(Object);
- expect(categoryObj).not.to.be.a(SwaggerPetstore.Category);
+ expect(categoryObj).not.to.be.a(OpenAPIPetstore.Category);
expect(categoryObj.id)
.to.be(getProperty(getProperty(pet, "getCategory", "category"), "getId", "id"));
expect(categoryObj.name)
diff --git a/samples/client/petstore/javascript/test/api/StoreApi.spec.js b/samples/client/petstore/javascript/test/api/StoreApi.spec.js
index 65fb06b3fd08..26106984b7cc 100644
--- a/samples/client/petstore/javascript/test/api/StoreApi.spec.js
+++ b/samples/client/petstore/javascript/test/api/StoreApi.spec.js
@@ -7,15 +7,15 @@
factory(require('expect.js'), require('../../src/index'));
} else {
// Browser globals (root is window)
- factory(root.expect, root.SwaggerPetstore);
+ factory(root.expect, root.OpenAPIPetstore);
}
-}(this, function(expect, SwaggerPetstore) {
+}(this, function(expect, OpenAPIPetstore) {
'use strict';
var api;
beforeEach(function() {
- api = new SwaggerPetstore.StoreApi();
+ api = new OpenAPIPetstore.StoreApi();
});
describe('StoreApi', function() {
diff --git a/samples/client/petstore/javascript/test/api/UserApi.spec.js b/samples/client/petstore/javascript/test/api/UserApi.spec.js
index e9b4bb93f901..a2ee25c9d91c 100644
--- a/samples/client/petstore/javascript/test/api/UserApi.spec.js
+++ b/samples/client/petstore/javascript/test/api/UserApi.spec.js
@@ -7,15 +7,15 @@
factory(require('expect.js'), require('../../src/index'));
} else {
// Browser globals (root is window)
- factory(root.expect, root.SwaggerPetstore);
+ factory(root.expect, root.OpenAPIPetstore);
}
-}(this, function(expect, SwaggerPetstore) {
+}(this, function(expect, OpenAPIPetstore) {
'use strict';
var instance;
beforeEach(function() {
- instance = new SwaggerPetstore.UserApi();
+ instance = new OpenAPIPetstore.UserApi();
});
var getProperty = function(object, getter, property) {
diff --git a/samples/client/petstore/javascript/test/model/AdditionalPropertiesClass.spec.js b/samples/client/petstore/javascript/test/model/AdditionalPropertiesClass.spec.js
index 9a9007624358..a613a54ccc57 100644
--- a/samples/client/petstore/javascript/test/model/AdditionalPropertiesClass.spec.js
+++ b/samples/client/petstore/javascript/test/model/AdditionalPropertiesClass.spec.js
@@ -7,15 +7,15 @@
factory(require('expect.js'), require('../../src/index'));
} else {
// Browser globals (root is window)
- factory(root.expect, root.SwaggerPetstore);
+ factory(root.expect, root.OpenAPIPetstore);
}
-}(this, function(expect, SwaggerPetstore) {
+}(this, function(expect, OpenAPIPetstore) {
'use strict';
var instance;
beforeEach(function() {
- instance = new SwaggerPetstore.AdditionalPropertiesClass();
+ instance = new OpenAPIPetstore.AdditionalPropertiesClass();
});
var getProperty = function(object, getter, property) {
@@ -37,19 +37,19 @@
describe('AdditionalPropertiesClass', function() {
it('should create an instance of AdditionalPropertiesClass', function() {
// uncomment below and update the code to test AdditionalPropertiesClass
- //var instane = new SwaggerPetstore.AdditionalPropertiesClass();
- //expect(instance).to.be.a(SwaggerPetstore.AdditionalPropertiesClass);
+ //var instane = 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 instane = new SwaggerPetstore.AdditionalPropertiesClass();
+ //var instane = 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 instane = new SwaggerPetstore.AdditionalPropertiesClass();
+ //var instane = new OpenAPIPetstore.AdditionalPropertiesClass();
//expect(instance).to.be();
});
diff --git a/samples/client/petstore/javascript/test/model/Animal.spec.js b/samples/client/petstore/javascript/test/model/Animal.spec.js
index dfc86e612dc5..217f1a2e29a5 100644
--- a/samples/client/petstore/javascript/test/model/Animal.spec.js
+++ b/samples/client/petstore/javascript/test/model/Animal.spec.js
@@ -7,15 +7,15 @@
factory(require('expect.js'), require('../../src/index'));
} else {
// Browser globals (root is window)
- factory(root.expect, root.SwaggerPetstore);
+ factory(root.expect, root.OpenAPIPetstore);
}
-}(this, function(expect, SwaggerPetstore) {
+}(this, function(expect, OpenAPIPetstore) {
'use strict';
var instance;
beforeEach(function() {
- instance = new SwaggerPetstore.Animal();
+ instance = new OpenAPIPetstore.Animal();
});
var getProperty = function(object, getter, property) {
@@ -37,19 +37,19 @@
describe('Animal', function() {
it('should create an instance of Animal', function() {
// uncomment below and update the code to test Animal
- //var instane = new SwaggerPetstore.Animal();
- //expect(instance).to.be.a(SwaggerPetstore.Animal);
+ //var instane = 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 instane = new SwaggerPetstore.Animal();
+ //var instane = 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 instane = new SwaggerPetstore.Animal();
+ //var instane = new OpenAPIPetstore.Animal();
//expect(instance).to.be();
});
diff --git a/samples/client/petstore/javascript/test/model/AnimalFarm.spec.js b/samples/client/petstore/javascript/test/model/AnimalFarm.spec.js
index 4cacc055dfa3..a51cc374e7d7 100644
--- a/samples/client/petstore/javascript/test/model/AnimalFarm.spec.js
+++ b/samples/client/petstore/javascript/test/model/AnimalFarm.spec.js
@@ -7,15 +7,15 @@
factory(require('expect.js'), require('../../src/index'));
} else {
// Browser globals (root is window)
- factory(root.expect, root.SwaggerPetstore);
+ factory(root.expect, root.OpenAPIPetstore);
}
-}(this, function(expect, SwaggerPetstore) {
+}(this, function(expect, OpenAPIPetstore) {
'use strict';
var instance;
beforeEach(function() {
- instance = new SwaggerPetstore.AnimalFarm();
+ instance = new OpenAPIPetstore.AnimalFarm();
});
var getProperty = function(object, getter, property) {
@@ -37,8 +37,8 @@
describe('AnimalFarm', function() {
it('should create an instance of AnimalFarm', function() {
// uncomment below and update the code to test AnimalFarm
- //var instane = new SwaggerPetstore.AnimalFarm();
- //expect(instance).to.be.a(SwaggerPetstore.AnimalFarm);
+ //var instane = new OpenAPIPetstore.AnimalFarm();
+ //expect(instance).to.be.a(OpenAPIPetstore.AnimalFarm);
});
});
diff --git a/samples/client/petstore/javascript/test/model/ApiResponse.spec.js b/samples/client/petstore/javascript/test/model/ApiResponse.spec.js
index 972649fe24e6..0b17f974f2ae 100644
--- a/samples/client/petstore/javascript/test/model/ApiResponse.spec.js
+++ b/samples/client/petstore/javascript/test/model/ApiResponse.spec.js
@@ -7,15 +7,15 @@
factory(require('expect.js'), require('../../src/index'));
} else {
// Browser globals (root is window)
- factory(root.expect, root.SwaggerPetstore);
+ factory(root.expect, root.OpenAPIPetstore);
}
-}(this, function(expect, SwaggerPetstore) {
+}(this, function(expect, OpenAPIPetstore) {
'use strict';
var instance;
beforeEach(function() {
- instance = new SwaggerPetstore.ApiResponse();
+ instance = new OpenAPIPetstore.ApiResponse();
});
var getProperty = function(object, getter, property) {
@@ -37,25 +37,25 @@
describe('ApiResponse', function() {
it('should create an instance of ApiResponse', function() {
// uncomment below and update the code to test ApiResponse
- //var instane = new SwaggerPetstore.ApiResponse();
- //expect(instance).to.be.a(SwaggerPetstore.ApiResponse);
+ //var instane = 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 SwaggerPetstore.ApiResponse();
+ //var instane = 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 SwaggerPetstore.ApiResponse();
+ //var instane = 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 SwaggerPetstore.ApiResponse();
+ //var instane = new OpenAPIPetstore.ApiResponse();
//expect(instance).to.be();
});
diff --git a/samples/client/petstore/javascript/test/model/ArrayOfArrayOfNumberOnly.spec.js b/samples/client/petstore/javascript/test/model/ArrayOfArrayOfNumberOnly.spec.js
index 98c97fb0c327..dfa03195718c 100644
--- a/samples/client/petstore/javascript/test/model/ArrayOfArrayOfNumberOnly.spec.js
+++ b/samples/client/petstore/javascript/test/model/ArrayOfArrayOfNumberOnly.spec.js
@@ -1,5 +1,5 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
@@ -31,15 +31,15 @@
factory(require('expect.js'), require('../../src/index'));
} else {
// Browser globals (root is window)
- factory(root.expect, root.SwaggerPetstore);
+ factory(root.expect, root.OpenAPIPetstore);
}
-}(this, function(expect, SwaggerPetstore) {
+}(this, function(expect, OpenAPIPetstore) {
'use strict';
var instance;
beforeEach(function() {
- instance = new SwaggerPetstore.ArrayOfArrayOfNumberOnly();
+ instance = new OpenAPIPetstore.ArrayOfArrayOfNumberOnly();
});
var getProperty = function(object, getter, property) {
@@ -61,13 +61,13 @@
describe('ArrayOfArrayOfNumberOnly', function() {
it('should create an instance of ArrayOfArrayOfNumberOnly', function() {
// uncomment below and update the code to test ArrayOfArrayOfNumberOnly
- //var instane = new SwaggerPetstore.ArrayOfArrayOfNumberOnly();
- //expect(instance).to.be.a(SwaggerPetstore.ArrayOfArrayOfNumberOnly);
+ //var instane = 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 instane = new SwaggerPetstore.ArrayOfArrayOfNumberOnly();
+ //var instane = new OpenAPIPetstore.ArrayOfArrayOfNumberOnly();
//expect(instance).to.be();
});
diff --git a/samples/client/petstore/javascript/test/model/ArrayOfNumberOnly.spec.js b/samples/client/petstore/javascript/test/model/ArrayOfNumberOnly.spec.js
index e19fd12235ec..6d49d01367f2 100644
--- a/samples/client/petstore/javascript/test/model/ArrayOfNumberOnly.spec.js
+++ b/samples/client/petstore/javascript/test/model/ArrayOfNumberOnly.spec.js
@@ -1,5 +1,5 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
@@ -31,15 +31,15 @@
factory(require('expect.js'), require('../../src/index'));
} else {
// Browser globals (root is window)
- factory(root.expect, root.SwaggerPetstore);
+ factory(root.expect, root.OpenAPIPetstore);
}
-}(this, function(expect, SwaggerPetstore) {
+}(this, function(expect, OpenAPIPetstore) {
'use strict';
var instance;
beforeEach(function() {
- instance = new SwaggerPetstore.ArrayOfNumberOnly();
+ instance = new OpenAPIPetstore.ArrayOfNumberOnly();
});
var getProperty = function(object, getter, property) {
@@ -61,13 +61,13 @@
describe('ArrayOfNumberOnly', function() {
it('should create an instance of ArrayOfNumberOnly', function() {
// uncomment below and update the code to test ArrayOfNumberOnly
- //var instane = new SwaggerPetstore.ArrayOfNumberOnly();
- //expect(instance).to.be.a(SwaggerPetstore.ArrayOfNumberOnly);
+ //var instane = 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 instane = new SwaggerPetstore.ArrayOfNumberOnly();
+ //var instane = new OpenAPIPetstore.ArrayOfNumberOnly();
//expect(instance).to.be();
});
diff --git a/samples/client/petstore/javascript/test/model/ArrayTest.spec.js b/samples/client/petstore/javascript/test/model/ArrayTest.spec.js
index 7bb512f10432..95301860bcb5 100644
--- a/samples/client/petstore/javascript/test/model/ArrayTest.spec.js
+++ b/samples/client/petstore/javascript/test/model/ArrayTest.spec.js
@@ -7,15 +7,15 @@
factory(require('expect.js'), require('../../src/index'));
} else {
// Browser globals (root is window)
- factory(root.expect, root.SwaggerPetstore);
+ factory(root.expect, root.OpenAPIPetstore);
}
-}(this, function(expect, SwaggerPetstore) {
+}(this, function(expect, OpenAPIPetstore) {
'use strict';
var instance;
beforeEach(function() {
- instance = new SwaggerPetstore.ArrayTest();
+ instance = new OpenAPIPetstore.ArrayTest();
});
var getProperty = function(object, getter, property) {
@@ -37,25 +37,25 @@
describe('ArrayTest', function() {
it('should create an instance of ArrayTest', function() {
// uncomment below and update the code to test ArrayTest
- //var instane = new SwaggerPetstore.ArrayTest();
- //expect(instance).to.be.a(SwaggerPetstore.ArrayTest);
+ //var instane = 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 instane = new SwaggerPetstore.ArrayTest();
+ //var instane = 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 instane = new SwaggerPetstore.ArrayTest();
+ //var instane = 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 instane = new SwaggerPetstore.ArrayTest();
+ //var instane = new OpenAPIPetstore.ArrayTest();
//expect(instance).to.be();
});
diff --git a/samples/client/petstore/javascript/test/model/Capitalization.spec.js b/samples/client/petstore/javascript/test/model/Capitalization.spec.js
index f1aa695c3fd3..98c3045ce437 100644
--- a/samples/client/petstore/javascript/test/model/Capitalization.spec.js
+++ b/samples/client/petstore/javascript/test/model/Capitalization.spec.js
@@ -1,5 +1,5 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
@@ -20,15 +20,15 @@
factory(require('expect.js'), require('../../src/index'));
} else {
// Browser globals (root is window)
- factory(root.expect, root.SwaggerPetstore);
+ factory(root.expect, root.OpenAPIPetstore);
}
-}(this, function(expect, SwaggerPetstore) {
+}(this, function(expect, OpenAPIPetstore) {
'use strict';
var instance;
beforeEach(function() {
- instance = new SwaggerPetstore.Capitalization();
+ instance = new OpenAPIPetstore.Capitalization();
});
var getProperty = function(object, getter, property) {
@@ -50,43 +50,43 @@
describe('Capitalization', function() {
it('should create an instance of Capitalization', function() {
// uncomment below and update the code to test Capitalization
- //var instane = new SwaggerPetstore.Capitalization();
- //expect(instance).to.be.a(SwaggerPetstore.Capitalization);
+ //var instane = 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 instane = new SwaggerPetstore.Capitalization();
+ //var instane = 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 instane = new SwaggerPetstore.Capitalization();
+ //var instane = 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 instane = new SwaggerPetstore.Capitalization();
+ //var instane = 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 instane = new SwaggerPetstore.Capitalization();
+ //var instane = 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 instane = new SwaggerPetstore.Capitalization();
+ //var instane = 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 instane = new SwaggerPetstore.Capitalization();
+ //var instane = new OpenAPIPetstore.Capitalization();
//expect(instance).to.be();
});
diff --git a/samples/client/petstore/javascript/test/model/Cat.spec.js b/samples/client/petstore/javascript/test/model/Cat.spec.js
index f2dcc4749fe2..21b3bc7c40d6 100644
--- a/samples/client/petstore/javascript/test/model/Cat.spec.js
+++ b/samples/client/petstore/javascript/test/model/Cat.spec.js
@@ -7,15 +7,15 @@
factory(require('expect.js'), require('../../src/index'));
} else {
// Browser globals (root is window)
- factory(root.expect, root.SwaggerPetstore);
+ factory(root.expect, root.OpenAPIPetstore);
}
-}(this, function(expect, SwaggerPetstore) {
+}(this, function(expect, OpenAPIPetstore) {
'use strict';
var instance;
beforeEach(function() {
- instance = new SwaggerPetstore.Cat();
+ instance = new OpenAPIPetstore.Cat();
});
var getProperty = function(object, getter, property) {
@@ -37,13 +37,13 @@
describe('Cat', function() {
it('should create an instance of Cat', function() {
// uncomment below and update the code to test Cat
- //var instane = new SwaggerPetstore.Cat();
- //expect(instance).to.be.a(SwaggerPetstore.Cat);
+ //var instane = 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 instane = new SwaggerPetstore.Cat();
+ //var instane = new OpenAPIPetstore.Cat();
//expect(instance).to.be();
});
diff --git a/samples/client/petstore/javascript/test/model/Category.spec.js b/samples/client/petstore/javascript/test/model/Category.spec.js
index 8f1167d8c2a2..d1234150d842 100644
--- a/samples/client/petstore/javascript/test/model/Category.spec.js
+++ b/samples/client/petstore/javascript/test/model/Category.spec.js
@@ -7,15 +7,15 @@
factory(require('expect.js'), require('../../src/index'));
} else {
// Browser globals (root is window)
- factory(root.expect, root.SwaggerPetstore);
+ factory(root.expect, root.OpenAPIPetstore);
}
-}(this, function(expect, SwaggerPetstore) {
+}(this, function(expect, OpenAPIPetstore) {
'use strict';
var instance;
beforeEach(function() {
- instance = new SwaggerPetstore.Category();
+ instance = new OpenAPIPetstore.Category();
});
var getProperty = function(object, getter, property) {
@@ -37,19 +37,19 @@
describe('Category', function() {
it('should create an instance of Category', function() {
// uncomment below and update the code to test Category
- //var instane = new SwaggerPetstore.Category();
- //expect(instance).to.be.a(SwaggerPetstore.Category);
+ //var instane = 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 SwaggerPetstore.Category();
+ //var instane = 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 SwaggerPetstore.Category();
+ //var instane = new OpenAPIPetstore.Category();
//expect(instance).to.be();
});
diff --git a/samples/client/petstore/javascript/test/model/ClassModel.spec.js b/samples/client/petstore/javascript/test/model/ClassModel.spec.js
index 5ee2e49a0de1..b9f6ef4ce355 100644
--- a/samples/client/petstore/javascript/test/model/ClassModel.spec.js
+++ b/samples/client/petstore/javascript/test/model/ClassModel.spec.js
@@ -1,5 +1,5 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
@@ -20,15 +20,15 @@
factory(require('expect.js'), require('../../src/index'));
} else {
// Browser globals (root is window)
- factory(root.expect, root.SwaggerPetstore);
+ factory(root.expect, root.OpenAPIPetstore);
}
-}(this, function(expect, SwaggerPetstore) {
+}(this, function(expect, OpenAPIPetstore) {
'use strict';
var instance;
beforeEach(function() {
- instance = new SwaggerPetstore.ClassModel();
+ instance = new OpenAPIPetstore.ClassModel();
});
var getProperty = function(object, getter, property) {
@@ -50,13 +50,13 @@
describe('ClassModel', function() {
it('should create an instance of ClassModel', function() {
// uncomment below and update the code to test ClassModel
- //var instane = new SwaggerPetstore.ClassModel();
- //expect(instance).to.be.a(SwaggerPetstore.ClassModel);
+ //var instane = 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 instane = new SwaggerPetstore.ClassModel();
+ //var instane = new OpenAPIPetstore.ClassModel();
//expect(instance).to.be();
});
diff --git a/samples/client/petstore/javascript/test/model/Client.spec.js b/samples/client/petstore/javascript/test/model/Client.spec.js
index 7bba630a29c6..2fc7c85ba0c1 100644
--- a/samples/client/petstore/javascript/test/model/Client.spec.js
+++ b/samples/client/petstore/javascript/test/model/Client.spec.js
@@ -1,5 +1,5 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
@@ -31,15 +31,15 @@
factory(require('expect.js'), require('../../src/index'));
} else {
// Browser globals (root is window)
- factory(root.expect, root.SwaggerPetstore);
+ factory(root.expect, root.OpenAPIPetstore);
}
-}(this, function(expect, SwaggerPetstore) {
+}(this, function(expect, OpenAPIPetstore) {
'use strict';
var instance;
beforeEach(function() {
- instance = new SwaggerPetstore.Client();
+ instance = new OpenAPIPetstore.Client();
});
var getProperty = function(object, getter, property) {
@@ -61,13 +61,13 @@
describe('Client', function() {
it('should create an instance of Client', function() {
// uncomment below and update the code to test Client
- //var instane = new SwaggerPetstore.Client();
- //expect(instance).to.be.a(SwaggerPetstore.Client);
+ //var instane = 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 instane = new SwaggerPetstore.Client();
+ //var instane = new OpenAPIPetstore.Client();
//expect(instance).to.be();
});
diff --git a/samples/client/petstore/javascript/test/model/Dog.spec.js b/samples/client/petstore/javascript/test/model/Dog.spec.js
index 292a803e7a49..423632a9c75d 100644
--- a/samples/client/petstore/javascript/test/model/Dog.spec.js
+++ b/samples/client/petstore/javascript/test/model/Dog.spec.js
@@ -7,15 +7,15 @@
factory(require('expect.js'), require('../../src/index'));
} else {
// Browser globals (root is window)
- factory(root.expect, root.SwaggerPetstore);
+ factory(root.expect, root.OpenAPIPetstore);
}
-}(this, function(expect, SwaggerPetstore) {
+}(this, function(expect, OpenAPIPetstore) {
'use strict';
var instance;
beforeEach(function() {
- instance = new SwaggerPetstore.Dog();
+ instance = new OpenAPIPetstore.Dog();
});
var getProperty = function(object, getter, property) {
@@ -37,13 +37,13 @@
describe('Dog', function() {
it('should create an instance of Dog', function() {
// uncomment below and update the code to test Dog
- //var instane = new SwaggerPetstore.Dog();
- //expect(instance).to.be.a(SwaggerPetstore.Dog);
+ //var instane = 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 instane = new SwaggerPetstore.Dog();
+ //var instane = new OpenAPIPetstore.Dog();
//expect(instance).to.be();
});
diff --git a/samples/client/petstore/javascript/test/model/EnumArrays.spec.js b/samples/client/petstore/javascript/test/model/EnumArrays.spec.js
index 2d26fb9920f5..f41a52009558 100644
--- a/samples/client/petstore/javascript/test/model/EnumArrays.spec.js
+++ b/samples/client/petstore/javascript/test/model/EnumArrays.spec.js
@@ -1,5 +1,5 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
@@ -31,15 +31,15 @@
factory(require('expect.js'), require('../../src/index'));
} else {
// Browser globals (root is window)
- factory(root.expect, root.SwaggerPetstore);
+ factory(root.expect, root.OpenAPIPetstore);
}
-}(this, function(expect, SwaggerPetstore) {
+}(this, function(expect, OpenAPIPetstore) {
'use strict';
var instance;
beforeEach(function() {
- instance = new SwaggerPetstore.EnumArrays();
+ instance = new OpenAPIPetstore.EnumArrays();
});
var getProperty = function(object, getter, property) {
@@ -61,19 +61,19 @@
describe('EnumArrays', function() {
it('should create an instance of EnumArrays', function() {
// uncomment below and update the code to test EnumArrays
- //var instane = new SwaggerPetstore.EnumArrays();
- //expect(instance).to.be.a(SwaggerPetstore.EnumArrays);
+ //var instane = 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 instane = new SwaggerPetstore.EnumArrays();
+ //var instane = 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 instane = new SwaggerPetstore.EnumArrays();
+ //var instane = new OpenAPIPetstore.EnumArrays();
//expect(instance).to.be();
});
diff --git a/samples/client/petstore/javascript/test/model/EnumClass.spec.js b/samples/client/petstore/javascript/test/model/EnumClass.spec.js
index dd95265d3ed4..25b8aed6c3c9 100644
--- a/samples/client/petstore/javascript/test/model/EnumClass.spec.js
+++ b/samples/client/petstore/javascript/test/model/EnumClass.spec.js
@@ -7,9 +7,9 @@
factory(require('expect.js'), require('../../src/index'));
} else {
// Browser globals (root is window)
- factory(root.expect, root.SwaggerPetstore);
+ factory(root.expect, root.OpenAPIPetstore);
}
-}(this, function(expect, SwaggerPetstore) {
+}(this, function(expect, OpenAPIPetstore) {
'use strict';
var instance;
@@ -36,8 +36,8 @@
describe('EnumClass', function() {
it('should create an instance of EnumClass', function() {
// uncomment below and update the code to test EnumClass
- //var instane = new SwaggerPetstore.EnumClass();
- //expect(instance).to.be.a(SwaggerPetstore.EnumClass);
+ //var instane = new OpenAPIPetstore.EnumClass();
+ //expect(instance).to.be.a(OpenAPIPetstore.EnumClass);
});
});
diff --git a/samples/client/petstore/javascript/test/model/EnumTest.spec.js b/samples/client/petstore/javascript/test/model/EnumTest.spec.js
index ec4841dc881c..09e697477508 100644
--- a/samples/client/petstore/javascript/test/model/EnumTest.spec.js
+++ b/samples/client/petstore/javascript/test/model/EnumTest.spec.js
@@ -7,15 +7,15 @@
factory(require('expect.js'), require('../../src/index'));
} else {
// Browser globals (root is window)
- factory(root.expect, root.SwaggerPetstore);
+ factory(root.expect, root.OpenAPIPetstore);
}
-}(this, function(expect, SwaggerPetstore) {
+}(this, function(expect, OpenAPIPetstore) {
'use strict';
var instance;
beforeEach(function() {
- instance = new SwaggerPetstore.EnumTest();
+ instance = new OpenAPIPetstore.EnumTest();
});
var getProperty = function(object, getter, property) {
@@ -37,25 +37,25 @@
describe('EnumTest', function() {
it('should create an instance of EnumTest', function() {
// uncomment below and update the code to test EnumTest
- //var instane = new SwaggerPetstore.EnumTest();
- //expect(instance).to.be.a(SwaggerPetstore.EnumTest);
+ //var instane = 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 instane = new SwaggerPetstore.EnumTest();
+ //var instane = 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 instane = new SwaggerPetstore.EnumTest();
+ //var instane = 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 instane = new SwaggerPetstore.EnumTest();
+ //var instane = new OpenAPIPetstore.EnumTest();
//expect(instance).to.be();
});
diff --git a/samples/client/petstore/javascript/test/model/FormatTest.spec.js b/samples/client/petstore/javascript/test/model/FormatTest.spec.js
index 659d4ba46c29..e5fab4f063c7 100644
--- a/samples/client/petstore/javascript/test/model/FormatTest.spec.js
+++ b/samples/client/petstore/javascript/test/model/FormatTest.spec.js
@@ -7,15 +7,15 @@
factory(require('expect.js'), require('../../src/index'));
} else {
// Browser globals (root is window)
- factory(root.expect, root.SwaggerPetstore);
+ factory(root.expect, root.OpenAPIPetstore);
}
-}(this, function(expect, SwaggerPetstore) {
+}(this, function(expect, OpenAPIPetstore) {
'use strict';
var instance;
beforeEach(function() {
- instance = new SwaggerPetstore.FormatTest();
+ instance = new OpenAPIPetstore.FormatTest();
});
var getProperty = function(object, getter, property) {
@@ -37,85 +37,85 @@
describe('FormatTest', function() {
it('should create an instance of FormatTest', function() {
// uncomment below and update the code to test FormatTest
- //var instane = new SwaggerPetstore.FormatTest();
- //expect(instance).to.be.a(SwaggerPetstore.FormatTest);
+ //var instane = 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 instane = new SwaggerPetstore.FormatTest();
+ //var instane = 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 instane = new SwaggerPetstore.FormatTest();
+ //var instane = 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 instane = new SwaggerPetstore.FormatTest();
+ //var instane = 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 instane = new SwaggerPetstore.FormatTest();
+ //var instane = 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 instane = new SwaggerPetstore.FormatTest();
+ //var instane = 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 instane = new SwaggerPetstore.FormatTest();
+ //var instane = 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 instane = new SwaggerPetstore.FormatTest();
+ //var instane = 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 instane = new SwaggerPetstore.FormatTest();
+ //var instane = 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 instane = new SwaggerPetstore.FormatTest();
+ //var instane = 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 instane = new SwaggerPetstore.FormatTest();
+ //var instane = 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 instane = new SwaggerPetstore.FormatTest();
+ //var instane = 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 instane = new SwaggerPetstore.FormatTest();
+ //var instane = 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 instane = new SwaggerPetstore.FormatTest();
+ //var instane = new OpenAPIPetstore.FormatTest();
//expect(instance).to.be();
});
diff --git a/samples/client/petstore/javascript/test/model/HasOnlyReadOnly.spec.js b/samples/client/petstore/javascript/test/model/HasOnlyReadOnly.spec.js
index 6e9d87fd4a5b..425c1a83bf99 100644
--- a/samples/client/petstore/javascript/test/model/HasOnlyReadOnly.spec.js
+++ b/samples/client/petstore/javascript/test/model/HasOnlyReadOnly.spec.js
@@ -1,5 +1,5 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
@@ -31,15 +31,15 @@
factory(require('expect.js'), require('../../src/index'));
} else {
// Browser globals (root is window)
- factory(root.expect, root.SwaggerPetstore);
+ factory(root.expect, root.OpenAPIPetstore);
}
-}(this, function(expect, SwaggerPetstore) {
+}(this, function(expect, OpenAPIPetstore) {
'use strict';
var instance;
beforeEach(function() {
- instance = new SwaggerPetstore.HasOnlyReadOnly();
+ instance = new OpenAPIPetstore.HasOnlyReadOnly();
});
var getProperty = function(object, getter, property) {
@@ -61,19 +61,19 @@
describe('HasOnlyReadOnly', function() {
it('should create an instance of HasOnlyReadOnly', function() {
// uncomment below and update the code to test HasOnlyReadOnly
- //var instane = new SwaggerPetstore.HasOnlyReadOnly();
- //expect(instance).to.be.a(SwaggerPetstore.HasOnlyReadOnly);
+ //var instane = 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 instane = new SwaggerPetstore.HasOnlyReadOnly();
+ //var instane = 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 instane = new SwaggerPetstore.HasOnlyReadOnly();
+ //var instane = new OpenAPIPetstore.HasOnlyReadOnly();
//expect(instance).to.be();
});
diff --git a/samples/client/petstore/javascript/test/model/List.spec.js b/samples/client/petstore/javascript/test/model/List.spec.js
index e73583f9ebc0..4f14dafc3aaf 100644
--- a/samples/client/petstore/javascript/test/model/List.spec.js
+++ b/samples/client/petstore/javascript/test/model/List.spec.js
@@ -1,5 +1,5 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
@@ -31,15 +31,15 @@
factory(require('expect.js'), require('../../src/index'));
} else {
// Browser globals (root is window)
- factory(root.expect, root.SwaggerPetstore);
+ factory(root.expect, root.OpenAPIPetstore);
}
-}(this, function(expect, SwaggerPetstore) {
+}(this, function(expect, OpenAPIPetstore) {
'use strict';
var instance;
beforeEach(function() {
- instance = new SwaggerPetstore.List();
+ instance = new OpenAPIPetstore.List();
});
var getProperty = function(object, getter, property) {
@@ -61,13 +61,13 @@
describe('List', function() {
it('should create an instance of List', function() {
// uncomment below and update the code to test List
- //var instane = new SwaggerPetstore.List();
- //expect(instance).to.be.a(SwaggerPetstore.List);
+ //var instane = 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 instane = new SwaggerPetstore.List();
+ //var instane = new OpenAPIPetstore.List();
//expect(instance).to.be();
});
diff --git a/samples/client/petstore/javascript/test/model/MapTest.spec.js b/samples/client/petstore/javascript/test/model/MapTest.spec.js
index 4c91b24d01c4..a7fa7442ae8a 100644
--- a/samples/client/petstore/javascript/test/model/MapTest.spec.js
+++ b/samples/client/petstore/javascript/test/model/MapTest.spec.js
@@ -1,5 +1,5 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
@@ -31,15 +31,15 @@
factory(require('expect.js'), require('../../src/index'));
} else {
// Browser globals (root is window)
- factory(root.expect, root.SwaggerPetstore);
+ factory(root.expect, root.OpenAPIPetstore);
}
-}(this, function(expect, SwaggerPetstore) {
+}(this, function(expect, OpenAPIPetstore) {
'use strict';
var instance;
beforeEach(function() {
- instance = new SwaggerPetstore.MapTest();
+ instance = new OpenAPIPetstore.MapTest();
});
var getProperty = function(object, getter, property) {
@@ -61,25 +61,25 @@
describe('MapTest', function() {
it('should create an instance of MapTest', function() {
// uncomment below and update the code to test MapTest
- //var instane = new SwaggerPetstore.MapTest();
- //expect(instance).to.be.a(SwaggerPetstore.MapTest);
+ //var instane = 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 instane = new SwaggerPetstore.MapTest();
+ //var instane = new OpenAPIPetstore.MapTest();
//expect(instance).to.be();
});
it('should have the property mapMapOfEnum (base name: "map_map_of_enum")', function() {
// uncomment below and update the code to test the property mapMapOfEnum
- //var instane = new SwaggerPetstore.MapTest();
+ //var instane = 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 instane = new SwaggerPetstore.MapTest();
+ //var instane = new OpenAPIPetstore.MapTest();
//expect(instance).to.be();
});
diff --git a/samples/client/petstore/javascript/test/model/MixedPropertiesAndAdditionalPropertiesClass.spec.js b/samples/client/petstore/javascript/test/model/MixedPropertiesAndAdditionalPropertiesClass.spec.js
index 712ac334966c..482e0574ef8b 100644
--- a/samples/client/petstore/javascript/test/model/MixedPropertiesAndAdditionalPropertiesClass.spec.js
+++ b/samples/client/petstore/javascript/test/model/MixedPropertiesAndAdditionalPropertiesClass.spec.js
@@ -7,15 +7,15 @@
factory(require('expect.js'), require('../../src/index'));
} else {
// Browser globals (root is window)
- factory(root.expect, root.SwaggerPetstore);
+ factory(root.expect, root.OpenAPIPetstore);
}
-}(this, function(expect, SwaggerPetstore) {
+}(this, function(expect, OpenAPIPetstore) {
'use strict';
var instance;
beforeEach(function() {
- instance = new SwaggerPetstore.MixedPropertiesAndAdditionalPropertiesClass();
+ instance = new OpenAPIPetstore.MixedPropertiesAndAdditionalPropertiesClass();
});
var getProperty = function(object, getter, property) {
@@ -37,25 +37,25 @@
describe('MixedPropertiesAndAdditionalPropertiesClass', function() {
it('should create an instance of MixedPropertiesAndAdditionalPropertiesClass', function() {
// uncomment below and update the code to test MixedPropertiesAndAdditionalPropertiesClass
- //var instane = new SwaggerPetstore.MixedPropertiesAndAdditionalPropertiesClass();
- //expect(instance).to.be.a(SwaggerPetstore.MixedPropertiesAndAdditionalPropertiesClass);
+ //var instane = 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 instane = new SwaggerPetstore.MixedPropertiesAndAdditionalPropertiesClass();
+ //var instane = 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 instane = new SwaggerPetstore.MixedPropertiesAndAdditionalPropertiesClass();
+ //var instane = 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 instane = new SwaggerPetstore.MixedPropertiesAndAdditionalPropertiesClass();
+ //var instane = new OpenAPIPetstore.MixedPropertiesAndAdditionalPropertiesClass();
//expect(instance).to.be();
});
diff --git a/samples/client/petstore/javascript/test/model/Model200Response.spec.js b/samples/client/petstore/javascript/test/model/Model200Response.spec.js
index a7549135636a..b6cc26854187 100644
--- a/samples/client/petstore/javascript/test/model/Model200Response.spec.js
+++ b/samples/client/petstore/javascript/test/model/Model200Response.spec.js
@@ -7,15 +7,15 @@
factory(require('expect.js'), require('../../src/index'));
} else {
// Browser globals (root is window)
- factory(root.expect, root.SwaggerPetstore);
+ factory(root.expect, root.OpenAPIPetstore);
}
-}(this, function(expect, SwaggerPetstore) {
+}(this, function(expect, OpenAPIPetstore) {
'use strict';
var instance;
beforeEach(function() {
- instance = new SwaggerPetstore.Model200Response();
+ instance = new OpenAPIPetstore.Model200Response();
});
var getProperty = function(object, getter, property) {
@@ -37,13 +37,13 @@
describe('Model200Response', function() {
it('should create an instance of Model200Response', function() {
// uncomment below and update the code to test Model200Response
- //var instane = new SwaggerPetstore.Model200Response();
- //expect(instance).to.be.a(SwaggerPetstore.Model200Response);
+ //var instane = 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 instane = new SwaggerPetstore.Model200Response();
+ //var instane = new OpenAPIPetstore.Model200Response();
//expect(instance).to.be();
});
diff --git a/samples/client/petstore/javascript/test/model/ModelReturn.spec.js b/samples/client/petstore/javascript/test/model/ModelReturn.spec.js
index f2cfd4891388..667150af7f8c 100644
--- a/samples/client/petstore/javascript/test/model/ModelReturn.spec.js
+++ b/samples/client/petstore/javascript/test/model/ModelReturn.spec.js
@@ -7,15 +7,15 @@
factory(require('expect.js'), require('../../src/index'));
} else {
// Browser globals (root is window)
- factory(root.expect, root.SwaggerPetstore);
+ factory(root.expect, root.OpenAPIPetstore);
}
-}(this, function(expect, SwaggerPetstore) {
+}(this, function(expect, OpenAPIPetstore) {
'use strict';
var instance;
beforeEach(function() {
- instance = new SwaggerPetstore.ModelReturn();
+ instance = new OpenAPIPetstore.ModelReturn();
});
var getProperty = function(object, getter, property) {
@@ -37,13 +37,13 @@
describe('ModelReturn', function() {
it('should create an instance of ModelReturn', function() {
// uncomment below and update the code to test ModelReturn
- //var instane = new SwaggerPetstore.ModelReturn();
- //expect(instance).to.be.a(SwaggerPetstore.ModelReturn);
+ //var instane = new OpenAPIPetstore.ModelReturn();
+ //expect(instance).to.be.a(OpenAPIPetstore.ModelReturn);
});
it('should have the property _return (base name: "return")', function() {
// uncomment below and update the code to test the property _return
- //var instane = new SwaggerPetstore.ModelReturn();
+ //var instane = new OpenAPIPetstore.ModelReturn();
//expect(instance).to.be();
});
diff --git a/samples/client/petstore/javascript/test/model/Name.spec.js b/samples/client/petstore/javascript/test/model/Name.spec.js
index 13d85520601e..aa1a9a104d70 100644
--- a/samples/client/petstore/javascript/test/model/Name.spec.js
+++ b/samples/client/petstore/javascript/test/model/Name.spec.js
@@ -7,15 +7,15 @@
factory(require('expect.js'), require('../../src/index'));
} else {
// Browser globals (root is window)
- factory(root.expect, root.SwaggerPetstore);
+ factory(root.expect, root.OpenAPIPetstore);
}
-}(this, function(expect, SwaggerPetstore) {
+}(this, function(expect, OpenAPIPetstore) {
'use strict';
var instance;
beforeEach(function() {
- instance = new SwaggerPetstore.Name();
+ instance = new OpenAPIPetstore.Name();
});
var getProperty = function(object, getter, property) {
@@ -37,31 +37,31 @@
describe('Name', function() {
it('should create an instance of Name', function() {
// uncomment below and update the code to test Name
- //var instane = new SwaggerPetstore.Name();
- //expect(instance).to.be.a(SwaggerPetstore.Name);
+ //var instane = 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 instane = new SwaggerPetstore.Name();
+ //var instane = 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 instane = new SwaggerPetstore.Name();
+ //var instane = 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 instane = new SwaggerPetstore.Name();
+ //var instane = 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 instane = new SwaggerPetstore.Name();
+ //var instane = new OpenAPIPetstore.Name();
//expect(instance).to.be();
});
diff --git a/samples/client/petstore/javascript/test/model/NumberOnly.spec.js b/samples/client/petstore/javascript/test/model/NumberOnly.spec.js
index f8b8327a2eec..464f698ff87c 100644
--- a/samples/client/petstore/javascript/test/model/NumberOnly.spec.js
+++ b/samples/client/petstore/javascript/test/model/NumberOnly.spec.js
@@ -1,5 +1,5 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
@@ -31,15 +31,15 @@
factory(require('expect.js'), require('../../src/index'));
} else {
// Browser globals (root is window)
- factory(root.expect, root.SwaggerPetstore);
+ factory(root.expect, root.OpenAPIPetstore);
}
-}(this, function(expect, SwaggerPetstore) {
+}(this, function(expect, OpenAPIPetstore) {
'use strict';
var instance;
beforeEach(function() {
- instance = new SwaggerPetstore.NumberOnly();
+ instance = new OpenAPIPetstore.NumberOnly();
});
var getProperty = function(object, getter, property) {
@@ -61,13 +61,13 @@
describe('NumberOnly', function() {
it('should create an instance of NumberOnly', function() {
// uncomment below and update the code to test NumberOnly
- //var instane = new SwaggerPetstore.NumberOnly();
- //expect(instance).to.be.a(SwaggerPetstore.NumberOnly);
+ //var instane = 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 instane = new SwaggerPetstore.NumberOnly();
+ //var instane = new OpenAPIPetstore.NumberOnly();
//expect(instance).to.be();
});
diff --git a/samples/client/petstore/javascript/test/model/Order.spec.js b/samples/client/petstore/javascript/test/model/Order.spec.js
index 070690ef1312..9e439ecd3b62 100644
--- a/samples/client/petstore/javascript/test/model/Order.spec.js
+++ b/samples/client/petstore/javascript/test/model/Order.spec.js
@@ -7,15 +7,15 @@
factory(require('expect.js'), require('../../src/index'));
} else {
// Browser globals (root is window)
- factory(root.expect, root.SwaggerPetstore);
+ factory(root.expect, root.OpenAPIPetstore);
}
-}(this, function(expect, SwaggerPetstore) {
+}(this, function(expect, OpenAPIPetstore) {
'use strict';
var instance;
beforeEach(function() {
- instance = new SwaggerPetstore.Order();
+ instance = new OpenAPIPetstore.Order();
});
var getProperty = function(object, getter, property) {
@@ -37,43 +37,43 @@
describe('Order', function() {
it('should create an instance of Order', function() {
// uncomment below and update the code to test Order
- //var instane = new SwaggerPetstore.Order();
- //expect(instance).to.be.a(SwaggerPetstore.Order);
+ //var instane = 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 SwaggerPetstore.Order();
+ //var instane = 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 SwaggerPetstore.Order();
+ //var instane = 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 SwaggerPetstore.Order();
+ //var instane = 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 SwaggerPetstore.Order();
+ //var instane = 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 SwaggerPetstore.Order();
+ //var instane = 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 SwaggerPetstore.Order();
+ //var instane = new OpenAPIPetstore.Order();
//expect(instance).to.be();
});
diff --git a/samples/client/petstore/javascript/test/model/OuterComposite.spec.js b/samples/client/petstore/javascript/test/model/OuterComposite.spec.js
index 6fd830b7c0e2..350c938c7236 100644
--- a/samples/client/petstore/javascript/test/model/OuterComposite.spec.js
+++ b/samples/client/petstore/javascript/test/model/OuterComposite.spec.js
@@ -1,5 +1,5 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
@@ -20,15 +20,15 @@
factory(require('expect.js'), require('../../src/index'));
} else {
// Browser globals (root is window)
- factory(root.expect, root.SwaggerPetstore);
+ factory(root.expect, root.OpenAPIPetstore);
}
-}(this, function(expect, SwaggerPetstore) {
+}(this, function(expect, OpenAPIPetstore) {
'use strict';
var instance;
beforeEach(function() {
- instance = new SwaggerPetstore.OuterComposite();
+ instance = new OpenAPIPetstore.OuterComposite();
});
var getProperty = function(object, getter, property) {
@@ -50,25 +50,25 @@
describe('OuterComposite', function() {
it('should create an instance of OuterComposite', function() {
// uncomment below and update the code to test OuterComposite
- //var instane = new SwaggerPetstore.OuterComposite();
- //expect(instance).to.be.a(SwaggerPetstore.OuterComposite);
+ //var instane = 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 instane = new SwaggerPetstore.OuterComposite();
+ //var instane = 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 instane = new SwaggerPetstore.OuterComposite();
+ //var instane = 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 instane = new SwaggerPetstore.OuterComposite();
+ //var instane = new OpenAPIPetstore.OuterComposite();
//expect(instance).to.be();
});
diff --git a/samples/client/petstore/javascript/test/model/OuterEnum.spec.js b/samples/client/petstore/javascript/test/model/OuterEnum.spec.js
index 14c26a3aef56..076073fb7f10 100644
--- a/samples/client/petstore/javascript/test/model/OuterEnum.spec.js
+++ b/samples/client/petstore/javascript/test/model/OuterEnum.spec.js
@@ -1,5 +1,5 @@
/**
- * Swagger Petstore
+ * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
@@ -20,9 +20,9 @@
factory(require('expect.js'), require('../../src/index'));
} else {
// Browser globals (root is window)
- factory(root.expect, root.SwaggerPetstore);
+ factory(root.expect, root.OpenAPIPetstore);
}
-}(this, function(expect, SwaggerPetstore) {
+}(this, function(expect, OpenAPIPetstore) {
'use strict';
var instance;
@@ -49,8 +49,8 @@
describe('OuterEnum', function() {
it('should create an instance of OuterEnum', function() {
// uncomment below and update the code to test OuterEnum
- //var instane = new SwaggerPetstore.OuterEnum();
- //expect(instance).to.be.a(SwaggerPetstore.OuterEnum);
+ //var instane = new OpenAPIPetstore.OuterEnum();
+ //expect(instance).to.be.a(OpenAPIPetstore.OuterEnum);
});
});
diff --git a/samples/client/petstore/javascript/test/model/Pet.spec.js b/samples/client/petstore/javascript/test/model/Pet.spec.js
index ac66031152d5..84bccde4ee3e 100644
--- a/samples/client/petstore/javascript/test/model/Pet.spec.js
+++ b/samples/client/petstore/javascript/test/model/Pet.spec.js
@@ -7,15 +7,15 @@
factory(require('expect.js'), require('../../src/index'));
} else {
// Browser globals (root is window)
- factory(root.expect, root.SwaggerPetstore);
+ factory(root.expect, root.OpenAPIPetstore);
}
-}(this, function(expect, SwaggerPetstore) {
+}(this, function(expect, OpenAPIPetstore) {
'use strict';
var instance;
beforeEach(function() {
- instance = new SwaggerPetstore.Pet();
+ instance = new OpenAPIPetstore.Pet();
});
var getProperty = function(object, getter, property) {
@@ -37,43 +37,43 @@
describe('Pet', function() {
it('should create an instance of Pet', function() {
// uncomment below and update the code to test Pet
- //var instane = new SwaggerPetstore.Pet();
- //expect(instance).to.be.a(SwaggerPetstore.Pet);
+ //var instane = 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 SwaggerPetstore.Pet();
+ //var instane = 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 SwaggerPetstore.Pet();
+ //var instane = 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 SwaggerPetstore.Pet();
+ //var instane = 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 SwaggerPetstore.Pet();
+ //var instane = 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 SwaggerPetstore.Pet();
+ //var instane = 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 SwaggerPetstore.Pet();
+ //var instane = new OpenAPIPetstore.Pet();
//expect(instance).to.be();
});
diff --git a/samples/client/petstore/javascript/test/model/ReadOnlyFirst.spec.js b/samples/client/petstore/javascript/test/model/ReadOnlyFirst.spec.js
index 1af5ea146b36..a26552ce3256 100644
--- a/samples/client/petstore/javascript/test/model/ReadOnlyFirst.spec.js
+++ b/samples/client/petstore/javascript/test/model/ReadOnlyFirst.spec.js
@@ -7,15 +7,15 @@
factory(require('expect.js'), require('../../src/index'));
} else {
// Browser globals (root is window)
- factory(root.expect, root.SwaggerPetstore);
+ factory(root.expect, root.OpenAPIPetstore);
}
-}(this, function(expect, SwaggerPetstore) {
+}(this, function(expect, OpenAPIPetstore) {
'use strict';
var instance;
beforeEach(function() {
- instance = new SwaggerPetstore.ReadOnlyFirst();
+ instance = new OpenAPIPetstore.ReadOnlyFirst();
});
var getProperty = function(object, getter, property) {
@@ -37,19 +37,19 @@
describe('ReadOnlyFirst', function() {
it('should create an instance of ReadOnlyFirst', function() {
// uncomment below and update the code to test ReadOnlyFirst
- //var instane = new SwaggerPetstore.ReadOnlyFirst();
- //expect(instance).to.be.a(SwaggerPetstore.ReadOnlyFirst);
+ //var instane = 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 instane = new SwaggerPetstore.ReadOnlyFirst();
+ //var instane = 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 instane = new SwaggerPetstore.ReadOnlyFirst();
+ //var instane = new OpenAPIPetstore.ReadOnlyFirst();
//expect(instance).to.be();
});
diff --git a/samples/client/petstore/javascript/test/model/SpecialModelName.spec.js b/samples/client/petstore/javascript/test/model/SpecialModelName.spec.js
index 8255ae7a8f56..487bb632c3d8 100644
--- a/samples/client/petstore/javascript/test/model/SpecialModelName.spec.js
+++ b/samples/client/petstore/javascript/test/model/SpecialModelName.spec.js
@@ -7,15 +7,15 @@
factory(require('expect.js'), require('../../src/index'));
} else {
// Browser globals (root is window)
- factory(root.expect, root.SwaggerPetstore);
+ factory(root.expect, root.OpenAPIPetstore);
}
-}(this, function(expect, SwaggerPetstore) {
+}(this, function(expect, OpenAPIPetstore) {
'use strict';
var instance;
beforeEach(function() {
- instance = new SwaggerPetstore.SpecialModelName();
+ instance = new OpenAPIPetstore.SpecialModelName();
});
var getProperty = function(object, getter, property) {
@@ -37,13 +37,13 @@
describe('SpecialModelName', function() {
it('should create an instance of SpecialModelName', function() {
// uncomment below and update the code to test SpecialModelName
- //var instane = new SwaggerPetstore.SpecialModelName();
- //expect(instance).to.be.a(SwaggerPetstore.SpecialModelName);
+ //var instane = 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 instane = new SwaggerPetstore.SpecialModelName();
+ //var instane = new OpenAPIPetstore.SpecialModelName();
//expect(instance).to.be();
});
diff --git a/samples/client/petstore/javascript/test/model/Tag.spec.js b/samples/client/petstore/javascript/test/model/Tag.spec.js
index 1a33f7fb9f1b..be8aad11e406 100644
--- a/samples/client/petstore/javascript/test/model/Tag.spec.js
+++ b/samples/client/petstore/javascript/test/model/Tag.spec.js
@@ -7,15 +7,15 @@
factory(require('expect.js'), require('../../src/index'));
} else {
// Browser globals (root is window)
- factory(root.expect, root.SwaggerPetstore);
+ factory(root.expect, root.OpenAPIPetstore);
}
-}(this, function(expect, SwaggerPetstore) {
+}(this, function(expect, OpenAPIPetstore) {
'use strict';
var instance;
beforeEach(function() {
- instance = new SwaggerPetstore.Tag();
+ instance = new OpenAPIPetstore.Tag();
});
var getProperty = function(object, getter, property) {
@@ -37,19 +37,19 @@
describe('Tag', function() {
it('should create an instance of Tag', function() {
// uncomment below and update the code to test Tag
- //var instane = new SwaggerPetstore.Tag();
- //expect(instance).to.be.a(SwaggerPetstore.Tag);
+ //var instane = 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 SwaggerPetstore.Tag();
+ //var instane = 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 SwaggerPetstore.Tag();
+ //var instane = new OpenAPIPetstore.Tag();
//expect(instance).to.be();
});
diff --git a/samples/client/petstore/javascript/test/model/User.spec.js b/samples/client/petstore/javascript/test/model/User.spec.js
index 5c0e3dfc8264..f259ade21196 100644
--- a/samples/client/petstore/javascript/test/model/User.spec.js
+++ b/samples/client/petstore/javascript/test/model/User.spec.js
@@ -7,15 +7,15 @@
factory(require('expect.js'), require('../../src/index'));
} else {
// Browser globals (root is window)
- factory(root.expect, root.SwaggerPetstore);
+ factory(root.expect, root.OpenAPIPetstore);
}
-}(this, function(expect, SwaggerPetstore) {
+}(this, function(expect, OpenAPIPetstore) {
'use strict';
var instance;
beforeEach(function() {
- instance = new SwaggerPetstore.User();
+ instance = new OpenAPIPetstore.User();
});
var getProperty = function(object, getter, property) {
@@ -37,55 +37,55 @@
describe('User', function() {
it('should create an instance of User', function() {
// uncomment below and update the code to test User
- //var instane = new SwaggerPetstore.User();
- //expect(instance).to.be.a(SwaggerPetstore.User);
+ //var instane = 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 SwaggerPetstore.User();
+ //var instane = 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 SwaggerPetstore.User();
+ //var instane = 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 SwaggerPetstore.User();
+ //var instane = 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 SwaggerPetstore.User();
+ //var instane = 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 SwaggerPetstore.User();
+ //var instane = 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 SwaggerPetstore.User();
+ //var instane = 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 SwaggerPetstore.User();
+ //var instane = 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 SwaggerPetstore.User();
+ //var instane = new OpenAPIPetstore.User();
//expect(instance).to.be();
});