From 8977d7b366d56bcba74f03120edd614d2b20ec12 Mon Sep 17 00:00:00 2001 From: Vincent Devos <46601673+karismann@users.noreply.github.com> Date: Sat, 30 Mar 2019 03:04:44 +0100 Subject: [PATCH] [JavaScript] fix index.js, ApiClient.js and test files generated to incorrect location (#2511) remove outdated samples files update test dependencies --- .../languages/JavascriptClientCodegen.java | 28 +- .../resources/Javascript/api_test.mustache | 4 +- .../Javascript/es6/api_test.mustache | 4 +- .../Javascript/es6/model_test.mustache | 4 +- .../resources/Javascript/es6/package.mustache | 4 +- .../resources/Javascript/model_test.mustache | 4 +- .../resources/Javascript/package.mustache | 6 +- .../javascript-es6/docs/AnimalFarm.md | 7 - .../docs/Fake_classname_tags123Api.md | 59 --- .../javascript-es6/docs/OuterBoolean.md | 7 - .../javascript-es6/docs/OuterNumber.md | 7 - .../javascript-es6/docs/OuterString.md | 7 - .../javascript-es6/docs/StringBooleanMap.md | 7 - .../petstore/javascript-es6/package.json | 4 +- .../javascript-es6/src/model/AnimalFarm.js | 70 ---- .../src/model/StringBooleanMap.js | 67 --- .../javascript-es6/src/test/ApiClientTest.js | 393 ------------------ .../src/test/api/AnotherFakeApi.spec.js | 63 --- .../src/test/api/FakeApi.spec.js | 123 ------ .../test/api/FakeClassnameTags123Api.spec.js | 63 --- .../src/test/api/PetApi.spec.js | 133 ------ .../src/test/api/StoreApi.spec.js | 93 ----- .../src/test/api/UserApi.spec.js | 133 ------ .../model/AdditionalPropertiesClass.spec.js | 71 ---- .../src/test/model/Animal.spec.js | 71 ---- .../src/test/model/ApiResponse.spec.js | 77 ---- .../model/ArrayOfArrayOfNumberOnly.spec.js | 65 --- .../src/test/model/ArrayOfNumberOnly.spec.js | 65 --- .../src/test/model/ArrayTest.spec.js | 77 ---- .../src/test/model/Capitalization.spec.js | 95 ----- .../javascript-es6/src/test/model/Cat.spec.js | 65 --- .../src/test/model/Category.spec.js | 71 ---- .../src/test/model/ClassModel.spec.js | 65 --- .../src/test/model/Client.spec.js | 65 --- .../javascript-es6/src/test/model/Dog.spec.js | 65 --- .../src/test/model/EnumArrays.spec.js | 71 ---- .../src/test/model/EnumClass.spec.js | 58 --- .../src/test/model/EnumTest.spec.js | 83 ---- .../src/test/model/FormatTest.spec.js | 137 ------ .../src/test/model/HasOnlyReadOnly.spec.js | 71 ---- .../src/test/model/List.spec.js | 65 --- .../src/test/model/MapTest.spec.js | 71 ---- ...ertiesAndAdditionalPropertiesClass.spec.js | 77 ---- .../src/test/model/Model200Response.spec.js | 71 ---- .../src/test/model/ModelReturn.spec.js | 65 --- .../src/test/model/Name.spec.js | 83 ---- .../src/test/model/NumberOnly.spec.js | 65 --- .../src/test/model/Order.spec.js | 95 ----- .../src/test/model/OuterBoolean.spec.js | 60 --- .../src/test/model/OuterComposite.spec.js | 77 ---- .../src/test/model/OuterEnum.spec.js | 58 --- .../src/test/model/OuterNumber.spec.js | 60 --- .../src/test/model/OuterString.spec.js | 60 --- .../javascript-es6/src/test/model/Pet.spec.js | 95 ----- .../src/test/model/ReadOnlyFirst.spec.js | 71 ---- .../src/test/model/SpecialModelName.spec.js | 65 --- .../javascript-es6/src/test/model/Tag.spec.js | 71 ---- .../src/test/model/User.spec.js | 107 ----- .../test/api/AnotherFakeApi.spec.js | 12 +- .../javascript-es6/test/api/FakeApi.spec.js | 34 +- .../test/api/FakeClassnameTags123Api.spec.js | 4 +- .../javascript-es6/test/api/PetApi.spec.js | 14 +- .../javascript-es6/test/api/StoreApi.spec.js | 4 +- .../javascript-es6/test/api/UserApi.spec.js | 4 +- .../model/AdditionalPropertiesAnyType.spec.js | 4 +- .../model/AdditionalPropertiesArray.spec.js | 4 +- .../model/AdditionalPropertiesBoolean.spec.js | 4 +- .../model/AdditionalPropertiesClass.spec.js | 66 ++- .../model/AdditionalPropertiesInteger.spec.js | 4 +- .../model/AdditionalPropertiesNumber.spec.js | 4 +- .../model/AdditionalPropertiesObject.spec.js | 4 +- .../model/AdditionalPropertiesString.spec.js | 4 +- .../javascript-es6/test/model/Animal.spec.js | 4 +- .../test/model/ApiResponse.spec.js | 4 +- .../model/ArrayOfArrayOfNumberOnly.spec.js | 4 +- .../test/model/ArrayOfNumberOnly.spec.js | 4 +- .../test/model/ArrayTest.spec.js | 4 +- .../test/model/Capitalization.spec.js | 4 +- .../javascript-es6/test/model/Cat.spec.js | 4 +- .../test/model/Category.spec.js | 4 +- .../test/model/ClassModel.spec.js | 4 +- .../javascript-es6/test/model/Client.spec.js | 4 +- .../javascript-es6/test/model/Dog.spec.js | 4 +- .../test/model/EnumArrays.spec.js | 4 +- .../test/model/EnumClass.spec.js | 4 +- .../test/model/EnumTest.spec.js | 4 +- .../javascript-es6/test/model/File.spec.js | 4 +- .../test/model/FileSchemaTestClass.spec.js | 4 +- .../test/model/FormatTest.spec.js | 4 +- .../test/model/HasOnlyReadOnly.spec.js | 4 +- .../javascript-es6/test/model/List.spec.js | 4 +- .../javascript-es6/test/model/MapTest.spec.js | 16 +- ...ertiesAndAdditionalPropertiesClass.spec.js | 4 +- .../test/model/Model200Response.spec.js | 4 +- .../test/model/ModelReturn.spec.js | 4 +- .../javascript-es6/test/model/Name.spec.js | 4 +- .../test/model/NumberOnly.spec.js | 4 +- .../javascript-es6/test/model/Order.spec.js | 4 +- .../test/model/OuterBoolean.spec.js | 60 --- .../test/model/OuterComposite.spec.js | 4 +- .../test/model/OuterEnum.spec.js | 4 +- .../test/model/OuterNumber.spec.js | 60 --- .../test/model/OuterString.spec.js | 60 --- .../javascript-es6/test/model/Pet.spec.js | 4 +- .../test/model/ReadOnlyFirst.spec.js | 4 +- .../test/model/SpecialModelName.spec.js | 4 +- .../javascript-es6/test/model/Tag.spec.js | 4 +- .../test/model/TypeHolderDefault.spec.js | 4 +- .../test/model/TypeHolderExample.spec.js | 4 +- .../javascript-es6/test/model/User.spec.js | 4 +- .../javascript-es6/test/model/XmlItem.spec.js | 4 +- .../javascript-promise-es6/docs/AnimalFarm.md | 7 - .../docs/Fake_classname_tags123Api.md | 57 --- .../docs/OuterBoolean.md | 7 - .../docs/OuterNumber.md | 7 - .../docs/OuterString.md | 7 - .../docs/StringBooleanMap.md | 7 - .../javascript-promise-es6/package.json | 4 +- .../src/model/AnimalFarm.js | 70 ---- .../src/model/StringBooleanMap.js | 67 --- .../test/api/AnotherFakeApi.spec.js | 26 +- .../test/api/FakeApi.spec.js | 118 +++++- .../test/api/FakeClassnameTags123Api.spec.js | 18 +- .../test/api/PetApi.spec.js | 28 +- .../test/api/StoreApi.spec.js | 18 +- .../test/api/UserApi.spec.js | 18 +- .../model/AdditionalPropertiesAnyType.spec.js | 4 +- .../model/AdditionalPropertiesArray.spec.js | 4 +- .../model/AdditionalPropertiesBoolean.spec.js | 4 +- .../model/AdditionalPropertiesClass.spec.js | 88 +++- .../model/AdditionalPropertiesInteger.spec.js | 4 +- .../model/AdditionalPropertiesNumber.spec.js | 4 +- .../model/AdditionalPropertiesObject.spec.js | 4 +- .../model/AdditionalPropertiesString.spec.js | 4 +- .../test/model/Animal.spec.js | 26 +- .../test/model/ApiResponse.spec.js | 28 +- .../model/ArrayOfArrayOfNumberOnly.spec.js | 24 +- .../test/model/ArrayOfNumberOnly.spec.js | 24 +- .../test/model/ArrayTest.spec.js | 28 +- .../test/model/Capitalization.spec.js | 34 +- .../test/model/Cat.spec.js | 24 +- .../test/model/Category.spec.js | 26 +- .../test/model/ClassModel.spec.js | 24 +- .../test/model/Client.spec.js | 24 +- .../test/model/Dog.spec.js | 24 +- .../test/model/EnumArrays.spec.js | 26 +- .../test/model/EnumClass.spec.js | 20 +- .../test/model/EnumTest.spec.js | 36 +- .../test/model/File.spec.js | 4 +- .../test/model/FileSchemaTestClass.spec.js | 4 +- .../test/model/FormatTest.spec.js | 48 +-- .../test/model/HasOnlyReadOnly.spec.js | 26 +- .../test/model/List.spec.js | 28 +- .../test/model/MapTest.spec.js | 38 +- ...ertiesAndAdditionalPropertiesClass.spec.js | 28 +- .../test/model/Model200Response.spec.js | 26 +- .../test/model/ModelReturn.spec.js | 24 +- .../test/model/Name.spec.js | 34 +- .../test/model/NumberOnly.spec.js | 24 +- .../test/model/Order.spec.js | 34 +- .../test/model/OuterBoolean.spec.js | 63 --- .../test/model/OuterComposite.spec.js | 31 +- .../test/model/OuterEnum.spec.js | 20 +- .../test/model/OuterNumber.spec.js | 63 --- .../test/model/OuterString.spec.js | 63 --- .../test/model/Pet.spec.js | 34 +- .../test/model/ReadOnlyFirst.spec.js | 26 +- .../test/model/SpecialModelName.spec.js | 24 +- .../test/model/Tag.spec.js | 26 +- .../test/model/TypeHolderDefault.spec.js | 4 +- .../test/model/TypeHolderExample.spec.js | 4 +- .../test/model/User.spec.js | 38 +- .../test/model/XmlItem.spec.js | 4 +- .../javascript-promise/docs/AnimalFarm.md | 7 - .../docs/Fake_classname_tags123Api.md | 57 --- .../javascript-promise/docs/OuterBoolean.md | 7 - .../javascript-promise/docs/OuterNumber.md | 7 - .../javascript-promise/docs/OuterString.md | 7 - .../docs/StringBooleanMap.md | 7 - .../petstore/javascript-promise/package.json | 6 +- .../src/api/Fake_classname_tags123Api.js | 103 ----- .../src/model/AnimalFarm.js | 76 ---- .../src/model/OuterBoolean.js | 74 ---- .../src/model/OuterNumber.js | 74 ---- .../src/model/OuterString.js | 74 ---- .../src/model/StringBooleanMap.js | 74 ---- .../test/api/AnotherFakeApi.spec.js | 27 +- .../test/api/FakeApi.spec.js | 155 ++++++- .../test/api/FakeClassnameTags123Api.spec.js | 19 +- .../test/api/PetApi.spec.js | 334 ++++++--------- .../test/api/StoreApi.spec.js | 41 +- .../test/api/UserApi.spec.js | 49 +-- .../model/AdditionalPropertiesAnyType.spec.js | 4 +- .../model/AdditionalPropertiesArray.spec.js | 4 +- .../model/AdditionalPropertiesBoolean.spec.js | 4 +- .../model/AdditionalPropertiesClass.spec.js | 103 +++-- .../model/AdditionalPropertiesInteger.spec.js | 4 +- .../model/AdditionalPropertiesNumber.spec.js | 4 +- .../model/AdditionalPropertiesObject.spec.js | 4 +- .../model/AdditionalPropertiesString.spec.js | 4 +- .../test/model/Animal.spec.js | 41 +- .../test/model/ApiResponse.spec.js | 43 +- .../model/ArrayOfArrayOfNumberOnly.spec.js | 37 +- .../test/model/ArrayOfNumberOnly.spec.js | 37 +- .../test/model/ArrayTest.spec.js | 43 +- .../test/model/Capitalization.spec.js | 36 +- .../javascript-promise/test/model/Cat.spec.js | 39 +- .../test/model/Category.spec.js | 41 +- .../test/model/ClassModel.spec.js | 26 +- .../test/model/Client.spec.js | 37 +- .../javascript-promise/test/model/Dog.spec.js | 39 +- .../test/model/EnumArrays.spec.js | 39 +- .../test/model/EnumClass.spec.js | 35 +- .../test/model/EnumTest.spec.js | 55 +-- .../test/model/File.spec.js | 6 +- .../test/model/FileSchemaTestClass.spec.js | 6 +- .../test/model/FormatTest.spec.js | 63 ++- .../test/model/HasOnlyReadOnly.spec.js | 39 +- .../test/model/List.spec.js | 41 +- .../test/model/MapTest.spec.js | 51 +-- ...ertiesAndAdditionalPropertiesClass.spec.js | 43 +- .../test/model/Model200Response.spec.js | 45 +- .../test/model/ModelReturn.spec.js | 39 +- .../test/model/Name.spec.js | 49 +-- .../test/model/NumberOnly.spec.js | 37 +- .../test/model/Order.spec.js | 49 +-- .../test/model/OuterBoolean.spec.js | 60 --- .../test/model/OuterComposite.spec.js | 30 +- .../test/model/OuterEnum.spec.js | 22 +- .../test/model/OuterNumber.spec.js | 60 --- .../test/model/OuterString.spec.js | 60 --- .../javascript-promise/test/model/Pet.spec.js | 49 +-- .../test/model/ReadOnlyFirst.spec.js | 41 +- .../test/model/SpecialModelName.spec.js | 39 +- .../javascript-promise/test/model/Tag.spec.js | 41 +- .../test/model/TypeHolderDefault.spec.js | 4 +- .../test/model/TypeHolderExample.spec.js | 4 +- .../test/model/User.spec.js | 53 +-- .../test/model/XmlItem.spec.js | 4 +- .../petstore/javascript/docs/AnimalFarm.md | 7 - .../javascript/docs/StringBooleanMap.md | 7 - .../client/petstore/javascript/package.json | 6 +- .../javascript/src/model/AnimalFarm.js | 76 ---- .../javascript/src/model/StringBooleanMap.js | 74 ---- .../test/api/AnotherFakeApi.spec.js | 14 +- .../javascript/test/api/FakeApi.spec.js | 147 ++++++- .../test/api/FakeClassnameTags123Api.spec.js | 6 +- .../javascript/test/api/PetApi.spec.js | 181 ++++---- .../javascript/test/api/StoreApi.spec.js | 98 +++-- .../javascript/test/api/UserApi.spec.js | 41 +- .../model/AdditionalPropertiesAnyType.spec.js | 4 +- .../model/AdditionalPropertiesArray.spec.js | 4 +- .../model/AdditionalPropertiesBoolean.spec.js | 4 +- .../model/AdditionalPropertiesClass.spec.js | 95 ++++- .../model/AdditionalPropertiesInteger.spec.js | 4 +- .../model/AdditionalPropertiesNumber.spec.js | 4 +- .../model/AdditionalPropertiesObject.spec.js | 4 +- .../model/AdditionalPropertiesString.spec.js | 4 +- .../javascript/test/model/Animal.spec.js | 33 +- .../javascript/test/model/ApiResponse.spec.js | 35 +- .../model/ArrayOfArrayOfNumberOnly.spec.js | 35 +- .../test/model/ArrayOfNumberOnly.spec.js | 35 +- .../javascript/test/model/ArrayTest.spec.js | 35 +- .../test/model/Capitalization.spec.js | 34 +- .../javascript/test/model/Cat.spec.js | 4 +- .../javascript/test/model/Category.spec.js | 33 +- .../javascript/test/model/ClassModel.spec.js | 24 +- .../javascript/test/model/Client.spec.js | 35 +- .../javascript/test/model/Dog.spec.js | 4 +- .../javascript/test/model/EnumArrays.spec.js | 37 +- .../javascript/test/model/EnumClass.spec.js | 27 +- .../javascript/test/model/EnumTest.spec.js | 47 ++- .../javascript/test/model/File.spec.js | 6 +- .../test/model/FileSchemaTestClass.spec.js | 6 +- .../javascript/test/model/FormatTest.spec.js | 55 ++- .../test/model/HasOnlyReadOnly.spec.js | 37 +- .../javascript/test/model/List.spec.js | 39 +- .../javascript/test/model/MapTest.spec.js | 55 ++- ...ertiesAndAdditionalPropertiesClass.spec.js | 35 +- .../test/model/Model200Response.spec.js | 37 +- .../javascript/test/model/ModelReturn.spec.js | 31 +- .../javascript/test/model/Name.spec.js | 41 +- .../javascript/test/model/NumberOnly.spec.js | 35 +- .../javascript/test/model/Order.spec.js | 41 +- .../test/model/OuterComposite.spec.js | 28 +- .../javascript/test/model/OuterEnum.spec.js | 20 +- .../javascript/test/model/Pet.spec.js | 41 +- .../test/model/ReadOnlyFirst.spec.js | 33 +- .../test/model/SpecialModelName.spec.js | 31 +- .../javascript/test/model/Tag.spec.js | 33 +- .../test/model/TypeHolderDefault.spec.js | 4 +- .../test/model/TypeHolderExample.spec.js | 4 +- .../javascript/test/model/User.spec.js | 45 +- .../javascript/test/model/XmlItem.spec.js | 4 +- 294 files changed, 3031 insertions(+), 7681 deletions(-) delete mode 100644 samples/client/petstore/javascript-es6/docs/AnimalFarm.md delete mode 100644 samples/client/petstore/javascript-es6/docs/Fake_classname_tags123Api.md delete mode 100644 samples/client/petstore/javascript-es6/docs/OuterBoolean.md delete mode 100644 samples/client/petstore/javascript-es6/docs/OuterNumber.md delete mode 100644 samples/client/petstore/javascript-es6/docs/OuterString.md delete mode 100644 samples/client/petstore/javascript-es6/docs/StringBooleanMap.md delete mode 100644 samples/client/petstore/javascript-es6/src/model/AnimalFarm.js delete mode 100644 samples/client/petstore/javascript-es6/src/model/StringBooleanMap.js delete mode 100644 samples/client/petstore/javascript-es6/src/test/ApiClientTest.js delete mode 100644 samples/client/petstore/javascript-es6/src/test/api/AnotherFakeApi.spec.js delete mode 100644 samples/client/petstore/javascript-es6/src/test/api/FakeApi.spec.js delete mode 100644 samples/client/petstore/javascript-es6/src/test/api/FakeClassnameTags123Api.spec.js delete mode 100644 samples/client/petstore/javascript-es6/src/test/api/PetApi.spec.js delete mode 100644 samples/client/petstore/javascript-es6/src/test/api/StoreApi.spec.js delete mode 100644 samples/client/petstore/javascript-es6/src/test/api/UserApi.spec.js delete mode 100644 samples/client/petstore/javascript-es6/src/test/model/AdditionalPropertiesClass.spec.js delete mode 100644 samples/client/petstore/javascript-es6/src/test/model/Animal.spec.js delete mode 100644 samples/client/petstore/javascript-es6/src/test/model/ApiResponse.spec.js delete mode 100644 samples/client/petstore/javascript-es6/src/test/model/ArrayOfArrayOfNumberOnly.spec.js delete mode 100644 samples/client/petstore/javascript-es6/src/test/model/ArrayOfNumberOnly.spec.js delete mode 100644 samples/client/petstore/javascript-es6/src/test/model/ArrayTest.spec.js delete mode 100644 samples/client/petstore/javascript-es6/src/test/model/Capitalization.spec.js delete mode 100644 samples/client/petstore/javascript-es6/src/test/model/Cat.spec.js delete mode 100644 samples/client/petstore/javascript-es6/src/test/model/Category.spec.js delete mode 100644 samples/client/petstore/javascript-es6/src/test/model/ClassModel.spec.js delete mode 100644 samples/client/petstore/javascript-es6/src/test/model/Client.spec.js delete mode 100644 samples/client/petstore/javascript-es6/src/test/model/Dog.spec.js delete mode 100644 samples/client/petstore/javascript-es6/src/test/model/EnumArrays.spec.js delete mode 100644 samples/client/petstore/javascript-es6/src/test/model/EnumClass.spec.js delete mode 100644 samples/client/petstore/javascript-es6/src/test/model/EnumTest.spec.js delete mode 100644 samples/client/petstore/javascript-es6/src/test/model/FormatTest.spec.js delete mode 100644 samples/client/petstore/javascript-es6/src/test/model/HasOnlyReadOnly.spec.js delete mode 100644 samples/client/petstore/javascript-es6/src/test/model/List.spec.js delete mode 100644 samples/client/petstore/javascript-es6/src/test/model/MapTest.spec.js delete mode 100644 samples/client/petstore/javascript-es6/src/test/model/MixedPropertiesAndAdditionalPropertiesClass.spec.js delete mode 100644 samples/client/petstore/javascript-es6/src/test/model/Model200Response.spec.js delete mode 100644 samples/client/petstore/javascript-es6/src/test/model/ModelReturn.spec.js delete mode 100644 samples/client/petstore/javascript-es6/src/test/model/Name.spec.js delete mode 100644 samples/client/petstore/javascript-es6/src/test/model/NumberOnly.spec.js delete mode 100644 samples/client/petstore/javascript-es6/src/test/model/Order.spec.js delete mode 100644 samples/client/petstore/javascript-es6/src/test/model/OuterBoolean.spec.js delete mode 100644 samples/client/petstore/javascript-es6/src/test/model/OuterComposite.spec.js delete mode 100644 samples/client/petstore/javascript-es6/src/test/model/OuterEnum.spec.js delete mode 100644 samples/client/petstore/javascript-es6/src/test/model/OuterNumber.spec.js delete mode 100644 samples/client/petstore/javascript-es6/src/test/model/OuterString.spec.js delete mode 100644 samples/client/petstore/javascript-es6/src/test/model/Pet.spec.js delete mode 100644 samples/client/petstore/javascript-es6/src/test/model/ReadOnlyFirst.spec.js delete mode 100644 samples/client/petstore/javascript-es6/src/test/model/SpecialModelName.spec.js delete mode 100644 samples/client/petstore/javascript-es6/src/test/model/Tag.spec.js delete mode 100644 samples/client/petstore/javascript-es6/src/test/model/User.spec.js delete mode 100644 samples/client/petstore/javascript-es6/test/model/OuterBoolean.spec.js delete mode 100644 samples/client/petstore/javascript-es6/test/model/OuterNumber.spec.js delete mode 100644 samples/client/petstore/javascript-es6/test/model/OuterString.spec.js delete mode 100644 samples/client/petstore/javascript-promise-es6/docs/AnimalFarm.md delete mode 100644 samples/client/petstore/javascript-promise-es6/docs/Fake_classname_tags123Api.md delete mode 100644 samples/client/petstore/javascript-promise-es6/docs/OuterBoolean.md delete mode 100644 samples/client/petstore/javascript-promise-es6/docs/OuterNumber.md delete mode 100644 samples/client/petstore/javascript-promise-es6/docs/OuterString.md delete mode 100644 samples/client/petstore/javascript-promise-es6/docs/StringBooleanMap.md delete mode 100644 samples/client/petstore/javascript-promise-es6/src/model/AnimalFarm.js delete mode 100644 samples/client/petstore/javascript-promise-es6/src/model/StringBooleanMap.js delete mode 100644 samples/client/petstore/javascript-promise-es6/test/model/OuterBoolean.spec.js delete mode 100644 samples/client/petstore/javascript-promise-es6/test/model/OuterNumber.spec.js delete mode 100644 samples/client/petstore/javascript-promise-es6/test/model/OuterString.spec.js delete mode 100644 samples/client/petstore/javascript-promise/docs/AnimalFarm.md delete mode 100644 samples/client/petstore/javascript-promise/docs/Fake_classname_tags123Api.md delete mode 100644 samples/client/petstore/javascript-promise/docs/OuterBoolean.md delete mode 100644 samples/client/petstore/javascript-promise/docs/OuterNumber.md delete mode 100644 samples/client/petstore/javascript-promise/docs/OuterString.md delete mode 100644 samples/client/petstore/javascript-promise/docs/StringBooleanMap.md delete mode 100644 samples/client/petstore/javascript-promise/src/api/Fake_classname_tags123Api.js delete mode 100644 samples/client/petstore/javascript-promise/src/model/AnimalFarm.js delete mode 100644 samples/client/petstore/javascript-promise/src/model/OuterBoolean.js delete mode 100644 samples/client/petstore/javascript-promise/src/model/OuterNumber.js delete mode 100644 samples/client/petstore/javascript-promise/src/model/OuterString.js delete mode 100644 samples/client/petstore/javascript-promise/src/model/StringBooleanMap.js delete mode 100644 samples/client/petstore/javascript-promise/test/model/OuterBoolean.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/model/OuterNumber.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/model/OuterString.spec.js delete mode 100644 samples/client/petstore/javascript/docs/AnimalFarm.md delete mode 100644 samples/client/petstore/javascript/docs/StringBooleanMap.md delete mode 100644 samples/client/petstore/javascript/src/model/AnimalFarm.js delete mode 100644 samples/client/petstore/javascript/src/model/StringBooleanMap.js diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavascriptClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavascriptClientCodegen.java index f01008cf2bb..b985bed98ce 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavascriptClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavascriptClientCodegen.java @@ -51,8 +51,8 @@ public class JavascriptClientCodegen extends DefaultCodegen implements CodegenCo final String[][] JAVASCRIPT_SUPPORTING_FILES = new String[][]{ new String[]{"package.mustache", "package.json"}, - new String[]{"index.mustache", "src/index.js"}, - new String[]{"ApiClient.mustache", "src/ApiClient.js"}, + // new String[]{"index.mustache", "src/index.js", }, + // new String[]{"ApiClient.mustache", "src/ApiClient.js"}, new String[]{"git_push.sh.mustache", "git_push.sh"}, new String[]{"README.mustache", "README.md"}, new String[]{"mocha.opts", "mocha.opts"}, @@ -61,8 +61,8 @@ public class JavascriptClientCodegen extends DefaultCodegen implements CodegenCo final String[][] JAVASCRIPT_ES6_SUPPORTING_FILES = new String[][]{ new String[]{"package.mustache", "package.json"}, - new String[]{"index.mustache", "src/index.js"}, - new String[]{"ApiClient.mustache", "src/ApiClient.js"}, + // new String[]{"index.mustache", "src/index.js"}, + // new String[]{"ApiClient.mustache", "src/ApiClient.js"}, new String[]{"git_push.sh.mustache", "git_push.sh"}, new String[]{"README.mustache", "README.md"}, new String[]{"mocha.opts", "mocha.opts"}, @@ -85,7 +85,7 @@ public class JavascriptClientCodegen extends DefaultCodegen implements CodegenCo protected String modelDocPath = "docs/"; protected String apiTestPath = "api/"; protected String modelTestPath = "model/"; - protected boolean useES6 = true; // default is ES5 + protected boolean useES6 = true; // default is ES6 private String modelPropertyNaming = "camelCase"; public JavascriptClientCodegen() { @@ -337,6 +337,9 @@ public class JavascriptClientCodegen extends DefaultCodegen implements CodegenCo for (String[] supportingTemplateFile : supportingTemplateFiles) { supportingFiles.add(new SupportingFile(supportingTemplateFile[0], "", supportingTemplateFile[1])); } + + supportingFiles.add(new SupportingFile("index.mustache", createPath(sourceFolder, invokerPackage), "index.js")); + supportingFiles.add(new SupportingFile("ApiClient.mustache", createPath(sourceFolder, invokerPackage), "ApiClient.js")); } @Override @@ -373,12 +376,12 @@ public class JavascriptClientCodegen extends DefaultCodegen implements CodegenCo @Override public String apiTestFileFolder() { - return (outputFolder + "/test/" + apiTestPath).replace('/', File.separatorChar); + return createPath(outputFolder, "test", invokerPackage, apiTestPath); } @Override public String modelTestFileFolder() { - return (outputFolder + "/test/" + modelTestPath).replace('/', File.separatorChar); + return createPath(outputFolder, "test", invokerPackage, modelTestPath); } @Override @@ -788,7 +791,7 @@ public class JavascriptClientCodegen extends DefaultCodegen implements CodegenCo * @param type Primitive type * @return Normalized type */ - public String normalizeType(String type) { + private String normalizeType(String type) { return type.replaceAll("\\b(Boolean|Integer|Number|String|Date|Blob)\\b", "'$1'"); } @@ -867,10 +870,11 @@ public class JavascriptClientCodegen extends DefaultCodegen implements CodegenCo return codegenModel; } + /* private String sanitizePath(String p) { //prefer replace a ', instead of a fuLL URL encode for readability return p.replaceAll("'", "%27"); - } + }*/ private String trimBrackets(String s) { if (s != null) { @@ -959,7 +963,7 @@ public class JavascriptClientCodegen extends DefaultCodegen implements CodegenCo if (operations != null) { List ops = (List) operations.get("operation"); for (CodegenOperation operation : ops) { - List argList = new ArrayList(); + List argList = new ArrayList<>(); boolean hasOptionalParams = false; for (CodegenParameter p : operation.allParams) { if (p.required) { @@ -1014,7 +1018,7 @@ public class JavascriptClientCodegen extends DefaultCodegen implements CodegenCo // NOTE: can't use 'mandatory' as it is built from ModelImpl.getRequired(), which sorts names // alphabetically and in any case the document order of 'required' and 'properties' can differ. List required = new ArrayList<>(); - List allRequired = supportsInheritance || supportsMixins ? new ArrayList() : required; + List allRequired = supportsInheritance || supportsMixins ? new ArrayList<>() : required; cm.vendorExtensions.put("x-required", required); cm.vendorExtensions.put("x-all-required", allRequired); @@ -1120,6 +1124,7 @@ public class JavascriptClientCodegen extends DefaultCodegen implements CodegenCo return codegenModel; } + /* private static String sanitizePackageName(String packageName) { // FIXME parameter should not be assigned. Also declare it as "final" packageName = packageName.trim(); packageName = packageName.replaceAll("[^a-zA-Z0-9_\\.]", "_"); @@ -1128,6 +1133,7 @@ public class JavascriptClientCodegen extends DefaultCodegen implements CodegenCo } return packageName; } + */ @Override public String toEnumName(CodegenProperty property) { diff --git a/modules/openapi-generator/src/main/resources/Javascript/api_test.mustache b/modules/openapi-generator/src/main/resources/Javascript/api_test.mustache index e37cb1162ee..1107702d3fa 100644 --- a/modules/openapi-generator/src/main/resources/Javascript/api_test.mustache +++ b/modules/openapi-generator/src/main/resources/Javascript/api_test.mustache @@ -2,10 +2,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + define(['expect.js', process.cwd()+'/src/{{#invokerPackage}}{{invokerPackage}}/{{/invokerPackage}}index'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/{{#invokerPackage}}{{invokerPackage}}/{{/invokerPackage}}index')); } else { // Browser globals (root is window) factory(root.expect, root.{{moduleName}}); diff --git a/modules/openapi-generator/src/main/resources/Javascript/es6/api_test.mustache b/modules/openapi-generator/src/main/resources/Javascript/es6/api_test.mustache index e37cb1162ee..1107702d3fa 100644 --- a/modules/openapi-generator/src/main/resources/Javascript/es6/api_test.mustache +++ b/modules/openapi-generator/src/main/resources/Javascript/es6/api_test.mustache @@ -2,10 +2,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + define(['expect.js', process.cwd()+'/src/{{#invokerPackage}}{{invokerPackage}}/{{/invokerPackage}}index'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/{{#invokerPackage}}{{invokerPackage}}/{{/invokerPackage}}index')); } else { // Browser globals (root is window) factory(root.expect, root.{{moduleName}}); diff --git a/modules/openapi-generator/src/main/resources/Javascript/es6/model_test.mustache b/modules/openapi-generator/src/main/resources/Javascript/es6/model_test.mustache index 2b43b338812..9c80d3291b5 100644 --- a/modules/openapi-generator/src/main/resources/Javascript/es6/model_test.mustache +++ b/modules/openapi-generator/src/main/resources/Javascript/es6/model_test.mustache @@ -2,10 +2,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + define(['expect.js', process.cwd()+'/src/{{#invokerPackage}}{{invokerPackage}}/{{/invokerPackage}}index'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/{{#invokerPackage}}{{invokerPackage}}/{{/invokerPackage}}index')); } else { // Browser globals (root is window) factory(root.expect, root.{{moduleName}}); diff --git a/modules/openapi-generator/src/main/resources/Javascript/es6/package.mustache b/modules/openapi-generator/src/main/resources/Javascript/es6/package.mustache index a5bb7b3417c..a50b249f590 100644 --- a/modules/openapi-generator/src/main/resources/Javascript/es6/package.mustache +++ b/modules/openapi-generator/src/main/resources/Javascript/es6/package.mustache @@ -20,9 +20,9 @@ "babel-core": "6.26.0", "babel-preset-env": "^1.6.1", "babel-preset-stage-0": "^6.24.1", - "expect.js": "~0.3.1", + "expect.js": "^0.3.1", "mocha": "^5.2.0", - "sinon": "1.17.3" + "sinon": "^7.2.0" }, "files": [ "dist" diff --git a/modules/openapi-generator/src/main/resources/Javascript/model_test.mustache b/modules/openapi-generator/src/main/resources/Javascript/model_test.mustache index fc856b01043..93c0ce0da13 100644 --- a/modules/openapi-generator/src/main/resources/Javascript/model_test.mustache +++ b/modules/openapi-generator/src/main/resources/Javascript/model_test.mustache @@ -2,10 +2,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + define(['expect.js', process.cwd()+'/src/{{#invokerPackage}}{{invokerPackage}}/{{/invokerPackage}}index'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/{{#invokerPackage}}{{invokerPackage}}/{{/invokerPackage}}index')); } else { // Browser globals (root is window) factory(root.expect, root.{{moduleName}}); diff --git a/modules/openapi-generator/src/main/resources/Javascript/package.mustache b/modules/openapi-generator/src/main/resources/Javascript/package.mustache index 912c909b130..05c74e781db 100644 --- a/modules/openapi-generator/src/main/resources/Javascript/package.mustache +++ b/modules/openapi-generator/src/main/resources/Javascript/package.mustache @@ -5,7 +5,7 @@ "license": "{{licenseName}}", "main": "{{sourceFolder}}{{#invokerPackage}}/{{invokerPackage}}{{/invokerPackage}}/index.js", "scripts": { - "test": "./node_modules/mocha/bin/mocha --recursive" + "test": "mocha --recursive" }, "browser": { "fs": false @@ -14,8 +14,8 @@ "superagent": "3.7.0" }, "devDependencies": { - "expect.js": "~0.3.1", + "expect.js": "^0.3.1", "mocha": "^5.2.0", - "sinon": "1.17.3" + "sinon": "^7.2.0" } } diff --git a/samples/client/petstore/javascript-es6/docs/AnimalFarm.md b/samples/client/petstore/javascript-es6/docs/AnimalFarm.md deleted file mode 100644 index ab153513ca9..00000000000 --- a/samples/client/petstore/javascript-es6/docs/AnimalFarm.md +++ /dev/null @@ -1,7 +0,0 @@ -# OpenApiPetstore.AnimalFarm - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - - diff --git a/samples/client/petstore/javascript-es6/docs/Fake_classname_tags123Api.md b/samples/client/petstore/javascript-es6/docs/Fake_classname_tags123Api.md deleted file mode 100644 index dfe4d0735fe..00000000000 --- a/samples/client/petstore/javascript-es6/docs/Fake_classname_tags123Api.md +++ /dev/null @@ -1,59 +0,0 @@ -# SwaggerPetstore.Fake_classname_tags123Api - -All URIs are relative to *http://petstore.swagger.io:80/v2* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**testClassname**](Fake_classname_tags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case - - - -# **testClassname** -> Client testClassname(body) - -To test class name in snake case - -### Example -```javascript -import SwaggerPetstore from 'swagger_petstore'; -let defaultClient = SwaggerPetstore.ApiClient.instance; - -// Configure API key authorization: api_key_query -let api_key_query = defaultClient.authentications['api_key_query']; -api_key_query.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key_query.apiKeyPrefix = 'Token'; - -let apiInstance = new SwaggerPetstore.Fake_classname_tags123Api(); - -let body = new SwaggerPetstore.Client(); // Client | client model - - -apiInstance.testClassname(body, (error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}); -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**Client**](Client.md)| client model | - -### Return type - -[**Client**](Client.md) - -### Authorization - -[api_key_query](../README.md#api_key_query) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - diff --git a/samples/client/petstore/javascript-es6/docs/OuterBoolean.md b/samples/client/petstore/javascript-es6/docs/OuterBoolean.md deleted file mode 100644 index 61ea0d56615..00000000000 --- a/samples/client/petstore/javascript-es6/docs/OuterBoolean.md +++ /dev/null @@ -1,7 +0,0 @@ -# SwaggerPetstore.OuterBoolean - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - - diff --git a/samples/client/petstore/javascript-es6/docs/OuterNumber.md b/samples/client/petstore/javascript-es6/docs/OuterNumber.md deleted file mode 100644 index efbbfa83535..00000000000 --- a/samples/client/petstore/javascript-es6/docs/OuterNumber.md +++ /dev/null @@ -1,7 +0,0 @@ -# SwaggerPetstore.OuterNumber - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - - diff --git a/samples/client/petstore/javascript-es6/docs/OuterString.md b/samples/client/petstore/javascript-es6/docs/OuterString.md deleted file mode 100644 index 22eba5351a9..00000000000 --- a/samples/client/petstore/javascript-es6/docs/OuterString.md +++ /dev/null @@ -1,7 +0,0 @@ -# SwaggerPetstore.OuterString - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - - diff --git a/samples/client/petstore/javascript-es6/docs/StringBooleanMap.md b/samples/client/petstore/javascript-es6/docs/StringBooleanMap.md deleted file mode 100644 index 195a7d57677..00000000000 --- a/samples/client/petstore/javascript-es6/docs/StringBooleanMap.md +++ /dev/null @@ -1,7 +0,0 @@ -# OpenApiPetstore.StringBooleanMap - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - - diff --git a/samples/client/petstore/javascript-es6/package.json b/samples/client/petstore/javascript-es6/package.json index c89469d525c..94455e4a69a 100644 --- a/samples/client/petstore/javascript-es6/package.json +++ b/samples/client/petstore/javascript-es6/package.json @@ -20,9 +20,9 @@ "babel-core": "6.26.0", "babel-preset-env": "^1.6.1", "babel-preset-stage-0": "^6.24.1", - "expect.js": "~0.3.1", + "expect.js": "^0.3.1", "mocha": "^5.2.0", - "sinon": "1.17.3" + "sinon": "^7.2.0" }, "files": [ "dist" diff --git a/samples/client/petstore/javascript-es6/src/model/AnimalFarm.js b/samples/client/petstore/javascript-es6/src/model/AnimalFarm.js deleted file mode 100644 index 3b9cc01f03d..00000000000 --- a/samples/client/petstore/javascript-es6/src/model/AnimalFarm.js +++ /dev/null @@ -1,70 +0,0 @@ -/** - * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import Animal from './Animal'; - -/** - * The AnimalFarm model module. - * @module model/AnimalFarm - * @version 1.0.0 - */ -class AnimalFarm extends Array { - /** - * Constructs a new AnimalFarm. - * @alias module:model/AnimalFarm - * @extends Array - */ - constructor() { - super(); - - - AnimalFarm.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AnimalFarm 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/AnimalFarm} obj Optional instance to populate. - * @return {module:model/AnimalFarm} The populated AnimalFarm instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AnimalFarm(); - - ApiClient.constructFromObject(data, obj, 'Animal'); - - - } - return obj; - } - - -} - - - - - - -export default AnimalFarm; - diff --git a/samples/client/petstore/javascript-es6/src/model/StringBooleanMap.js b/samples/client/petstore/javascript-es6/src/model/StringBooleanMap.js deleted file mode 100644 index 30172b33f7b..00000000000 --- a/samples/client/petstore/javascript-es6/src/model/StringBooleanMap.js +++ /dev/null @@ -1,67 +0,0 @@ -/** - * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The StringBooleanMap model module. - * @module model/StringBooleanMap - * @version 1.0.0 - */ -class StringBooleanMap { - /** - * Constructs a new StringBooleanMap. - * @alias module:model/StringBooleanMap - * @extends Object - */ - constructor() { - - StringBooleanMap.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a StringBooleanMap 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/StringBooleanMap} obj Optional instance to populate. - * @return {module:model/StringBooleanMap} The populated StringBooleanMap instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new StringBooleanMap(); - - ApiClient.constructFromObject(data, obj, 'Boolean'); - - - } - return obj; - } - - -} - - - - - - -export default StringBooleanMap; - diff --git a/samples/client/petstore/javascript-es6/src/test/ApiClientTest.js b/samples/client/petstore/javascript-es6/src/test/ApiClientTest.js deleted file mode 100644 index 5e98b685a91..00000000000 --- a/samples/client/petstore/javascript-es6/src/test/ApiClientTest.js +++ /dev/null @@ -1,393 +0,0 @@ -if (typeof module === 'object' && module.exports) { - var expect = require('expect.js'); - var SwaggerPetstore = require('../src/index'); - var sinon = require('sinon'); -} - -var apiClient = SwaggerPetstore.ApiClient.instance; - -describe('ApiClient', function() { - describe('defaults', function() { - it('should have correct default values with the default API client', function() { - expect(apiClient).to.be.ok(); - expect(apiClient.basePath).to.be('http://petstore.swagger.io:80/v2'); - expect(apiClient.authentications).to.eql({ - petstore_auth: {type: 'oauth2'}, - http_basic_test: {type: 'basic'}, - api_key: {type: 'apiKey', 'in': 'header', name: 'api_key'}, - api_key_query: {type: 'apiKey', 'in': 'query', name: 'api_key_query'}, - /* comment out the following as these fake security def (testing purpose) - * are removed from the spec, we'll add these back after updating the - * petstore server - * - test_http_basic: {type: 'basic'}, - test_api_client_id: { - type: 'apiKey', - 'in': 'header', - name: 'x-test_api_client_id' - }, - test_api_client_secret: { - type: 'apiKey', - 'in': 'header', - name: 'x-test_api_client_secret' - }, - test_api_key_query: { - type: 'apiKey', - 'in': 'query', - name: 'test_api_key_query' - }, - test_api_key_header: { - type: 'apiKey', - 'in': 'header', - name: 'test_api_key_header' - }*/ - }); - }); - - it('should have correct default values with new API client and can customize it', function() { - var newClient = new SwaggerPetstore.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'); - - newClient.basePath = 'http://example.com'; - expect(newClient.basePath).to.be('http://example.com'); - expect(newClient.buildUrl('/abc', {})).to.be('http://example.com/abc'); - }); - }); - - describe('#paramToString', function() { - it('should return empty string for null and undefined', function() { - expect(apiClient.paramToString(null)).to.be(''); - expect(apiClient.paramToString(undefined)).to.be(''); - }); - - it('should return string', function() { - expect(apiClient.paramToString('')).to.be(''); - expect(apiClient.paramToString('abc')).to.be('abc'); - expect(apiClient.paramToString(123)).to.be('123'); - }); - }); - - describe('#buildCollectionParam', function() { - var param; - - beforeEach(function() { - param = ['aa', 'bb', 123]; - }); - - it('works for csv', function() { - expect(apiClient.buildCollectionParam(param, 'csv')).to.be('aa,bb,123'); - }); - - it('works for ssv', function() { - expect(apiClient.buildCollectionParam(param, 'ssv')).to.be('aa bb 123'); - }); - - it('works for tsv', function() { - expect(apiClient.buildCollectionParam(param, 'tsv')).to.be('aa\tbb\t123'); - }); - - it('works for pipes', function() { - expect(apiClient.buildCollectionParam(param, 'pipes')).to.be('aa|bb|123'); - }); - - it('works for multi', function() { - expect(apiClient.buildCollectionParam(param, 'multi')).to.eql(['aa', 'bb', '123']); - }); - - it('fails for invalid collection format', function() { - expect(function() { apiClient.buildCollectionParam(param, 'INVALID'); }).to.throwError(); - }); - }); - - describe('#buildUrl', function() { - it('should work without path parameters in the path', function() { - expect(apiClient.buildUrl('/abc', {})).to - .be('http://petstore.swagger.io:80/v2/abc'); - expect(apiClient.buildUrl('/abc/def?ok', {id: 123})).to - .be('http://petstore.swagger.io:80/v2/abc/def?ok'); - }); - - it('should work with path parameters in the path', function() { - expect(apiClient.buildUrl('/{id}', {id: 123})).to - .be('http://petstore.swagger.io:80/v2/123'); - expect(apiClient.buildUrl('/abc/{id}/{name}?ok', {id: 456, name: 'a b'})).to. - be('http://petstore.swagger.io:80/v2/abc/456/a%20b?ok'); - }); - }); - - describe('#isJsonMime', function() { - it('should return true for JSON MIME', function() { - expect(apiClient.isJsonMime('application/json')).to.be(true); - expect(apiClient.isJsonMime('application/json; charset=UTF8')).to.be(true); - expect(apiClient.isJsonMime('APPLICATION/JSON')).to.be(true); - }); - - it('should return false for non-JSON MIME', function() { - expect(apiClient.isJsonMime('')).to.be(false); - expect(apiClient.isJsonMime('text/plain')).to.be(false); - expect(apiClient.isJsonMime('application/xml')).to.be(false); - expect(apiClient.isJsonMime('application/jsonp')).to.be(false); - }); - }); - - describe('#applyAuthToRequest', function() { - var req, newClient; - - beforeEach(function() { - req = { - auth: function() {}, - set: function() {}, - query: function() {} - }; - sinon.stub(req, 'auth'); - sinon.stub(req, 'set'); - sinon.stub(req, 'query'); - newClient = new SwaggerPetstore.ApiClient(); - }); - - describe('basic', function() { - var authName = 'testBasicAuth'; - var authNames = [authName]; - var auth; - - beforeEach(function() { - newClient.authentications[authName] = {type: 'basic'}; - auth = newClient.authentications[authName]; - }); - - it('sets auth header with username and password set', function() { - auth.username = 'user'; - auth.password = 'pass'; - newClient.applyAuthToRequest(req, authNames); - sinon.assert.calledOnce(req.auth); - // 'dXNlcjpwYXNz' is base64-encoded string of 'user:pass' - sinon.assert.calledWithMatch(req.auth, 'user', 'pass'); - sinon.assert.notCalled(req.set); - sinon.assert.notCalled(req.query); - }); - - it('sets header with only username set', function() { - auth.username = 'user'; - newClient.applyAuthToRequest(req, authNames); - sinon.assert.calledOnce(req.auth); - // 'dXNlcjo=' is base64-encoded string of 'user:' - sinon.assert.calledWithMatch(req.auth, 'user', ''); - sinon.assert.notCalled(req.set); - sinon.assert.notCalled(req.query); - }); - - it('sets header with only password set', function() { - auth.password = 'pass'; - newClient.applyAuthToRequest(req, authNames); - sinon.assert.calledOnce(req.auth); - // 'OnBhc3M=' is base64-encoded string of ':pass' - sinon.assert.calledWithMatch(req.auth, '', 'pass'); - sinon.assert.notCalled(req.set); - sinon.assert.notCalled(req.query); - }); - - it('does not set header when username and password are not set', function() { - newClient.applyAuthToRequest(req, authNames); - sinon.assert.notCalled(req.auth); - sinon.assert.notCalled(req.set); - sinon.assert.notCalled(req.query); - }); - }); - - describe('apiKey', function() { - var authName = 'testApiKey'; - var authNames = [authName]; - var auth; - - beforeEach(function() { - newClient.authentications[authName] = {type: 'apiKey', name: 'api_key'}; - auth = newClient.authentications[authName]; - }); - - it('sets api key in header', function() { - auth.in = 'header'; - auth.apiKey = 'my-api-key'; - newClient.applyAuthToRequest(req, authNames); - sinon.assert.calledOnce(req.set); - sinon.assert.calledWithMatch(req.set, {'api_key': 'my-api-key'}); - sinon.assert.notCalled(req.auth); - sinon.assert.notCalled(req.query); - }); - - it('sets api key in query', function() { - auth.in = 'query'; - auth.apiKey = 'my-api-key'; - newClient.applyAuthToRequest(req, authNames); - sinon.assert.calledOnce(req.query); - sinon.assert.calledWithMatch(req.query, {'api_key': 'my-api-key'}); - sinon.assert.notCalled(req.auth); - sinon.assert.notCalled(req.set); - }); - - it('sets api key in header with prefix', function() { - auth.in = 'header'; - auth.apiKey = 'my-api-key'; - auth.apiKeyPrefix = 'Key'; - newClient.applyAuthToRequest(req, authNames); - sinon.assert.calledOnce(req.set); - sinon.assert.calledWithMatch(req.set, {'api_key': 'Key my-api-key'}); - sinon.assert.notCalled(req.auth); - sinon.assert.notCalled(req.query); - }); - - it('works when api key is not set', function() { - auth.in = 'query'; - auth.apiKey = null; - newClient.applyAuthToRequest(req, authNames); - sinon.assert.notCalled(req.query); - sinon.assert.notCalled(req.auth); - sinon.assert.notCalled(req.set); - }); - }); - - describe('oauth2', function() { - var authName = 'testOAuth2'; - var authNames = [authName]; - var auth; - - beforeEach(function() { - newClient.authentications[authName] = {type: 'oauth2'}; - auth = newClient.authentications[authName]; - }); - - it('sets access token in header', function() { - auth.accessToken = 'my-access-token'; - newClient.applyAuthToRequest(req, authNames); - sinon.assert.calledOnce(req.set); - sinon.assert.calledWithMatch(req.set, {'Authorization': 'Bearer my-access-token'}); - sinon.assert.notCalled(req.auth); - sinon.assert.notCalled(req.query); - }); - - it('works when access token is not set', function() { - auth.accessToken = null; - newClient.applyAuthToRequest(req, authNames); - sinon.assert.notCalled(req.query); - sinon.assert.notCalled(req.auth); - sinon.assert.notCalled(req.set); - }); - }); - - describe('apiKey and oauth2', function() { - var apiKeyAuthName = 'testApiKey'; - var oauth2Name = 'testOAuth2'; - var authNames = [apiKeyAuthName, oauth2Name]; - var apiKeyAuth, oauth2; - - beforeEach(function() { - newClient.authentications[apiKeyAuthName] = {type: 'apiKey', name: 'api_key', 'in': 'query'}; - newClient.authentications[oauth2Name] = {type: 'oauth2'}; - apiKeyAuth = newClient.authentications[apiKeyAuthName]; - oauth2 = newClient.authentications[oauth2Name]; - }); - - it('works when setting both api key and access token', function() { - apiKeyAuth.apiKey = 'my-api-key'; - oauth2.accessToken = 'my-access-token'; - newClient.applyAuthToRequest(req, authNames); - sinon.assert.calledOnce(req.query); - sinon.assert.calledWithMatch(req.query, {'api_key': 'my-api-key'}); - sinon.assert.calledOnce(req.set); - sinon.assert.calledWithMatch(req.set, {'Authorization': 'Bearer my-access-token'}); - sinon.assert.notCalled(req.auth); - }); - - it('works when setting only api key', function() { - apiKeyAuth.apiKey = 'my-api-key'; - oauth2.accessToken = null; - newClient.applyAuthToRequest(req, authNames); - sinon.assert.calledOnce(req.query); - sinon.assert.calledWithMatch(req.query, {'api_key': 'my-api-key'}); - sinon.assert.notCalled(req.set); - sinon.assert.notCalled(req.auth); - }); - - it('works when neither api key nor access token is set', function() { - apiKeyAuth.apiKey = null; - oauth2.accessToken = null; - newClient.applyAuthToRequest(req, authNames); - sinon.assert.notCalled(req.query); - sinon.assert.notCalled(req.auth); - sinon.assert.notCalled(req.set); - }); - }); - - describe('unknown type', function() { - var authName = 'unknown'; - var authNames = [authName]; - - beforeEach(function() { - newClient.authentications[authName] = {type: 'UNKNOWN'}; - }); - - it('throws error for unknown auth type', function() { - expect(function() { - newClient.applyAuthToRequest(req, authNames); - }).to.throwError(); - sinon.assert.notCalled(req.set); - sinon.assert.notCalled(req.auth); - sinon.assert.notCalled(req.query); - }); - }); - }); - - /* - describe('#defaultHeaders', function() { - it('should initialize default headers to be an empty object', function() { - expect(apiClient.defaultHeaders).to.eql({}); - }); - - it('should put default headers in request', function() { - var newClient = new SwaggerPetstore.ApiClient; - newClient.defaultHeaders['Content-Type'] = 'text/plain' - newClient.defaultHeaders['api_key'] = 'special-key' - - var expected = {'Content-Type': 'text/plain', 'api_key': 'special-key'}; - expect(newClient.defaultHeaders).to.eql(expected); - var req = makeDumbRequest(newClient); - req.unset('User-Agent'); - expect(req.header).to.eql(expected); - }); - - it('should override default headers with provided header params', function() { - var newClient = new SwaggerPetstore.ApiClient; - newClient.defaultHeaders['Content-Type'] = 'text/plain' - newClient.defaultHeaders['api_key'] = 'special-key' - - var headerParams = {'Content-Type': 'application/json', 'Authorization': 'Bearer test-token'} - var expected = { - 'Content-Type': 'application/json', - 'api_key': 'special-key', - 'Authorization': 'Bearer test-token' - }; - var req = makeDumbRequest(newClient, {headerParams: headerParams}); - req.unset('User-Agent'); - expect(req.header).to.eql(expected); - }); - }); -*/ - -}); - -function makeDumbRequest(apiClient, opts) { - opts = opts || {}; - var path = opts.path || '/store/inventory'; - var httpMethod = opts.httpMethod || 'GET'; - var pathParams = opts.pathParams || {}; - var queryParams = opts.queryParams || {}; - var headerParams = opts.headerParams || {}; - var formParams = opts.formParams || {}; - var bodyParam = opts.bodyParam; - var authNames = []; - var contentTypes = opts.contentTypes || []; - var accepts = opts.accepts || []; - var callback = opts.callback; - return apiClient.callApi(path, httpMethod, pathParams, queryParams, - headerParams, formParams, bodyParam, authNames, contentTypes, accepts); -} diff --git a/samples/client/petstore/javascript-es6/src/test/api/AnotherFakeApi.spec.js b/samples/client/petstore/javascript-es6/src/test/api/AnotherFakeApi.spec.js deleted file mode 100644 index f55538a53e7..00000000000 --- a/samples/client/petstore/javascript-es6/src/test/api/AnotherFakeApi.spec.js +++ /dev/null @@ -1,63 +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 - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SwaggerPetstore); - } -}(this, function(expect, SwaggerPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SwaggerPetstore.AnotherFakeApi(); - }); - - 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('AnotherFakeApi', function() { - describe('testSpecialTags', function() { - it('should call testSpecialTags successfully', function(done) { - //uncomment below and update the code to test testSpecialTags - //instance.testSpecialTags(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/samples/client/petstore/javascript-es6/src/test/api/FakeApi.spec.js b/samples/client/petstore/javascript-es6/src/test/api/FakeApi.spec.js deleted file mode 100644 index f2903d6612c..00000000000 --- a/samples/client/petstore/javascript-es6/src/test/api/FakeApi.spec.js +++ /dev/null @@ -1,123 +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 - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SwaggerPetstore); - } -}(this, function(expect, SwaggerPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SwaggerPetstore.FakeApi(); - }); - - 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('FakeApi', function() { - describe('fakeOuterBooleanSerialize', function() { - it('should call fakeOuterBooleanSerialize successfully', function(done) { - //uncomment below and update the code to test fakeOuterBooleanSerialize - //instance.fakeOuterBooleanSerialize(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('fakeOuterCompositeSerialize', function() { - it('should call fakeOuterCompositeSerialize successfully', function(done) { - //uncomment below and update the code to test fakeOuterCompositeSerialize - //instance.fakeOuterCompositeSerialize(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('fakeOuterNumberSerialize', function() { - it('should call fakeOuterNumberSerialize successfully', function(done) { - //uncomment below and update the code to test fakeOuterNumberSerialize - //instance.fakeOuterNumberSerialize(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('fakeOuterStringSerialize', function() { - it('should call fakeOuterStringSerialize successfully', function(done) { - //uncomment below and update the code to test fakeOuterStringSerialize - //instance.fakeOuterStringSerialize(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('testClientModel', function() { - it('should call testClientModel successfully', function(done) { - //uncomment below and update the code to test testClientModel - //instance.testClientModel(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('testEndpointParameters', function() { - it('should call testEndpointParameters successfully', function(done) { - //uncomment below and update the code to test testEndpointParameters - //instance.testEndpointParameters(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('testEnumParameters', function() { - it('should call testEnumParameters successfully', function(done) { - //uncomment below and update the code to test testEnumParameters - //instance.testEnumParameters(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/samples/client/petstore/javascript-es6/src/test/api/FakeClassnameTags123Api.spec.js b/samples/client/petstore/javascript-es6/src/test/api/FakeClassnameTags123Api.spec.js deleted file mode 100644 index 10e20e7778a..00000000000 --- a/samples/client/petstore/javascript-es6/src/test/api/FakeClassnameTags123Api.spec.js +++ /dev/null @@ -1,63 +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 - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SwaggerPetstore); - } -}(this, function(expect, SwaggerPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SwaggerPetstore.FakeClassnameTags123Api(); - }); - - 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('FakeClassnameTags123Api', function() { - describe('testClassname', function() { - it('should call testClassname successfully', function(done) { - //uncomment below and update the code to test testClassname - //instance.testClassname(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/samples/client/petstore/javascript-es6/src/test/api/PetApi.spec.js b/samples/client/petstore/javascript-es6/src/test/api/PetApi.spec.js deleted file mode 100644 index 5259a2c6665..00000000000 --- a/samples/client/petstore/javascript-es6/src/test/api/PetApi.spec.js +++ /dev/null @@ -1,133 +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 - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SwaggerPetstore); - } -}(this, function(expect, SwaggerPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SwaggerPetstore.PetApi(); - }); - - 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('PetApi', function() { - describe('addPet', function() { - it('should call addPet successfully', function(done) { - //uncomment below and update the code to test addPet - //instance.addPet(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deletePet', function() { - it('should call deletePet successfully', function(done) { - //uncomment below and update the code to test deletePet - //instance.deletePet(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('findPetsByStatus', function() { - it('should call findPetsByStatus successfully', function(done) { - //uncomment below and update the code to test findPetsByStatus - //instance.findPetsByStatus(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('findPetsByTags', function() { - it('should call findPetsByTags successfully', function(done) { - //uncomment below and update the code to test findPetsByTags - //instance.findPetsByTags(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('getPetById', function() { - it('should call getPetById successfully', function(done) { - //uncomment below and update the code to test getPetById - //instance.getPetById(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('updatePet', function() { - it('should call updatePet successfully', function(done) { - //uncomment below and update the code to test updatePet - //instance.updatePet(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('updatePetWithForm', function() { - it('should call updatePetWithForm successfully', function(done) { - //uncomment below and update the code to test updatePetWithForm - //instance.updatePetWithForm(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('uploadFile', function() { - it('should call uploadFile successfully', function(done) { - //uncomment below and update the code to test uploadFile - //instance.uploadFile(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/samples/client/petstore/javascript-es6/src/test/api/StoreApi.spec.js b/samples/client/petstore/javascript-es6/src/test/api/StoreApi.spec.js deleted file mode 100644 index d19da2f28d8..00000000000 --- a/samples/client/petstore/javascript-es6/src/test/api/StoreApi.spec.js +++ /dev/null @@ -1,93 +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 - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SwaggerPetstore); - } -}(this, function(expect, SwaggerPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SwaggerPetstore.StoreApi(); - }); - - 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('StoreApi', function() { - describe('deleteOrder', function() { - it('should call deleteOrder successfully', function(done) { - //uncomment below and update the code to test deleteOrder - //instance.deleteOrder(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('getInventory', function() { - it('should call getInventory successfully', function(done) { - //uncomment below and update the code to test getInventory - //instance.getInventory(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('getOrderById', function() { - it('should call getOrderById successfully', function(done) { - //uncomment below and update the code to test getOrderById - //instance.getOrderById(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('placeOrder', function() { - it('should call placeOrder successfully', function(done) { - //uncomment below and update the code to test placeOrder - //instance.placeOrder(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/samples/client/petstore/javascript-es6/src/test/api/UserApi.spec.js b/samples/client/petstore/javascript-es6/src/test/api/UserApi.spec.js deleted file mode 100644 index 55c8967f13b..00000000000 --- a/samples/client/petstore/javascript-es6/src/test/api/UserApi.spec.js +++ /dev/null @@ -1,133 +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 - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SwaggerPetstore); - } -}(this, function(expect, SwaggerPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SwaggerPetstore.UserApi(); - }); - - 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('UserApi', function() { - describe('createUser', function() { - it('should call createUser successfully', function(done) { - //uncomment below and update the code to test createUser - //instance.createUser(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('createUsersWithArrayInput', function() { - it('should call createUsersWithArrayInput successfully', function(done) { - //uncomment below and update the code to test createUsersWithArrayInput - //instance.createUsersWithArrayInput(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('createUsersWithListInput', function() { - it('should call createUsersWithListInput successfully', function(done) { - //uncomment below and update the code to test createUsersWithListInput - //instance.createUsersWithListInput(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteUser', function() { - it('should call deleteUser successfully', function(done) { - //uncomment below and update the code to test deleteUser - //instance.deleteUser(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('getUserByName', function() { - it('should call getUserByName successfully', function(done) { - //uncomment below and update the code to test getUserByName - //instance.getUserByName(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('loginUser', function() { - it('should call loginUser successfully', function(done) { - //uncomment below and update the code to test loginUser - //instance.loginUser(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('logoutUser', function() { - it('should call logoutUser successfully', function(done) { - //uncomment below and update the code to test logoutUser - //instance.logoutUser(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('updateUser', function() { - it('should call updateUser successfully', function(done) { - //uncomment below and update the code to test updateUser - //instance.updateUser(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/samples/client/petstore/javascript-es6/src/test/model/AdditionalPropertiesClass.spec.js b/samples/client/petstore/javascript-es6/src/test/model/AdditionalPropertiesClass.spec.js deleted file mode 100644 index 887052c0109..00000000000 --- a/samples/client/petstore/javascript-es6/src/test/model/AdditionalPropertiesClass.spec.js +++ /dev/null @@ -1,71 +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 - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SwaggerPetstore); - } -}(this, function(expect, SwaggerPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SwaggerPetstore.AdditionalPropertiesClass(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('AdditionalPropertiesClass', function() { - it('should create an instance of AdditionalPropertiesClass', function() { - // uncomment below and update the code to test AdditionalPropertiesClass - //var instane = new SwaggerPetstore.AdditionalPropertiesClass(); - //expect(instance).to.be.a(SwaggerPetstore.AdditionalPropertiesClass); - }); - - it('should have the property mapProperty (base name: "map_property")', function() { - // uncomment below and update the code to test the property mapProperty - //var instane = new SwaggerPetstore.AdditionalPropertiesClass(); - //expect(instance).to.be(); - }); - - it('should have the property mapOfMapProperty (base name: "map_of_map_property")', function() { - // uncomment below and update the code to test the property mapOfMapProperty - //var instane = new SwaggerPetstore.AdditionalPropertiesClass(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-es6/src/test/model/Animal.spec.js b/samples/client/petstore/javascript-es6/src/test/model/Animal.spec.js deleted file mode 100644 index 4270461cc5e..00000000000 --- a/samples/client/petstore/javascript-es6/src/test/model/Animal.spec.js +++ /dev/null @@ -1,71 +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 - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SwaggerPetstore); - } -}(this, function(expect, SwaggerPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SwaggerPetstore.Animal(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Animal', function() { - it('should create an instance of Animal', function() { - // uncomment below and update the code to test Animal - //var instane = new SwaggerPetstore.Animal(); - //expect(instance).to.be.a(SwaggerPetstore.Animal); - }); - - it('should have the property className (base name: "className")', function() { - // uncomment below and update the code to test the property className - //var instane = new SwaggerPetstore.Animal(); - //expect(instance).to.be(); - }); - - it('should have the property color (base name: "color")', function() { - // uncomment below and update the code to test the property color - //var instane = new SwaggerPetstore.Animal(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-es6/src/test/model/ApiResponse.spec.js b/samples/client/petstore/javascript-es6/src/test/model/ApiResponse.spec.js deleted file mode 100644 index 1070013e367..00000000000 --- a/samples/client/petstore/javascript-es6/src/test/model/ApiResponse.spec.js +++ /dev/null @@ -1,77 +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 - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SwaggerPetstore); - } -}(this, function(expect, SwaggerPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SwaggerPetstore.ApiResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ApiResponse', function() { - it('should create an instance of ApiResponse', function() { - // uncomment below and update the code to test ApiResponse - //var instane = new SwaggerPetstore.ApiResponse(); - //expect(instance).to.be.a(SwaggerPetstore.ApiResponse); - }); - - it('should have the property code (base name: "code")', function() { - // uncomment below and update the code to test the property code - //var instane = new SwaggerPetstore.ApiResponse(); - //expect(instance).to.be(); - }); - - it('should have the property type (base name: "type")', function() { - // uncomment below and update the code to test the property type - //var instane = new SwaggerPetstore.ApiResponse(); - //expect(instance).to.be(); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instane = new SwaggerPetstore.ApiResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-es6/src/test/model/ArrayOfArrayOfNumberOnly.spec.js b/samples/client/petstore/javascript-es6/src/test/model/ArrayOfArrayOfNumberOnly.spec.js deleted file mode 100644 index 9fcd218fbb3..00000000000 --- a/samples/client/petstore/javascript-es6/src/test/model/ArrayOfArrayOfNumberOnly.spec.js +++ /dev/null @@ -1,65 +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 - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SwaggerPetstore); - } -}(this, function(expect, SwaggerPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SwaggerPetstore.ArrayOfArrayOfNumberOnly(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ArrayOfArrayOfNumberOnly', function() { - it('should create an instance of ArrayOfArrayOfNumberOnly', function() { - // uncomment below and update the code to test ArrayOfArrayOfNumberOnly - //var instane = new SwaggerPetstore.ArrayOfArrayOfNumberOnly(); - //expect(instance).to.be.a(SwaggerPetstore.ArrayOfArrayOfNumberOnly); - }); - - it('should have the property arrayArrayNumber (base name: "ArrayArrayNumber")', function() { - // uncomment below and update the code to test the property arrayArrayNumber - //var instane = new SwaggerPetstore.ArrayOfArrayOfNumberOnly(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-es6/src/test/model/ArrayOfNumberOnly.spec.js b/samples/client/petstore/javascript-es6/src/test/model/ArrayOfNumberOnly.spec.js deleted file mode 100644 index 32d5f98586a..00000000000 --- a/samples/client/petstore/javascript-es6/src/test/model/ArrayOfNumberOnly.spec.js +++ /dev/null @@ -1,65 +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 - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SwaggerPetstore); - } -}(this, function(expect, SwaggerPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SwaggerPetstore.ArrayOfNumberOnly(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ArrayOfNumberOnly', function() { - it('should create an instance of ArrayOfNumberOnly', function() { - // uncomment below and update the code to test ArrayOfNumberOnly - //var instane = new SwaggerPetstore.ArrayOfNumberOnly(); - //expect(instance).to.be.a(SwaggerPetstore.ArrayOfNumberOnly); - }); - - it('should have the property arrayNumber (base name: "ArrayNumber")', function() { - // uncomment below and update the code to test the property arrayNumber - //var instane = new SwaggerPetstore.ArrayOfNumberOnly(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-es6/src/test/model/ArrayTest.spec.js b/samples/client/petstore/javascript-es6/src/test/model/ArrayTest.spec.js deleted file mode 100644 index 1d93d897a9d..00000000000 --- a/samples/client/petstore/javascript-es6/src/test/model/ArrayTest.spec.js +++ /dev/null @@ -1,77 +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 - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SwaggerPetstore); - } -}(this, function(expect, SwaggerPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SwaggerPetstore.ArrayTest(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ArrayTest', function() { - it('should create an instance of ArrayTest', function() { - // uncomment below and update the code to test ArrayTest - //var instane = new SwaggerPetstore.ArrayTest(); - //expect(instance).to.be.a(SwaggerPetstore.ArrayTest); - }); - - it('should have the property arrayOfString (base name: "array_of_string")', function() { - // uncomment below and update the code to test the property arrayOfString - //var instane = new SwaggerPetstore.ArrayTest(); - //expect(instance).to.be(); - }); - - it('should have the property arrayArrayOfInteger (base name: "array_array_of_integer")', function() { - // uncomment below and update the code to test the property arrayArrayOfInteger - //var instane = new SwaggerPetstore.ArrayTest(); - //expect(instance).to.be(); - }); - - it('should have the property arrayArrayOfModel (base name: "array_array_of_model")', function() { - // uncomment below and update the code to test the property arrayArrayOfModel - //var instane = new SwaggerPetstore.ArrayTest(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-es6/src/test/model/Capitalization.spec.js b/samples/client/petstore/javascript-es6/src/test/model/Capitalization.spec.js deleted file mode 100644 index f1aa695c3fd..00000000000 --- a/samples/client/petstore/javascript-es6/src/test/model/Capitalization.spec.js +++ /dev/null @@ -1,95 +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 - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SwaggerPetstore); - } -}(this, function(expect, SwaggerPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SwaggerPetstore.Capitalization(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Capitalization', function() { - it('should create an instance of Capitalization', function() { - // uncomment below and update the code to test Capitalization - //var instane = new SwaggerPetstore.Capitalization(); - //expect(instance).to.be.a(SwaggerPetstore.Capitalization); - }); - - it('should have the property smallCamel (base name: "smallCamel")', function() { - // uncomment below and update the code to test the property smallCamel - //var instane = new SwaggerPetstore.Capitalization(); - //expect(instance).to.be(); - }); - - it('should have the property capitalCamel (base name: "CapitalCamel")', function() { - // uncomment below and update the code to test the property capitalCamel - //var instane = new SwaggerPetstore.Capitalization(); - //expect(instance).to.be(); - }); - - it('should have the property smallSnake (base name: "small_Snake")', function() { - // uncomment below and update the code to test the property smallSnake - //var instane = new SwaggerPetstore.Capitalization(); - //expect(instance).to.be(); - }); - - it('should have the property capitalSnake (base name: "Capital_Snake")', function() { - // uncomment below and update the code to test the property capitalSnake - //var instane = new SwaggerPetstore.Capitalization(); - //expect(instance).to.be(); - }); - - it('should have the property sCAETHFlowPoints (base name: "SCA_ETH_Flow_Points")', function() { - // uncomment below and update the code to test the property sCAETHFlowPoints - //var instane = new SwaggerPetstore.Capitalization(); - //expect(instance).to.be(); - }); - - it('should have the property ATT_NAME (base name: "ATT_NAME")', function() { - // uncomment below and update the code to test the property ATT_NAME - //var instane = new SwaggerPetstore.Capitalization(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-es6/src/test/model/Cat.spec.js b/samples/client/petstore/javascript-es6/src/test/model/Cat.spec.js deleted file mode 100644 index f0d5476b268..00000000000 --- a/samples/client/petstore/javascript-es6/src/test/model/Cat.spec.js +++ /dev/null @@ -1,65 +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 - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SwaggerPetstore); - } -}(this, function(expect, SwaggerPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SwaggerPetstore.Cat(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Cat', function() { - it('should create an instance of Cat', function() { - // uncomment below and update the code to test Cat - //var instane = new SwaggerPetstore.Cat(); - //expect(instance).to.be.a(SwaggerPetstore.Cat); - }); - - it('should have the property declawed (base name: "declawed")', function() { - // uncomment below and update the code to test the property declawed - //var instane = new SwaggerPetstore.Cat(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-es6/src/test/model/Category.spec.js b/samples/client/petstore/javascript-es6/src/test/model/Category.spec.js deleted file mode 100644 index 561eaf8373e..00000000000 --- a/samples/client/petstore/javascript-es6/src/test/model/Category.spec.js +++ /dev/null @@ -1,71 +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 - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SwaggerPetstore); - } -}(this, function(expect, SwaggerPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SwaggerPetstore.Category(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Category', function() { - it('should create an instance of Category', function() { - // uncomment below and update the code to test Category - //var instane = new SwaggerPetstore.Category(); - //expect(instance).to.be.a(SwaggerPetstore.Category); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instane = new SwaggerPetstore.Category(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instane = new SwaggerPetstore.Category(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-es6/src/test/model/ClassModel.spec.js b/samples/client/petstore/javascript-es6/src/test/model/ClassModel.spec.js deleted file mode 100644 index 5ee2e49a0de..00000000000 --- a/samples/client/petstore/javascript-es6/src/test/model/ClassModel.spec.js +++ /dev/null @@ -1,65 +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 - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SwaggerPetstore); - } -}(this, function(expect, SwaggerPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SwaggerPetstore.ClassModel(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ClassModel', function() { - it('should create an instance of ClassModel', function() { - // uncomment below and update the code to test ClassModel - //var instane = new SwaggerPetstore.ClassModel(); - //expect(instance).to.be.a(SwaggerPetstore.ClassModel); - }); - - it('should have the property _class (base name: "_class")', function() { - // uncomment below and update the code to test the property _class - //var instane = new SwaggerPetstore.ClassModel(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-es6/src/test/model/Client.spec.js b/samples/client/petstore/javascript-es6/src/test/model/Client.spec.js deleted file mode 100644 index 03af5ef730e..00000000000 --- a/samples/client/petstore/javascript-es6/src/test/model/Client.spec.js +++ /dev/null @@ -1,65 +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 - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SwaggerPetstore); - } -}(this, function(expect, SwaggerPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SwaggerPetstore.Client(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Client', function() { - it('should create an instance of Client', function() { - // uncomment below and update the code to test Client - //var instane = new SwaggerPetstore.Client(); - //expect(instance).to.be.a(SwaggerPetstore.Client); - }); - - it('should have the property client (base name: "client")', function() { - // uncomment below and update the code to test the property client - //var instane = new SwaggerPetstore.Client(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-es6/src/test/model/Dog.spec.js b/samples/client/petstore/javascript-es6/src/test/model/Dog.spec.js deleted file mode 100644 index 6421a501134..00000000000 --- a/samples/client/petstore/javascript-es6/src/test/model/Dog.spec.js +++ /dev/null @@ -1,65 +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 - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SwaggerPetstore); - } -}(this, function(expect, SwaggerPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SwaggerPetstore.Dog(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Dog', function() { - it('should create an instance of Dog', function() { - // uncomment below and update the code to test Dog - //var instane = new SwaggerPetstore.Dog(); - //expect(instance).to.be.a(SwaggerPetstore.Dog); - }); - - it('should have the property breed (base name: "breed")', function() { - // uncomment below and update the code to test the property breed - //var instane = new SwaggerPetstore.Dog(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-es6/src/test/model/EnumArrays.spec.js b/samples/client/petstore/javascript-es6/src/test/model/EnumArrays.spec.js deleted file mode 100644 index 45c8d595bb6..00000000000 --- a/samples/client/petstore/javascript-es6/src/test/model/EnumArrays.spec.js +++ /dev/null @@ -1,71 +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 - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SwaggerPetstore); - } -}(this, function(expect, SwaggerPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SwaggerPetstore.EnumArrays(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('EnumArrays', function() { - it('should create an instance of EnumArrays', function() { - // uncomment below and update the code to test EnumArrays - //var instane = new SwaggerPetstore.EnumArrays(); - //expect(instance).to.be.a(SwaggerPetstore.EnumArrays); - }); - - it('should have the property justSymbol (base name: "just_symbol")', function() { - // uncomment below and update the code to test the property justSymbol - //var instane = new SwaggerPetstore.EnumArrays(); - //expect(instance).to.be(); - }); - - it('should have the property arrayEnum (base name: "array_enum")', function() { - // uncomment below and update the code to test the property arrayEnum - //var instane = new SwaggerPetstore.EnumArrays(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-es6/src/test/model/EnumClass.spec.js b/samples/client/petstore/javascript-es6/src/test/model/EnumClass.spec.js deleted file mode 100644 index 2f60b4fc4a4..00000000000 --- a/samples/client/petstore/javascript-es6/src/test/model/EnumClass.spec.js +++ /dev/null @@ -1,58 +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 - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SwaggerPetstore); - } -}(this, function(expect, SwaggerPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('EnumClass', function() { - it('should create an instance of EnumClass', function() { - // uncomment below and update the code to test EnumClass - //var instane = new SwaggerPetstore.EnumClass(); - //expect(instance).to.be.a(SwaggerPetstore.EnumClass); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-es6/src/test/model/EnumTest.spec.js b/samples/client/petstore/javascript-es6/src/test/model/EnumTest.spec.js deleted file mode 100644 index 1a08cba3d72..00000000000 --- a/samples/client/petstore/javascript-es6/src/test/model/EnumTest.spec.js +++ /dev/null @@ -1,83 +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 - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SwaggerPetstore); - } -}(this, function(expect, SwaggerPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SwaggerPetstore.EnumTest(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('EnumTest', function() { - it('should create an instance of EnumTest', function() { - // uncomment below and update the code to test EnumTest - //var instane = new SwaggerPetstore.EnumTest(); - //expect(instance).to.be.a(SwaggerPetstore.EnumTest); - }); - - it('should have the property enumString (base name: "enum_string")', function() { - // uncomment below and update the code to test the property enumString - //var instane = new SwaggerPetstore.EnumTest(); - //expect(instance).to.be(); - }); - - it('should have the property enumInteger (base name: "enum_integer")', function() { - // uncomment below and update the code to test the property enumInteger - //var instane = new SwaggerPetstore.EnumTest(); - //expect(instance).to.be(); - }); - - it('should have the property enumNumber (base name: "enum_number")', function() { - // uncomment below and update the code to test the property enumNumber - //var instane = new SwaggerPetstore.EnumTest(); - //expect(instance).to.be(); - }); - - it('should have the property outerEnum (base name: "outerEnum")', function() { - // uncomment below and update the code to test the property outerEnum - //var instane = new SwaggerPetstore.EnumTest(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-es6/src/test/model/FormatTest.spec.js b/samples/client/petstore/javascript-es6/src/test/model/FormatTest.spec.js deleted file mode 100644 index 74b0b80c74e..00000000000 --- a/samples/client/petstore/javascript-es6/src/test/model/FormatTest.spec.js +++ /dev/null @@ -1,137 +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 - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SwaggerPetstore); - } -}(this, function(expect, SwaggerPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SwaggerPetstore.FormatTest(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('FormatTest', function() { - it('should create an instance of FormatTest', function() { - // uncomment below and update the code to test FormatTest - //var instane = new SwaggerPetstore.FormatTest(); - //expect(instance).to.be.a(SwaggerPetstore.FormatTest); - }); - - it('should have the property integer (base name: "integer")', function() { - // uncomment below and update the code to test the property integer - //var instane = new SwaggerPetstore.FormatTest(); - //expect(instance).to.be(); - }); - - it('should have the property int32 (base name: "int32")', function() { - // uncomment below and update the code to test the property int32 - //var instane = new SwaggerPetstore.FormatTest(); - //expect(instance).to.be(); - }); - - it('should have the property int64 (base name: "int64")', function() { - // uncomment below and update the code to test the property int64 - //var instane = new SwaggerPetstore.FormatTest(); - //expect(instance).to.be(); - }); - - it('should have the property _number (base name: "number")', function() { - // uncomment below and update the code to test the property _number - //var instane = new SwaggerPetstore.FormatTest(); - //expect(instance).to.be(); - }); - - it('should have the property _float (base name: "float")', function() { - // uncomment below and update the code to test the property _float - //var instane = new SwaggerPetstore.FormatTest(); - //expect(instance).to.be(); - }); - - it('should have the property _double (base name: "double")', function() { - // uncomment below and update the code to test the property _double - //var instane = new SwaggerPetstore.FormatTest(); - //expect(instance).to.be(); - }); - - it('should have the property _string (base name: "string")', function() { - // uncomment below and update the code to test the property _string - //var instane = new SwaggerPetstore.FormatTest(); - //expect(instance).to.be(); - }); - - it('should have the property _byte (base name: "byte")', function() { - // uncomment below and update the code to test the property _byte - //var instane = new SwaggerPetstore.FormatTest(); - //expect(instance).to.be(); - }); - - it('should have the property binary (base name: "binary")', function() { - // uncomment below and update the code to test the property binary - //var instane = new SwaggerPetstore.FormatTest(); - //expect(instance).to.be(); - }); - - it('should have the property _date (base name: "date")', function() { - // uncomment below and update the code to test the property _date - //var instane = new SwaggerPetstore.FormatTest(); - //expect(instance).to.be(); - }); - - it('should have the property dateTime (base name: "dateTime")', function() { - // uncomment below and update the code to test the property dateTime - //var instane = new SwaggerPetstore.FormatTest(); - //expect(instance).to.be(); - }); - - it('should have the property uuid (base name: "uuid")', function() { - // uncomment below and update the code to test the property uuid - //var instane = new SwaggerPetstore.FormatTest(); - //expect(instance).to.be(); - }); - - it('should have the property password (base name: "password")', function() { - // uncomment below and update the code to test the property password - //var instane = new SwaggerPetstore.FormatTest(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-es6/src/test/model/HasOnlyReadOnly.spec.js b/samples/client/petstore/javascript-es6/src/test/model/HasOnlyReadOnly.spec.js deleted file mode 100644 index ad4f4ba6d71..00000000000 --- a/samples/client/petstore/javascript-es6/src/test/model/HasOnlyReadOnly.spec.js +++ /dev/null @@ -1,71 +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 - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SwaggerPetstore); - } -}(this, function(expect, SwaggerPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SwaggerPetstore.HasOnlyReadOnly(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('HasOnlyReadOnly', function() { - it('should create an instance of HasOnlyReadOnly', function() { - // uncomment below and update the code to test HasOnlyReadOnly - //var instane = new SwaggerPetstore.HasOnlyReadOnly(); - //expect(instance).to.be.a(SwaggerPetstore.HasOnlyReadOnly); - }); - - it('should have the property bar (base name: "bar")', function() { - // uncomment below and update the code to test the property bar - //var instane = new SwaggerPetstore.HasOnlyReadOnly(); - //expect(instance).to.be(); - }); - - it('should have the property foo (base name: "foo")', function() { - // uncomment below and update the code to test the property foo - //var instane = new SwaggerPetstore.HasOnlyReadOnly(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-es6/src/test/model/List.spec.js b/samples/client/petstore/javascript-es6/src/test/model/List.spec.js deleted file mode 100644 index 7ea30e82fc8..00000000000 --- a/samples/client/petstore/javascript-es6/src/test/model/List.spec.js +++ /dev/null @@ -1,65 +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 - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SwaggerPetstore); - } -}(this, function(expect, SwaggerPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SwaggerPetstore.List(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('List', function() { - it('should create an instance of List', function() { - // uncomment below and update the code to test List - //var instane = new SwaggerPetstore.List(); - //expect(instance).to.be.a(SwaggerPetstore.List); - }); - - it('should have the property _123List (base name: "123-list")', function() { - // uncomment below and update the code to test the property _123List - //var instane = new SwaggerPetstore.List(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-es6/src/test/model/MapTest.spec.js b/samples/client/petstore/javascript-es6/src/test/model/MapTest.spec.js deleted file mode 100644 index 1a67fcf7ae6..00000000000 --- a/samples/client/petstore/javascript-es6/src/test/model/MapTest.spec.js +++ /dev/null @@ -1,71 +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 - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SwaggerPetstore); - } -}(this, function(expect, SwaggerPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SwaggerPetstore.MapTest(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('MapTest', function() { - it('should create an instance of MapTest', function() { - // uncomment below and update the code to test MapTest - //var instane = new SwaggerPetstore.MapTest(); - //expect(instance).to.be.a(SwaggerPetstore.MapTest); - }); - - it('should have the property mapMapOfString (base name: "map_map_of_string")', function() { - // uncomment below and update the code to test the property mapMapOfString - //var instane = new SwaggerPetstore.MapTest(); - //expect(instance).to.be(); - }); - - it('should have the property mapOfEnumString (base name: "map_of_enum_string")', function() { - // uncomment below and update the code to test the property mapOfEnumString - //var instane = new SwaggerPetstore.MapTest(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-es6/src/test/model/MixedPropertiesAndAdditionalPropertiesClass.spec.js b/samples/client/petstore/javascript-es6/src/test/model/MixedPropertiesAndAdditionalPropertiesClass.spec.js deleted file mode 100644 index be493898584..00000000000 --- a/samples/client/petstore/javascript-es6/src/test/model/MixedPropertiesAndAdditionalPropertiesClass.spec.js +++ /dev/null @@ -1,77 +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 - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SwaggerPetstore); - } -}(this, function(expect, SwaggerPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SwaggerPetstore.MixedPropertiesAndAdditionalPropertiesClass(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('MixedPropertiesAndAdditionalPropertiesClass', function() { - it('should create an instance of MixedPropertiesAndAdditionalPropertiesClass', function() { - // uncomment below and update the code to test MixedPropertiesAndAdditionalPropertiesClass - //var instane = new SwaggerPetstore.MixedPropertiesAndAdditionalPropertiesClass(); - //expect(instance).to.be.a(SwaggerPetstore.MixedPropertiesAndAdditionalPropertiesClass); - }); - - it('should have the property uuid (base name: "uuid")', function() { - // uncomment below and update the code to test the property uuid - //var instane = new SwaggerPetstore.MixedPropertiesAndAdditionalPropertiesClass(); - //expect(instance).to.be(); - }); - - it('should have the property dateTime (base name: "dateTime")', function() { - // uncomment below and update the code to test the property dateTime - //var instane = new SwaggerPetstore.MixedPropertiesAndAdditionalPropertiesClass(); - //expect(instance).to.be(); - }); - - it('should have the property map (base name: "map")', function() { - // uncomment below and update the code to test the property map - //var instane = new SwaggerPetstore.MixedPropertiesAndAdditionalPropertiesClass(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-es6/src/test/model/Model200Response.spec.js b/samples/client/petstore/javascript-es6/src/test/model/Model200Response.spec.js deleted file mode 100644 index 5c513a36e1a..00000000000 --- a/samples/client/petstore/javascript-es6/src/test/model/Model200Response.spec.js +++ /dev/null @@ -1,71 +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 - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SwaggerPetstore); - } -}(this, function(expect, SwaggerPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SwaggerPetstore.Model200Response(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Model200Response', function() { - it('should create an instance of Model200Response', function() { - // uncomment below and update the code to test Model200Response - //var instane = new SwaggerPetstore.Model200Response(); - //expect(instance).to.be.a(SwaggerPetstore.Model200Response); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instane = new SwaggerPetstore.Model200Response(); - //expect(instance).to.be(); - }); - - it('should have the property _class (base name: "class")', function() { - // uncomment below and update the code to test the property _class - //var instane = new SwaggerPetstore.Model200Response(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-es6/src/test/model/ModelReturn.spec.js b/samples/client/petstore/javascript-es6/src/test/model/ModelReturn.spec.js deleted file mode 100644 index 62b5f6ba57d..00000000000 --- a/samples/client/petstore/javascript-es6/src/test/model/ModelReturn.spec.js +++ /dev/null @@ -1,65 +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 - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SwaggerPetstore); - } -}(this, function(expect, SwaggerPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SwaggerPetstore.ModelReturn(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ModelReturn', function() { - it('should create an instance of ModelReturn', function() { - // uncomment below and update the code to test ModelReturn - //var instane = new SwaggerPetstore.ModelReturn(); - //expect(instance).to.be.a(SwaggerPetstore.ModelReturn); - }); - - it('should have the property _return (base name: "return")', function() { - // uncomment below and update the code to test the property _return - //var instane = new SwaggerPetstore.ModelReturn(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-es6/src/test/model/Name.spec.js b/samples/client/petstore/javascript-es6/src/test/model/Name.spec.js deleted file mode 100644 index c9caf576bd0..00000000000 --- a/samples/client/petstore/javascript-es6/src/test/model/Name.spec.js +++ /dev/null @@ -1,83 +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 - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SwaggerPetstore); - } -}(this, function(expect, SwaggerPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SwaggerPetstore.Name(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Name', function() { - it('should create an instance of Name', function() { - // uncomment below and update the code to test Name - //var instane = new SwaggerPetstore.Name(); - //expect(instance).to.be.a(SwaggerPetstore.Name); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instane = new SwaggerPetstore.Name(); - //expect(instance).to.be(); - }); - - it('should have the property snakeCase (base name: "snake_case")', function() { - // uncomment below and update the code to test the property snakeCase - //var instane = new SwaggerPetstore.Name(); - //expect(instance).to.be(); - }); - - it('should have the property property (base name: "property")', function() { - // uncomment below and update the code to test the property property - //var instane = new SwaggerPetstore.Name(); - //expect(instance).to.be(); - }); - - it('should have the property _123Number (base name: "123Number")', function() { - // uncomment below and update the code to test the property _123Number - //var instane = new SwaggerPetstore.Name(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-es6/src/test/model/NumberOnly.spec.js b/samples/client/petstore/javascript-es6/src/test/model/NumberOnly.spec.js deleted file mode 100644 index 641c03b13a4..00000000000 --- a/samples/client/petstore/javascript-es6/src/test/model/NumberOnly.spec.js +++ /dev/null @@ -1,65 +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 - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SwaggerPetstore); - } -}(this, function(expect, SwaggerPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SwaggerPetstore.NumberOnly(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('NumberOnly', function() { - it('should create an instance of NumberOnly', function() { - // uncomment below and update the code to test NumberOnly - //var instane = new SwaggerPetstore.NumberOnly(); - //expect(instance).to.be.a(SwaggerPetstore.NumberOnly); - }); - - it('should have the property justNumber (base name: "JustNumber")', function() { - // uncomment below and update the code to test the property justNumber - //var instane = new SwaggerPetstore.NumberOnly(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-es6/src/test/model/Order.spec.js b/samples/client/petstore/javascript-es6/src/test/model/Order.spec.js deleted file mode 100644 index 69527dc8fdb..00000000000 --- a/samples/client/petstore/javascript-es6/src/test/model/Order.spec.js +++ /dev/null @@ -1,95 +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 - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SwaggerPetstore); - } -}(this, function(expect, SwaggerPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SwaggerPetstore.Order(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Order', function() { - it('should create an instance of Order', function() { - // uncomment below and update the code to test Order - //var instane = new SwaggerPetstore.Order(); - //expect(instance).to.be.a(SwaggerPetstore.Order); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instane = new SwaggerPetstore.Order(); - //expect(instance).to.be(); - }); - - it('should have the property petId (base name: "petId")', function() { - // uncomment below and update the code to test the property petId - //var instane = new SwaggerPetstore.Order(); - //expect(instance).to.be(); - }); - - it('should have the property quantity (base name: "quantity")', function() { - // uncomment below and update the code to test the property quantity - //var instane = new SwaggerPetstore.Order(); - //expect(instance).to.be(); - }); - - it('should have the property shipDate (base name: "shipDate")', function() { - // uncomment below and update the code to test the property shipDate - //var instane = new SwaggerPetstore.Order(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instane = new SwaggerPetstore.Order(); - //expect(instance).to.be(); - }); - - it('should have the property complete (base name: "complete")', function() { - // uncomment below and update the code to test the property complete - //var instane = new SwaggerPetstore.Order(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-es6/src/test/model/OuterBoolean.spec.js b/samples/client/petstore/javascript-es6/src/test/model/OuterBoolean.spec.js deleted file mode 100644 index 765f758cd09..00000000000 --- a/samples/client/petstore/javascript-es6/src/test/model/OuterBoolean.spec.js +++ /dev/null @@ -1,60 +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 - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SwaggerPetstore); - } -}(this, function(expect, SwaggerPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - // OuterBoolean is not a member of SwaggerPetstore - //instance = new SwaggerPetstore.OuterBoolean(); - }); - - 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('OuterBoolean', function() { - it('should create an instance of OuterBoolean', function() { - // uncomment below and update the code to test OuterBoolean - //var instane = new SwaggerPetstore.OuterBoolean(); - //expect(instance).to.be.a(SwaggerPetstore.OuterBoolean); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-es6/src/test/model/OuterComposite.spec.js b/samples/client/petstore/javascript-es6/src/test/model/OuterComposite.spec.js deleted file mode 100644 index 6fd830b7c0e..00000000000 --- a/samples/client/petstore/javascript-es6/src/test/model/OuterComposite.spec.js +++ /dev/null @@ -1,77 +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 - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SwaggerPetstore); - } -}(this, function(expect, SwaggerPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SwaggerPetstore.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 instane = new SwaggerPetstore.OuterComposite(); - //expect(instance).to.be.a(SwaggerPetstore.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(); - //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(); - //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(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-es6/src/test/model/OuterEnum.spec.js b/samples/client/petstore/javascript-es6/src/test/model/OuterEnum.spec.js deleted file mode 100644 index 14c26a3aef5..00000000000 --- a/samples/client/petstore/javascript-es6/src/test/model/OuterEnum.spec.js +++ /dev/null @@ -1,58 +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 - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SwaggerPetstore); - } -}(this, function(expect, SwaggerPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('OuterEnum', function() { - it('should create an instance of OuterEnum', function() { - // uncomment below and update the code to test OuterEnum - //var instane = new SwaggerPetstore.OuterEnum(); - //expect(instance).to.be.a(SwaggerPetstore.OuterEnum); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-es6/src/test/model/OuterNumber.spec.js b/samples/client/petstore/javascript-es6/src/test/model/OuterNumber.spec.js deleted file mode 100644 index 2466fbe6dc9..00000000000 --- a/samples/client/petstore/javascript-es6/src/test/model/OuterNumber.spec.js +++ /dev/null @@ -1,60 +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 - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SwaggerPetstore); - } -}(this, function(expect, SwaggerPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - // OuterNumber is not a member of SwaggerPetstore - //instance = new SwaggerPetstore.OuterNumber(); - }); - - 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('OuterNumber', function() { - it('should create an instance of OuterNumber', function() { - // uncomment below and update the code to test OuterNumber - //var instane = new SwaggerPetstore.OuterNumber(); - //expect(instance).to.be.a(SwaggerPetstore.OuterNumber); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-es6/src/test/model/OuterString.spec.js b/samples/client/petstore/javascript-es6/src/test/model/OuterString.spec.js deleted file mode 100644 index 46d6c579bc9..00000000000 --- a/samples/client/petstore/javascript-es6/src/test/model/OuterString.spec.js +++ /dev/null @@ -1,60 +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 - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SwaggerPetstore); - } -}(this, function(expect, SwaggerPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - // OuterString is not a member of SwaggerPetstore - //instance = new SwaggerPetstore.OuterString(); - }); - - 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('OuterString', function() { - it('should create an instance of OuterString', function() { - // uncomment below and update the code to test OuterString - //var instane = new SwaggerPetstore.OuterString(); - //expect(instance).to.be.a(SwaggerPetstore.OuterString); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-es6/src/test/model/Pet.spec.js b/samples/client/petstore/javascript-es6/src/test/model/Pet.spec.js deleted file mode 100644 index 0da95d08662..00000000000 --- a/samples/client/petstore/javascript-es6/src/test/model/Pet.spec.js +++ /dev/null @@ -1,95 +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 - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SwaggerPetstore); - } -}(this, function(expect, SwaggerPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SwaggerPetstore.Pet(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Pet', function() { - it('should create an instance of Pet', function() { - // uncomment below and update the code to test Pet - //var instane = new SwaggerPetstore.Pet(); - //expect(instance).to.be.a(SwaggerPetstore.Pet); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instane = new SwaggerPetstore.Pet(); - //expect(instance).to.be(); - }); - - it('should have the property category (base name: "category")', function() { - // uncomment below and update the code to test the property category - //var instane = new SwaggerPetstore.Pet(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instane = new SwaggerPetstore.Pet(); - //expect(instance).to.be(); - }); - - it('should have the property photoUrls (base name: "photoUrls")', function() { - // uncomment below and update the code to test the property photoUrls - //var instane = new SwaggerPetstore.Pet(); - //expect(instance).to.be(); - }); - - it('should have the property tags (base name: "tags")', function() { - // uncomment below and update the code to test the property tags - //var instane = new SwaggerPetstore.Pet(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instane = new SwaggerPetstore.Pet(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-es6/src/test/model/ReadOnlyFirst.spec.js b/samples/client/petstore/javascript-es6/src/test/model/ReadOnlyFirst.spec.js deleted file mode 100644 index 375856a5abc..00000000000 --- a/samples/client/petstore/javascript-es6/src/test/model/ReadOnlyFirst.spec.js +++ /dev/null @@ -1,71 +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 - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SwaggerPetstore); - } -}(this, function(expect, SwaggerPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SwaggerPetstore.ReadOnlyFirst(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ReadOnlyFirst', function() { - it('should create an instance of ReadOnlyFirst', function() { - // uncomment below and update the code to test ReadOnlyFirst - //var instane = new SwaggerPetstore.ReadOnlyFirst(); - //expect(instance).to.be.a(SwaggerPetstore.ReadOnlyFirst); - }); - - it('should have the property bar (base name: "bar")', function() { - // uncomment below and update the code to test the property bar - //var instane = new SwaggerPetstore.ReadOnlyFirst(); - //expect(instance).to.be(); - }); - - it('should have the property baz (base name: "baz")', function() { - // uncomment below and update the code to test the property baz - //var instane = new SwaggerPetstore.ReadOnlyFirst(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-es6/src/test/model/SpecialModelName.spec.js b/samples/client/petstore/javascript-es6/src/test/model/SpecialModelName.spec.js deleted file mode 100644 index 1d821d94f2a..00000000000 --- a/samples/client/petstore/javascript-es6/src/test/model/SpecialModelName.spec.js +++ /dev/null @@ -1,65 +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 - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SwaggerPetstore); - } -}(this, function(expect, SwaggerPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SwaggerPetstore.SpecialModelName(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SpecialModelName', function() { - it('should create an instance of SpecialModelName', function() { - // uncomment below and update the code to test SpecialModelName - //var instane = new SwaggerPetstore.SpecialModelName(); - //expect(instance).to.be.a(SwaggerPetstore.SpecialModelName); - }); - - it('should have the property specialPropertyName (base name: "$special[property.name]")', function() { - // uncomment below and update the code to test the property specialPropertyName - //var instane = new SwaggerPetstore.SpecialModelName(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-es6/src/test/model/Tag.spec.js b/samples/client/petstore/javascript-es6/src/test/model/Tag.spec.js deleted file mode 100644 index b4aaf43538e..00000000000 --- a/samples/client/petstore/javascript-es6/src/test/model/Tag.spec.js +++ /dev/null @@ -1,71 +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 - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SwaggerPetstore); - } -}(this, function(expect, SwaggerPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SwaggerPetstore.Tag(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Tag', function() { - it('should create an instance of Tag', function() { - // uncomment below and update the code to test Tag - //var instane = new SwaggerPetstore.Tag(); - //expect(instance).to.be.a(SwaggerPetstore.Tag); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instane = new SwaggerPetstore.Tag(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instane = new SwaggerPetstore.Tag(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-es6/src/test/model/User.spec.js b/samples/client/petstore/javascript-es6/src/test/model/User.spec.js deleted file mode 100644 index 19db8f90bfd..00000000000 --- a/samples/client/petstore/javascript-es6/src/test/model/User.spec.js +++ /dev/null @@ -1,107 +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 - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SwaggerPetstore); - } -}(this, function(expect, SwaggerPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SwaggerPetstore.User(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('User', function() { - it('should create an instance of User', function() { - // uncomment below and update the code to test User - //var instane = new SwaggerPetstore.User(); - //expect(instance).to.be.a(SwaggerPetstore.User); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instane = new SwaggerPetstore.User(); - //expect(instance).to.be(); - }); - - it('should have the property username (base name: "username")', function() { - // uncomment below and update the code to test the property username - //var instane = new SwaggerPetstore.User(); - //expect(instance).to.be(); - }); - - it('should have the property firstName (base name: "firstName")', function() { - // uncomment below and update the code to test the property firstName - //var instane = new SwaggerPetstore.User(); - //expect(instance).to.be(); - }); - - it('should have the property lastName (base name: "lastName")', function() { - // uncomment below and update the code to test the property lastName - //var instane = new SwaggerPetstore.User(); - //expect(instance).to.be(); - }); - - it('should have the property email (base name: "email")', function() { - // uncomment below and update the code to test the property email - //var instane = new SwaggerPetstore.User(); - //expect(instance).to.be(); - }); - - it('should have the property password (base name: "password")', function() { - // uncomment below and update the code to test the property password - //var instane = new SwaggerPetstore.User(); - //expect(instance).to.be(); - }); - - it('should have the property phone (base name: "phone")', function() { - // uncomment below and update the code to test the property phone - //var instane = new SwaggerPetstore.User(); - //expect(instance).to.be(); - }); - - it('should have the property userStatus (base name: "userStatus")', function() { - // uncomment below and update the code to test the property userStatus - //var instane = new SwaggerPetstore.User(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-es6/test/api/AnotherFakeApi.spec.js b/samples/client/petstore/javascript-es6/test/api/AnotherFakeApi.spec.js index 75084078423..cc0edc79ac0 100644 --- a/samples/client/petstore/javascript-es6/test/api/AnotherFakeApi.spec.js +++ b/samples/client/petstore/javascript-es6/test/api/AnotherFakeApi.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); @@ -48,10 +48,10 @@ } describe('AnotherFakeApi', function() { - describe('testSpecialTags', function() { - it('should call testSpecialTags successfully', function(done) { - //uncomment below and update the code to test testSpecialTags - //instance.testSpecialTags(function(error) { + describe('call123testSpecialTags', function() { + it('should call call123testSpecialTags successfully', function(done) { + //uncomment below and update the code to test call123testSpecialTags + //instance.call123testSpecialTags(function(error) { // if (error) throw error; //expect().to.be(); //}); diff --git a/samples/client/petstore/javascript-es6/test/api/FakeApi.spec.js b/samples/client/petstore/javascript-es6/test/api/FakeApi.spec.js index 7931dbdd6c8..1f0d2e140f1 100644 --- a/samples/client/petstore/javascript-es6/test/api/FakeApi.spec.js +++ b/samples/client/petstore/javascript-es6/test/api/FakeApi.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); @@ -48,6 +48,16 @@ } describe('FakeApi', function() { + describe('createXmlItem', function() { + it('should call createXmlItem successfully', function(done) { + //uncomment below and update the code to test createXmlItem + //instance.createXmlItem(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); describe('fakeOuterBooleanSerialize', function() { it('should call fakeOuterBooleanSerialize successfully', function(done) { //uncomment below and update the code to test fakeOuterBooleanSerialize @@ -88,6 +98,16 @@ done(); }); }); + describe('testBodyWithFileSchema', function() { + it('should call testBodyWithFileSchema successfully', function(done) { + //uncomment below and update the code to test testBodyWithFileSchema + //instance.testBodyWithFileSchema(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); describe('testBodyWithQueryParams', function() { it('should call testBodyWithQueryParams successfully', function(done) { //uncomment below and update the code to test testBodyWithQueryParams @@ -128,6 +148,16 @@ done(); }); }); + describe('testGroupParameters', function() { + it('should call testGroupParameters successfully', function(done) { + //uncomment below and update the code to test testGroupParameters + //instance.testGroupParameters(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); describe('testInlineAdditionalProperties', function() { it('should call testInlineAdditionalProperties successfully', function(done) { //uncomment below and update the code to test testInlineAdditionalProperties diff --git a/samples/client/petstore/javascript-es6/test/api/FakeClassnameTags123Api.spec.js b/samples/client/petstore/javascript-es6/test/api/FakeClassnameTags123Api.spec.js index a9f0780a18f..c9b8c836f87 100644 --- a/samples/client/petstore/javascript-es6/test/api/FakeClassnameTags123Api.spec.js +++ b/samples/client/petstore/javascript-es6/test/api/FakeClassnameTags123Api.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-es6/test/api/PetApi.spec.js b/samples/client/petstore/javascript-es6/test/api/PetApi.spec.js index 259dfabb3f0..1818900165c 100644 --- a/samples/client/petstore/javascript-es6/test/api/PetApi.spec.js +++ b/samples/client/petstore/javascript-es6/test/api/PetApi.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); @@ -128,6 +128,16 @@ done(); }); }); + describe('uploadFileWithRequiredFile', function() { + it('should call uploadFileWithRequiredFile successfully', function(done) { + //uncomment below and update the code to test uploadFileWithRequiredFile + //instance.uploadFileWithRequiredFile(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); }); })); diff --git a/samples/client/petstore/javascript-es6/test/api/StoreApi.spec.js b/samples/client/petstore/javascript-es6/test/api/StoreApi.spec.js index cd542e15f5d..86b77581577 100644 --- a/samples/client/petstore/javascript-es6/test/api/StoreApi.spec.js +++ b/samples/client/petstore/javascript-es6/test/api/StoreApi.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-es6/test/api/UserApi.spec.js b/samples/client/petstore/javascript-es6/test/api/UserApi.spec.js index c5ba7e4e4bc..891f2dc4758 100644 --- a/samples/client/petstore/javascript-es6/test/api/UserApi.spec.js +++ b/samples/client/petstore/javascript-es6/test/api/UserApi.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-es6/test/model/AdditionalPropertiesAnyType.spec.js b/samples/client/petstore/javascript-es6/test/model/AdditionalPropertiesAnyType.spec.js index efaeacfa3d8..e15e37a473e 100644 --- a/samples/client/petstore/javascript-es6/test/model/AdditionalPropertiesAnyType.spec.js +++ b/samples/client/petstore/javascript-es6/test/model/AdditionalPropertiesAnyType.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-es6/test/model/AdditionalPropertiesArray.spec.js b/samples/client/petstore/javascript-es6/test/model/AdditionalPropertiesArray.spec.js index 693579ff1fa..1721c4499e0 100644 --- a/samples/client/petstore/javascript-es6/test/model/AdditionalPropertiesArray.spec.js +++ b/samples/client/petstore/javascript-es6/test/model/AdditionalPropertiesArray.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-es6/test/model/AdditionalPropertiesBoolean.spec.js b/samples/client/petstore/javascript-es6/test/model/AdditionalPropertiesBoolean.spec.js index d6184949bd3..672c6d3b3ab 100644 --- a/samples/client/petstore/javascript-es6/test/model/AdditionalPropertiesBoolean.spec.js +++ b/samples/client/petstore/javascript-es6/test/model/AdditionalPropertiesBoolean.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-es6/test/model/AdditionalPropertiesClass.spec.js b/samples/client/petstore/javascript-es6/test/model/AdditionalPropertiesClass.spec.js index 4c472d5ac5f..97946110fbb 100644 --- a/samples/client/petstore/javascript-es6/test/model/AdditionalPropertiesClass.spec.js +++ b/samples/client/petstore/javascript-es6/test/model/AdditionalPropertiesClass.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); @@ -54,14 +54,68 @@ //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 + it('should have the property mapString (base name: "map_string")', function() { + // uncomment below and update the code to test the property mapString //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 + it('should have the property mapNumber (base name: "map_number")', function() { + // uncomment below and update the code to test the property mapNumber + //var instane = new OpenApiPetstore.AdditionalPropertiesClass(); + //expect(instance).to.be(); + }); + + it('should have the property mapInteger (base name: "map_integer")', function() { + // uncomment below and update the code to test the property mapInteger + //var instane = new OpenApiPetstore.AdditionalPropertiesClass(); + //expect(instance).to.be(); + }); + + it('should have the property mapBoolean (base name: "map_boolean")', function() { + // uncomment below and update the code to test the property mapBoolean + //var instane = new OpenApiPetstore.AdditionalPropertiesClass(); + //expect(instance).to.be(); + }); + + it('should have the property mapArrayInteger (base name: "map_array_integer")', function() { + // uncomment below and update the code to test the property mapArrayInteger + //var instane = new OpenApiPetstore.AdditionalPropertiesClass(); + //expect(instance).to.be(); + }); + + it('should have the property mapArrayAnytype (base name: "map_array_anytype")', function() { + // uncomment below and update the code to test the property mapArrayAnytype + //var instane = new OpenApiPetstore.AdditionalPropertiesClass(); + //expect(instance).to.be(); + }); + + it('should have the property mapMapString (base name: "map_map_string")', function() { + // uncomment below and update the code to test the property mapMapString + //var instane = new OpenApiPetstore.AdditionalPropertiesClass(); + //expect(instance).to.be(); + }); + + it('should have the property mapMapAnytype (base name: "map_map_anytype")', function() { + // uncomment below and update the code to test the property mapMapAnytype + //var instane = new OpenApiPetstore.AdditionalPropertiesClass(); + //expect(instance).to.be(); + }); + + it('should have the property anytype1 (base name: "anytype_1")', function() { + // uncomment below and update the code to test the property anytype1 + //var instane = new OpenApiPetstore.AdditionalPropertiesClass(); + //expect(instance).to.be(); + }); + + it('should have the property anytype2 (base name: "anytype_2")', function() { + // uncomment below and update the code to test the property anytype2 + //var instane = new OpenApiPetstore.AdditionalPropertiesClass(); + //expect(instance).to.be(); + }); + + it('should have the property anytype3 (base name: "anytype_3")', function() { + // uncomment below and update the code to test the property anytype3 //var instane = new OpenApiPetstore.AdditionalPropertiesClass(); //expect(instance).to.be(); }); diff --git a/samples/client/petstore/javascript-es6/test/model/AdditionalPropertiesInteger.spec.js b/samples/client/petstore/javascript-es6/test/model/AdditionalPropertiesInteger.spec.js index 5af8bcf31ca..927abe7f4ab 100644 --- a/samples/client/petstore/javascript-es6/test/model/AdditionalPropertiesInteger.spec.js +++ b/samples/client/petstore/javascript-es6/test/model/AdditionalPropertiesInteger.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-es6/test/model/AdditionalPropertiesNumber.spec.js b/samples/client/petstore/javascript-es6/test/model/AdditionalPropertiesNumber.spec.js index a25968422a0..316cda1ce0c 100644 --- a/samples/client/petstore/javascript-es6/test/model/AdditionalPropertiesNumber.spec.js +++ b/samples/client/petstore/javascript-es6/test/model/AdditionalPropertiesNumber.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-es6/test/model/AdditionalPropertiesObject.spec.js b/samples/client/petstore/javascript-es6/test/model/AdditionalPropertiesObject.spec.js index da58d47c943..0f1c32a186a 100644 --- a/samples/client/petstore/javascript-es6/test/model/AdditionalPropertiesObject.spec.js +++ b/samples/client/petstore/javascript-es6/test/model/AdditionalPropertiesObject.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-es6/test/model/AdditionalPropertiesString.spec.js b/samples/client/petstore/javascript-es6/test/model/AdditionalPropertiesString.spec.js index 4f2a31eadab..41614af4409 100644 --- a/samples/client/petstore/javascript-es6/test/model/AdditionalPropertiesString.spec.js +++ b/samples/client/petstore/javascript-es6/test/model/AdditionalPropertiesString.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-es6/test/model/Animal.spec.js b/samples/client/petstore/javascript-es6/test/model/Animal.spec.js index dbe9ef41d14..541e42c052a 100644 --- a/samples/client/petstore/javascript-es6/test/model/Animal.spec.js +++ b/samples/client/petstore/javascript-es6/test/model/Animal.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-es6/test/model/ApiResponse.spec.js b/samples/client/petstore/javascript-es6/test/model/ApiResponse.spec.js index 1165094a73c..6bf65ed8c27 100644 --- a/samples/client/petstore/javascript-es6/test/model/ApiResponse.spec.js +++ b/samples/client/petstore/javascript-es6/test/model/ApiResponse.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-es6/test/model/ArrayOfArrayOfNumberOnly.spec.js b/samples/client/petstore/javascript-es6/test/model/ArrayOfArrayOfNumberOnly.spec.js index f30c53f5ed6..c0e7294153c 100644 --- a/samples/client/petstore/javascript-es6/test/model/ArrayOfArrayOfNumberOnly.spec.js +++ b/samples/client/petstore/javascript-es6/test/model/ArrayOfArrayOfNumberOnly.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-es6/test/model/ArrayOfNumberOnly.spec.js b/samples/client/petstore/javascript-es6/test/model/ArrayOfNumberOnly.spec.js index 6c2bc8807d9..8b1a334ae4f 100644 --- a/samples/client/petstore/javascript-es6/test/model/ArrayOfNumberOnly.spec.js +++ b/samples/client/petstore/javascript-es6/test/model/ArrayOfNumberOnly.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-es6/test/model/ArrayTest.spec.js b/samples/client/petstore/javascript-es6/test/model/ArrayTest.spec.js index ab9294b159c..56e527b5af4 100644 --- a/samples/client/petstore/javascript-es6/test/model/ArrayTest.spec.js +++ b/samples/client/petstore/javascript-es6/test/model/ArrayTest.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-es6/test/model/Capitalization.spec.js b/samples/client/petstore/javascript-es6/test/model/Capitalization.spec.js index 8be47e3e132..af2de38aba9 100644 --- a/samples/client/petstore/javascript-es6/test/model/Capitalization.spec.js +++ b/samples/client/petstore/javascript-es6/test/model/Capitalization.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-es6/test/model/Cat.spec.js b/samples/client/petstore/javascript-es6/test/model/Cat.spec.js index 99b7496450d..538496a14dc 100644 --- a/samples/client/petstore/javascript-es6/test/model/Cat.spec.js +++ b/samples/client/petstore/javascript-es6/test/model/Cat.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-es6/test/model/Category.spec.js b/samples/client/petstore/javascript-es6/test/model/Category.spec.js index 2a02a9e4708..33a4e190d3a 100644 --- a/samples/client/petstore/javascript-es6/test/model/Category.spec.js +++ b/samples/client/petstore/javascript-es6/test/model/Category.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-es6/test/model/ClassModel.spec.js b/samples/client/petstore/javascript-es6/test/model/ClassModel.spec.js index d87a995d19b..5a0704ce1f9 100644 --- a/samples/client/petstore/javascript-es6/test/model/ClassModel.spec.js +++ b/samples/client/petstore/javascript-es6/test/model/ClassModel.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-es6/test/model/Client.spec.js b/samples/client/petstore/javascript-es6/test/model/Client.spec.js index 182ad624434..00c35bdf53f 100644 --- a/samples/client/petstore/javascript-es6/test/model/Client.spec.js +++ b/samples/client/petstore/javascript-es6/test/model/Client.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-es6/test/model/Dog.spec.js b/samples/client/petstore/javascript-es6/test/model/Dog.spec.js index 13d1584d01a..5fb66ca82ac 100644 --- a/samples/client/petstore/javascript-es6/test/model/Dog.spec.js +++ b/samples/client/petstore/javascript-es6/test/model/Dog.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-es6/test/model/EnumArrays.spec.js b/samples/client/petstore/javascript-es6/test/model/EnumArrays.spec.js index dae8d83d7f2..3bcca2e2f03 100644 --- a/samples/client/petstore/javascript-es6/test/model/EnumArrays.spec.js +++ b/samples/client/petstore/javascript-es6/test/model/EnumArrays.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-es6/test/model/EnumClass.spec.js b/samples/client/petstore/javascript-es6/test/model/EnumClass.spec.js index eb5a1117918..c5c5e6eff58 100644 --- a/samples/client/petstore/javascript-es6/test/model/EnumClass.spec.js +++ b/samples/client/petstore/javascript-es6/test/model/EnumClass.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-es6/test/model/EnumTest.spec.js b/samples/client/petstore/javascript-es6/test/model/EnumTest.spec.js index 6d7c2519e68..c65804928fc 100644 --- a/samples/client/petstore/javascript-es6/test/model/EnumTest.spec.js +++ b/samples/client/petstore/javascript-es6/test/model/EnumTest.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-es6/test/model/File.spec.js b/samples/client/petstore/javascript-es6/test/model/File.spec.js index 10666dc53c7..f76e2660fd0 100644 --- a/samples/client/petstore/javascript-es6/test/model/File.spec.js +++ b/samples/client/petstore/javascript-es6/test/model/File.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-es6/test/model/FileSchemaTestClass.spec.js b/samples/client/petstore/javascript-es6/test/model/FileSchemaTestClass.spec.js index d6e49689d23..3cdf1be6c2e 100644 --- a/samples/client/petstore/javascript-es6/test/model/FileSchemaTestClass.spec.js +++ b/samples/client/petstore/javascript-es6/test/model/FileSchemaTestClass.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-es6/test/model/FormatTest.spec.js b/samples/client/petstore/javascript-es6/test/model/FormatTest.spec.js index 2e61e4f8ed9..6ce03fc9198 100644 --- a/samples/client/petstore/javascript-es6/test/model/FormatTest.spec.js +++ b/samples/client/petstore/javascript-es6/test/model/FormatTest.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-es6/test/model/HasOnlyReadOnly.spec.js b/samples/client/petstore/javascript-es6/test/model/HasOnlyReadOnly.spec.js index 409e06ad823..ced64afe9d7 100644 --- a/samples/client/petstore/javascript-es6/test/model/HasOnlyReadOnly.spec.js +++ b/samples/client/petstore/javascript-es6/test/model/HasOnlyReadOnly.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-es6/test/model/List.spec.js b/samples/client/petstore/javascript-es6/test/model/List.spec.js index e3a8574d9ae..190b1517440 100644 --- a/samples/client/petstore/javascript-es6/test/model/List.spec.js +++ b/samples/client/petstore/javascript-es6/test/model/List.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-es6/test/model/MapTest.spec.js b/samples/client/petstore/javascript-es6/test/model/MapTest.spec.js index da009beec4e..83fba503f2c 100644 --- a/samples/client/petstore/javascript-es6/test/model/MapTest.spec.js +++ b/samples/client/petstore/javascript-es6/test/model/MapTest.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); @@ -66,6 +66,18 @@ //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 instane = 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 instane = new OpenApiPetstore.MapTest(); + //expect(instance).to.be(); + }); + }); })); diff --git a/samples/client/petstore/javascript-es6/test/model/MixedPropertiesAndAdditionalPropertiesClass.spec.js b/samples/client/petstore/javascript-es6/test/model/MixedPropertiesAndAdditionalPropertiesClass.spec.js index c9174f56154..aefbd4a1e11 100644 --- a/samples/client/petstore/javascript-es6/test/model/MixedPropertiesAndAdditionalPropertiesClass.spec.js +++ b/samples/client/petstore/javascript-es6/test/model/MixedPropertiesAndAdditionalPropertiesClass.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-es6/test/model/Model200Response.spec.js b/samples/client/petstore/javascript-es6/test/model/Model200Response.spec.js index 13f768e9730..86baa3a6e1b 100644 --- a/samples/client/petstore/javascript-es6/test/model/Model200Response.spec.js +++ b/samples/client/petstore/javascript-es6/test/model/Model200Response.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-es6/test/model/ModelReturn.spec.js b/samples/client/petstore/javascript-es6/test/model/ModelReturn.spec.js index bda09c52366..80ace52e711 100644 --- a/samples/client/petstore/javascript-es6/test/model/ModelReturn.spec.js +++ b/samples/client/petstore/javascript-es6/test/model/ModelReturn.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-es6/test/model/Name.spec.js b/samples/client/petstore/javascript-es6/test/model/Name.spec.js index 3726b8867b4..8fd3787a60c 100644 --- a/samples/client/petstore/javascript-es6/test/model/Name.spec.js +++ b/samples/client/petstore/javascript-es6/test/model/Name.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-es6/test/model/NumberOnly.spec.js b/samples/client/petstore/javascript-es6/test/model/NumberOnly.spec.js index 2261973c9af..8d9b191b8ce 100644 --- a/samples/client/petstore/javascript-es6/test/model/NumberOnly.spec.js +++ b/samples/client/petstore/javascript-es6/test/model/NumberOnly.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-es6/test/model/Order.spec.js b/samples/client/petstore/javascript-es6/test/model/Order.spec.js index 536d217cc5b..3cf5ee02c0b 100644 --- a/samples/client/petstore/javascript-es6/test/model/Order.spec.js +++ b/samples/client/petstore/javascript-es6/test/model/Order.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-es6/test/model/OuterBoolean.spec.js b/samples/client/petstore/javascript-es6/test/model/OuterBoolean.spec.js deleted file mode 100644 index 765f758cd09..00000000000 --- a/samples/client/petstore/javascript-es6/test/model/OuterBoolean.spec.js +++ /dev/null @@ -1,60 +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 - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SwaggerPetstore); - } -}(this, function(expect, SwaggerPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - // OuterBoolean is not a member of SwaggerPetstore - //instance = new SwaggerPetstore.OuterBoolean(); - }); - - 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('OuterBoolean', function() { - it('should create an instance of OuterBoolean', function() { - // uncomment below and update the code to test OuterBoolean - //var instane = new SwaggerPetstore.OuterBoolean(); - //expect(instance).to.be.a(SwaggerPetstore.OuterBoolean); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-es6/test/model/OuterComposite.spec.js b/samples/client/petstore/javascript-es6/test/model/OuterComposite.spec.js index 3309d619422..e642d911b1e 100644 --- a/samples/client/petstore/javascript-es6/test/model/OuterComposite.spec.js +++ b/samples/client/petstore/javascript-es6/test/model/OuterComposite.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-es6/test/model/OuterEnum.spec.js b/samples/client/petstore/javascript-es6/test/model/OuterEnum.spec.js index fa51fa90cb4..98fc8e47082 100644 --- a/samples/client/petstore/javascript-es6/test/model/OuterEnum.spec.js +++ b/samples/client/petstore/javascript-es6/test/model/OuterEnum.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-es6/test/model/OuterNumber.spec.js b/samples/client/petstore/javascript-es6/test/model/OuterNumber.spec.js deleted file mode 100644 index 2466fbe6dc9..00000000000 --- a/samples/client/petstore/javascript-es6/test/model/OuterNumber.spec.js +++ /dev/null @@ -1,60 +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 - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SwaggerPetstore); - } -}(this, function(expect, SwaggerPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - // OuterNumber is not a member of SwaggerPetstore - //instance = new SwaggerPetstore.OuterNumber(); - }); - - 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('OuterNumber', function() { - it('should create an instance of OuterNumber', function() { - // uncomment below and update the code to test OuterNumber - //var instane = new SwaggerPetstore.OuterNumber(); - //expect(instance).to.be.a(SwaggerPetstore.OuterNumber); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-es6/test/model/OuterString.spec.js b/samples/client/petstore/javascript-es6/test/model/OuterString.spec.js deleted file mode 100644 index 46d6c579bc9..00000000000 --- a/samples/client/petstore/javascript-es6/test/model/OuterString.spec.js +++ /dev/null @@ -1,60 +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 - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SwaggerPetstore); - } -}(this, function(expect, SwaggerPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - // OuterString is not a member of SwaggerPetstore - //instance = new SwaggerPetstore.OuterString(); - }); - - 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('OuterString', function() { - it('should create an instance of OuterString', function() { - // uncomment below and update the code to test OuterString - //var instane = new SwaggerPetstore.OuterString(); - //expect(instance).to.be.a(SwaggerPetstore.OuterString); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-es6/test/model/Pet.spec.js b/samples/client/petstore/javascript-es6/test/model/Pet.spec.js index f8ce9b93a3c..139b4fe0ac4 100644 --- a/samples/client/petstore/javascript-es6/test/model/Pet.spec.js +++ b/samples/client/petstore/javascript-es6/test/model/Pet.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-es6/test/model/ReadOnlyFirst.spec.js b/samples/client/petstore/javascript-es6/test/model/ReadOnlyFirst.spec.js index 5bc5cb3a700..13a4f7a16f4 100644 --- a/samples/client/petstore/javascript-es6/test/model/ReadOnlyFirst.spec.js +++ b/samples/client/petstore/javascript-es6/test/model/ReadOnlyFirst.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-es6/test/model/SpecialModelName.spec.js b/samples/client/petstore/javascript-es6/test/model/SpecialModelName.spec.js index f459d2e0cd6..ccbd26dc3f2 100644 --- a/samples/client/petstore/javascript-es6/test/model/SpecialModelName.spec.js +++ b/samples/client/petstore/javascript-es6/test/model/SpecialModelName.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-es6/test/model/Tag.spec.js b/samples/client/petstore/javascript-es6/test/model/Tag.spec.js index 2213b06d509..17c48f5c256 100644 --- a/samples/client/petstore/javascript-es6/test/model/Tag.spec.js +++ b/samples/client/petstore/javascript-es6/test/model/Tag.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-es6/test/model/TypeHolderDefault.spec.js b/samples/client/petstore/javascript-es6/test/model/TypeHolderDefault.spec.js index 46db4ac570d..6d918826b38 100644 --- a/samples/client/petstore/javascript-es6/test/model/TypeHolderDefault.spec.js +++ b/samples/client/petstore/javascript-es6/test/model/TypeHolderDefault.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-es6/test/model/TypeHolderExample.spec.js b/samples/client/petstore/javascript-es6/test/model/TypeHolderExample.spec.js index c55caa45b44..20cb2d3c8b4 100644 --- a/samples/client/petstore/javascript-es6/test/model/TypeHolderExample.spec.js +++ b/samples/client/petstore/javascript-es6/test/model/TypeHolderExample.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-es6/test/model/User.spec.js b/samples/client/petstore/javascript-es6/test/model/User.spec.js index f0cd8819ec8..f2ce2c36ab3 100644 --- a/samples/client/petstore/javascript-es6/test/model/User.spec.js +++ b/samples/client/petstore/javascript-es6/test/model/User.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-es6/test/model/XmlItem.spec.js b/samples/client/petstore/javascript-es6/test/model/XmlItem.spec.js index 5b6326b7430..3775c96866b 100644 --- a/samples/client/petstore/javascript-es6/test/model/XmlItem.spec.js +++ b/samples/client/petstore/javascript-es6/test/model/XmlItem.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-promise-es6/docs/AnimalFarm.md b/samples/client/petstore/javascript-promise-es6/docs/AnimalFarm.md deleted file mode 100644 index ab153513ca9..00000000000 --- a/samples/client/petstore/javascript-promise-es6/docs/AnimalFarm.md +++ /dev/null @@ -1,7 +0,0 @@ -# OpenApiPetstore.AnimalFarm - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - - diff --git a/samples/client/petstore/javascript-promise-es6/docs/Fake_classname_tags123Api.md b/samples/client/petstore/javascript-promise-es6/docs/Fake_classname_tags123Api.md deleted file mode 100644 index bdd0abf3287..00000000000 --- a/samples/client/petstore/javascript-promise-es6/docs/Fake_classname_tags123Api.md +++ /dev/null @@ -1,57 +0,0 @@ -# SwaggerPetstore.Fake_classname_tags123Api - -All URIs are relative to *http://petstore.swagger.io:80/v2* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**testClassname**](Fake_classname_tags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case - - - -# **testClassname** -> Client testClassname(body) - -To test class name in snake case - -### Example -```javascript -import SwaggerPetstore from 'swagger_petstore'; -let defaultClient = SwaggerPetstore.ApiClient.instance; - -// Configure API key authorization: api_key_query -let api_key_query = defaultClient.authentications['api_key_query']; -api_key_query.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key_query.apiKeyPrefix = 'Token'; - -let apiInstance = new SwaggerPetstore.Fake_classname_tags123Api(); - -let body = new SwaggerPetstore.Client(); // Client | client model - -apiInstance.testClassname(body).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**Client**](Client.md)| client model | - -### Return type - -[**Client**](Client.md) - -### Authorization - -[api_key_query](../README.md#api_key_query) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - diff --git a/samples/client/petstore/javascript-promise-es6/docs/OuterBoolean.md b/samples/client/petstore/javascript-promise-es6/docs/OuterBoolean.md deleted file mode 100644 index 61ea0d56615..00000000000 --- a/samples/client/petstore/javascript-promise-es6/docs/OuterBoolean.md +++ /dev/null @@ -1,7 +0,0 @@ -# SwaggerPetstore.OuterBoolean - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - - diff --git a/samples/client/petstore/javascript-promise-es6/docs/OuterNumber.md b/samples/client/petstore/javascript-promise-es6/docs/OuterNumber.md deleted file mode 100644 index efbbfa83535..00000000000 --- a/samples/client/petstore/javascript-promise-es6/docs/OuterNumber.md +++ /dev/null @@ -1,7 +0,0 @@ -# SwaggerPetstore.OuterNumber - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - - diff --git a/samples/client/petstore/javascript-promise-es6/docs/OuterString.md b/samples/client/petstore/javascript-promise-es6/docs/OuterString.md deleted file mode 100644 index 22eba5351a9..00000000000 --- a/samples/client/petstore/javascript-promise-es6/docs/OuterString.md +++ /dev/null @@ -1,7 +0,0 @@ -# SwaggerPetstore.OuterString - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - - diff --git a/samples/client/petstore/javascript-promise-es6/docs/StringBooleanMap.md b/samples/client/petstore/javascript-promise-es6/docs/StringBooleanMap.md deleted file mode 100644 index 195a7d57677..00000000000 --- a/samples/client/petstore/javascript-promise-es6/docs/StringBooleanMap.md +++ /dev/null @@ -1,7 +0,0 @@ -# OpenApiPetstore.StringBooleanMap - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - - diff --git a/samples/client/petstore/javascript-promise-es6/package.json b/samples/client/petstore/javascript-promise-es6/package.json index c89469d525c..94455e4a69a 100644 --- a/samples/client/petstore/javascript-promise-es6/package.json +++ b/samples/client/petstore/javascript-promise-es6/package.json @@ -20,9 +20,9 @@ "babel-core": "6.26.0", "babel-preset-env": "^1.6.1", "babel-preset-stage-0": "^6.24.1", - "expect.js": "~0.3.1", + "expect.js": "^0.3.1", "mocha": "^5.2.0", - "sinon": "1.17.3" + "sinon": "^7.2.0" }, "files": [ "dist" diff --git a/samples/client/petstore/javascript-promise-es6/src/model/AnimalFarm.js b/samples/client/petstore/javascript-promise-es6/src/model/AnimalFarm.js deleted file mode 100644 index 3b9cc01f03d..00000000000 --- a/samples/client/petstore/javascript-promise-es6/src/model/AnimalFarm.js +++ /dev/null @@ -1,70 +0,0 @@ -/** - * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import Animal from './Animal'; - -/** - * The AnimalFarm model module. - * @module model/AnimalFarm - * @version 1.0.0 - */ -class AnimalFarm extends Array { - /** - * Constructs a new AnimalFarm. - * @alias module:model/AnimalFarm - * @extends Array - */ - constructor() { - super(); - - - AnimalFarm.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AnimalFarm 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/AnimalFarm} obj Optional instance to populate. - * @return {module:model/AnimalFarm} The populated AnimalFarm instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AnimalFarm(); - - ApiClient.constructFromObject(data, obj, 'Animal'); - - - } - return obj; - } - - -} - - - - - - -export default AnimalFarm; - diff --git a/samples/client/petstore/javascript-promise-es6/src/model/StringBooleanMap.js b/samples/client/petstore/javascript-promise-es6/src/model/StringBooleanMap.js deleted file mode 100644 index 30172b33f7b..00000000000 --- a/samples/client/petstore/javascript-promise-es6/src/model/StringBooleanMap.js +++ /dev/null @@ -1,67 +0,0 @@ -/** - * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The StringBooleanMap model module. - * @module model/StringBooleanMap - * @version 1.0.0 - */ -class StringBooleanMap { - /** - * Constructs a new StringBooleanMap. - * @alias module:model/StringBooleanMap - * @extends Object - */ - constructor() { - - StringBooleanMap.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a StringBooleanMap 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/StringBooleanMap} obj Optional instance to populate. - * @return {module:model/StringBooleanMap} The populated StringBooleanMap instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new StringBooleanMap(); - - ApiClient.constructFromObject(data, obj, 'Boolean'); - - - } - return obj; - } - - -} - - - - - - -export default StringBooleanMap; - diff --git a/samples/client/petstore/javascript-promise-es6/test/api/AnotherFakeApi.spec.js b/samples/client/petstore/javascript-promise-es6/test/api/AnotherFakeApi.spec.js index f55538a53e7..cc0edc79ac0 100644 --- a/samples/client/petstore/javascript-promise-es6/test/api/AnotherFakeApi.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/api/AnotherFakeApi.spec.js @@ -1,12 +1,12 @@ /** - * Swagger Petstore + * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io + * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. * */ @@ -14,21 +14,21 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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) { @@ -48,10 +48,10 @@ } describe('AnotherFakeApi', function() { - describe('testSpecialTags', function() { - it('should call testSpecialTags successfully', function(done) { - //uncomment below and update the code to test testSpecialTags - //instance.testSpecialTags(function(error) { + describe('call123testSpecialTags', function() { + it('should call call123testSpecialTags successfully', function(done) { + //uncomment below and update the code to test call123testSpecialTags + //instance.call123testSpecialTags(function(error) { // if (error) throw error; //expect().to.be(); //}); diff --git a/samples/client/petstore/javascript-promise-es6/test/api/FakeApi.spec.js b/samples/client/petstore/javascript-promise-es6/test/api/FakeApi.spec.js index a4c9cc1f7b3..1f0d2e140f1 100644 --- a/samples/client/petstore/javascript-promise-es6/test/api/FakeApi.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/api/FakeApi.spec.js @@ -1,12 +1,12 @@ /** - * Swagger Petstore + * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io + * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. * */ @@ -14,21 +14,21 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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) { @@ -48,6 +48,76 @@ } describe('FakeApi', function() { + describe('createXmlItem', function() { + it('should call createXmlItem successfully', function(done) { + //uncomment below and update the code to test createXmlItem + //instance.createXmlItem(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('fakeOuterBooleanSerialize', function() { + it('should call fakeOuterBooleanSerialize successfully', function(done) { + //uncomment below and update the code to test fakeOuterBooleanSerialize + //instance.fakeOuterBooleanSerialize(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('fakeOuterCompositeSerialize', function() { + it('should call fakeOuterCompositeSerialize successfully', function(done) { + //uncomment below and update the code to test fakeOuterCompositeSerialize + //instance.fakeOuterCompositeSerialize(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('fakeOuterNumberSerialize', function() { + it('should call fakeOuterNumberSerialize successfully', function(done) { + //uncomment below and update the code to test fakeOuterNumberSerialize + //instance.fakeOuterNumberSerialize(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('fakeOuterStringSerialize', function() { + it('should call fakeOuterStringSerialize successfully', function(done) { + //uncomment below and update the code to test fakeOuterStringSerialize + //instance.fakeOuterStringSerialize(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('testBodyWithFileSchema', function() { + it('should call testBodyWithFileSchema successfully', function(done) { + //uncomment below and update the code to test testBodyWithFileSchema + //instance.testBodyWithFileSchema(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('testBodyWithQueryParams', function() { + it('should call testBodyWithQueryParams successfully', function(done) { + //uncomment below and update the code to test testBodyWithQueryParams + //instance.testBodyWithQueryParams(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); describe('testClientModel', function() { it('should call testClientModel successfully', function(done) { //uncomment below and update the code to test testClientModel @@ -78,6 +148,36 @@ done(); }); }); + describe('testGroupParameters', function() { + it('should call testGroupParameters successfully', function(done) { + //uncomment below and update the code to test testGroupParameters + //instance.testGroupParameters(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('testInlineAdditionalProperties', function() { + it('should call testInlineAdditionalProperties successfully', function(done) { + //uncomment below and update the code to test testInlineAdditionalProperties + //instance.testInlineAdditionalProperties(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('testJsonFormData', function() { + it('should call testJsonFormData successfully', function(done) { + //uncomment below and update the code to test testJsonFormData + //instance.testJsonFormData(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); }); })); diff --git a/samples/client/petstore/javascript-promise-es6/test/api/FakeClassnameTags123Api.spec.js b/samples/client/petstore/javascript-promise-es6/test/api/FakeClassnameTags123Api.spec.js index 10e20e7778a..c9b8c836f87 100644 --- a/samples/client/petstore/javascript-promise-es6/test/api/FakeClassnameTags123Api.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/api/FakeClassnameTags123Api.spec.js @@ -1,12 +1,12 @@ /** - * Swagger Petstore + * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io + * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. * */ @@ -14,21 +14,21 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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-promise-es6/test/api/PetApi.spec.js b/samples/client/petstore/javascript-promise-es6/test/api/PetApi.spec.js index 5259a2c6665..1818900165c 100644 --- a/samples/client/petstore/javascript-promise-es6/test/api/PetApi.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/api/PetApi.spec.js @@ -1,12 +1,12 @@ /** - * Swagger Petstore + * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io + * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. * */ @@ -14,21 +14,21 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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.PetApi(); + instance = new OpenApiPetstore.PetApi(); }); var getProperty = function(object, getter, property) { @@ -128,6 +128,16 @@ done(); }); }); + describe('uploadFileWithRequiredFile', function() { + it('should call uploadFileWithRequiredFile successfully', function(done) { + //uncomment below and update the code to test uploadFileWithRequiredFile + //instance.uploadFileWithRequiredFile(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); }); })); diff --git a/samples/client/petstore/javascript-promise-es6/test/api/StoreApi.spec.js b/samples/client/petstore/javascript-promise-es6/test/api/StoreApi.spec.js index d19da2f28d8..86b77581577 100644 --- a/samples/client/petstore/javascript-promise-es6/test/api/StoreApi.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/api/StoreApi.spec.js @@ -1,12 +1,12 @@ /** - * Swagger Petstore + * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io + * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. * */ @@ -14,21 +14,21 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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.StoreApi(); + instance = new OpenApiPetstore.StoreApi(); }); var getProperty = function(object, getter, property) { diff --git a/samples/client/petstore/javascript-promise-es6/test/api/UserApi.spec.js b/samples/client/petstore/javascript-promise-es6/test/api/UserApi.spec.js index 55c8967f13b..891f2dc4758 100644 --- a/samples/client/petstore/javascript-promise-es6/test/api/UserApi.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/api/UserApi.spec.js @@ -1,12 +1,12 @@ /** - * Swagger Petstore + * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io + * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. * */ @@ -14,21 +14,21 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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-promise-es6/test/model/AdditionalPropertiesAnyType.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/AdditionalPropertiesAnyType.spec.js index efaeacfa3d8..e15e37a473e 100644 --- a/samples/client/petstore/javascript-promise-es6/test/model/AdditionalPropertiesAnyType.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/model/AdditionalPropertiesAnyType.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-promise-es6/test/model/AdditionalPropertiesArray.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/AdditionalPropertiesArray.spec.js index 693579ff1fa..1721c4499e0 100644 --- a/samples/client/petstore/javascript-promise-es6/test/model/AdditionalPropertiesArray.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/model/AdditionalPropertiesArray.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-promise-es6/test/model/AdditionalPropertiesBoolean.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/AdditionalPropertiesBoolean.spec.js index d6184949bd3..672c6d3b3ab 100644 --- a/samples/client/petstore/javascript-promise-es6/test/model/AdditionalPropertiesBoolean.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/model/AdditionalPropertiesBoolean.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-promise-es6/test/model/AdditionalPropertiesClass.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/AdditionalPropertiesClass.spec.js index 887052c0109..97946110fbb 100644 --- a/samples/client/petstore/javascript-promise-es6/test/model/AdditionalPropertiesClass.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/model/AdditionalPropertiesClass.spec.js @@ -1,12 +1,12 @@ /** - * Swagger Petstore + * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io + * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. * */ @@ -14,21 +14,21 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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) { @@ -50,19 +50,73 @@ 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(); + it('should have the property mapString (base name: "map_string")', function() { + // uncomment below and update the code to test the property mapString + //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(); + it('should have the property mapNumber (base name: "map_number")', function() { + // uncomment below and update the code to test the property mapNumber + //var instane = new OpenApiPetstore.AdditionalPropertiesClass(); + //expect(instance).to.be(); + }); + + it('should have the property mapInteger (base name: "map_integer")', function() { + // uncomment below and update the code to test the property mapInteger + //var instane = new OpenApiPetstore.AdditionalPropertiesClass(); + //expect(instance).to.be(); + }); + + it('should have the property mapBoolean (base name: "map_boolean")', function() { + // uncomment below and update the code to test the property mapBoolean + //var instane = new OpenApiPetstore.AdditionalPropertiesClass(); + //expect(instance).to.be(); + }); + + it('should have the property mapArrayInteger (base name: "map_array_integer")', function() { + // uncomment below and update the code to test the property mapArrayInteger + //var instane = new OpenApiPetstore.AdditionalPropertiesClass(); + //expect(instance).to.be(); + }); + + it('should have the property mapArrayAnytype (base name: "map_array_anytype")', function() { + // uncomment below and update the code to test the property mapArrayAnytype + //var instane = new OpenApiPetstore.AdditionalPropertiesClass(); + //expect(instance).to.be(); + }); + + it('should have the property mapMapString (base name: "map_map_string")', function() { + // uncomment below and update the code to test the property mapMapString + //var instane = new OpenApiPetstore.AdditionalPropertiesClass(); + //expect(instance).to.be(); + }); + + it('should have the property mapMapAnytype (base name: "map_map_anytype")', function() { + // uncomment below and update the code to test the property mapMapAnytype + //var instane = new OpenApiPetstore.AdditionalPropertiesClass(); + //expect(instance).to.be(); + }); + + it('should have the property anytype1 (base name: "anytype_1")', function() { + // uncomment below and update the code to test the property anytype1 + //var instane = new OpenApiPetstore.AdditionalPropertiesClass(); + //expect(instance).to.be(); + }); + + it('should have the property anytype2 (base name: "anytype_2")', function() { + // uncomment below and update the code to test the property anytype2 + //var instane = new OpenApiPetstore.AdditionalPropertiesClass(); + //expect(instance).to.be(); + }); + + it('should have the property anytype3 (base name: "anytype_3")', function() { + // uncomment below and update the code to test the property anytype3 + //var instane = new OpenApiPetstore.AdditionalPropertiesClass(); //expect(instance).to.be(); }); diff --git a/samples/client/petstore/javascript-promise-es6/test/model/AdditionalPropertiesInteger.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/AdditionalPropertiesInteger.spec.js index 5af8bcf31ca..927abe7f4ab 100644 --- a/samples/client/petstore/javascript-promise-es6/test/model/AdditionalPropertiesInteger.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/model/AdditionalPropertiesInteger.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-promise-es6/test/model/AdditionalPropertiesNumber.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/AdditionalPropertiesNumber.spec.js index a25968422a0..316cda1ce0c 100644 --- a/samples/client/petstore/javascript-promise-es6/test/model/AdditionalPropertiesNumber.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/model/AdditionalPropertiesNumber.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-promise-es6/test/model/AdditionalPropertiesObject.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/AdditionalPropertiesObject.spec.js index da58d47c943..0f1c32a186a 100644 --- a/samples/client/petstore/javascript-promise-es6/test/model/AdditionalPropertiesObject.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/model/AdditionalPropertiesObject.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-promise-es6/test/model/AdditionalPropertiesString.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/AdditionalPropertiesString.spec.js index 4f2a31eadab..41614af4409 100644 --- a/samples/client/petstore/javascript-promise-es6/test/model/AdditionalPropertiesString.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/model/AdditionalPropertiesString.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-promise-es6/test/model/Animal.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/Animal.spec.js index 4270461cc5e..541e42c052a 100644 --- a/samples/client/petstore/javascript-promise-es6/test/model/Animal.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/model/Animal.spec.js @@ -1,12 +1,12 @@ /** - * Swagger Petstore + * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io + * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. * */ @@ -14,21 +14,21 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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) { @@ -50,19 +50,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-promise-es6/test/model/ApiResponse.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/ApiResponse.spec.js index 1070013e367..6bf65ed8c27 100644 --- a/samples/client/petstore/javascript-promise-es6/test/model/ApiResponse.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/model/ApiResponse.spec.js @@ -1,12 +1,12 @@ /** - * Swagger Petstore + * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io + * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. * */ @@ -14,21 +14,21 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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) { @@ -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 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-promise-es6/test/model/ArrayOfArrayOfNumberOnly.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/ArrayOfArrayOfNumberOnly.spec.js index 9fcd218fbb3..c0e7294153c 100644 --- a/samples/client/petstore/javascript-promise-es6/test/model/ArrayOfArrayOfNumberOnly.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/model/ArrayOfArrayOfNumberOnly.spec.js @@ -1,12 +1,12 @@ /** - * Swagger Petstore + * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io + * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. * */ @@ -14,21 +14,21 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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) { @@ -50,13 +50,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-promise-es6/test/model/ArrayOfNumberOnly.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/ArrayOfNumberOnly.spec.js index 32d5f98586a..8b1a334ae4f 100644 --- a/samples/client/petstore/javascript-promise-es6/test/model/ArrayOfNumberOnly.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/model/ArrayOfNumberOnly.spec.js @@ -1,12 +1,12 @@ /** - * Swagger Petstore + * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io + * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. * */ @@ -14,21 +14,21 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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) { @@ -50,13 +50,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-promise-es6/test/model/ArrayTest.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/ArrayTest.spec.js index 1d93d897a9d..56e527b5af4 100644 --- a/samples/client/petstore/javascript-promise-es6/test/model/ArrayTest.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/model/ArrayTest.spec.js @@ -1,12 +1,12 @@ /** - * Swagger Petstore + * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io + * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. * */ @@ -14,21 +14,21 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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) { @@ -50,25 +50,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-promise-es6/test/model/Capitalization.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/Capitalization.spec.js index f1aa695c3fd..af2de38aba9 100644 --- a/samples/client/petstore/javascript-promise-es6/test/model/Capitalization.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/model/Capitalization.spec.js @@ -1,12 +1,12 @@ /** - * Swagger Petstore + * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io + * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. * */ @@ -14,21 +14,21 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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-promise-es6/test/model/Cat.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/Cat.spec.js index f0d5476b268..538496a14dc 100644 --- a/samples/client/petstore/javascript-promise-es6/test/model/Cat.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/model/Cat.spec.js @@ -1,12 +1,12 @@ /** - * Swagger Petstore + * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io + * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. * */ @@ -14,21 +14,21 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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) { @@ -50,13 +50,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-promise-es6/test/model/Category.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/Category.spec.js index 561eaf8373e..33a4e190d3a 100644 --- a/samples/client/petstore/javascript-promise-es6/test/model/Category.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/model/Category.spec.js @@ -1,12 +1,12 @@ /** - * Swagger Petstore + * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io + * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. * */ @@ -14,21 +14,21 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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) { @@ -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 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-promise-es6/test/model/ClassModel.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/ClassModel.spec.js index 5ee2e49a0de..5a0704ce1f9 100644 --- a/samples/client/petstore/javascript-promise-es6/test/model/ClassModel.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/model/ClassModel.spec.js @@ -1,12 +1,12 @@ /** - * Swagger Petstore + * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io + * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. * */ @@ -14,21 +14,21 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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-promise-es6/test/model/Client.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/Client.spec.js index 03af5ef730e..00c35bdf53f 100644 --- a/samples/client/petstore/javascript-promise-es6/test/model/Client.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/model/Client.spec.js @@ -1,12 +1,12 @@ /** - * Swagger Petstore + * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io + * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. * */ @@ -14,21 +14,21 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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) { @@ -50,13 +50,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-promise-es6/test/model/Dog.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/Dog.spec.js index 6421a501134..5fb66ca82ac 100644 --- a/samples/client/petstore/javascript-promise-es6/test/model/Dog.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/model/Dog.spec.js @@ -1,12 +1,12 @@ /** - * Swagger Petstore + * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io + * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. * */ @@ -14,21 +14,21 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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) { @@ -50,13 +50,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-promise-es6/test/model/EnumArrays.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/EnumArrays.spec.js index 45c8d595bb6..3bcca2e2f03 100644 --- a/samples/client/petstore/javascript-promise-es6/test/model/EnumArrays.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/model/EnumArrays.spec.js @@ -1,12 +1,12 @@ /** - * Swagger Petstore + * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io + * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. * */ @@ -14,21 +14,21 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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) { @@ -50,19 +50,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-promise-es6/test/model/EnumClass.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/EnumClass.spec.js index 2f60b4fc4a4..c5c5e6eff58 100644 --- a/samples/client/petstore/javascript-promise-es6/test/model/EnumClass.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/model/EnumClass.spec.js @@ -1,12 +1,12 @@ /** - * Swagger Petstore + * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io + * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. * */ @@ -14,15 +14,15 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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('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-promise-es6/test/model/EnumTest.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/EnumTest.spec.js index 1a08cba3d72..c65804928fc 100644 --- a/samples/client/petstore/javascript-promise-es6/test/model/EnumTest.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/model/EnumTest.spec.js @@ -1,12 +1,12 @@ /** - * Swagger Petstore + * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io + * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. * */ @@ -14,21 +14,21 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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) { @@ -50,31 +50,37 @@ 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 enumStringRequired (base name: "enum_string_required")', function() { + // uncomment below and update the code to test the property enumStringRequired + //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(); }); it('should have the property outerEnum (base name: "outerEnum")', function() { // uncomment below and update the code to test the property outerEnum - //var instane = new SwaggerPetstore.EnumTest(); + //var instane = new OpenApiPetstore.EnumTest(); //expect(instance).to.be(); }); diff --git a/samples/client/petstore/javascript-promise-es6/test/model/File.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/File.spec.js index 10666dc53c7..f76e2660fd0 100644 --- a/samples/client/petstore/javascript-promise-es6/test/model/File.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/model/File.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-promise-es6/test/model/FileSchemaTestClass.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/FileSchemaTestClass.spec.js index d6e49689d23..3cdf1be6c2e 100644 --- a/samples/client/petstore/javascript-promise-es6/test/model/FileSchemaTestClass.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/model/FileSchemaTestClass.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-promise-es6/test/model/FormatTest.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/FormatTest.spec.js index 74b0b80c74e..6ce03fc9198 100644 --- a/samples/client/petstore/javascript-promise-es6/test/model/FormatTest.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/model/FormatTest.spec.js @@ -1,12 +1,12 @@ /** - * Swagger Petstore + * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io + * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. * */ @@ -14,21 +14,21 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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) { @@ -50,85 +50,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-promise-es6/test/model/HasOnlyReadOnly.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/HasOnlyReadOnly.spec.js index ad4f4ba6d71..ced64afe9d7 100644 --- a/samples/client/petstore/javascript-promise-es6/test/model/HasOnlyReadOnly.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/model/HasOnlyReadOnly.spec.js @@ -1,12 +1,12 @@ /** - * Swagger Petstore + * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io + * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. * */ @@ -14,21 +14,21 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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) { @@ -50,19 +50,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-promise-es6/test/model/List.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/List.spec.js index 7ea30e82fc8..190b1517440 100644 --- a/samples/client/petstore/javascript-promise-es6/test/model/List.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/model/List.spec.js @@ -1,12 +1,12 @@ /** - * Swagger Petstore + * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io + * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. * */ @@ -14,21 +14,21 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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) { @@ -50,13 +50,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(); + 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 OpenApiPetstore.List(); //expect(instance).to.be(); }); diff --git a/samples/client/petstore/javascript-promise-es6/test/model/MapTest.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/MapTest.spec.js index 1a67fcf7ae6..83fba503f2c 100644 --- a/samples/client/petstore/javascript-promise-es6/test/model/MapTest.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/model/MapTest.spec.js @@ -1,12 +1,12 @@ /** - * Swagger Petstore + * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io + * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. * */ @@ -14,21 +14,21 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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) { @@ -50,19 +50,31 @@ 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 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(); + }); + + it('should have the property directMap (base name: "direct_map")', function() { + // uncomment below and update the code to test the property directMap + //var instane = 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 instane = new OpenApiPetstore.MapTest(); //expect(instance).to.be(); }); diff --git a/samples/client/petstore/javascript-promise-es6/test/model/MixedPropertiesAndAdditionalPropertiesClass.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/MixedPropertiesAndAdditionalPropertiesClass.spec.js index be493898584..aefbd4a1e11 100644 --- a/samples/client/petstore/javascript-promise-es6/test/model/MixedPropertiesAndAdditionalPropertiesClass.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/model/MixedPropertiesAndAdditionalPropertiesClass.spec.js @@ -1,12 +1,12 @@ /** - * Swagger Petstore + * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io + * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. * */ @@ -14,21 +14,21 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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) { @@ -50,25 +50,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-promise-es6/test/model/Model200Response.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/Model200Response.spec.js index 5c513a36e1a..86baa3a6e1b 100644 --- a/samples/client/petstore/javascript-promise-es6/test/model/Model200Response.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/model/Model200Response.spec.js @@ -1,12 +1,12 @@ /** - * Swagger Petstore + * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io + * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. * */ @@ -14,21 +14,21 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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) { @@ -50,19 +50,19 @@ 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(); }); it('should have the property _class (base name: "class")', function() { // uncomment below and update the code to test the property _class - //var instane = new SwaggerPetstore.Model200Response(); + //var instane = new OpenApiPetstore.Model200Response(); //expect(instance).to.be(); }); diff --git a/samples/client/petstore/javascript-promise-es6/test/model/ModelReturn.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/ModelReturn.spec.js index 62b5f6ba57d..80ace52e711 100644 --- a/samples/client/petstore/javascript-promise-es6/test/model/ModelReturn.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/model/ModelReturn.spec.js @@ -1,12 +1,12 @@ /** - * Swagger Petstore + * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io + * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. * */ @@ -14,21 +14,21 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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) { @@ -50,13 +50,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-promise-es6/test/model/Name.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/Name.spec.js index c9caf576bd0..8fd3787a60c 100644 --- a/samples/client/petstore/javascript-promise-es6/test/model/Name.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/model/Name.spec.js @@ -1,12 +1,12 @@ /** - * Swagger Petstore + * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io + * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. * */ @@ -14,21 +14,21 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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) { @@ -50,31 +50,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(); + it('should have the property _123number (base name: "123Number")', function() { + // uncomment below and update the code to test the property _123number + //var instane = new OpenApiPetstore.Name(); //expect(instance).to.be(); }); diff --git a/samples/client/petstore/javascript-promise-es6/test/model/NumberOnly.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/NumberOnly.spec.js index 641c03b13a4..8d9b191b8ce 100644 --- a/samples/client/petstore/javascript-promise-es6/test/model/NumberOnly.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/model/NumberOnly.spec.js @@ -1,12 +1,12 @@ /** - * Swagger Petstore + * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io + * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. * */ @@ -14,21 +14,21 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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) { @@ -50,13 +50,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-promise-es6/test/model/Order.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/Order.spec.js index 69527dc8fdb..3cf5ee02c0b 100644 --- a/samples/client/petstore/javascript-promise-es6/test/model/Order.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/model/Order.spec.js @@ -1,12 +1,12 @@ /** - * Swagger Petstore + * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io + * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. * */ @@ -14,21 +14,21 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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) { @@ -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 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-promise-es6/test/model/OuterBoolean.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/OuterBoolean.spec.js deleted file mode 100644 index 400fbecfb13..00000000000 --- a/samples/client/petstore/javascript-promise-es6/test/model/OuterBoolean.spec.js +++ /dev/null @@ -1,63 +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.2.3-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SwaggerPetstore); - } -}(this, function(expect, SwaggerPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - // OuterBoolean is not a member of SwaggerPetstore - //instance = new SwaggerPetstore.OuterBoolean(); - }); - - 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('OuterBoolean', function() { - it('should create an instance of OuterBoolean', function() { - // uncomment below and update the code to test OuterBoolean - //var instane = new SwaggerPetstore.OuterBoolean(); - //expect(instance).to.be.a(SwaggerPetstore.OuterBoolean); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-promise-es6/test/model/OuterComposite.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/OuterComposite.spec.js index 819eebef7ec..e642d911b1e 100644 --- a/samples/client/petstore/javascript-promise-es6/test/model/OuterComposite.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/model/OuterComposite.spec.js @@ -1,15 +1,12 @@ /** - * Swagger Petstore + * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.2.3-SNAPSHOT + * * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. * */ @@ -17,21 +14,21 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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) { @@ -53,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-promise-es6/test/model/OuterEnum.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/OuterEnum.spec.js index 14c26a3aef5..98fc8e47082 100644 --- a/samples/client/petstore/javascript-promise-es6/test/model/OuterEnum.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/model/OuterEnum.spec.js @@ -1,12 +1,12 @@ /** - * Swagger Petstore + * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io + * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. * */ @@ -14,15 +14,15 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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-promise-es6/test/model/OuterNumber.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/OuterNumber.spec.js deleted file mode 100644 index 9cf8d6ac4b8..00000000000 --- a/samples/client/petstore/javascript-promise-es6/test/model/OuterNumber.spec.js +++ /dev/null @@ -1,63 +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.2.3-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SwaggerPetstore); - } -}(this, function(expect, SwaggerPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - // OuterNumber is not a member of SwaggerPetstore - //instance = new SwaggerPetstore.OuterNumber(); - }); - - 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('OuterNumber', function() { - it('should create an instance of OuterNumber', function() { - // uncomment below and update the code to test OuterNumber - //var instane = new SwaggerPetstore.OuterNumber(); - //expect(instance).to.be.a(SwaggerPetstore.OuterNumber); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-promise-es6/test/model/OuterString.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/OuterString.spec.js deleted file mode 100644 index 93f6e8e4cab..00000000000 --- a/samples/client/petstore/javascript-promise-es6/test/model/OuterString.spec.js +++ /dev/null @@ -1,63 +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.2.3-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SwaggerPetstore); - } -}(this, function(expect, SwaggerPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - // OuterString is not a member of SwaggerPetstore - //instance = new SwaggerPetstore.OuterString(); - }); - - 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('OuterString', function() { - it('should create an instance of OuterString', function() { - // uncomment below and update the code to test OuterString - //var instane = new SwaggerPetstore.OuterString(); - //expect(instance).to.be.a(SwaggerPetstore.OuterString); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-promise-es6/test/model/Pet.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/Pet.spec.js index 0da95d08662..139b4fe0ac4 100644 --- a/samples/client/petstore/javascript-promise-es6/test/model/Pet.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/model/Pet.spec.js @@ -1,12 +1,12 @@ /** - * Swagger Petstore + * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io + * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. * */ @@ -14,21 +14,21 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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) { @@ -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 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-promise-es6/test/model/ReadOnlyFirst.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/ReadOnlyFirst.spec.js index 375856a5abc..13a4f7a16f4 100644 --- a/samples/client/petstore/javascript-promise-es6/test/model/ReadOnlyFirst.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/model/ReadOnlyFirst.spec.js @@ -1,12 +1,12 @@ /** - * Swagger Petstore + * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io + * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. * */ @@ -14,21 +14,21 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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) { @@ -50,19 +50,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-promise-es6/test/model/SpecialModelName.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/SpecialModelName.spec.js index 1d821d94f2a..ccbd26dc3f2 100644 --- a/samples/client/petstore/javascript-promise-es6/test/model/SpecialModelName.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/model/SpecialModelName.spec.js @@ -1,12 +1,12 @@ /** - * Swagger Petstore + * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io + * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. * */ @@ -14,21 +14,21 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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) { @@ -50,13 +50,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-promise-es6/test/model/Tag.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/Tag.spec.js index b4aaf43538e..17c48f5c256 100644 --- a/samples/client/petstore/javascript-promise-es6/test/model/Tag.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/model/Tag.spec.js @@ -1,12 +1,12 @@ /** - * Swagger Petstore + * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io + * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. * */ @@ -14,21 +14,21 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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) { @@ -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 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-promise-es6/test/model/TypeHolderDefault.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/TypeHolderDefault.spec.js index 46db4ac570d..6d918826b38 100644 --- a/samples/client/petstore/javascript-promise-es6/test/model/TypeHolderDefault.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/model/TypeHolderDefault.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-promise-es6/test/model/TypeHolderExample.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/TypeHolderExample.spec.js index c55caa45b44..20cb2d3c8b4 100644 --- a/samples/client/petstore/javascript-promise-es6/test/model/TypeHolderExample.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/model/TypeHolderExample.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-promise-es6/test/model/User.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/User.spec.js index 19db8f90bfd..f2ce2c36ab3 100644 --- a/samples/client/petstore/javascript-promise-es6/test/model/User.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/model/User.spec.js @@ -1,12 +1,12 @@ /** - * Swagger Petstore + * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io + * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. * */ @@ -14,21 +14,21 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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) { @@ -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 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(); }); diff --git a/samples/client/petstore/javascript-promise-es6/test/model/XmlItem.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/XmlItem.spec.js index 5b6326b7430..3775c96866b 100644 --- a/samples/client/petstore/javascript-promise-es6/test/model/XmlItem.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/model/XmlItem.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-promise/docs/AnimalFarm.md b/samples/client/petstore/javascript-promise/docs/AnimalFarm.md deleted file mode 100644 index ab153513ca9..00000000000 --- a/samples/client/petstore/javascript-promise/docs/AnimalFarm.md +++ /dev/null @@ -1,7 +0,0 @@ -# OpenApiPetstore.AnimalFarm - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - - diff --git a/samples/client/petstore/javascript-promise/docs/Fake_classname_tags123Api.md b/samples/client/petstore/javascript-promise/docs/Fake_classname_tags123Api.md deleted file mode 100644 index 4b72d28d5d6..00000000000 --- a/samples/client/petstore/javascript-promise/docs/Fake_classname_tags123Api.md +++ /dev/null @@ -1,57 +0,0 @@ -# SwaggerPetstore.Fake_classname_tags123Api - -All URIs are relative to *http://petstore.swagger.io:80/v2* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**testClassname**](Fake_classname_tags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case - - - -# **testClassname** -> Client testClassname(body) - -To test class name in snake case - -### Example -```javascript -var SwaggerPetstore = require('swagger_petstore'); -var defaultClient = SwaggerPetstore.ApiClient.instance; - -// Configure API key authorization: api_key_query -var api_key_query = defaultClient.authentications['api_key_query']; -api_key_query.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key_query.apiKeyPrefix = 'Token'; - -var apiInstance = new SwaggerPetstore.Fake_classname_tags123Api(); - -var body = new SwaggerPetstore.Client(); // Client | client model - -apiInstance.testClassname(body).then(function(data) { - console.log('API called successfully. Returned data: ' + data); -}, function(error) { - console.error(error); -}); - -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**Client**](Client.md)| client model | - -### Return type - -[**Client**](Client.md) - -### Authorization - -[api_key_query](../README.md#api_key_query) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - diff --git a/samples/client/petstore/javascript-promise/docs/OuterBoolean.md b/samples/client/petstore/javascript-promise/docs/OuterBoolean.md deleted file mode 100644 index 61ea0d56615..00000000000 --- a/samples/client/petstore/javascript-promise/docs/OuterBoolean.md +++ /dev/null @@ -1,7 +0,0 @@ -# SwaggerPetstore.OuterBoolean - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - - diff --git a/samples/client/petstore/javascript-promise/docs/OuterNumber.md b/samples/client/petstore/javascript-promise/docs/OuterNumber.md deleted file mode 100644 index efbbfa83535..00000000000 --- a/samples/client/petstore/javascript-promise/docs/OuterNumber.md +++ /dev/null @@ -1,7 +0,0 @@ -# SwaggerPetstore.OuterNumber - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - - diff --git a/samples/client/petstore/javascript-promise/docs/OuterString.md b/samples/client/petstore/javascript-promise/docs/OuterString.md deleted file mode 100644 index 22eba5351a9..00000000000 --- a/samples/client/petstore/javascript-promise/docs/OuterString.md +++ /dev/null @@ -1,7 +0,0 @@ -# SwaggerPetstore.OuterString - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - - diff --git a/samples/client/petstore/javascript-promise/docs/StringBooleanMap.md b/samples/client/petstore/javascript-promise/docs/StringBooleanMap.md deleted file mode 100644 index 195a7d57677..00000000000 --- a/samples/client/petstore/javascript-promise/docs/StringBooleanMap.md +++ /dev/null @@ -1,7 +0,0 @@ -# OpenApiPetstore.StringBooleanMap - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - - diff --git a/samples/client/petstore/javascript-promise/package.json b/samples/client/petstore/javascript-promise/package.json index 86b2083c680..5a24b0488c5 100644 --- a/samples/client/petstore/javascript-promise/package.json +++ b/samples/client/petstore/javascript-promise/package.json @@ -5,7 +5,7 @@ "license": "Apache-2.0", "main": "src/index.js", "scripts": { - "test": "./node_modules/mocha/bin/mocha --recursive" + "test": "mocha --recursive" }, "browser": { "fs": false @@ -14,8 +14,8 @@ "superagent": "3.7.0" }, "devDependencies": { - "expect.js": "~0.3.1", + "expect.js": "^0.3.1", "mocha": "^5.2.0", - "sinon": "1.17.3" + "sinon": "^7.2.0" } } diff --git a/samples/client/petstore/javascript-promise/src/api/Fake_classname_tags123Api.js b/samples/client/petstore/javascript-promise/src/api/Fake_classname_tags123Api.js deleted file mode 100644 index 691fa430cb4..00000000000 --- a/samples/client/petstore/javascript-promise/src/api/Fake_classname_tags123Api.js +++ /dev/null @@ -1,103 +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.3.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', 'model/Client'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../model/Client')); - } else { - // Browser globals (root is window) - if (!root.SwaggerPetstore) { - root.SwaggerPetstore = {}; - } - root.SwaggerPetstore.Fake_classname_tags123Api = factory(root.SwaggerPetstore.ApiClient, root.SwaggerPetstore.Client); - } -}(this, function(ApiClient, Client) { - 'use strict'; - - /** - * Fake_classname_tags123 service. - * @module api/Fake_classname_tags123Api - * @version 1.0.0 - */ - - /** - * Constructs a new Fake_classname_tags123Api. - * @alias module:api/Fake_classname_tags123Api - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - var exports = function(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - - - - /** - * To test class name in snake case - * @param {module:model/Client} body client model - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Client} and HTTP response - */ - this.testClassnameWithHttpInfo = function(body) { - var postBody = body; - - // verify the required parameter 'body' is set - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling testClassname"); - } - - - var pathParams = { - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['api_key_query']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Client; - - return this.apiClient.callApi( - '/fake_classname_test', 'PATCH', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType - ); - } - - /** - * To test class name in snake case - * @param {module:model/Client} body client model - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Client} - */ - this.testClassname = function(body) { - return this.testClassnameWithHttpInfo(body) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - }; - - return exports; -})); diff --git a/samples/client/petstore/javascript-promise/src/model/AnimalFarm.js b/samples/client/petstore/javascript-promise/src/model/AnimalFarm.js deleted file mode 100644 index ad8a9a2549b..00000000000 --- a/samples/client/petstore/javascript-promise/src/model/AnimalFarm.js +++ /dev/null @@ -1,76 +0,0 @@ -/** - * 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 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 3.3.4-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['ApiClient', 'model/Animal'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./Animal')); - } else { - // Browser globals (root is window) - if (!root.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.AnimalFarm = factory(root.OpenApiPetstore.ApiClient, root.OpenApiPetstore.Animal); - } -}(this, function(ApiClient, Animal) { - 'use strict'; - - - - /** - * The AnimalFarm model module. - * @module model/AnimalFarm - * @version 1.0.0 - */ - - /** - * Constructs a new AnimalFarm. - * @alias module:model/AnimalFarm - * @class - * @extends Array - */ - var exports = function() { - var _this = this; - _this = new Array(); - Object.setPrototypeOf(_this, exports); - - return _this; - }; - - /** - * Constructs a AnimalFarm 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/AnimalFarm} obj Optional instance to populate. - * @return {module:model/AnimalFarm} The populated AnimalFarm instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - ApiClient.constructFromObject(data, obj, 'Animal'); - } - return obj; - } - - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript-promise/src/model/OuterBoolean.js b/samples/client/petstore/javascript-promise/src/model/OuterBoolean.js deleted file mode 100644 index 96b8b11d1bc..00000000000 --- a/samples/client/petstore/javascript-promise/src/model/OuterBoolean.js +++ /dev/null @@ -1,74 +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.3.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.OuterBoolean = factory(root.SwaggerPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The OuterBoolean model module. - * @module model/OuterBoolean - * @version 1.0.0 - */ - - /** - * Constructs a new 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) { - if (data) { - obj = obj || new exports(); - - } - return obj; - } - - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript-promise/src/model/OuterNumber.js b/samples/client/petstore/javascript-promise/src/model/OuterNumber.js deleted file mode 100644 index 1128dcb8afe..00000000000 --- a/samples/client/petstore/javascript-promise/src/model/OuterNumber.js +++ /dev/null @@ -1,74 +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.3.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) { - if (data) { - obj = obj || new exports(); - - } - return obj; - } - - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript-promise/src/model/OuterString.js b/samples/client/petstore/javascript-promise/src/model/OuterString.js deleted file mode 100644 index 3a012fbb0c9..00000000000 --- a/samples/client/petstore/javascript-promise/src/model/OuterString.js +++ /dev/null @@ -1,74 +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.3.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) { - if (data) { - obj = obj || new exports(); - - } - return obj; - } - - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript-promise/src/model/StringBooleanMap.js b/samples/client/petstore/javascript-promise/src/model/StringBooleanMap.js deleted file mode 100644 index 1bc5c4e59c6..00000000000 --- a/samples/client/petstore/javascript-promise/src/model/StringBooleanMap.js +++ /dev/null @@ -1,74 +0,0 @@ -/** - * 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 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 3.3.4-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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.StringBooleanMap = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The StringBooleanMap model module. - * @module model/StringBooleanMap - * @version 1.0.0 - */ - - /** - * Constructs a new StringBooleanMap. - * @alias module:model/StringBooleanMap - * @class - * @extends Object - */ - var exports = function() { - var _this = this; - - return _this; - }; - - /** - * Constructs a StringBooleanMap 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/StringBooleanMap} obj Optional instance to populate. - * @return {module:model/StringBooleanMap} The populated StringBooleanMap instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - ApiClient.constructFromObject(data, obj, 'Boolean'); - } - return obj; - } - - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript-promise/test/api/AnotherFakeApi.spec.js b/samples/client/petstore/javascript-promise/test/api/AnotherFakeApi.spec.js index 593e828d3cd..4405452f992 100644 --- a/samples/client/petstore/javascript-promise/test/api/AnotherFakeApi.spec.js +++ b/samples/client/petstore/javascript-promise/test/api/AnotherFakeApi.spec.js @@ -1,14 +1,13 @@ /** - * Swagger Petstore + * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * - * Swagger Codegen version: 2.3.0-SNAPSHOT + * OpenAPI Generator version: 4.0.0-SNAPSHOT * * Do not edit the class manually. * @@ -17,21 +16,21 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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) { @@ -51,10 +50,10 @@ } describe('AnotherFakeApi', function() { - describe('testSpecialTags', function() { - it('should call testSpecialTags successfully', function(done) { - //uncomment below and update the code to test testSpecialTags - //instance.testSpecialTags(function(error) { + describe('call123testSpecialTags', function() { + it('should call call123testSpecialTags successfully', function(done) { + //uncomment below and update the code to test call123testSpecialTags + //instance.call123testSpecialTags(function(error) { // if (error) throw error; //expect().to.be(); //}); diff --git a/samples/client/petstore/javascript-promise/test/api/FakeApi.spec.js b/samples/client/petstore/javascript-promise/test/api/FakeApi.spec.js index 47725845b51..22fe0a1019e 100644 --- a/samples/client/petstore/javascript-promise/test/api/FakeApi.spec.js +++ b/samples/client/petstore/javascript-promise/test/api/FakeApi.spec.js @@ -1,45 +1,36 @@ /** - * 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 Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * * Do not edit the class manually. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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) { @@ -59,10 +50,130 @@ } describe('FakeApi', function() { + describe('createXmlItem', function() { + it('should call createXmlItem successfully', function(done) { + //uncomment below and update the code to test createXmlItem + //instance.createXmlItem(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('fakeOuterBooleanSerialize', function() { + it('should call fakeOuterBooleanSerialize successfully', function(done) { + //uncomment below and update the code to test fakeOuterBooleanSerialize + //instance.fakeOuterBooleanSerialize(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('fakeOuterCompositeSerialize', function() { + it('should call fakeOuterCompositeSerialize successfully', function(done) { + //uncomment below and update the code to test fakeOuterCompositeSerialize + //instance.fakeOuterCompositeSerialize(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('fakeOuterNumberSerialize', function() { + it('should call fakeOuterNumberSerialize successfully', function(done) { + //uncomment below and update the code to test fakeOuterNumberSerialize + //instance.fakeOuterNumberSerialize(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('fakeOuterStringSerialize', function() { + it('should call fakeOuterStringSerialize successfully', function(done) { + //uncomment below and update the code to test fakeOuterStringSerialize + //instance.fakeOuterStringSerialize(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('testBodyWithFileSchema', function() { + it('should call testBodyWithFileSchema successfully', function(done) { + //uncomment below and update the code to test testBodyWithFileSchema + //instance.testBodyWithFileSchema(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('testBodyWithQueryParams', function() { + it('should call testBodyWithQueryParams successfully', function(done) { + //uncomment below and update the code to test testBodyWithQueryParams + //instance.testBodyWithQueryParams(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('testClientModel', function() { + it('should call testClientModel successfully', function(done) { + //uncomment below and update the code to test testClientModel + //instance.testClientModel(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); describe('testEndpointParameters', function() { it('should call testEndpointParameters successfully', function(done) { //uncomment below and update the code to test testEndpointParameters - //instance.testEndpointParameters(pet, function(error) { + //instance.testEndpointParameters(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('testEnumParameters', function() { + it('should call testEnumParameters successfully', function(done) { + //uncomment below and update the code to test testEnumParameters + //instance.testEnumParameters(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('testGroupParameters', function() { + it('should call testGroupParameters successfully', function(done) { + //uncomment below and update the code to test testGroupParameters + //instance.testGroupParameters(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('testInlineAdditionalProperties', function() { + it('should call testInlineAdditionalProperties successfully', function(done) { + //uncomment below and update the code to test testInlineAdditionalProperties + //instance.testInlineAdditionalProperties(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('testJsonFormData', function() { + it('should call testJsonFormData successfully', function(done) { + //uncomment below and update the code to test testJsonFormData + //instance.testJsonFormData(function(error) { // if (error) throw error; //expect().to.be(); //}); diff --git a/samples/client/petstore/javascript-promise/test/api/FakeClassnameTags123Api.spec.js b/samples/client/petstore/javascript-promise/test/api/FakeClassnameTags123Api.spec.js index 06504559511..29bd5fbbaf2 100644 --- a/samples/client/petstore/javascript-promise/test/api/FakeClassnameTags123Api.spec.js +++ b/samples/client/petstore/javascript-promise/test/api/FakeClassnameTags123Api.spec.js @@ -1,14 +1,13 @@ /** - * Swagger Petstore + * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * - * Swagger Codegen version: 2.3.0-SNAPSHOT + * OpenAPI Generator version: 4.0.0-SNAPSHOT * * Do not edit the class manually. * @@ -17,21 +16,21 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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-promise/test/api/PetApi.spec.js b/samples/client/petstore/javascript-promise/test/api/PetApi.spec.js index 98debb8ea19..360453a74bb 100644 --- a/samples/client/petstore/javascript-promise/test/api/PetApi.spec.js +++ b/samples/client/petstore/javascript-promise/test/api/PetApi.spec.js @@ -1,205 +1,145 @@ -if (typeof module === 'object' && module.exports) { - var expect = require('expect.js'); - var SwaggerPetstore = require('../../src/index'); -} +/** + * 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 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * + * Do not edit the class manually. + * + */ -// When testing in the Node.js environment, ApiClient will need access to a Promise constructor. -if (typeof Promise == 'undefined') - Promise = require('promise'); +(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 api; + var instance; -beforeEach(function() { - api = new SwaggerPetstore.PetApi(); -}); - -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; -} - -var createRandomPet = function() { - var id = new Date().getTime(); - var pet = new SwaggerPetstore.Pet(); - setProperty(pet, "setId", "id", id); - setProperty(pet, "setName", "name", "gorilla" + id); - - var category = new SwaggerPetstore.Category(); - setProperty(category, "setName", "name", "really-happy"); - setProperty(pet, "setCategory", "category", category); - - setProperty(pet, "setStatus", "status", "available"); - var photos = ["http://foo.bar.com/1", "http://foo.bar.com/2"]; - setProperty(pet, "setPhotoUrls", "photoUrls", photos); - - return pet; -}; - -describe('PetApi', function() { - it('should create and get pet', function(done) { - var pet = createRandomPet(); - api.addPet(pet) - .then(function() { - return api.getPetById(pet.id) - }) - .then(function(fetched) { - expect(fetched).to.be.ok(); - 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.ok(); - expect(getProperty(getProperty(fetched, "getCategory", "category"), "getName", "name")) - .to.be(getProperty(getProperty(pet, "getCategory", "category"), "getName", "name")); - - api.deletePet(pet.id); - done(); - }); + beforeEach(function() { + instance = new OpenApiPetstore.PetApi(); }); -}); -/* - @Test - public void testUpdatePet() throws Exception { - Pet pet = createRandomPet(); - pet.setName("programmer"); + 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]; + } - api.updatePet(pet); + 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; + } - Pet fetched = api.getPetById(pet.getId()); - assertNotNull(fetched); - assertEquals(pet.getId(), fetched.getId()); - assertNotNull(fetched.getCategory()); - assertEquals(fetched.getCategory().getName(), pet.getCategory().getName()); - } + describe('PetApi', function() { + describe('addPet', function() { + it('should call addPet successfully', function(done) { + //uncomment below and update the code to test addPet + //instance.addPet(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('deletePet', function() { + it('should call deletePet successfully', function(done) { + //uncomment below and update the code to test deletePet + //instance.deletePet(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('findPetsByStatus', function() { + it('should call findPetsByStatus successfully', function(done) { + //uncomment below and update the code to test findPetsByStatus + //instance.findPetsByStatus(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('findPetsByTags', function() { + it('should call findPetsByTags successfully', function(done) { + //uncomment below and update the code to test findPetsByTags + //instance.findPetsByTags(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getPetById', function() { + it('should call getPetById successfully', function(done) { + //uncomment below and update the code to test getPetById + //instance.getPetById(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('updatePet', function() { + it('should call updatePet successfully', function(done) { + //uncomment below and update the code to test updatePet + //instance.updatePet(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('updatePetWithForm', function() { + it('should call updatePetWithForm successfully', function(done) { + //uncomment below and update the code to test updatePetWithForm + //instance.updatePetWithForm(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('uploadFile', function() { + it('should call uploadFile successfully', function(done) { + //uncomment below and update the code to test uploadFile + //instance.uploadFile(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('uploadFileWithRequiredFile', function() { + it('should call uploadFileWithRequiredFile successfully', function(done) { + //uncomment below and update the code to test uploadFileWithRequiredFile + //instance.uploadFileWithRequiredFile(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); - @Test - public void testFindPetsByStatus() throws Exception { - Pet pet = createRandomPet(); - pet.setName("programmer"); - pet.setStatus(Pet.StatusEnum.AVAILABLE); - - api.updatePet(pet); - - List pets = api.findPetsByStatus(Arrays.asList(new String[]{"available"})); - assertNotNull(pets); - - boolean found = false; - for (Pet fetched : pets) { - if (fetched.getId().equals(pet.getId())) { - found = true; - break; - } - } - - assertTrue(found); - } - - @Test - public void testFindPetsByTags() throws Exception { - Pet pet = createRandomPet(); - pet.setName("monster"); - pet.setStatus(Pet.StatusEnum.AVAILABLE); - - List tags = new ArrayList(); - Tag tag1 = new Tag(); - tag1.setName("friendly"); - tags.add(tag1); - pet.setTags(tags); - - api.updatePet(pet); - - List pets = api.findPetsByTags(Arrays.asList(new String[]{"friendly"})); - assertNotNull(pets); - - boolean found = false; - for (Pet fetched : pets) { - if (fetched.getId().equals(pet.getId())) { - found = true; - break; - } - } - assertTrue(found); - } - - @Test - public void testUpdatePetWithForm() throws Exception { - Pet pet = createRandomPet(); - pet.setName("frank"); - api.addPet(pet); - - Pet fetched = api.getPetById(pet.getId()); - - api.updatePetWithForm(String.valueOf(fetched.getId()), "furt", null); - Pet updated = api.getPetById(fetched.getId()); - - assertEquals(updated.getName(), "furt"); - } - - @Test - public void testDeletePet() throws Exception { - Pet pet = createRandomPet(); - api.addPet(pet); - - Pet fetched = api.getPetById(pet.getId()); - api.deletePet(fetched.getId(), null); - - try { - fetched = api.getPetById(fetched.getId()); - fail("expected an error"); - } catch (ApiException e) { - assertEquals(404, e.getCode()); - } - } - - @Test - public void testUploadFile() throws Exception { - Pet pet = createRandomPet(); - api.addPet(pet); - - File file = new File("hello.txt"); - BufferedWriter writer = new BufferedWriter(new FileWriter(file)); - writer.write("Hello world!"); - writer.close(); - - api.uploadFile(pet.getId(), "a test file", new File(file.getAbsolutePath())); - } - - @Test - public void testEqualsAndHashCode() { - Pet pet1 = new Pet(); - Pet pet2 = new Pet(); - assertTrue(pet1.equals(pet2)); - assertTrue(pet2.equals(pet1)); - assertTrue(pet1.hashCode() == pet2.hashCode()); - assertTrue(pet1.equals(pet1)); - assertTrue(pet1.hashCode() == pet1.hashCode()); - - pet2.setName("really-happy"); - pet2.setPhotoUrls(Arrays.asList(new String[]{"http://foo.bar.com/1", "http://foo.bar.com/2"})); - assertFalse(pet1.equals(pet2)); - assertFalse(pet2.equals(pet1)); - assertFalse(pet1.hashCode() == (pet2.hashCode())); - assertTrue(pet2.equals(pet2)); - assertTrue(pet2.hashCode() == pet2.hashCode()); - - pet1.setName("really-happy"); - pet1.setPhotoUrls(Arrays.asList(new String[]{"http://foo.bar.com/1", "http://foo.bar.com/2"})); - assertTrue(pet1.equals(pet2)); - assertTrue(pet2.equals(pet1)); - assertTrue(pet1.hashCode() == pet2.hashCode()); - assertTrue(pet1.equals(pet1)); - assertTrue(pet1.hashCode() == pet1.hashCode()); - } -} -*/ +})); diff --git a/samples/client/petstore/javascript-promise/test/api/StoreApi.spec.js b/samples/client/petstore/javascript-promise/test/api/StoreApi.spec.js index d4fd52c56a5..1e1f225ef94 100644 --- a/samples/client/petstore/javascript-promise/test/api/StoreApi.spec.js +++ b/samples/client/petstore/javascript-promise/test/api/StoreApi.spec.js @@ -1,45 +1,36 @@ /** - * 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 Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * * Do not edit the class manually. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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.StoreApi(); + instance = new OpenApiPetstore.StoreApi(); }); var getProperty = function(object, getter, property) { @@ -62,7 +53,7 @@ describe('deleteOrder', function() { it('should call deleteOrder successfully', function(done) { //uncomment below and update the code to test deleteOrder - //instance.deleteOrder(pet, function(error) { + //instance.deleteOrder(function(error) { // if (error) throw error; //expect().to.be(); //}); @@ -72,7 +63,7 @@ describe('getInventory', function() { it('should call getInventory successfully', function(done) { //uncomment below and update the code to test getInventory - //instance.getInventory(pet, function(error) { + //instance.getInventory(function(error) { // if (error) throw error; //expect().to.be(); //}); @@ -82,7 +73,7 @@ describe('getOrderById', function() { it('should call getOrderById successfully', function(done) { //uncomment below and update the code to test getOrderById - //instance.getOrderById(pet, function(error) { + //instance.getOrderById(function(error) { // if (error) throw error; //expect().to.be(); //}); @@ -92,7 +83,7 @@ describe('placeOrder', function() { it('should call placeOrder successfully', function(done) { //uncomment below and update the code to test placeOrder - //instance.placeOrder(pet, function(error) { + //instance.placeOrder(function(error) { // if (error) throw error; //expect().to.be(); //}); diff --git a/samples/client/petstore/javascript-promise/test/api/UserApi.spec.js b/samples/client/petstore/javascript-promise/test/api/UserApi.spec.js index f020f612b5b..71aaed5a964 100644 --- a/samples/client/petstore/javascript-promise/test/api/UserApi.spec.js +++ b/samples/client/petstore/javascript-promise/test/api/UserApi.spec.js @@ -1,45 +1,36 @@ /** - * 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 Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * * Do not edit the class manually. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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) { @@ -62,7 +53,7 @@ describe('createUser', function() { it('should call createUser successfully', function(done) { //uncomment below and update the code to test createUser - //instance.createUser(pet, function(error) { + //instance.createUser(function(error) { // if (error) throw error; //expect().to.be(); //}); @@ -72,7 +63,7 @@ describe('createUsersWithArrayInput', function() { it('should call createUsersWithArrayInput successfully', function(done) { //uncomment below and update the code to test createUsersWithArrayInput - //instance.createUsersWithArrayInput(pet, function(error) { + //instance.createUsersWithArrayInput(function(error) { // if (error) throw error; //expect().to.be(); //}); @@ -82,7 +73,7 @@ describe('createUsersWithListInput', function() { it('should call createUsersWithListInput successfully', function(done) { //uncomment below and update the code to test createUsersWithListInput - //instance.createUsersWithListInput(pet, function(error) { + //instance.createUsersWithListInput(function(error) { // if (error) throw error; //expect().to.be(); //}); @@ -92,7 +83,7 @@ describe('deleteUser', function() { it('should call deleteUser successfully', function(done) { //uncomment below and update the code to test deleteUser - //instance.deleteUser(pet, function(error) { + //instance.deleteUser(function(error) { // if (error) throw error; //expect().to.be(); //}); @@ -102,7 +93,7 @@ describe('getUserByName', function() { it('should call getUserByName successfully', function(done) { //uncomment below and update the code to test getUserByName - //instance.getUserByName(pet, function(error) { + //instance.getUserByName(function(error) { // if (error) throw error; //expect().to.be(); //}); @@ -112,7 +103,7 @@ describe('loginUser', function() { it('should call loginUser successfully', function(done) { //uncomment below and update the code to test loginUser - //instance.loginUser(pet, function(error) { + //instance.loginUser(function(error) { // if (error) throw error; //expect().to.be(); //}); @@ -122,7 +113,7 @@ describe('logoutUser', function() { it('should call logoutUser successfully', function(done) { //uncomment below and update the code to test logoutUser - //instance.logoutUser(pet, function(error) { + //instance.logoutUser(function(error) { // if (error) throw error; //expect().to.be(); //}); @@ -132,7 +123,7 @@ describe('updateUser', function() { it('should call updateUser successfully', function(done) { //uncomment below and update the code to test updateUser - //instance.updateUser(pet, function(error) { + //instance.updateUser(function(error) { // if (error) throw error; //expect().to.be(); //}); diff --git a/samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesAnyType.spec.js b/samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesAnyType.spec.js index a81b37f05cb..3e9aaed718b 100644 --- a/samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesAnyType.spec.js +++ b/samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesAnyType.spec.js @@ -16,10 +16,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesArray.spec.js b/samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesArray.spec.js index b1d3f622ae5..70e2e348fb1 100644 --- a/samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesArray.spec.js +++ b/samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesArray.spec.js @@ -16,10 +16,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesBoolean.spec.js b/samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesBoolean.spec.js index 73d6b1aeeab..f3bca3d55fc 100644 --- a/samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesBoolean.spec.js +++ b/samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesBoolean.spec.js @@ -16,10 +16,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesClass.spec.js b/samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesClass.spec.js index cb5bdef3e4f..0c6e0a15343 100644 --- a/samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesClass.spec.js +++ b/samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesClass.spec.js @@ -1,45 +1,36 @@ /** - * 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 Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * * Do not edit the class manually. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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) { @@ -61,19 +52,73 @@ 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 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 instane = new SwaggerPetstore.AdditionalPropertiesClass(); + it('should have the property mapString (base name: "map_string")', function() { + // uncomment below and update the code to test the property mapString + //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 instane = new SwaggerPetstore.AdditionalPropertiesClass(); + it('should have the property mapNumber (base name: "map_number")', function() { + // uncomment below and update the code to test the property mapNumber + //var instance = new OpenApiPetstore.AdditionalPropertiesClass(); + //expect(instance).to.be(); + }); + + it('should have the property mapInteger (base name: "map_integer")', function() { + // uncomment below and update the code to test the property mapInteger + //var instance = new OpenApiPetstore.AdditionalPropertiesClass(); + //expect(instance).to.be(); + }); + + it('should have the property mapBoolean (base name: "map_boolean")', function() { + // uncomment below and update the code to test the property mapBoolean + //var instance = new OpenApiPetstore.AdditionalPropertiesClass(); + //expect(instance).to.be(); + }); + + it('should have the property mapArrayInteger (base name: "map_array_integer")', function() { + // uncomment below and update the code to test the property mapArrayInteger + //var instance = new OpenApiPetstore.AdditionalPropertiesClass(); + //expect(instance).to.be(); + }); + + it('should have the property mapArrayAnytype (base name: "map_array_anytype")', function() { + // uncomment below and update the code to test the property mapArrayAnytype + //var instance = new OpenApiPetstore.AdditionalPropertiesClass(); + //expect(instance).to.be(); + }); + + it('should have the property mapMapString (base name: "map_map_string")', function() { + // uncomment below and update the code to test the property mapMapString + //var instance = new OpenApiPetstore.AdditionalPropertiesClass(); + //expect(instance).to.be(); + }); + + it('should have the property mapMapAnytype (base name: "map_map_anytype")', function() { + // uncomment below and update the code to test the property mapMapAnytype + //var instance = new OpenApiPetstore.AdditionalPropertiesClass(); + //expect(instance).to.be(); + }); + + it('should have the property anytype1 (base name: "anytype_1")', function() { + // uncomment below and update the code to test the property anytype1 + //var instance = new OpenApiPetstore.AdditionalPropertiesClass(); + //expect(instance).to.be(); + }); + + it('should have the property anytype2 (base name: "anytype_2")', function() { + // uncomment below and update the code to test the property anytype2 + //var instance = new OpenApiPetstore.AdditionalPropertiesClass(); + //expect(instance).to.be(); + }); + + it('should have the property anytype3 (base name: "anytype_3")', function() { + // uncomment below and update the code to test the property anytype3 + //var instance = new OpenApiPetstore.AdditionalPropertiesClass(); //expect(instance).to.be(); }); diff --git a/samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesInteger.spec.js b/samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesInteger.spec.js index 5a9f6dafb2d..bb48c2a4dec 100644 --- a/samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesInteger.spec.js +++ b/samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesInteger.spec.js @@ -16,10 +16,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesNumber.spec.js b/samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesNumber.spec.js index 589efc726fa..ab22daa2f9c 100644 --- a/samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesNumber.spec.js +++ b/samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesNumber.spec.js @@ -16,10 +16,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesObject.spec.js b/samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesObject.spec.js index dd0d45b6cfa..97195ef4d4f 100644 --- a/samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesObject.spec.js +++ b/samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesObject.spec.js @@ -16,10 +16,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesString.spec.js b/samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesString.spec.js index b859c8d9d64..1f2cf9ba828 100644 --- a/samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesString.spec.js +++ b/samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesString.spec.js @@ -16,10 +16,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-promise/test/model/Animal.spec.js b/samples/client/petstore/javascript-promise/test/model/Animal.spec.js index 8995fe76806..dd46eeca4a8 100644 --- a/samples/client/petstore/javascript-promise/test/model/Animal.spec.js +++ b/samples/client/petstore/javascript-promise/test/model/Animal.spec.js @@ -1,45 +1,36 @@ /** - * 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 Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * * Do not edit the class manually. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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) { @@ -61,19 +52,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 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 instane = new SwaggerPetstore.Animal(); + //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 instane = new SwaggerPetstore.Animal(); + //var instance = new OpenApiPetstore.Animal(); //expect(instance).to.be(); }); diff --git a/samples/client/petstore/javascript-promise/test/model/ApiResponse.spec.js b/samples/client/petstore/javascript-promise/test/model/ApiResponse.spec.js index a5c3b354318..80b54d040ba 100644 --- a/samples/client/petstore/javascript-promise/test/model/ApiResponse.spec.js +++ b/samples/client/petstore/javascript-promise/test/model/ApiResponse.spec.js @@ -1,45 +1,36 @@ /** - * 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 Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * * Do not edit the class manually. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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) { @@ -61,25 +52,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 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 SwaggerPetstore.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 SwaggerPetstore.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 SwaggerPetstore.ApiResponse(); + //var instance = new OpenApiPetstore.ApiResponse(); //expect(instance).to.be(); }); diff --git a/samples/client/petstore/javascript-promise/test/model/ArrayOfArrayOfNumberOnly.spec.js b/samples/client/petstore/javascript-promise/test/model/ArrayOfArrayOfNumberOnly.spec.js index 98c97fb0c32..30bd568fcf8 100644 --- a/samples/client/petstore/javascript-promise/test/model/ArrayOfArrayOfNumberOnly.spec.js +++ b/samples/client/petstore/javascript-promise/test/model/ArrayOfArrayOfNumberOnly.spec.js @@ -1,45 +1,36 @@ /** - * Swagger Petstore + * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * * Do not edit the class manually. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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 +52,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 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 instane = new SwaggerPetstore.ArrayOfArrayOfNumberOnly(); + //var instance = new OpenApiPetstore.ArrayOfArrayOfNumberOnly(); //expect(instance).to.be(); }); diff --git a/samples/client/petstore/javascript-promise/test/model/ArrayOfNumberOnly.spec.js b/samples/client/petstore/javascript-promise/test/model/ArrayOfNumberOnly.spec.js index e19fd12235e..2719e03ea99 100644 --- a/samples/client/petstore/javascript-promise/test/model/ArrayOfNumberOnly.spec.js +++ b/samples/client/petstore/javascript-promise/test/model/ArrayOfNumberOnly.spec.js @@ -1,45 +1,36 @@ /** - * Swagger Petstore + * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * * Do not edit the class manually. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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 +52,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 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 instane = new SwaggerPetstore.ArrayOfNumberOnly(); + //var instance = new OpenApiPetstore.ArrayOfNumberOnly(); //expect(instance).to.be(); }); diff --git a/samples/client/petstore/javascript-promise/test/model/ArrayTest.spec.js b/samples/client/petstore/javascript-promise/test/model/ArrayTest.spec.js index 3db84909832..6808eecd3fd 100644 --- a/samples/client/petstore/javascript-promise/test/model/ArrayTest.spec.js +++ b/samples/client/petstore/javascript-promise/test/model/ArrayTest.spec.js @@ -1,45 +1,36 @@ /** - * 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 Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * * Do not edit the class manually. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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) { @@ -61,25 +52,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 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 instane = new SwaggerPetstore.ArrayTest(); + //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 instane = new SwaggerPetstore.ArrayTest(); + //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 instane = new SwaggerPetstore.ArrayTest(); + //var instance = new OpenApiPetstore.ArrayTest(); //expect(instance).to.be(); }); diff --git a/samples/client/petstore/javascript-promise/test/model/Capitalization.spec.js b/samples/client/petstore/javascript-promise/test/model/Capitalization.spec.js index f1aa695c3fd..79e02c9aeb5 100644 --- a/samples/client/petstore/javascript-promise/test/model/Capitalization.spec.js +++ b/samples/client/petstore/javascript-promise/test/model/Capitalization.spec.js @@ -1,12 +1,14 @@ /** - * Swagger Petstore + * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * * Do not edit the class manually. * */ @@ -14,21 +16,21 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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 +52,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 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 instane = new SwaggerPetstore.Capitalization(); + //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 instane = new SwaggerPetstore.Capitalization(); + //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 instane = new SwaggerPetstore.Capitalization(); + //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 instane = new SwaggerPetstore.Capitalization(); + //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 instane = new SwaggerPetstore.Capitalization(); + //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 instane = new SwaggerPetstore.Capitalization(); + //var instance = new OpenApiPetstore.Capitalization(); //expect(instance).to.be(); }); diff --git a/samples/client/petstore/javascript-promise/test/model/Cat.spec.js b/samples/client/petstore/javascript-promise/test/model/Cat.spec.js index 6d95151915a..3dcafaebf45 100644 --- a/samples/client/petstore/javascript-promise/test/model/Cat.spec.js +++ b/samples/client/petstore/javascript-promise/test/model/Cat.spec.js @@ -1,45 +1,36 @@ /** - * 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 Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * * Do not edit the class manually. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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) { @@ -61,13 +52,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 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 instane = new SwaggerPetstore.Cat(); + //var instance = new OpenApiPetstore.Cat(); //expect(instance).to.be(); }); diff --git a/samples/client/petstore/javascript-promise/test/model/Category.spec.js b/samples/client/petstore/javascript-promise/test/model/Category.spec.js index dfd425f001c..af78800f910 100644 --- a/samples/client/petstore/javascript-promise/test/model/Category.spec.js +++ b/samples/client/petstore/javascript-promise/test/model/Category.spec.js @@ -1,45 +1,36 @@ /** - * 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 Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * * Do not edit the class manually. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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) { @@ -61,19 +52,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 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 SwaggerPetstore.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 SwaggerPetstore.Category(); + //var instance = new OpenApiPetstore.Category(); //expect(instance).to.be(); }); diff --git a/samples/client/petstore/javascript-promise/test/model/ClassModel.spec.js b/samples/client/petstore/javascript-promise/test/model/ClassModel.spec.js index 5ee2e49a0de..a87944b84b1 100644 --- a/samples/client/petstore/javascript-promise/test/model/ClassModel.spec.js +++ b/samples/client/petstore/javascript-promise/test/model/ClassModel.spec.js @@ -1,12 +1,14 @@ /** - * Swagger Petstore + * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * * Do not edit the class manually. * */ @@ -14,21 +16,21 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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 +52,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 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 instane = new SwaggerPetstore.ClassModel(); + //var instance = new OpenApiPetstore.ClassModel(); //expect(instance).to.be(); }); diff --git a/samples/client/petstore/javascript-promise/test/model/Client.spec.js b/samples/client/petstore/javascript-promise/test/model/Client.spec.js index 7bba630a29c..2df55fe774c 100644 --- a/samples/client/petstore/javascript-promise/test/model/Client.spec.js +++ b/samples/client/petstore/javascript-promise/test/model/Client.spec.js @@ -1,45 +1,36 @@ /** - * Swagger Petstore + * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * * Do not edit the class manually. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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 +52,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 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 instane = new SwaggerPetstore.Client(); + //var instance = new OpenApiPetstore.Client(); //expect(instance).to.be(); }); diff --git a/samples/client/petstore/javascript-promise/test/model/Dog.spec.js b/samples/client/petstore/javascript-promise/test/model/Dog.spec.js index 35beb92fbad..b652c44fa44 100644 --- a/samples/client/petstore/javascript-promise/test/model/Dog.spec.js +++ b/samples/client/petstore/javascript-promise/test/model/Dog.spec.js @@ -1,45 +1,36 @@ /** - * 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 Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * * Do not edit the class manually. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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) { @@ -61,13 +52,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 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 instane = new SwaggerPetstore.Dog(); + //var instance = new OpenApiPetstore.Dog(); //expect(instance).to.be(); }); diff --git a/samples/client/petstore/javascript-promise/test/model/EnumArrays.spec.js b/samples/client/petstore/javascript-promise/test/model/EnumArrays.spec.js index 2d26fb9920f..7d8cc8d61c9 100644 --- a/samples/client/petstore/javascript-promise/test/model/EnumArrays.spec.js +++ b/samples/client/petstore/javascript-promise/test/model/EnumArrays.spec.js @@ -1,45 +1,36 @@ /** - * Swagger Petstore + * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * * Do not edit the class manually. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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 +52,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 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 instane = new SwaggerPetstore.EnumArrays(); + //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 instane = new SwaggerPetstore.EnumArrays(); + //var instance = new OpenApiPetstore.EnumArrays(); //expect(instance).to.be(); }); diff --git a/samples/client/petstore/javascript-promise/test/model/EnumClass.spec.js b/samples/client/petstore/javascript-promise/test/model/EnumClass.spec.js index 3f7f5365c05..99fc34743cb 100644 --- a/samples/client/petstore/javascript-promise/test/model/EnumClass.spec.js +++ b/samples/client/petstore/javascript-promise/test/model/EnumClass.spec.js @@ -1,39 +1,30 @@ /** - * 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 Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * * Do not edit the class manually. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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; @@ -60,8 +51,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 instance = new OpenApiPetstore.EnumClass(); + //expect(instance).to.be.a(OpenApiPetstore.EnumClass); }); }); diff --git a/samples/client/petstore/javascript-promise/test/model/EnumTest.spec.js b/samples/client/petstore/javascript-promise/test/model/EnumTest.spec.js index 4aacb403ba9..df04077b298 100644 --- a/samples/client/petstore/javascript-promise/test/model/EnumTest.spec.js +++ b/samples/client/petstore/javascript-promise/test/model/EnumTest.spec.js @@ -1,45 +1,36 @@ /** - * 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 Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * * Do not edit the class manually. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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) { @@ -61,25 +52,37 @@ 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 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 instane = new SwaggerPetstore.EnumTest(); + //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 instane = new SwaggerPetstore.EnumTest(); + //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 instane = new SwaggerPetstore.EnumTest(); + //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(); }); diff --git a/samples/client/petstore/javascript-promise/test/model/File.spec.js b/samples/client/petstore/javascript-promise/test/model/File.spec.js index 67f2956c397..6be3d7942aa 100644 --- a/samples/client/petstore/javascript-promise/test/model/File.spec.js +++ b/samples/client/petstore/javascript-promise/test/model/File.spec.js @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * - * OpenAPI Generator version: 3.2.0-SNAPSHOT + * OpenAPI Generator version: 4.0.0-SNAPSHOT * * Do not edit the class manually. * @@ -16,10 +16,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-promise/test/model/FileSchemaTestClass.spec.js b/samples/client/petstore/javascript-promise/test/model/FileSchemaTestClass.spec.js index 74f68c03ff6..52d4cddd326 100644 --- a/samples/client/petstore/javascript-promise/test/model/FileSchemaTestClass.spec.js +++ b/samples/client/petstore/javascript-promise/test/model/FileSchemaTestClass.spec.js @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * - * OpenAPI Generator version: 3.2.0-SNAPSHOT + * OpenAPI Generator version: 4.0.0-SNAPSHOT * * Do not edit the class manually. * @@ -16,10 +16,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-promise/test/model/FormatTest.spec.js b/samples/client/petstore/javascript-promise/test/model/FormatTest.spec.js index b4c3d199b47..f7255fb1f55 100644 --- a/samples/client/petstore/javascript-promise/test/model/FormatTest.spec.js +++ b/samples/client/petstore/javascript-promise/test/model/FormatTest.spec.js @@ -1,45 +1,36 @@ /** - * 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 Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * * Do not edit the class manually. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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) { @@ -61,85 +52,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 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 instane = new SwaggerPetstore.FormatTest(); + //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 instane = new SwaggerPetstore.FormatTest(); + //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 instane = new SwaggerPetstore.FormatTest(); + //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 instane = new SwaggerPetstore.FormatTest(); + //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 instane = new SwaggerPetstore.FormatTest(); + //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 instane = new SwaggerPetstore.FormatTest(); + //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 instane = new SwaggerPetstore.FormatTest(); + //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 instane = new SwaggerPetstore.FormatTest(); + //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 instane = new SwaggerPetstore.FormatTest(); + //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 instane = new SwaggerPetstore.FormatTest(); + //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 instane = new SwaggerPetstore.FormatTest(); + //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 instane = new SwaggerPetstore.FormatTest(); + //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 instane = new SwaggerPetstore.FormatTest(); + //var instance = new OpenApiPetstore.FormatTest(); //expect(instance).to.be(); }); diff --git a/samples/client/petstore/javascript-promise/test/model/HasOnlyReadOnly.spec.js b/samples/client/petstore/javascript-promise/test/model/HasOnlyReadOnly.spec.js index 6e9d87fd4a5..4ae5235ec48 100644 --- a/samples/client/petstore/javascript-promise/test/model/HasOnlyReadOnly.spec.js +++ b/samples/client/petstore/javascript-promise/test/model/HasOnlyReadOnly.spec.js @@ -1,45 +1,36 @@ /** - * Swagger Petstore + * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * * Do not edit the class manually. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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 +52,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 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 instane = new SwaggerPetstore.HasOnlyReadOnly(); + //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 instane = new SwaggerPetstore.HasOnlyReadOnly(); + //var instance = new OpenApiPetstore.HasOnlyReadOnly(); //expect(instance).to.be(); }); diff --git a/samples/client/petstore/javascript-promise/test/model/List.spec.js b/samples/client/petstore/javascript-promise/test/model/List.spec.js index e73583f9ebc..ec579597176 100644 --- a/samples/client/petstore/javascript-promise/test/model/List.spec.js +++ b/samples/client/petstore/javascript-promise/test/model/List.spec.js @@ -1,45 +1,36 @@ /** - * Swagger Petstore + * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * * Do not edit the class manually. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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 +52,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 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 instane = new SwaggerPetstore.List(); + it('should have the property _123list (base name: "123-list")', function() { + // uncomment below and update the code to test the property _123list + //var instance = new OpenApiPetstore.List(); //expect(instance).to.be(); }); diff --git a/samples/client/petstore/javascript-promise/test/model/MapTest.spec.js b/samples/client/petstore/javascript-promise/test/model/MapTest.spec.js index c9faa01895a..cefaa92b8fd 100644 --- a/samples/client/petstore/javascript-promise/test/model/MapTest.spec.js +++ b/samples/client/petstore/javascript-promise/test/model/MapTest.spec.js @@ -1,45 +1,36 @@ /** - * Swagger Petstore + * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * * Do not edit the class manually. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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,19 +52,31 @@ 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 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 instane = new SwaggerPetstore.MapTest(); + //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 instane = new SwaggerPetstore.MapTest(); + //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(); }); diff --git a/samples/client/petstore/javascript-promise/test/model/MixedPropertiesAndAdditionalPropertiesClass.spec.js b/samples/client/petstore/javascript-promise/test/model/MixedPropertiesAndAdditionalPropertiesClass.spec.js index 4cc81eb67d6..f5152276441 100644 --- a/samples/client/petstore/javascript-promise/test/model/MixedPropertiesAndAdditionalPropertiesClass.spec.js +++ b/samples/client/petstore/javascript-promise/test/model/MixedPropertiesAndAdditionalPropertiesClass.spec.js @@ -1,45 +1,36 @@ /** - * 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 Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * * Do not edit the class manually. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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) { @@ -61,25 +52,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 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 instane = new SwaggerPetstore.MixedPropertiesAndAdditionalPropertiesClass(); + //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 instane = new SwaggerPetstore.MixedPropertiesAndAdditionalPropertiesClass(); + //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 instane = new SwaggerPetstore.MixedPropertiesAndAdditionalPropertiesClass(); + //var instance = new OpenApiPetstore.MixedPropertiesAndAdditionalPropertiesClass(); //expect(instance).to.be(); }); diff --git a/samples/client/petstore/javascript-promise/test/model/Model200Response.spec.js b/samples/client/petstore/javascript-promise/test/model/Model200Response.spec.js index 1c984438224..4ada7bbf24a 100644 --- a/samples/client/petstore/javascript-promise/test/model/Model200Response.spec.js +++ b/samples/client/petstore/javascript-promise/test/model/Model200Response.spec.js @@ -1,45 +1,36 @@ /** - * 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 Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * * Do not edit the class manually. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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) { @@ -61,13 +52,19 @@ 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 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 instane = new SwaggerPetstore.Model200Response(); + //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(); }); diff --git a/samples/client/petstore/javascript-promise/test/model/ModelReturn.spec.js b/samples/client/petstore/javascript-promise/test/model/ModelReturn.spec.js index 4dafa0d1446..955895d3ec9 100644 --- a/samples/client/petstore/javascript-promise/test/model/ModelReturn.spec.js +++ b/samples/client/petstore/javascript-promise/test/model/ModelReturn.spec.js @@ -1,45 +1,36 @@ /** - * 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 Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * * Do not edit the class manually. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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) { @@ -61,13 +52,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 instance = 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 instance = new OpenApiPetstore.ModelReturn(); //expect(instance).to.be(); }); diff --git a/samples/client/petstore/javascript-promise/test/model/Name.spec.js b/samples/client/petstore/javascript-promise/test/model/Name.spec.js index ba66272d894..2335871808e 100644 --- a/samples/client/petstore/javascript-promise/test/model/Name.spec.js +++ b/samples/client/petstore/javascript-promise/test/model/Name.spec.js @@ -1,45 +1,36 @@ /** - * 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 Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * * Do not edit the class manually. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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) { @@ -61,31 +52,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 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 instane = new SwaggerPetstore.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 instane = new SwaggerPetstore.Name(); + //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 instane = new SwaggerPetstore.Name(); + //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 instane = new SwaggerPetstore.Name(); + 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(); }); diff --git a/samples/client/petstore/javascript-promise/test/model/NumberOnly.spec.js b/samples/client/petstore/javascript-promise/test/model/NumberOnly.spec.js index f8b8327a2ee..8d903c72697 100644 --- a/samples/client/petstore/javascript-promise/test/model/NumberOnly.spec.js +++ b/samples/client/petstore/javascript-promise/test/model/NumberOnly.spec.js @@ -1,45 +1,36 @@ /** - * Swagger Petstore + * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * * Do not edit the class manually. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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 +52,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 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 instane = new SwaggerPetstore.NumberOnly(); + //var instance = new OpenApiPetstore.NumberOnly(); //expect(instance).to.be(); }); diff --git a/samples/client/petstore/javascript-promise/test/model/Order.spec.js b/samples/client/petstore/javascript-promise/test/model/Order.spec.js index bc27c00cabd..1a5765958a4 100644 --- a/samples/client/petstore/javascript-promise/test/model/Order.spec.js +++ b/samples/client/petstore/javascript-promise/test/model/Order.spec.js @@ -1,45 +1,36 @@ /** - * 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 Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * * Do not edit the class manually. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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) { @@ -61,43 +52,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 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 SwaggerPetstore.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 SwaggerPetstore.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 SwaggerPetstore.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 SwaggerPetstore.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 SwaggerPetstore.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 SwaggerPetstore.Order(); + //var instance = new OpenApiPetstore.Order(); //expect(instance).to.be(); }); diff --git a/samples/client/petstore/javascript-promise/test/model/OuterBoolean.spec.js b/samples/client/petstore/javascript-promise/test/model/OuterBoolean.spec.js deleted file mode 100644 index 765f758cd09..00000000000 --- a/samples/client/petstore/javascript-promise/test/model/OuterBoolean.spec.js +++ /dev/null @@ -1,60 +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 - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SwaggerPetstore); - } -}(this, function(expect, SwaggerPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - // OuterBoolean is not a member of SwaggerPetstore - //instance = new SwaggerPetstore.OuterBoolean(); - }); - - 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('OuterBoolean', function() { - it('should create an instance of OuterBoolean', function() { - // uncomment below and update the code to test OuterBoolean - //var instane = new SwaggerPetstore.OuterBoolean(); - //expect(instance).to.be.a(SwaggerPetstore.OuterBoolean); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-promise/test/model/OuterComposite.spec.js b/samples/client/petstore/javascript-promise/test/model/OuterComposite.spec.js index 6fd830b7c0e..ddce9fa8c9a 100644 --- a/samples/client/petstore/javascript-promise/test/model/OuterComposite.spec.js +++ b/samples/client/petstore/javascript-promise/test/model/OuterComposite.spec.js @@ -1,12 +1,14 @@ /** - * Swagger Petstore + * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * * Do not edit the class manually. * */ @@ -14,21 +16,21 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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 +52,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 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 instane = new SwaggerPetstore.OuterComposite(); + //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 instane = new SwaggerPetstore.OuterComposite(); + //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 instane = new SwaggerPetstore.OuterComposite(); + //var instance = new OpenApiPetstore.OuterComposite(); //expect(instance).to.be(); }); diff --git a/samples/client/petstore/javascript-promise/test/model/OuterEnum.spec.js b/samples/client/petstore/javascript-promise/test/model/OuterEnum.spec.js index 14c26a3aef5..a094fbd5a5d 100644 --- a/samples/client/petstore/javascript-promise/test/model/OuterEnum.spec.js +++ b/samples/client/petstore/javascript-promise/test/model/OuterEnum.spec.js @@ -1,12 +1,14 @@ /** - * Swagger Petstore + * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * * Do not edit the class manually. * */ @@ -14,15 +16,15 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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 +51,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 instance = new OpenApiPetstore.OuterEnum(); + //expect(instance).to.be.a(OpenApiPetstore.OuterEnum); }); }); diff --git a/samples/client/petstore/javascript-promise/test/model/OuterNumber.spec.js b/samples/client/petstore/javascript-promise/test/model/OuterNumber.spec.js deleted file mode 100644 index 2466fbe6dc9..00000000000 --- a/samples/client/petstore/javascript-promise/test/model/OuterNumber.spec.js +++ /dev/null @@ -1,60 +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 - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SwaggerPetstore); - } -}(this, function(expect, SwaggerPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - // OuterNumber is not a member of SwaggerPetstore - //instance = new SwaggerPetstore.OuterNumber(); - }); - - 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('OuterNumber', function() { - it('should create an instance of OuterNumber', function() { - // uncomment below and update the code to test OuterNumber - //var instane = new SwaggerPetstore.OuterNumber(); - //expect(instance).to.be.a(SwaggerPetstore.OuterNumber); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-promise/test/model/OuterString.spec.js b/samples/client/petstore/javascript-promise/test/model/OuterString.spec.js deleted file mode 100644 index 46d6c579bc9..00000000000 --- a/samples/client/petstore/javascript-promise/test/model/OuterString.spec.js +++ /dev/null @@ -1,60 +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 - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SwaggerPetstore); - } -}(this, function(expect, SwaggerPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - // OuterString is not a member of SwaggerPetstore - //instance = new SwaggerPetstore.OuterString(); - }); - - 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('OuterString', function() { - it('should create an instance of OuterString', function() { - // uncomment below and update the code to test OuterString - //var instane = new SwaggerPetstore.OuterString(); - //expect(instance).to.be.a(SwaggerPetstore.OuterString); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-promise/test/model/Pet.spec.js b/samples/client/petstore/javascript-promise/test/model/Pet.spec.js index f6c68015682..16d08337b97 100644 --- a/samples/client/petstore/javascript-promise/test/model/Pet.spec.js +++ b/samples/client/petstore/javascript-promise/test/model/Pet.spec.js @@ -1,45 +1,36 @@ /** - * 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 Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * * Do not edit the class manually. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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) { @@ -61,43 +52,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 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 SwaggerPetstore.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 SwaggerPetstore.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 SwaggerPetstore.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 SwaggerPetstore.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 SwaggerPetstore.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 SwaggerPetstore.Pet(); + //var instance = new OpenApiPetstore.Pet(); //expect(instance).to.be(); }); diff --git a/samples/client/petstore/javascript-promise/test/model/ReadOnlyFirst.spec.js b/samples/client/petstore/javascript-promise/test/model/ReadOnlyFirst.spec.js index 2a576c59f8c..b25f36aeb55 100644 --- a/samples/client/petstore/javascript-promise/test/model/ReadOnlyFirst.spec.js +++ b/samples/client/petstore/javascript-promise/test/model/ReadOnlyFirst.spec.js @@ -1,45 +1,36 @@ /** - * 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 Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * * Do not edit the class manually. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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) { @@ -61,19 +52,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 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 instane = new SwaggerPetstore.ReadOnlyFirst(); + //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 instane = new SwaggerPetstore.ReadOnlyFirst(); + //var instance = new OpenApiPetstore.ReadOnlyFirst(); //expect(instance).to.be(); }); diff --git a/samples/client/petstore/javascript-promise/test/model/SpecialModelName.spec.js b/samples/client/petstore/javascript-promise/test/model/SpecialModelName.spec.js index 0f6b7cbb8ef..9b9e8a128f0 100644 --- a/samples/client/petstore/javascript-promise/test/model/SpecialModelName.spec.js +++ b/samples/client/petstore/javascript-promise/test/model/SpecialModelName.spec.js @@ -1,45 +1,36 @@ /** - * 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 Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * * Do not edit the class manually. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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) { @@ -61,13 +52,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 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 instane = new SwaggerPetstore.SpecialModelName(); + //var instance = new OpenApiPetstore.SpecialModelName(); //expect(instance).to.be(); }); diff --git a/samples/client/petstore/javascript-promise/test/model/Tag.spec.js b/samples/client/petstore/javascript-promise/test/model/Tag.spec.js index 6ab32cf5b1f..2cfed4bd907 100644 --- a/samples/client/petstore/javascript-promise/test/model/Tag.spec.js +++ b/samples/client/petstore/javascript-promise/test/model/Tag.spec.js @@ -1,45 +1,36 @@ /** - * 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 Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * * Do not edit the class manually. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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) { @@ -61,19 +52,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 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 SwaggerPetstore.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 SwaggerPetstore.Tag(); + //var instance = new OpenApiPetstore.Tag(); //expect(instance).to.be(); }); diff --git a/samples/client/petstore/javascript-promise/test/model/TypeHolderDefault.spec.js b/samples/client/petstore/javascript-promise/test/model/TypeHolderDefault.spec.js index ac8abe85771..e6618ea65ac 100644 --- a/samples/client/petstore/javascript-promise/test/model/TypeHolderDefault.spec.js +++ b/samples/client/petstore/javascript-promise/test/model/TypeHolderDefault.spec.js @@ -16,10 +16,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-promise/test/model/TypeHolderExample.spec.js b/samples/client/petstore/javascript-promise/test/model/TypeHolderExample.spec.js index fc17a6605ae..5f705a61a99 100644 --- a/samples/client/petstore/javascript-promise/test/model/TypeHolderExample.spec.js +++ b/samples/client/petstore/javascript-promise/test/model/TypeHolderExample.spec.js @@ -16,10 +16,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-promise/test/model/User.spec.js b/samples/client/petstore/javascript-promise/test/model/User.spec.js index 42ae42a3d68..c7b88dbe10b 100644 --- a/samples/client/petstore/javascript-promise/test/model/User.spec.js +++ b/samples/client/petstore/javascript-promise/test/model/User.spec.js @@ -1,45 +1,36 @@ /** - * 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 Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * * Do not edit the class manually. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/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) { @@ -61,55 +52,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 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 SwaggerPetstore.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 SwaggerPetstore.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 SwaggerPetstore.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 SwaggerPetstore.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 SwaggerPetstore.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 SwaggerPetstore.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 SwaggerPetstore.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 SwaggerPetstore.User(); + //var instance = new OpenApiPetstore.User(); //expect(instance).to.be(); }); diff --git a/samples/client/petstore/javascript-promise/test/model/XmlItem.spec.js b/samples/client/petstore/javascript-promise/test/model/XmlItem.spec.js index da3c6aa50e5..75d5350ebb6 100644 --- a/samples/client/petstore/javascript-promise/test/model/XmlItem.spec.js +++ b/samples/client/petstore/javascript-promise/test/model/XmlItem.spec.js @@ -16,10 +16,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript/docs/AnimalFarm.md b/samples/client/petstore/javascript/docs/AnimalFarm.md deleted file mode 100644 index ab153513ca9..00000000000 --- a/samples/client/petstore/javascript/docs/AnimalFarm.md +++ /dev/null @@ -1,7 +0,0 @@ -# OpenApiPetstore.AnimalFarm - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - - diff --git a/samples/client/petstore/javascript/docs/StringBooleanMap.md b/samples/client/petstore/javascript/docs/StringBooleanMap.md deleted file mode 100644 index 195a7d57677..00000000000 --- a/samples/client/petstore/javascript/docs/StringBooleanMap.md +++ /dev/null @@ -1,7 +0,0 @@ -# OpenApiPetstore.StringBooleanMap - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - - diff --git a/samples/client/petstore/javascript/package.json b/samples/client/petstore/javascript/package.json index 86b2083c680..5a24b0488c5 100644 --- a/samples/client/petstore/javascript/package.json +++ b/samples/client/petstore/javascript/package.json @@ -5,7 +5,7 @@ "license": "Apache-2.0", "main": "src/index.js", "scripts": { - "test": "./node_modules/mocha/bin/mocha --recursive" + "test": "mocha --recursive" }, "browser": { "fs": false @@ -14,8 +14,8 @@ "superagent": "3.7.0" }, "devDependencies": { - "expect.js": "~0.3.1", + "expect.js": "^0.3.1", "mocha": "^5.2.0", - "sinon": "1.17.3" + "sinon": "^7.2.0" } } diff --git a/samples/client/petstore/javascript/src/model/AnimalFarm.js b/samples/client/petstore/javascript/src/model/AnimalFarm.js deleted file mode 100644 index ad8a9a2549b..00000000000 --- a/samples/client/petstore/javascript/src/model/AnimalFarm.js +++ /dev/null @@ -1,76 +0,0 @@ -/** - * 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 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 3.3.4-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['ApiClient', 'model/Animal'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./Animal')); - } else { - // Browser globals (root is window) - if (!root.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.AnimalFarm = factory(root.OpenApiPetstore.ApiClient, root.OpenApiPetstore.Animal); - } -}(this, function(ApiClient, Animal) { - 'use strict'; - - - - /** - * The AnimalFarm model module. - * @module model/AnimalFarm - * @version 1.0.0 - */ - - /** - * Constructs a new AnimalFarm. - * @alias module:model/AnimalFarm - * @class - * @extends Array - */ - var exports = function() { - var _this = this; - _this = new Array(); - Object.setPrototypeOf(_this, exports); - - return _this; - }; - - /** - * Constructs a AnimalFarm 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/AnimalFarm} obj Optional instance to populate. - * @return {module:model/AnimalFarm} The populated AnimalFarm instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - ApiClient.constructFromObject(data, obj, 'Animal'); - } - return obj; - } - - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript/src/model/StringBooleanMap.js b/samples/client/petstore/javascript/src/model/StringBooleanMap.js deleted file mode 100644 index 1bc5c4e59c6..00000000000 --- a/samples/client/petstore/javascript/src/model/StringBooleanMap.js +++ /dev/null @@ -1,74 +0,0 @@ -/** - * 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 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 3.3.4-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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.StringBooleanMap = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The StringBooleanMap model module. - * @module model/StringBooleanMap - * @version 1.0.0 - */ - - /** - * Constructs a new StringBooleanMap. - * @alias module:model/StringBooleanMap - * @class - * @extends Object - */ - var exports = function() { - var _this = this; - - return _this; - }; - - /** - * Constructs a StringBooleanMap 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/StringBooleanMap} obj Optional instance to populate. - * @return {module:model/StringBooleanMap} The populated StringBooleanMap instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - ApiClient.constructFromObject(data, obj, 'Boolean'); - } - return obj; - } - - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript/test/api/AnotherFakeApi.spec.js b/samples/client/petstore/javascript/test/api/AnotherFakeApi.spec.js index 8ab4cba4fa7..4405452f992 100644 --- a/samples/client/petstore/javascript/test/api/AnotherFakeApi.spec.js +++ b/samples/client/petstore/javascript/test/api/AnotherFakeApi.spec.js @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * - * OpenAPI Generator version: 3.0.0-SNAPSHOT + * OpenAPI Generator version: 4.0.0-SNAPSHOT * * Do not edit the class manually. * @@ -16,10 +16,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); @@ -50,10 +50,10 @@ } describe('AnotherFakeApi', function() { - describe('testSpecialTags', function() { - it('should call testSpecialTags successfully', function(done) { - //uncomment below and update the code to test testSpecialTags - //instance.testSpecialTags(function(error) { + describe('call123testSpecialTags', function() { + it('should call call123testSpecialTags successfully', function(done) { + //uncomment below and update the code to test call123testSpecialTags + //instance.call123testSpecialTags(function(error) { // if (error) throw error; //expect().to.be(); //}); diff --git a/samples/client/petstore/javascript/test/api/FakeApi.spec.js b/samples/client/petstore/javascript/test/api/FakeApi.spec.js index af78655426d..22fe0a1019e 100644 --- a/samples/client/petstore/javascript/test/api/FakeApi.spec.js +++ b/samples/client/petstore/javascript/test/api/FakeApi.spec.js @@ -1,21 +1,36 @@ +/** + * 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 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * + * Do not edit the class manually. + * + */ + (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) - factory(root.expect, root.OpenAPIPetstore); + factory(root.expect, root.OpenApiPetstore); } -}(this, function(expect, OpenAPIPetstore) { +}(this, function(expect, OpenApiPetstore) { 'use strict'; var instance; beforeEach(function() { - instance = new OpenAPIPetstore.FakeApi(); + instance = new OpenApiPetstore.FakeApi(); }); var getProperty = function(object, getter, property) { @@ -35,10 +50,130 @@ } describe('FakeApi', function() { + describe('createXmlItem', function() { + it('should call createXmlItem successfully', function(done) { + //uncomment below and update the code to test createXmlItem + //instance.createXmlItem(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('fakeOuterBooleanSerialize', function() { + it('should call fakeOuterBooleanSerialize successfully', function(done) { + //uncomment below and update the code to test fakeOuterBooleanSerialize + //instance.fakeOuterBooleanSerialize(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('fakeOuterCompositeSerialize', function() { + it('should call fakeOuterCompositeSerialize successfully', function(done) { + //uncomment below and update the code to test fakeOuterCompositeSerialize + //instance.fakeOuterCompositeSerialize(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('fakeOuterNumberSerialize', function() { + it('should call fakeOuterNumberSerialize successfully', function(done) { + //uncomment below and update the code to test fakeOuterNumberSerialize + //instance.fakeOuterNumberSerialize(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('fakeOuterStringSerialize', function() { + it('should call fakeOuterStringSerialize successfully', function(done) { + //uncomment below and update the code to test fakeOuterStringSerialize + //instance.fakeOuterStringSerialize(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('testBodyWithFileSchema', function() { + it('should call testBodyWithFileSchema successfully', function(done) { + //uncomment below and update the code to test testBodyWithFileSchema + //instance.testBodyWithFileSchema(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('testBodyWithQueryParams', function() { + it('should call testBodyWithQueryParams successfully', function(done) { + //uncomment below and update the code to test testBodyWithQueryParams + //instance.testBodyWithQueryParams(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('testClientModel', function() { + it('should call testClientModel successfully', function(done) { + //uncomment below and update the code to test testClientModel + //instance.testClientModel(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); describe('testEndpointParameters', function() { it('should call testEndpointParameters successfully', function(done) { //uncomment below and update the code to test testEndpointParameters - //instance.testEndpointParameters(pet, function(error) { + //instance.testEndpointParameters(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('testEnumParameters', function() { + it('should call testEnumParameters successfully', function(done) { + //uncomment below and update the code to test testEnumParameters + //instance.testEnumParameters(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('testGroupParameters', function() { + it('should call testGroupParameters successfully', function(done) { + //uncomment below and update the code to test testGroupParameters + //instance.testGroupParameters(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('testInlineAdditionalProperties', function() { + it('should call testInlineAdditionalProperties successfully', function(done) { + //uncomment below and update the code to test testInlineAdditionalProperties + //instance.testInlineAdditionalProperties(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('testJsonFormData', function() { + it('should call testJsonFormData successfully', function(done) { + //uncomment below and update the code to test testJsonFormData + //instance.testJsonFormData(function(error) { // if (error) throw error; //expect().to.be(); //}); diff --git a/samples/client/petstore/javascript/test/api/FakeClassnameTags123Api.spec.js b/samples/client/petstore/javascript/test/api/FakeClassnameTags123Api.spec.js index 8f25ee46450..29bd5fbbaf2 100644 --- a/samples/client/petstore/javascript/test/api/FakeClassnameTags123Api.spec.js +++ b/samples/client/petstore/javascript/test/api/FakeClassnameTags123Api.spec.js @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * - * OpenAPI Generator version: 3.0.0-SNAPSHOT + * OpenAPI Generator version: 4.0.0-SNAPSHOT * * Do not edit the class manually. * @@ -16,10 +16,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript/test/api/PetApi.spec.js b/samples/client/petstore/javascript/test/api/PetApi.spec.js index b133ad10229..360453a74bb 100644 --- a/samples/client/petstore/javascript/test/api/PetApi.spec.js +++ b/samples/client/petstore/javascript/test/api/PetApi.spec.js @@ -1,21 +1,36 @@ +/** + * 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 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * + * Do not edit the class manually. + * + */ + (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) - factory(root.expect, root.OpenAPIPetstore); + factory(root.expect, root.OpenApiPetstore); } -}(this, function(expect, OpenAPIPetstore) { +}(this, function(expect, OpenApiPetstore) { 'use strict'; - var api; + var instance; beforeEach(function() { - api = new OpenAPIPetstore.PetApi(); + instance = new OpenApiPetstore.PetApi(); }); var getProperty = function(object, getter, property) { @@ -34,79 +49,97 @@ object[property] = value; } - var createRandomPet = function() { - var id = new Date().getTime(); - var pet = new OpenAPIPetstore.Pet(); - setProperty(pet, "setId", "id", id); - setProperty(pet, "setName", "name", "pet" + id); - - var category = new OpenAPIPetstore.Category(); - setProperty(category, "setId", "id", id); - setProperty(category, "setName", "name", "category" + id); - setProperty(pet, "setCategory", "category", category); - - setProperty(pet, "setStatus", "status", "available"); - var photos = ["http://foo.bar.com/1", "http://foo.bar.com/2"]; - setProperty(pet, "setPhotoUrls", "photoUrls", photos); - - return pet; - }; - describe('PetApi', function() { - it('should create and get pet', function(done) { - var pet = createRandomPet(); - api.addPet(pet, function(error) { - if (error) throw error; - - api.getPetById(pet.id, function(error, fetched, response) { - if (error) throw error; - expect(response.status).to.be(200); - expect(response.ok).to.be(true); - expect(response.get('Content-Type')).to.be('application/json'); - - 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(OpenAPIPetstore.Category); - expect(getProperty(getProperty(fetched, "getCategory", "category"), "getName", "name")) - .to.be(getProperty(getProperty(pet, "getCategory", "category"), "getName", "name")); - - api.deletePet(pet.id); - done(); - }); + describe('addPet', function() { + it('should call addPet successfully', function(done) { + //uncomment below and update the code to test addPet + //instance.addPet(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); }); }); - - /* commented out the following as the fake endpoint has been removed from the spec - * we'll add it back after updating the Petstore server - it('getPetByIdInObject', function(done) { - var pet = createRandomPet(); - api.addPet({body: pet}, function(error) { - if (error) throw error; - - api.getPetByIdInObject(pet.id, function(error, fetched) { - if (error) throw error; - - 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(OpenAPIPetstore.Category); - expect(categoryObj.id) - .to.be(getProperty(getProperty(pet, "getCategory", "category"), "getId", "id")); - expect(categoryObj.name) - .to.be(getProperty(getProperty(pet, "getCategory", "category"), "getName", "name")); - - api.deletePet(pet.id); - done(); - }); + describe('deletePet', function() { + it('should call deletePet successfully', function(done) { + //uncomment below and update the code to test deletePet + //instance.deletePet(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('findPetsByStatus', function() { + it('should call findPetsByStatus successfully', function(done) { + //uncomment below and update the code to test findPetsByStatus + //instance.findPetsByStatus(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('findPetsByTags', function() { + it('should call findPetsByTags successfully', function(done) { + //uncomment below and update the code to test findPetsByTags + //instance.findPetsByTags(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getPetById', function() { + it('should call getPetById successfully', function(done) { + //uncomment below and update the code to test getPetById + //instance.getPetById(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('updatePet', function() { + it('should call updatePet successfully', function(done) { + //uncomment below and update the code to test updatePet + //instance.updatePet(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('updatePetWithForm', function() { + it('should call updatePetWithForm successfully', function(done) { + //uncomment below and update the code to test updatePetWithForm + //instance.updatePetWithForm(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('uploadFile', function() { + it('should call uploadFile successfully', function(done) { + //uncomment below and update the code to test uploadFile + //instance.uploadFile(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('uploadFileWithRequiredFile', function() { + it('should call uploadFileWithRequiredFile successfully', function(done) { + //uncomment below and update the code to test uploadFileWithRequiredFile + //instance.uploadFileWithRequiredFile(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); }); }); - */ }); })); diff --git a/samples/client/petstore/javascript/test/api/StoreApi.spec.js b/samples/client/petstore/javascript/test/api/StoreApi.spec.js index 26106984b7c..1e1f225ef94 100644 --- a/samples/client/petstore/javascript/test/api/StoreApi.spec.js +++ b/samples/client/petstore/javascript/test/api/StoreApi.spec.js @@ -1,45 +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: \" \\ + * + * OpenAPI spec version: 1.0.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * + * Do not edit the class manually. + * + */ + (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) - factory(root.expect, root.OpenAPIPetstore); + factory(root.expect, root.OpenApiPetstore); } -}(this, function(expect, OpenAPIPetstore) { +}(this, function(expect, OpenApiPetstore) { 'use strict'; - var api; + var instance; beforeEach(function() { - api = new OpenAPIPetstore.StoreApi(); + instance = new OpenApiPetstore.StoreApi(); }); + 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('StoreApi', function() { - /* commented out the following as the fake endpoint has been removed from the spec - * we'll add it back after updating the petstore server - * - it('getInventoryInObject', function(done) { - api.getInventoryInObject(function(error, obj) { - if (error) throw error; - - expect(obj).to.be.a(Object); - var hasKey = false; - for (var key in obj) { - if (obj.hasOwnProperty(key)) { - hasKey = true; - expect(obj[key]).to.be.a('number'); - } - } - expect(hasKey).to.be(true); - + describe('deleteOrder', function() { + it('should call deleteOrder successfully', function(done) { + //uncomment below and update the code to test deleteOrder + //instance.deleteOrder(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getInventory', function() { + it('should call getInventory successfully', function(done) { + //uncomment below and update the code to test getInventory + //instance.getInventory(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getOrderById', function() { + it('should call getOrderById successfully', function(done) { + //uncomment below and update the code to test getOrderById + //instance.getOrderById(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('placeOrder', function() { + it('should call placeOrder successfully', function(done) { + //uncomment below and update the code to test placeOrder + //instance.placeOrder(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); done(); }); }); - */ }); })); diff --git a/samples/client/petstore/javascript/test/api/UserApi.spec.js b/samples/client/petstore/javascript/test/api/UserApi.spec.js index a2ee25c9d91..71aaed5a964 100644 --- a/samples/client/petstore/javascript/test/api/UserApi.spec.js +++ b/samples/client/petstore/javascript/test/api/UserApi.spec.js @@ -1,21 +1,36 @@ +/** + * 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 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * + * Do not edit the class manually. + * + */ + (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) - factory(root.expect, root.OpenAPIPetstore); + factory(root.expect, root.OpenApiPetstore); } -}(this, function(expect, OpenAPIPetstore) { +}(this, function(expect, OpenApiPetstore) { 'use strict'; var instance; beforeEach(function() { - instance = new OpenAPIPetstore.UserApi(); + instance = new OpenApiPetstore.UserApi(); }); var getProperty = function(object, getter, property) { @@ -38,7 +53,7 @@ describe('createUser', function() { it('should call createUser successfully', function(done) { //uncomment below and update the code to test createUser - //instance.createUser(pet, function(error) { + //instance.createUser(function(error) { // if (error) throw error; //expect().to.be(); //}); @@ -48,7 +63,7 @@ describe('createUsersWithArrayInput', function() { it('should call createUsersWithArrayInput successfully', function(done) { //uncomment below and update the code to test createUsersWithArrayInput - //instance.createUsersWithArrayInput(pet, function(error) { + //instance.createUsersWithArrayInput(function(error) { // if (error) throw error; //expect().to.be(); //}); @@ -58,7 +73,7 @@ describe('createUsersWithListInput', function() { it('should call createUsersWithListInput successfully', function(done) { //uncomment below and update the code to test createUsersWithListInput - //instance.createUsersWithListInput(pet, function(error) { + //instance.createUsersWithListInput(function(error) { // if (error) throw error; //expect().to.be(); //}); @@ -68,7 +83,7 @@ describe('deleteUser', function() { it('should call deleteUser successfully', function(done) { //uncomment below and update the code to test deleteUser - //instance.deleteUser(pet, function(error) { + //instance.deleteUser(function(error) { // if (error) throw error; //expect().to.be(); //}); @@ -78,7 +93,7 @@ describe('getUserByName', function() { it('should call getUserByName successfully', function(done) { //uncomment below and update the code to test getUserByName - //instance.getUserByName(pet, function(error) { + //instance.getUserByName(function(error) { // if (error) throw error; //expect().to.be(); //}); @@ -88,7 +103,7 @@ describe('loginUser', function() { it('should call loginUser successfully', function(done) { //uncomment below and update the code to test loginUser - //instance.loginUser(pet, function(error) { + //instance.loginUser(function(error) { // if (error) throw error; //expect().to.be(); //}); @@ -98,7 +113,7 @@ describe('logoutUser', function() { it('should call logoutUser successfully', function(done) { //uncomment below and update the code to test logoutUser - //instance.logoutUser(pet, function(error) { + //instance.logoutUser(function(error) { // if (error) throw error; //expect().to.be(); //}); @@ -108,7 +123,7 @@ describe('updateUser', function() { it('should call updateUser successfully', function(done) { //uncomment below and update the code to test updateUser - //instance.updateUser(pet, function(error) { + //instance.updateUser(function(error) { // if (error) throw error; //expect().to.be(); //}); diff --git a/samples/client/petstore/javascript/test/model/AdditionalPropertiesAnyType.spec.js b/samples/client/petstore/javascript/test/model/AdditionalPropertiesAnyType.spec.js index a81b37f05cb..3e9aaed718b 100644 --- a/samples/client/petstore/javascript/test/model/AdditionalPropertiesAnyType.spec.js +++ b/samples/client/petstore/javascript/test/model/AdditionalPropertiesAnyType.spec.js @@ -16,10 +16,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript/test/model/AdditionalPropertiesArray.spec.js b/samples/client/petstore/javascript/test/model/AdditionalPropertiesArray.spec.js index b1d3f622ae5..70e2e348fb1 100644 --- a/samples/client/petstore/javascript/test/model/AdditionalPropertiesArray.spec.js +++ b/samples/client/petstore/javascript/test/model/AdditionalPropertiesArray.spec.js @@ -16,10 +16,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript/test/model/AdditionalPropertiesBoolean.spec.js b/samples/client/petstore/javascript/test/model/AdditionalPropertiesBoolean.spec.js index 73d6b1aeeab..f3bca3d55fc 100644 --- a/samples/client/petstore/javascript/test/model/AdditionalPropertiesBoolean.spec.js +++ b/samples/client/petstore/javascript/test/model/AdditionalPropertiesBoolean.spec.js @@ -16,10 +16,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript/test/model/AdditionalPropertiesClass.spec.js b/samples/client/petstore/javascript/test/model/AdditionalPropertiesClass.spec.js index a613a54ccc5..0c6e0a15343 100644 --- a/samples/client/petstore/javascript/test/model/AdditionalPropertiesClass.spec.js +++ b/samples/client/petstore/javascript/test/model/AdditionalPropertiesClass.spec.js @@ -1,21 +1,36 @@ +/** + * 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 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * + * Do not edit the class manually. + * + */ + (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) - factory(root.expect, root.OpenAPIPetstore); + factory(root.expect, root.OpenApiPetstore); } -}(this, function(expect, OpenAPIPetstore) { +}(this, function(expect, OpenApiPetstore) { 'use strict'; var instance; beforeEach(function() { - instance = new OpenAPIPetstore.AdditionalPropertiesClass(); + instance = new OpenApiPetstore.AdditionalPropertiesClass(); }); var getProperty = function(object, getter, property) { @@ -37,19 +52,73 @@ describe('AdditionalPropertiesClass', function() { it('should create an instance of AdditionalPropertiesClass', function() { // uncomment below and update the code to test AdditionalPropertiesClass - //var instane = new OpenAPIPetstore.AdditionalPropertiesClass(); - //expect(instance).to.be.a(OpenAPIPetstore.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 instane = new OpenAPIPetstore.AdditionalPropertiesClass(); + it('should have the property mapString (base name: "map_string")', function() { + // uncomment below and update the code to test the property mapString + //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 instane = new OpenAPIPetstore.AdditionalPropertiesClass(); + it('should have the property mapNumber (base name: "map_number")', function() { + // uncomment below and update the code to test the property mapNumber + //var instance = new OpenApiPetstore.AdditionalPropertiesClass(); + //expect(instance).to.be(); + }); + + it('should have the property mapInteger (base name: "map_integer")', function() { + // uncomment below and update the code to test the property mapInteger + //var instance = new OpenApiPetstore.AdditionalPropertiesClass(); + //expect(instance).to.be(); + }); + + it('should have the property mapBoolean (base name: "map_boolean")', function() { + // uncomment below and update the code to test the property mapBoolean + //var instance = new OpenApiPetstore.AdditionalPropertiesClass(); + //expect(instance).to.be(); + }); + + it('should have the property mapArrayInteger (base name: "map_array_integer")', function() { + // uncomment below and update the code to test the property mapArrayInteger + //var instance = new OpenApiPetstore.AdditionalPropertiesClass(); + //expect(instance).to.be(); + }); + + it('should have the property mapArrayAnytype (base name: "map_array_anytype")', function() { + // uncomment below and update the code to test the property mapArrayAnytype + //var instance = new OpenApiPetstore.AdditionalPropertiesClass(); + //expect(instance).to.be(); + }); + + it('should have the property mapMapString (base name: "map_map_string")', function() { + // uncomment below and update the code to test the property mapMapString + //var instance = new OpenApiPetstore.AdditionalPropertiesClass(); + //expect(instance).to.be(); + }); + + it('should have the property mapMapAnytype (base name: "map_map_anytype")', function() { + // uncomment below and update the code to test the property mapMapAnytype + //var instance = new OpenApiPetstore.AdditionalPropertiesClass(); + //expect(instance).to.be(); + }); + + it('should have the property anytype1 (base name: "anytype_1")', function() { + // uncomment below and update the code to test the property anytype1 + //var instance = new OpenApiPetstore.AdditionalPropertiesClass(); + //expect(instance).to.be(); + }); + + it('should have the property anytype2 (base name: "anytype_2")', function() { + // uncomment below and update the code to test the property anytype2 + //var instance = new OpenApiPetstore.AdditionalPropertiesClass(); + //expect(instance).to.be(); + }); + + it('should have the property anytype3 (base name: "anytype_3")', function() { + // uncomment below and update the code to test the property anytype3 + //var instance = new OpenApiPetstore.AdditionalPropertiesClass(); //expect(instance).to.be(); }); diff --git a/samples/client/petstore/javascript/test/model/AdditionalPropertiesInteger.spec.js b/samples/client/petstore/javascript/test/model/AdditionalPropertiesInteger.spec.js index 5a9f6dafb2d..bb48c2a4dec 100644 --- a/samples/client/petstore/javascript/test/model/AdditionalPropertiesInteger.spec.js +++ b/samples/client/petstore/javascript/test/model/AdditionalPropertiesInteger.spec.js @@ -16,10 +16,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript/test/model/AdditionalPropertiesNumber.spec.js b/samples/client/petstore/javascript/test/model/AdditionalPropertiesNumber.spec.js index 589efc726fa..ab22daa2f9c 100644 --- a/samples/client/petstore/javascript/test/model/AdditionalPropertiesNumber.spec.js +++ b/samples/client/petstore/javascript/test/model/AdditionalPropertiesNumber.spec.js @@ -16,10 +16,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript/test/model/AdditionalPropertiesObject.spec.js b/samples/client/petstore/javascript/test/model/AdditionalPropertiesObject.spec.js index dd0d45b6cfa..97195ef4d4f 100644 --- a/samples/client/petstore/javascript/test/model/AdditionalPropertiesObject.spec.js +++ b/samples/client/petstore/javascript/test/model/AdditionalPropertiesObject.spec.js @@ -16,10 +16,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript/test/model/AdditionalPropertiesString.spec.js b/samples/client/petstore/javascript/test/model/AdditionalPropertiesString.spec.js index b859c8d9d64..1f2cf9ba828 100644 --- a/samples/client/petstore/javascript/test/model/AdditionalPropertiesString.spec.js +++ b/samples/client/petstore/javascript/test/model/AdditionalPropertiesString.spec.js @@ -16,10 +16,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript/test/model/Animal.spec.js b/samples/client/petstore/javascript/test/model/Animal.spec.js index 217f1a2e29a..dd46eeca4a8 100644 --- a/samples/client/petstore/javascript/test/model/Animal.spec.js +++ b/samples/client/petstore/javascript/test/model/Animal.spec.js @@ -1,21 +1,36 @@ +/** + * 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 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * + * Do not edit the class manually. + * + */ + (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) - factory(root.expect, root.OpenAPIPetstore); + factory(root.expect, root.OpenApiPetstore); } -}(this, function(expect, OpenAPIPetstore) { +}(this, function(expect, OpenApiPetstore) { 'use strict'; var instance; beforeEach(function() { - instance = new OpenAPIPetstore.Animal(); + instance = new OpenApiPetstore.Animal(); }); var getProperty = function(object, getter, property) { @@ -37,19 +52,19 @@ describe('Animal', function() { it('should create an instance of Animal', function() { // uncomment below and update the code to test Animal - //var instane = new OpenAPIPetstore.Animal(); - //expect(instance).to.be.a(OpenAPIPetstore.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 instane = new OpenAPIPetstore.Animal(); + //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 instane = new OpenAPIPetstore.Animal(); + //var instance = new OpenApiPetstore.Animal(); //expect(instance).to.be(); }); diff --git a/samples/client/petstore/javascript/test/model/ApiResponse.spec.js b/samples/client/petstore/javascript/test/model/ApiResponse.spec.js index 0b17f974f2a..80b54d040ba 100644 --- a/samples/client/petstore/javascript/test/model/ApiResponse.spec.js +++ b/samples/client/petstore/javascript/test/model/ApiResponse.spec.js @@ -1,21 +1,36 @@ +/** + * 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 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * + * Do not edit the class manually. + * + */ + (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) - factory(root.expect, root.OpenAPIPetstore); + factory(root.expect, root.OpenApiPetstore); } -}(this, function(expect, OpenAPIPetstore) { +}(this, function(expect, OpenApiPetstore) { 'use strict'; var instance; beforeEach(function() { - instance = new OpenAPIPetstore.ApiResponse(); + instance = new OpenApiPetstore.ApiResponse(); }); var getProperty = function(object, getter, property) { @@ -37,25 +52,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(); - //expect(instance).to.be.a(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(); }); diff --git a/samples/client/petstore/javascript/test/model/ArrayOfArrayOfNumberOnly.spec.js b/samples/client/petstore/javascript/test/model/ArrayOfArrayOfNumberOnly.spec.js index dfa03195718..30bd568fcf8 100644 --- a/samples/client/petstore/javascript/test/model/ArrayOfArrayOfNumberOnly.spec.js +++ b/samples/client/petstore/javascript/test/model/ArrayOfArrayOfNumberOnly.spec.js @@ -3,43 +3,34 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * * Do not edit the class manually. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) - factory(root.expect, root.OpenAPIPetstore); + factory(root.expect, root.OpenApiPetstore); } -}(this, function(expect, OpenAPIPetstore) { +}(this, function(expect, OpenApiPetstore) { 'use strict'; var instance; beforeEach(function() { - instance = new OpenAPIPetstore.ArrayOfArrayOfNumberOnly(); + instance = new OpenApiPetstore.ArrayOfArrayOfNumberOnly(); }); var getProperty = function(object, getter, property) { @@ -61,13 +52,13 @@ describe('ArrayOfArrayOfNumberOnly', function() { it('should create an instance of ArrayOfArrayOfNumberOnly', function() { // uncomment below and update the code to test ArrayOfArrayOfNumberOnly - //var instane = new OpenAPIPetstore.ArrayOfArrayOfNumberOnly(); - //expect(instance).to.be.a(OpenAPIPetstore.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 instane = new OpenAPIPetstore.ArrayOfArrayOfNumberOnly(); + //var instance = 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 6d49d01367f..2719e03ea99 100644 --- a/samples/client/petstore/javascript/test/model/ArrayOfNumberOnly.spec.js +++ b/samples/client/petstore/javascript/test/model/ArrayOfNumberOnly.spec.js @@ -3,43 +3,34 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * * Do not edit the class manually. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) - factory(root.expect, root.OpenAPIPetstore); + factory(root.expect, root.OpenApiPetstore); } -}(this, function(expect, OpenAPIPetstore) { +}(this, function(expect, OpenApiPetstore) { 'use strict'; var instance; beforeEach(function() { - instance = new OpenAPIPetstore.ArrayOfNumberOnly(); + instance = new OpenApiPetstore.ArrayOfNumberOnly(); }); var getProperty = function(object, getter, property) { @@ -61,13 +52,13 @@ describe('ArrayOfNumberOnly', function() { it('should create an instance of ArrayOfNumberOnly', function() { // uncomment below and update the code to test ArrayOfNumberOnly - //var instane = new OpenAPIPetstore.ArrayOfNumberOnly(); - //expect(instance).to.be.a(OpenAPIPetstore.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 instane = new OpenAPIPetstore.ArrayOfNumberOnly(); + //var instance = 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 95301860bcb..6808eecd3fd 100644 --- a/samples/client/petstore/javascript/test/model/ArrayTest.spec.js +++ b/samples/client/petstore/javascript/test/model/ArrayTest.spec.js @@ -1,21 +1,36 @@ +/** + * 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 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * + * Do not edit the class manually. + * + */ + (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) - factory(root.expect, root.OpenAPIPetstore); + factory(root.expect, root.OpenApiPetstore); } -}(this, function(expect, OpenAPIPetstore) { +}(this, function(expect, OpenApiPetstore) { 'use strict'; var instance; beforeEach(function() { - instance = new OpenAPIPetstore.ArrayTest(); + instance = new OpenApiPetstore.ArrayTest(); }); var getProperty = function(object, getter, property) { @@ -37,25 +52,25 @@ describe('ArrayTest', function() { it('should create an instance of ArrayTest', function() { // uncomment below and update the code to test ArrayTest - //var instane = new OpenAPIPetstore.ArrayTest(); - //expect(instance).to.be.a(OpenAPIPetstore.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 instane = new OpenAPIPetstore.ArrayTest(); + //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 instane = new OpenAPIPetstore.ArrayTest(); + //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 instane = new OpenAPIPetstore.ArrayTest(); + //var instance = 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 98c3045ce43..79e02c9aeb5 100644 --- a/samples/client/petstore/javascript/test/model/Capitalization.spec.js +++ b/samples/client/petstore/javascript/test/model/Capitalization.spec.js @@ -3,10 +3,12 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * * Do not edit the class manually. * */ @@ -14,21 +16,21 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) - factory(root.expect, root.OpenAPIPetstore); + factory(root.expect, root.OpenApiPetstore); } -}(this, function(expect, OpenAPIPetstore) { +}(this, function(expect, OpenApiPetstore) { 'use strict'; var instance; beforeEach(function() { - instance = new OpenAPIPetstore.Capitalization(); + instance = new OpenApiPetstore.Capitalization(); }); var getProperty = function(object, getter, property) { @@ -50,43 +52,43 @@ describe('Capitalization', function() { it('should create an instance of Capitalization', function() { // uncomment below and update the code to test Capitalization - //var instane = new OpenAPIPetstore.Capitalization(); - //expect(instance).to.be.a(OpenAPIPetstore.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 instane = new OpenAPIPetstore.Capitalization(); + //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 instane = new OpenAPIPetstore.Capitalization(); + //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 instane = new OpenAPIPetstore.Capitalization(); + //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 instane = new OpenAPIPetstore.Capitalization(); + //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 instane = new OpenAPIPetstore.Capitalization(); + //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 instane = new OpenAPIPetstore.Capitalization(); + //var instance = 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 e78d2d2ec5a..3dcafaebf45 100644 --- a/samples/client/petstore/javascript/test/model/Cat.spec.js +++ b/samples/client/petstore/javascript/test/model/Cat.spec.js @@ -16,10 +16,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript/test/model/Category.spec.js b/samples/client/petstore/javascript/test/model/Category.spec.js index d1234150d84..af78800f910 100644 --- a/samples/client/petstore/javascript/test/model/Category.spec.js +++ b/samples/client/petstore/javascript/test/model/Category.spec.js @@ -1,21 +1,36 @@ +/** + * 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 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * + * Do not edit the class manually. + * + */ + (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) - factory(root.expect, root.OpenAPIPetstore); + factory(root.expect, root.OpenApiPetstore); } -}(this, function(expect, OpenAPIPetstore) { +}(this, function(expect, OpenApiPetstore) { 'use strict'; var instance; beforeEach(function() { - instance = new OpenAPIPetstore.Category(); + instance = new OpenApiPetstore.Category(); }); var getProperty = function(object, getter, property) { @@ -37,19 +52,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(); - //expect(instance).to.be.a(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(); }); diff --git a/samples/client/petstore/javascript/test/model/ClassModel.spec.js b/samples/client/petstore/javascript/test/model/ClassModel.spec.js index b9f6ef4ce35..a87944b84b1 100644 --- a/samples/client/petstore/javascript/test/model/ClassModel.spec.js +++ b/samples/client/petstore/javascript/test/model/ClassModel.spec.js @@ -3,10 +3,12 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * * Do not edit the class manually. * */ @@ -14,21 +16,21 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) - factory(root.expect, root.OpenAPIPetstore); + factory(root.expect, root.OpenApiPetstore); } -}(this, function(expect, OpenAPIPetstore) { +}(this, function(expect, OpenApiPetstore) { 'use strict'; var instance; beforeEach(function() { - instance = new OpenAPIPetstore.ClassModel(); + instance = new OpenApiPetstore.ClassModel(); }); var getProperty = function(object, getter, property) { @@ -50,13 +52,13 @@ describe('ClassModel', function() { it('should create an instance of ClassModel', function() { // uncomment below and update the code to test ClassModel - //var instane = new OpenAPIPetstore.ClassModel(); - //expect(instance).to.be.a(OpenAPIPetstore.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 instane = new OpenAPIPetstore.ClassModel(); + //var instance = 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 2fc7c85ba0c..2df55fe774c 100644 --- a/samples/client/petstore/javascript/test/model/Client.spec.js +++ b/samples/client/petstore/javascript/test/model/Client.spec.js @@ -3,43 +3,34 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * * Do not edit the class manually. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) - factory(root.expect, root.OpenAPIPetstore); + factory(root.expect, root.OpenApiPetstore); } -}(this, function(expect, OpenAPIPetstore) { +}(this, function(expect, OpenApiPetstore) { 'use strict'; var instance; beforeEach(function() { - instance = new OpenAPIPetstore.Client(); + instance = new OpenApiPetstore.Client(); }); var getProperty = function(object, getter, property) { @@ -61,13 +52,13 @@ describe('Client', function() { it('should create an instance of Client', function() { // uncomment below and update the code to test Client - //var instane = new OpenAPIPetstore.Client(); - //expect(instance).to.be.a(OpenAPIPetstore.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 instane = new OpenAPIPetstore.Client(); + //var instance = 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 ea86b5bcc88..b652c44fa44 100644 --- a/samples/client/petstore/javascript/test/model/Dog.spec.js +++ b/samples/client/petstore/javascript/test/model/Dog.spec.js @@ -16,10 +16,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript/test/model/EnumArrays.spec.js b/samples/client/petstore/javascript/test/model/EnumArrays.spec.js index f41a5200955..7d8cc8d61c9 100644 --- a/samples/client/petstore/javascript/test/model/EnumArrays.spec.js +++ b/samples/client/petstore/javascript/test/model/EnumArrays.spec.js @@ -3,43 +3,34 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * * Do not edit the class manually. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) - factory(root.expect, root.OpenAPIPetstore); + factory(root.expect, root.OpenApiPetstore); } -}(this, function(expect, OpenAPIPetstore) { +}(this, function(expect, OpenApiPetstore) { 'use strict'; var instance; beforeEach(function() { - instance = new OpenAPIPetstore.EnumArrays(); + instance = new OpenApiPetstore.EnumArrays(); }); var getProperty = function(object, getter, property) { @@ -61,19 +52,19 @@ describe('EnumArrays', function() { it('should create an instance of EnumArrays', function() { // uncomment below and update the code to test EnumArrays - //var instane = new OpenAPIPetstore.EnumArrays(); - //expect(instance).to.be.a(OpenAPIPetstore.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 instane = new OpenAPIPetstore.EnumArrays(); + //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 instane = new OpenAPIPetstore.EnumArrays(); + //var instance = 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 25b8aed6c3c..99fc34743cb 100644 --- a/samples/client/petstore/javascript/test/model/EnumClass.spec.js +++ b/samples/client/petstore/javascript/test/model/EnumClass.spec.js @@ -1,15 +1,30 @@ +/** + * 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 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * + * Do not edit the class manually. + * + */ + (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) - factory(root.expect, root.OpenAPIPetstore); + factory(root.expect, root.OpenApiPetstore); } -}(this, function(expect, OpenAPIPetstore) { +}(this, function(expect, OpenApiPetstore) { 'use strict'; var instance; @@ -36,8 +51,8 @@ describe('EnumClass', function() { it('should create an instance of EnumClass', function() { // uncomment below and update the code to test EnumClass - //var instane = new OpenAPIPetstore.EnumClass(); - //expect(instance).to.be.a(OpenAPIPetstore.EnumClass); + //var instance = 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 09e69747750..df04077b298 100644 --- a/samples/client/petstore/javascript/test/model/EnumTest.spec.js +++ b/samples/client/petstore/javascript/test/model/EnumTest.spec.js @@ -1,21 +1,36 @@ +/** + * 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 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * + * Do not edit the class manually. + * + */ + (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) - factory(root.expect, root.OpenAPIPetstore); + factory(root.expect, root.OpenApiPetstore); } -}(this, function(expect, OpenAPIPetstore) { +}(this, function(expect, OpenApiPetstore) { 'use strict'; var instance; beforeEach(function() { - instance = new OpenAPIPetstore.EnumTest(); + instance = new OpenApiPetstore.EnumTest(); }); var getProperty = function(object, getter, property) { @@ -37,25 +52,37 @@ describe('EnumTest', function() { it('should create an instance of EnumTest', function() { // uncomment below and update the code to test EnumTest - //var instane = new OpenAPIPetstore.EnumTest(); - //expect(instance).to.be.a(OpenAPIPetstore.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 instane = new OpenAPIPetstore.EnumTest(); + //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 instane = new OpenAPIPetstore.EnumTest(); + //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 instane = new OpenAPIPetstore.EnumTest(); + //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(); }); diff --git a/samples/client/petstore/javascript/test/model/File.spec.js b/samples/client/petstore/javascript/test/model/File.spec.js index 67f2956c397..6be3d7942aa 100644 --- a/samples/client/petstore/javascript/test/model/File.spec.js +++ b/samples/client/petstore/javascript/test/model/File.spec.js @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * - * OpenAPI Generator version: 3.2.0-SNAPSHOT + * OpenAPI Generator version: 4.0.0-SNAPSHOT * * Do not edit the class manually. * @@ -16,10 +16,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript/test/model/FileSchemaTestClass.spec.js b/samples/client/petstore/javascript/test/model/FileSchemaTestClass.spec.js index 74f68c03ff6..52d4cddd326 100644 --- a/samples/client/petstore/javascript/test/model/FileSchemaTestClass.spec.js +++ b/samples/client/petstore/javascript/test/model/FileSchemaTestClass.spec.js @@ -7,7 +7,7 @@ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * - * OpenAPI Generator version: 3.2.0-SNAPSHOT + * OpenAPI Generator version: 4.0.0-SNAPSHOT * * Do not edit the class manually. * @@ -16,10 +16,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript/test/model/FormatTest.spec.js b/samples/client/petstore/javascript/test/model/FormatTest.spec.js index e5fab4f063c..f7255fb1f55 100644 --- a/samples/client/petstore/javascript/test/model/FormatTest.spec.js +++ b/samples/client/petstore/javascript/test/model/FormatTest.spec.js @@ -1,21 +1,36 @@ +/** + * 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 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * + * Do not edit the class manually. + * + */ + (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) - factory(root.expect, root.OpenAPIPetstore); + factory(root.expect, root.OpenApiPetstore); } -}(this, function(expect, OpenAPIPetstore) { +}(this, function(expect, OpenApiPetstore) { 'use strict'; var instance; beforeEach(function() { - instance = new OpenAPIPetstore.FormatTest(); + instance = new OpenApiPetstore.FormatTest(); }); var getProperty = function(object, getter, property) { @@ -37,85 +52,85 @@ describe('FormatTest', function() { it('should create an instance of FormatTest', function() { // uncomment below and update the code to test FormatTest - //var instane = new OpenAPIPetstore.FormatTest(); - //expect(instance).to.be.a(OpenAPIPetstore.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 instane = new OpenAPIPetstore.FormatTest(); + //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 instane = new OpenAPIPetstore.FormatTest(); + //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 instane = new OpenAPIPetstore.FormatTest(); + //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 instane = new OpenAPIPetstore.FormatTest(); + //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 instane = new OpenAPIPetstore.FormatTest(); + //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 instane = new OpenAPIPetstore.FormatTest(); + //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 instane = new OpenAPIPetstore.FormatTest(); + //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 instane = new OpenAPIPetstore.FormatTest(); + //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 instane = new OpenAPIPetstore.FormatTest(); + //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 instane = new OpenAPIPetstore.FormatTest(); + //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 instane = new OpenAPIPetstore.FormatTest(); + //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 instane = new OpenAPIPetstore.FormatTest(); + //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 instane = new OpenAPIPetstore.FormatTest(); + //var instance = 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 425c1a83bf9..4ae5235ec48 100644 --- a/samples/client/petstore/javascript/test/model/HasOnlyReadOnly.spec.js +++ b/samples/client/petstore/javascript/test/model/HasOnlyReadOnly.spec.js @@ -3,43 +3,34 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * * Do not edit the class manually. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) - factory(root.expect, root.OpenAPIPetstore); + factory(root.expect, root.OpenApiPetstore); } -}(this, function(expect, OpenAPIPetstore) { +}(this, function(expect, OpenApiPetstore) { 'use strict'; var instance; beforeEach(function() { - instance = new OpenAPIPetstore.HasOnlyReadOnly(); + instance = new OpenApiPetstore.HasOnlyReadOnly(); }); var getProperty = function(object, getter, property) { @@ -61,19 +52,19 @@ describe('HasOnlyReadOnly', function() { it('should create an instance of HasOnlyReadOnly', function() { // uncomment below and update the code to test HasOnlyReadOnly - //var instane = new OpenAPIPetstore.HasOnlyReadOnly(); - //expect(instance).to.be.a(OpenAPIPetstore.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 instane = new OpenAPIPetstore.HasOnlyReadOnly(); + //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 instane = new OpenAPIPetstore.HasOnlyReadOnly(); + //var instance = 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 4f14dafc3aa..ec579597176 100644 --- a/samples/client/petstore/javascript/test/model/List.spec.js +++ b/samples/client/petstore/javascript/test/model/List.spec.js @@ -3,43 +3,34 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * * Do not edit the class manually. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) - factory(root.expect, root.OpenAPIPetstore); + factory(root.expect, root.OpenApiPetstore); } -}(this, function(expect, OpenAPIPetstore) { +}(this, function(expect, OpenApiPetstore) { 'use strict'; var instance; beforeEach(function() { - instance = new OpenAPIPetstore.List(); + instance = new OpenApiPetstore.List(); }); var getProperty = function(object, getter, property) { @@ -61,13 +52,13 @@ describe('List', function() { it('should create an instance of List', function() { // uncomment below and update the code to test List - //var instane = new OpenAPIPetstore.List(); - //expect(instance).to.be.a(OpenAPIPetstore.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 instane = new 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(); }); diff --git a/samples/client/petstore/javascript/test/model/MapTest.spec.js b/samples/client/petstore/javascript/test/model/MapTest.spec.js index a7fa7442ae8..cefaa92b8fd 100644 --- a/samples/client/petstore/javascript/test/model/MapTest.spec.js +++ b/samples/client/petstore/javascript/test/model/MapTest.spec.js @@ -3,43 +3,34 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * * Do not edit the class manually. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) - factory(root.expect, root.OpenAPIPetstore); + factory(root.expect, root.OpenApiPetstore); } -}(this, function(expect, OpenAPIPetstore) { +}(this, function(expect, OpenApiPetstore) { 'use strict'; var instance; beforeEach(function() { - instance = new OpenAPIPetstore.MapTest(); + instance = new OpenApiPetstore.MapTest(); }); var getProperty = function(object, getter, property) { @@ -61,25 +52,31 @@ describe('MapTest', function() { it('should create an instance of MapTest', function() { // uncomment below and update the code to test MapTest - //var instane = new OpenAPIPetstore.MapTest(); - //expect(instance).to.be.a(OpenAPIPetstore.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 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 OpenAPIPetstore.MapTest(); + //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 instane = new OpenAPIPetstore.MapTest(); + //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(); }); diff --git a/samples/client/petstore/javascript/test/model/MixedPropertiesAndAdditionalPropertiesClass.spec.js b/samples/client/petstore/javascript/test/model/MixedPropertiesAndAdditionalPropertiesClass.spec.js index 482e0574ef8..f5152276441 100644 --- a/samples/client/petstore/javascript/test/model/MixedPropertiesAndAdditionalPropertiesClass.spec.js +++ b/samples/client/petstore/javascript/test/model/MixedPropertiesAndAdditionalPropertiesClass.spec.js @@ -1,21 +1,36 @@ +/** + * 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 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * + * Do not edit the class manually. + * + */ + (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) - factory(root.expect, root.OpenAPIPetstore); + factory(root.expect, root.OpenApiPetstore); } -}(this, function(expect, OpenAPIPetstore) { +}(this, function(expect, OpenApiPetstore) { 'use strict'; var instance; beforeEach(function() { - instance = new OpenAPIPetstore.MixedPropertiesAndAdditionalPropertiesClass(); + instance = new OpenApiPetstore.MixedPropertiesAndAdditionalPropertiesClass(); }); var getProperty = function(object, getter, property) { @@ -37,25 +52,25 @@ describe('MixedPropertiesAndAdditionalPropertiesClass', function() { it('should create an instance of MixedPropertiesAndAdditionalPropertiesClass', function() { // uncomment below and update the code to test MixedPropertiesAndAdditionalPropertiesClass - //var instane = new OpenAPIPetstore.MixedPropertiesAndAdditionalPropertiesClass(); - //expect(instance).to.be.a(OpenAPIPetstore.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 instane = new OpenAPIPetstore.MixedPropertiesAndAdditionalPropertiesClass(); + //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 instane = new OpenAPIPetstore.MixedPropertiesAndAdditionalPropertiesClass(); + //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 instane = new OpenAPIPetstore.MixedPropertiesAndAdditionalPropertiesClass(); + //var instance = 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 b6cc2685418..4ada7bbf24a 100644 --- a/samples/client/petstore/javascript/test/model/Model200Response.spec.js +++ b/samples/client/petstore/javascript/test/model/Model200Response.spec.js @@ -1,21 +1,36 @@ +/** + * 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 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * + * Do not edit the class manually. + * + */ + (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) - factory(root.expect, root.OpenAPIPetstore); + factory(root.expect, root.OpenApiPetstore); } -}(this, function(expect, OpenAPIPetstore) { +}(this, function(expect, OpenApiPetstore) { 'use strict'; var instance; beforeEach(function() { - instance = new OpenAPIPetstore.Model200Response(); + instance = new OpenApiPetstore.Model200Response(); }); var getProperty = function(object, getter, property) { @@ -37,13 +52,19 @@ describe('Model200Response', function() { it('should create an instance of Model200Response', function() { // uncomment below and update the code to test Model200Response - //var instane = new OpenAPIPetstore.Model200Response(); - //expect(instance).to.be.a(OpenAPIPetstore.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 instane = new OpenAPIPetstore.Model200Response(); + //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(); }); diff --git a/samples/client/petstore/javascript/test/model/ModelReturn.spec.js b/samples/client/petstore/javascript/test/model/ModelReturn.spec.js index 667150af7f8..955895d3ec9 100644 --- a/samples/client/petstore/javascript/test/model/ModelReturn.spec.js +++ b/samples/client/petstore/javascript/test/model/ModelReturn.spec.js @@ -1,21 +1,36 @@ +/** + * 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 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * + * Do not edit the class manually. + * + */ + (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) - factory(root.expect, root.OpenAPIPetstore); + factory(root.expect, root.OpenApiPetstore); } -}(this, function(expect, OpenAPIPetstore) { +}(this, function(expect, OpenApiPetstore) { 'use strict'; var instance; beforeEach(function() { - instance = new OpenAPIPetstore.ModelReturn(); + instance = new OpenApiPetstore.ModelReturn(); }); var getProperty = function(object, getter, property) { @@ -37,13 +52,13 @@ describe('ModelReturn', function() { it('should create an instance of ModelReturn', function() { // uncomment below and update the code to test ModelReturn - //var instane = new OpenAPIPetstore.ModelReturn(); - //expect(instance).to.be.a(OpenAPIPetstore.ModelReturn); + //var instance = 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 OpenAPIPetstore.ModelReturn(); + //var instance = 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 aa1a9a104d7..2335871808e 100644 --- a/samples/client/petstore/javascript/test/model/Name.spec.js +++ b/samples/client/petstore/javascript/test/model/Name.spec.js @@ -1,21 +1,36 @@ +/** + * 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 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * + * Do not edit the class manually. + * + */ + (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) - factory(root.expect, root.OpenAPIPetstore); + factory(root.expect, root.OpenApiPetstore); } -}(this, function(expect, OpenAPIPetstore) { +}(this, function(expect, OpenApiPetstore) { 'use strict'; var instance; beforeEach(function() { - instance = new OpenAPIPetstore.Name(); + instance = new OpenApiPetstore.Name(); }); var getProperty = function(object, getter, property) { @@ -37,31 +52,31 @@ describe('Name', function() { it('should create an instance of Name', function() { // uncomment below and update the code to test Name - //var instane = new OpenAPIPetstore.Name(); - //expect(instance).to.be.a(OpenAPIPetstore.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 instane = new OpenAPIPetstore.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 instane = new OpenAPIPetstore.Name(); + //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 instane = new OpenAPIPetstore.Name(); + //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 instane = new OpenAPIPetstore.Name(); + 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(); }); diff --git a/samples/client/petstore/javascript/test/model/NumberOnly.spec.js b/samples/client/petstore/javascript/test/model/NumberOnly.spec.js index 464f698ff87..8d903c72697 100644 --- a/samples/client/petstore/javascript/test/model/NumberOnly.spec.js +++ b/samples/client/petstore/javascript/test/model/NumberOnly.spec.js @@ -3,43 +3,34 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * * Do not edit the class manually. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) - factory(root.expect, root.OpenAPIPetstore); + factory(root.expect, root.OpenApiPetstore); } -}(this, function(expect, OpenAPIPetstore) { +}(this, function(expect, OpenApiPetstore) { 'use strict'; var instance; beforeEach(function() { - instance = new OpenAPIPetstore.NumberOnly(); + instance = new OpenApiPetstore.NumberOnly(); }); var getProperty = function(object, getter, property) { @@ -61,13 +52,13 @@ describe('NumberOnly', function() { it('should create an instance of NumberOnly', function() { // uncomment below and update the code to test NumberOnly - //var instane = new OpenAPIPetstore.NumberOnly(); - //expect(instance).to.be.a(OpenAPIPetstore.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 instane = new OpenAPIPetstore.NumberOnly(); + //var instance = 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 9e439ecd3b6..1a5765958a4 100644 --- a/samples/client/petstore/javascript/test/model/Order.spec.js +++ b/samples/client/petstore/javascript/test/model/Order.spec.js @@ -1,21 +1,36 @@ +/** + * 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 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * + * Do not edit the class manually. + * + */ + (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) - factory(root.expect, root.OpenAPIPetstore); + factory(root.expect, root.OpenApiPetstore); } -}(this, function(expect, OpenAPIPetstore) { +}(this, function(expect, OpenApiPetstore) { 'use strict'; var instance; beforeEach(function() { - instance = new OpenAPIPetstore.Order(); + instance = new OpenApiPetstore.Order(); }); var getProperty = function(object, getter, property) { @@ -37,43 +52,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(); - //expect(instance).to.be.a(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(); }); diff --git a/samples/client/petstore/javascript/test/model/OuterComposite.spec.js b/samples/client/petstore/javascript/test/model/OuterComposite.spec.js index 350c938c723..ddce9fa8c9a 100644 --- a/samples/client/petstore/javascript/test/model/OuterComposite.spec.js +++ b/samples/client/petstore/javascript/test/model/OuterComposite.spec.js @@ -3,10 +3,12 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * * Do not edit the class manually. * */ @@ -14,21 +16,21 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) - factory(root.expect, root.OpenAPIPetstore); + factory(root.expect, root.OpenApiPetstore); } -}(this, function(expect, OpenAPIPetstore) { +}(this, function(expect, OpenApiPetstore) { 'use strict'; var instance; beforeEach(function() { - instance = new OpenAPIPetstore.OuterComposite(); + instance = new OpenApiPetstore.OuterComposite(); }); var getProperty = function(object, getter, property) { @@ -50,25 +52,25 @@ describe('OuterComposite', function() { it('should create an instance of OuterComposite', function() { // uncomment below and update the code to test OuterComposite - //var instane = new OpenAPIPetstore.OuterComposite(); - //expect(instance).to.be.a(OpenAPIPetstore.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 instane = new OpenAPIPetstore.OuterComposite(); + //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 instane = new OpenAPIPetstore.OuterComposite(); + //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 instane = new OpenAPIPetstore.OuterComposite(); + //var instance = 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 076073fb7f1..a094fbd5a5d 100644 --- a/samples/client/petstore/javascript/test/model/OuterEnum.spec.js +++ b/samples/client/petstore/javascript/test/model/OuterEnum.spec.js @@ -3,10 +3,12 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * * Do not edit the class manually. * */ @@ -14,15 +16,15 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) - factory(root.expect, root.OpenAPIPetstore); + factory(root.expect, root.OpenApiPetstore); } -}(this, function(expect, OpenAPIPetstore) { +}(this, function(expect, OpenApiPetstore) { 'use strict'; var instance; @@ -49,8 +51,8 @@ describe('OuterEnum', function() { it('should create an instance of OuterEnum', function() { // uncomment below and update the code to test OuterEnum - //var instane = new OpenAPIPetstore.OuterEnum(); - //expect(instance).to.be.a(OpenAPIPetstore.OuterEnum); + //var instance = 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 84bccde4ee3..16d08337b97 100644 --- a/samples/client/petstore/javascript/test/model/Pet.spec.js +++ b/samples/client/petstore/javascript/test/model/Pet.spec.js @@ -1,21 +1,36 @@ +/** + * 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 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * + * Do not edit the class manually. + * + */ + (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) - factory(root.expect, root.OpenAPIPetstore); + factory(root.expect, root.OpenApiPetstore); } -}(this, function(expect, OpenAPIPetstore) { +}(this, function(expect, OpenApiPetstore) { 'use strict'; var instance; beforeEach(function() { - instance = new OpenAPIPetstore.Pet(); + instance = new OpenApiPetstore.Pet(); }); var getProperty = function(object, getter, property) { @@ -37,43 +52,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(); - //expect(instance).to.be.a(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(); }); diff --git a/samples/client/petstore/javascript/test/model/ReadOnlyFirst.spec.js b/samples/client/petstore/javascript/test/model/ReadOnlyFirst.spec.js index a26552ce325..b25f36aeb55 100644 --- a/samples/client/petstore/javascript/test/model/ReadOnlyFirst.spec.js +++ b/samples/client/petstore/javascript/test/model/ReadOnlyFirst.spec.js @@ -1,21 +1,36 @@ +/** + * 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 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * + * Do not edit the class manually. + * + */ + (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) - factory(root.expect, root.OpenAPIPetstore); + factory(root.expect, root.OpenApiPetstore); } -}(this, function(expect, OpenAPIPetstore) { +}(this, function(expect, OpenApiPetstore) { 'use strict'; var instance; beforeEach(function() { - instance = new OpenAPIPetstore.ReadOnlyFirst(); + instance = new OpenApiPetstore.ReadOnlyFirst(); }); var getProperty = function(object, getter, property) { @@ -37,19 +52,19 @@ describe('ReadOnlyFirst', function() { it('should create an instance of ReadOnlyFirst', function() { // uncomment below and update the code to test ReadOnlyFirst - //var instane = new OpenAPIPetstore.ReadOnlyFirst(); - //expect(instance).to.be.a(OpenAPIPetstore.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 instane = new OpenAPIPetstore.ReadOnlyFirst(); + //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 instane = new OpenAPIPetstore.ReadOnlyFirst(); + //var instance = 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 487bb632c3d..9b9e8a128f0 100644 --- a/samples/client/petstore/javascript/test/model/SpecialModelName.spec.js +++ b/samples/client/petstore/javascript/test/model/SpecialModelName.spec.js @@ -1,21 +1,36 @@ +/** + * 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 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * + * Do not edit the class manually. + * + */ + (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) - factory(root.expect, root.OpenAPIPetstore); + factory(root.expect, root.OpenApiPetstore); } -}(this, function(expect, OpenAPIPetstore) { +}(this, function(expect, OpenApiPetstore) { 'use strict'; var instance; beforeEach(function() { - instance = new OpenAPIPetstore.SpecialModelName(); + instance = new OpenApiPetstore.SpecialModelName(); }); var getProperty = function(object, getter, property) { @@ -37,13 +52,13 @@ describe('SpecialModelName', function() { it('should create an instance of SpecialModelName', function() { // uncomment below and update the code to test SpecialModelName - //var instane = new OpenAPIPetstore.SpecialModelName(); - //expect(instance).to.be.a(OpenAPIPetstore.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 instane = new OpenAPIPetstore.SpecialModelName(); + //var instance = 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 be8aad11e40..2cfed4bd907 100644 --- a/samples/client/petstore/javascript/test/model/Tag.spec.js +++ b/samples/client/petstore/javascript/test/model/Tag.spec.js @@ -1,21 +1,36 @@ +/** + * 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 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * + * Do not edit the class manually. + * + */ + (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) - factory(root.expect, root.OpenAPIPetstore); + factory(root.expect, root.OpenApiPetstore); } -}(this, function(expect, OpenAPIPetstore) { +}(this, function(expect, OpenApiPetstore) { 'use strict'; var instance; beforeEach(function() { - instance = new OpenAPIPetstore.Tag(); + instance = new OpenApiPetstore.Tag(); }); var getProperty = function(object, getter, property) { @@ -37,19 +52,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(); - //expect(instance).to.be.a(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(); }); diff --git a/samples/client/petstore/javascript/test/model/TypeHolderDefault.spec.js b/samples/client/petstore/javascript/test/model/TypeHolderDefault.spec.js index ac8abe85771..e6618ea65ac 100644 --- a/samples/client/petstore/javascript/test/model/TypeHolderDefault.spec.js +++ b/samples/client/petstore/javascript/test/model/TypeHolderDefault.spec.js @@ -16,10 +16,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript/test/model/TypeHolderExample.spec.js b/samples/client/petstore/javascript/test/model/TypeHolderExample.spec.js index fc17a6605ae..5f705a61a99 100644 --- a/samples/client/petstore/javascript/test/model/TypeHolderExample.spec.js +++ b/samples/client/petstore/javascript/test/model/TypeHolderExample.spec.js @@ -16,10 +16,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript/test/model/User.spec.js b/samples/client/petstore/javascript/test/model/User.spec.js index f259ade2119..c7b88dbe10b 100644 --- a/samples/client/petstore/javascript/test/model/User.spec.js +++ b/samples/client/petstore/javascript/test/model/User.spec.js @@ -1,21 +1,36 @@ +/** + * 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 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 4.0.0-SNAPSHOT + * + * Do not edit the class manually. + * + */ + (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) - factory(root.expect, root.OpenAPIPetstore); + factory(root.expect, root.OpenApiPetstore); } -}(this, function(expect, OpenAPIPetstore) { +}(this, function(expect, OpenApiPetstore) { 'use strict'; var instance; beforeEach(function() { - instance = new OpenAPIPetstore.User(); + instance = new OpenApiPetstore.User(); }); var getProperty = function(object, getter, property) { @@ -37,55 +52,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(); - //expect(instance).to.be.a(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(); }); diff --git a/samples/client/petstore/javascript/test/model/XmlItem.spec.js b/samples/client/petstore/javascript/test/model/XmlItem.spec.js index da3c6aa50e5..75d5350ebb6 100644 --- a/samples/client/petstore/javascript/test/model/XmlItem.spec.js +++ b/samples/client/petstore/javascript/test/model/XmlItem.spec.js @@ -16,10 +16,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', '../../src/index'], factory); + 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('../../src/index')); + factory(require('expect.js'), require(process.cwd()+'/src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore);