From 5b4eedfcbfac0fda57ed4058cdc5795fb43056bf Mon Sep 17 00:00:00 2001 From: William Cheng Date: Sat, 23 May 2020 18:14:27 +0800 Subject: [PATCH 01/10] mark js es5 deprecated, remove samples, migrate samples to use oas3 --- bin/javascript-es6-petstore.sh | 5 +- bin/javascript-petstore-all.sh | 2 - bin/javascript-petstore.sh | 32 - bin/javascript-promise-es6-petstore.sh | 4 +- bin/javascript-promise-petstore.sh | 38 - bin/openapi3/javascript-es6-petstore.sh | 34 - bin/windows/javascript-es6-petstore.bat | 2 +- bin/windows/javascript-petstore-all.bat | 2 - bin/windows/javascript-petstore.bat | 10 - .../javascript-promise-es6-petstore.bat | 4 +- .../languages/JavascriptClientCodegen.java | 2 +- .../javascript-es6/.openapi-generator/VERSION | 2 +- .../client/petstore/javascript-es6/README.md | 41 +- .../docs/AdditionalPropertiesClass.md | 13 +- .../docs/AdditionalPropertiesNumber.md | 9 - .../docs/AdditionalPropertiesObject.md | 9 - .../docs/AdditionalPropertiesString.md | 9 - .../javascript-es6/docs/AnimalFarm.md | 0 .../javascript-es6/docs/AnotherFakeApi.md | 8 +- .../petstore/javascript-es6/docs/BigCat.md | 24 - .../javascript-es6/docs/BigCatAllOf.md | 24 - .../javascript-es6/docs/DefaultApi.md | 48 + .../petstore/javascript-es6/docs/EnumTest.md | 3 + .../petstore/javascript-es6/docs/FakeApi.md | 136 +- .../docs/FakeClassnameTags123Api.md | 8 +- .../docs/Fake_classname_tags123Api.md | 0 ...{AdditionalPropertiesAnyType.md => Foo.md} | 4 +- .../javascript-es6/docs/FormatTest.md | 3 +- .../javascript-es6/docs/HasOnlyReadOnly.md | 4 +- ...ropertiesArray.md => HealthCheckResult.md} | 4 +- .../javascript-es6/docs/InlineObject.md | 10 + .../javascript-es6/docs/InlineObject1.md | 10 + .../javascript-es6/docs/InlineObject2.md | 34 + .../javascript-es6/docs/InlineObject3.md | 22 + .../javascript-es6/docs/InlineObject4.md | 10 + .../javascript-es6/docs/InlineObject5.md | 10 + .../docs/InlineResponseDefault.md | 9 + .../petstore/javascript-es6/docs/Name.md | 4 +- .../javascript-es6/docs/NullableClass.md | 20 + .../javascript-es6/docs/OuterBoolean.md | 0 .../docs/OuterEnumDefaultValue.md | 12 + .../javascript-es6/docs/OuterEnumInteger.md | 12 + .../docs/OuterEnumIntegerDefaultValue.md | 12 + .../javascript-es6/docs/OuterNumber.md | 0 .../javascript-es6/docs/OuterString.md | 0 .../petstore/javascript-es6/docs/PetApi.md | 16 +- .../javascript-es6/docs/ReadOnlyFirst.md | 2 +- .../petstore/javascript-es6/docs/StoreApi.md | 10 +- .../javascript-es6/docs/StringBooleanMap.md | 0 .../javascript-es6/docs/TypeHolderDefault.md | 1 - .../javascript-es6/docs/TypeHolderExample.md | 2 - .../petstore/javascript-es6/docs/UserApi.md | 40 +- .../petstore/javascript-es6/docs/XmlItem.md | 37 - .../petstore/javascript-es6/git_push.sh | 18 +- .../client/petstore/javascript-es6/pom.xml | 4 +- .../petstore/javascript-es6/src/ApiClient.js | 40 +- .../javascript-es6/src/api/AnotherFakeApi.js | 12 +- .../javascript-es6/src/api/DefaultApi.js | 73 + .../javascript-es6/src/api/FakeApi.js | 164 +- .../src/api/FakeClassnameTags123Api.js | 12 +- .../petstore/javascript-es6/src/api/PetApi.js | 48 +- .../javascript-es6/src/api/StoreApi.js | 14 +- .../javascript-es6/src/api/UserApi.js | 56 +- .../petstore/javascript-es6/src/index.js | 182 +- .../src/model/AdditionalPropertiesBoolean.js | 75 - .../src/model/AdditionalPropertiesClass.js | 88 +- .../javascript-es6/src/model/AnimalFarm.js | 0 .../javascript-es6/src/model/BigCat.js | 132 - .../javascript-es6/src/model/BigCatAllOf.js | 104 - .../javascript-es6/src/model/EnumTest.js | 27 + .../{AdditionalPropertiesArray.js => Foo.js} | 35 +- .../javascript-es6/src/model/FormatTest.js | 18 +- ...opertiesNumber.js => HealthCheckResult.js} | 35 +- ...nalPropertiesObject.js => InlineObject.js} | 38 +- ...lPropertiesInteger.js => InlineObject1.js} | 44 +- .../javascript-es6/src/model/InlineObject2.js | 130 + .../javascript-es6/src/model/InlineObject3.js | 197 + .../javascript-es6/src/model/InlineObject4.js | 85 + .../javascript-es6/src/model/InlineObject5.js | 83 + .../src/model/InlineResponseDefault.js | 72 + .../javascript-es6/src/model/NullableClass.js | 163 + .../src/model/OuterEnumDefaultValue.js | 53 + .../src/model/OuterEnumInteger.js | 53 + .../src/model/OuterEnumIntegerDefaultValue.js | 53 + .../src/model/StringBooleanMap.js | 0 .../src/model/TypeHolderDefault.js | 2 +- .../src/model/TypeHolderExample.js | 18 +- .../javascript-es6/src/model/XmlItem.js | 295 -- .../src/test/api/AnotherFakeApi.spec.js | 0 .../src/test/api/FakeApi.spec.js | 0 .../test/api/FakeClassnameTags123Api.spec.js | 0 .../src/test/api/PetApi.spec.js | 0 .../src/test/api/StoreApi.spec.js | 0 .../src/test/api/UserApi.spec.js | 0 .../javascript-es6/test/ApiClientTest.js | 42 +- .../test/api/AnotherFakeApi.spec.js | 12 +- .../test/api/DefaultApi.spec.js | 63 + .../javascript-es6/test/api/FakeApi.spec.js | 34 +- .../test/api/FakeClassnameTags123Api.spec.js | 4 +- .../javascript-es6/test/api/PetApi.spec.js | 67 +- .../javascript-es6/test/api/StoreApi.spec.js | 4 +- .../javascript-es6/test/api/UserApi.spec.js | 4 +- .../model/AdditionalPropertiesAnyType.spec.js | 65 - .../model/AdditionalPropertiesBoolean.spec.js | 65 - .../model/AdditionalPropertiesClass.spec.js | 66 +- .../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/CatAllOf.spec.js | 2 +- .../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/DogAllOf.spec.js | 2 +- .../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 +- ...alPropertiesString.spec.js => Foo.spec.js} | 22 +- .../test/model/FormatTest.spec.js | 4 +- .../test/model/HasOnlyReadOnly.spec.js | 4 +- .../test/model/HealthCheckResult.spec.js | 65 + ...esInteger.spec.js => InlineObject.spec.js} | 24 +- .../test/model/InlineObject1.spec.js | 71 + .../test/model/InlineObject2.spec.js | 71 + .../test/model/InlineObject3.spec.js | 143 + .../test/model/InlineObject4.spec.js | 71 + .../test/model/InlineObject5.spec.js | 71 + ....spec.js => InlineResponseDefault.spec.js} | 22 +- .../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/NullableClass.spec.js | 131 + .../test/model/NumberOnly.spec.js | 4 +- .../javascript-es6/test/model/Order.spec.js | 4 +- .../test/model/OuterBoolean.spec.js | 0 .../test/model/OuterComposite.spec.js | 4 +- .../test/model/OuterEnum.spec.js | 4 +- .../test/model/OuterEnumDefaultValue.spec.js | 58 + .../test/model/OuterEnumInteger.spec.js | 58 + .../OuterEnumIntegerDefaultValue.spec.js | 58 + .../test/model/OuterNumber.spec.js | 0 .../test/model/OuterString.spec.js | 0 .../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 | 89 - .../test/model/TypeHolderExample.spec.js | 89 - .../javascript-es6/test/model/User.spec.js | 4 +- .../javascript-es6/test/model/XmlItem.spec.js | 233 -- .../javascript-es6/test/run_tests.html | 0 .../petstore/javascript-promise-es6/README.md | 46 +- .../docs/AdditionalPropertiesClass.md | 13 +- .../docs/AnotherFakeApi.md | 8 +- .../javascript-promise-es6/docs/DefaultApi.md | 47 + .../javascript-promise-es6/docs/EnumTest.md | 3 + .../javascript-promise-es6/docs/FakeApi.md | 120 +- .../docs/FakeClassnameTags123Api.md | 8 +- .../docs/Foo.md} | 4 +- .../javascript-promise-es6/docs/FormatTest.md | 3 +- .../docs/HealthCheckResult.md} | 4 +- .../docs/InlineObject.md | 10 + .../docs/InlineObject1.md | 10 + .../docs/InlineObject2.md | 34 + .../docs/InlineObject3.md | 22 + .../docs/InlineObject4.md | 10 + .../docs/InlineObject5.md | 10 + .../docs/InlineResponseDefault.md | 9 + .../docs/NullableClass.md | 20 + .../docs/OuterEnumDefaultValue.md | 12 + .../docs/OuterEnumInteger.md | 12 + .../docs/OuterEnumIntegerDefaultValue.md | 12 + .../javascript-promise-es6/docs/PetApi.md | 16 +- .../javascript-promise-es6/docs/StoreApi.md | 10 +- .../javascript-promise-es6/docs/UserApi.md | 40 +- .../javascript-promise-es6/src/ApiClient.js | 38 +- .../src/api/AnotherFakeApi.js | 18 +- .../src/api/DefaultApi.js | 75 + .../javascript-promise-es6/src/api/FakeApi.js | 181 +- .../src/api/FakeClassnameTags123Api.js | 18 +- .../javascript-promise-es6/src/api/PetApi.js | 60 +- .../src/api/StoreApi.js | 20 +- .../javascript-promise-es6/src/api/UserApi.js | 80 +- .../javascript-promise-es6/src/index.js | 182 +- .../src/model/AdditionalPropertiesClass.js | 88 +- .../src/model/EnumTest.js | 27 + .../javascript-promise-es6/src/model/Foo.js | 72 + .../src/model/FormatTest.js | 18 +- .../src/model/HealthCheckResult.js | 72 + .../src/model/InlineObject.js} | 38 +- .../src/model/InlineObject1.js} | 44 +- .../src/model/InlineObject2.js | 130 + .../src/model/InlineObject3.js | 197 + .../src/model/InlineObject4.js | 85 + .../src/model/InlineObject5.js | 83 + .../src/model/InlineResponseDefault.js | 72 + .../src/model/NullableClass.js | 163 + .../src/model/OuterEnumDefaultValue.js | 53 + .../src/model/OuterEnumInteger.js | 53 + .../src/model/OuterEnumIntegerDefaultValue.js | 53 + .../test/api/DefaultApi.spec.js | 63 + .../test/model/Foo.spec.js} | 18 +- .../test/model/HealthCheckResult.spec.js} | 18 +- .../test/model/InlineObject.spec.js} | 22 +- .../test/model/InlineObject1.spec.js | 71 + .../test/model/InlineObject2.spec.js | 71 + .../test/model/InlineObject3.spec.js | 143 + .../test/model/InlineObject4.spec.js | 71 + .../test/model/InlineObject5.spec.js | 71 + .../test/model/InlineResponseDefault.spec.js} | 20 +- .../test/model/NullableClass.spec.js | 131 + .../test/model/OuterEnumDefaultValue.spec.js | 58 + .../test/model/OuterEnumInteger.spec.js | 58 + .../OuterEnumIntegerDefaultValue.spec.js | 58 + .../javascript-es6/.openapi-generator-ignore | 6 +- .../javascript-es6/.openapi-generator/VERSION | 2 +- .../client/petstore/javascript-es6/README.md | 7 + .../petstore/javascript-es6/docs/FakeApi.md | 105 + .../javascript-es6/docs/HasOnlyReadOnly.md | 4 +- .../petstore/javascript-es6/docs/Name.md | 4 +- .../javascript-es6/docs/ReadOnlyFirst.md | 2 +- .../javascript-es6/docs/TypeHolderDefault.md | 12 - .../javascript-es6/docs/TypeHolderExample.md | 12 - .../petstore/javascript-es6/git_push.sh | 18 +- .../petstore/javascript-es6/package-lock.json | 3511 ----------------- .../client/petstore/javascript-es6/pom.xml | 45 - .../petstore/javascript-es6/src/ApiClient.js | 2 +- .../javascript-es6/src/api/FakeApi.js | 112 + .../src/model/TypeHolderDefault.js | 115 - .../src/model/TypeHolderExample.js | 113 - .../javascript-es6/test/ApiClientTest.js | 423 -- .../test/api/AnotherFakeApi.spec.js | 14 +- .../test/api/DefaultApi.spec.js | 6 +- .../javascript-es6/test/api/FakeApi.spec.js | 56 +- .../test/api/FakeClassnameTags123Api.spec.js | 6 +- .../javascript-es6/test/api/PetApi.spec.js | 69 +- .../javascript-es6/test/api/StoreApi.spec.js | 6 +- .../javascript-es6/test/api/UserApi.spec.js | 6 +- .../model/AdditionalPropertiesClass.spec.js | 6 +- .../javascript-es6/test/model/Animal.spec.js | 6 +- .../test/model/ApiResponse.spec.js | 6 +- .../model/ArrayOfArrayOfNumberOnly.spec.js | 6 +- .../test/model/ArrayOfNumberOnly.spec.js | 6 +- .../test/model/ArrayTest.spec.js | 6 +- .../test/model/Capitalization.spec.js | 6 +- .../javascript-es6/test/model/Cat.spec.js | 6 +- .../test/model/Category.spec.js | 6 +- .../test/model/ClassModel.spec.js | 6 +- .../javascript-es6/test/model/Client.spec.js | 6 +- .../javascript-es6/test/model/Dog.spec.js | 6 +- .../test/model/EnumArrays.spec.js | 6 +- .../test/model/EnumClass.spec.js | 6 +- .../test/model/EnumTest.spec.js | 24 +- .../javascript-es6/test/model/File.spec.js | 6 +- .../test/model/FileSchemaTestClass.spec.js | 6 +- .../javascript-es6/test/model/Foo.spec.js | 6 +- .../test/model/FormatTest.spec.js | 18 +- .../test/model/HasOnlyReadOnly.spec.js | 6 +- .../test/model/HealthCheckResult.spec.js | 6 +- .../test/model/InlineObject.spec.js | 6 +- .../test/model/InlineObject1.spec.js | 6 +- .../test/model/InlineObject2.spec.js | 6 +- .../test/model/InlineObject3.spec.js | 6 +- .../test/model/InlineObject4.spec.js | 6 +- .../test/model/InlineObject5.spec.js | 6 +- .../test/model/InlineResponseDefault.spec.js | 6 +- .../javascript-es6/test/model/List.spec.js | 6 +- .../javascript-es6/test/model/MapTest.spec.js | 18 +- ...ertiesAndAdditionalPropertiesClass.spec.js | 6 +- .../test/model/Model200Response.spec.js | 6 +- .../test/model/ModelReturn.spec.js | 6 +- .../javascript-es6/test/model/Name.spec.js | 6 +- .../test/model/NumberOnly.spec.js | 6 +- .../javascript-es6/test/model/Order.spec.js | 6 +- .../test/model/OuterComposite.spec.js | 6 +- .../test/model/OuterEnum.spec.js | 6 +- .../test/model/OuterEnumDefaultValue.spec.js | 6 +- .../test/model/OuterEnumInteger.spec.js | 6 +- .../OuterEnumIntegerDefaultValue.spec.js | 6 +- .../javascript-es6/test/model/Pet.spec.js | 6 +- .../test/model/ReadOnlyFirst.spec.js | 6 +- .../test/model/SpecialModelName.spec.js | 6 +- .../javascript-es6/test/model/Tag.spec.js | 6 +- .../javascript-es6/test/model/User.spec.js | 6 +- 293 files changed, 6063 insertions(+), 7217 deletions(-) delete mode 100755 bin/javascript-petstore.sh delete mode 100755 bin/javascript-promise-petstore.sh delete mode 100755 bin/openapi3/javascript-es6-petstore.sh delete mode 100755 bin/windows/javascript-petstore.bat delete mode 100644 samples/client/petstore/javascript-es6/docs/AdditionalPropertiesNumber.md delete mode 100644 samples/client/petstore/javascript-es6/docs/AdditionalPropertiesObject.md delete mode 100644 samples/client/petstore/javascript-es6/docs/AdditionalPropertiesString.md rename samples/{openapi3 => }/client/petstore/javascript-es6/docs/AnimalFarm.md (100%) delete mode 100644 samples/client/petstore/javascript-es6/docs/BigCat.md delete mode 100644 samples/client/petstore/javascript-es6/docs/BigCatAllOf.md create mode 100644 samples/client/petstore/javascript-es6/docs/DefaultApi.md rename samples/{openapi3 => }/client/petstore/javascript-es6/docs/Fake_classname_tags123Api.md (100%) rename samples/client/petstore/javascript-es6/docs/{AdditionalPropertiesAnyType.md => Foo.md} (56%) rename samples/client/petstore/javascript-es6/docs/{AdditionalPropertiesArray.md => HealthCheckResult.md} (56%) create mode 100644 samples/client/petstore/javascript-es6/docs/InlineObject.md create mode 100644 samples/client/petstore/javascript-es6/docs/InlineObject1.md create mode 100644 samples/client/petstore/javascript-es6/docs/InlineObject2.md create mode 100644 samples/client/petstore/javascript-es6/docs/InlineObject3.md create mode 100644 samples/client/petstore/javascript-es6/docs/InlineObject4.md create mode 100644 samples/client/petstore/javascript-es6/docs/InlineObject5.md create mode 100644 samples/client/petstore/javascript-es6/docs/InlineResponseDefault.md create mode 100644 samples/client/petstore/javascript-es6/docs/NullableClass.md rename samples/{openapi3 => }/client/petstore/javascript-es6/docs/OuterBoolean.md (100%) create mode 100644 samples/client/petstore/javascript-es6/docs/OuterEnumDefaultValue.md create mode 100644 samples/client/petstore/javascript-es6/docs/OuterEnumInteger.md create mode 100644 samples/client/petstore/javascript-es6/docs/OuterEnumIntegerDefaultValue.md rename samples/{openapi3 => }/client/petstore/javascript-es6/docs/OuterNumber.md (100%) rename samples/{openapi3 => }/client/petstore/javascript-es6/docs/OuterString.md (100%) rename samples/{openapi3 => }/client/petstore/javascript-es6/docs/StringBooleanMap.md (100%) delete mode 100644 samples/client/petstore/javascript-es6/docs/XmlItem.md create mode 100644 samples/client/petstore/javascript-es6/src/api/DefaultApi.js delete mode 100644 samples/client/petstore/javascript-es6/src/model/AdditionalPropertiesBoolean.js rename samples/{openapi3 => }/client/petstore/javascript-es6/src/model/AnimalFarm.js (100%) delete mode 100644 samples/client/petstore/javascript-es6/src/model/BigCat.js delete mode 100644 samples/client/petstore/javascript-es6/src/model/BigCatAllOf.js rename samples/client/petstore/javascript-es6/src/model/{AdditionalPropertiesArray.js => Foo.js} (52%) rename samples/client/petstore/javascript-es6/src/model/{AdditionalPropertiesNumber.js => HealthCheckResult.js} (51%) rename samples/client/petstore/javascript-es6/src/model/{AdditionalPropertiesObject.js => InlineObject.js} (58%) rename samples/client/petstore/javascript-es6/src/model/{AdditionalPropertiesInteger.js => InlineObject1.js} (50%) create mode 100644 samples/client/petstore/javascript-es6/src/model/InlineObject2.js create mode 100644 samples/client/petstore/javascript-es6/src/model/InlineObject3.js create mode 100644 samples/client/petstore/javascript-es6/src/model/InlineObject4.js create mode 100644 samples/client/petstore/javascript-es6/src/model/InlineObject5.js create mode 100644 samples/client/petstore/javascript-es6/src/model/InlineResponseDefault.js create mode 100644 samples/client/petstore/javascript-es6/src/model/NullableClass.js create mode 100644 samples/client/petstore/javascript-es6/src/model/OuterEnumDefaultValue.js create mode 100644 samples/client/petstore/javascript-es6/src/model/OuterEnumInteger.js create mode 100644 samples/client/petstore/javascript-es6/src/model/OuterEnumIntegerDefaultValue.js rename samples/{openapi3 => }/client/petstore/javascript-es6/src/model/StringBooleanMap.js (100%) delete mode 100644 samples/client/petstore/javascript-es6/src/model/XmlItem.js rename samples/{openapi3 => }/client/petstore/javascript-es6/src/test/api/AnotherFakeApi.spec.js (100%) rename samples/{openapi3 => }/client/petstore/javascript-es6/src/test/api/FakeApi.spec.js (100%) rename samples/{openapi3 => }/client/petstore/javascript-es6/src/test/api/FakeClassnameTags123Api.spec.js (100%) rename samples/{openapi3 => }/client/petstore/javascript-es6/src/test/api/PetApi.spec.js (100%) rename samples/{openapi3 => }/client/petstore/javascript-es6/src/test/api/StoreApi.spec.js (100%) rename samples/{openapi3 => }/client/petstore/javascript-es6/src/test/api/UserApi.spec.js (100%) create mode 100644 samples/client/petstore/javascript-es6/test/api/DefaultApi.spec.js delete mode 100644 samples/client/petstore/javascript-es6/test/model/AdditionalPropertiesAnyType.spec.js delete mode 100644 samples/client/petstore/javascript-es6/test/model/AdditionalPropertiesBoolean.spec.js rename samples/client/petstore/javascript-es6/test/model/{AdditionalPropertiesString.spec.js => Foo.spec.js} (67%) create mode 100644 samples/client/petstore/javascript-es6/test/model/HealthCheckResult.spec.js rename samples/client/petstore/javascript-es6/test/model/{AdditionalPropertiesInteger.spec.js => InlineObject.spec.js} (66%) create mode 100644 samples/client/petstore/javascript-es6/test/model/InlineObject1.spec.js create mode 100644 samples/client/petstore/javascript-es6/test/model/InlineObject2.spec.js create mode 100644 samples/client/petstore/javascript-es6/test/model/InlineObject3.spec.js create mode 100644 samples/client/petstore/javascript-es6/test/model/InlineObject4.spec.js create mode 100644 samples/client/petstore/javascript-es6/test/model/InlineObject5.spec.js rename samples/client/petstore/javascript-es6/test/model/{AdditionalPropertiesObject.spec.js => InlineResponseDefault.spec.js} (67%) create mode 100644 samples/client/petstore/javascript-es6/test/model/NullableClass.spec.js rename samples/{openapi3 => }/client/petstore/javascript-es6/test/model/OuterBoolean.spec.js (100%) create mode 100644 samples/client/petstore/javascript-es6/test/model/OuterEnumDefaultValue.spec.js create mode 100644 samples/client/petstore/javascript-es6/test/model/OuterEnumInteger.spec.js create mode 100644 samples/client/petstore/javascript-es6/test/model/OuterEnumIntegerDefaultValue.spec.js rename samples/{openapi3 => }/client/petstore/javascript-es6/test/model/OuterNumber.spec.js (100%) rename samples/{openapi3 => }/client/petstore/javascript-es6/test/model/OuterString.spec.js (100%) delete mode 100644 samples/client/petstore/javascript-es6/test/model/TypeHolderDefault.spec.js delete mode 100644 samples/client/petstore/javascript-es6/test/model/TypeHolderExample.spec.js delete mode 100644 samples/client/petstore/javascript-es6/test/model/XmlItem.spec.js rename samples/{openapi3 => }/client/petstore/javascript-es6/test/run_tests.html (100%) create mode 100644 samples/client/petstore/javascript-promise-es6/docs/DefaultApi.md rename samples/client/petstore/{javascript-es6/docs/AdditionalPropertiesBoolean.md => javascript-promise-es6/docs/Foo.md} (56%) rename samples/client/petstore/{javascript-es6/docs/AdditionalPropertiesInteger.md => javascript-promise-es6/docs/HealthCheckResult.md} (56%) create mode 100644 samples/client/petstore/javascript-promise-es6/docs/InlineObject.md create mode 100644 samples/client/petstore/javascript-promise-es6/docs/InlineObject1.md create mode 100644 samples/client/petstore/javascript-promise-es6/docs/InlineObject2.md create mode 100644 samples/client/petstore/javascript-promise-es6/docs/InlineObject3.md create mode 100644 samples/client/petstore/javascript-promise-es6/docs/InlineObject4.md create mode 100644 samples/client/petstore/javascript-promise-es6/docs/InlineObject5.md create mode 100644 samples/client/petstore/javascript-promise-es6/docs/InlineResponseDefault.md create mode 100644 samples/client/petstore/javascript-promise-es6/docs/NullableClass.md create mode 100644 samples/client/petstore/javascript-promise-es6/docs/OuterEnumDefaultValue.md create mode 100644 samples/client/petstore/javascript-promise-es6/docs/OuterEnumInteger.md create mode 100644 samples/client/petstore/javascript-promise-es6/docs/OuterEnumIntegerDefaultValue.md create mode 100644 samples/client/petstore/javascript-promise-es6/src/api/DefaultApi.js create mode 100644 samples/client/petstore/javascript-promise-es6/src/model/Foo.js create mode 100644 samples/client/petstore/javascript-promise-es6/src/model/HealthCheckResult.js rename samples/client/petstore/{javascript-es6/src/model/AdditionalPropertiesString.js => javascript-promise-es6/src/model/InlineObject.js} (58%) rename samples/client/petstore/{javascript-es6/src/model/AdditionalPropertiesAnyType.js => javascript-promise-es6/src/model/InlineObject1.js} (50%) create mode 100644 samples/client/petstore/javascript-promise-es6/src/model/InlineObject2.js create mode 100644 samples/client/petstore/javascript-promise-es6/src/model/InlineObject3.js create mode 100644 samples/client/petstore/javascript-promise-es6/src/model/InlineObject4.js create mode 100644 samples/client/petstore/javascript-promise-es6/src/model/InlineObject5.js create mode 100644 samples/client/petstore/javascript-promise-es6/src/model/InlineResponseDefault.js create mode 100644 samples/client/petstore/javascript-promise-es6/src/model/NullableClass.js create mode 100644 samples/client/petstore/javascript-promise-es6/src/model/OuterEnumDefaultValue.js create mode 100644 samples/client/petstore/javascript-promise-es6/src/model/OuterEnumInteger.js create mode 100644 samples/client/petstore/javascript-promise-es6/src/model/OuterEnumIntegerDefaultValue.js create mode 100644 samples/client/petstore/javascript-promise-es6/test/api/DefaultApi.spec.js rename samples/client/petstore/{javascript-es6/test/model/BigCat.spec.js => javascript-promise-es6/test/model/Foo.spec.js} (78%) rename samples/client/petstore/{javascript-es6/test/model/BigCatAllOf.spec.js => javascript-promise-es6/test/model/HealthCheckResult.spec.js} (74%) rename samples/client/petstore/{javascript-es6/test/model/AdditionalPropertiesNumber.spec.js => javascript-promise-es6/test/model/InlineObject.spec.js} (70%) create mode 100644 samples/client/petstore/javascript-promise-es6/test/model/InlineObject1.spec.js create mode 100644 samples/client/petstore/javascript-promise-es6/test/model/InlineObject2.spec.js create mode 100644 samples/client/petstore/javascript-promise-es6/test/model/InlineObject3.spec.js create mode 100644 samples/client/petstore/javascript-promise-es6/test/model/InlineObject4.spec.js create mode 100644 samples/client/petstore/javascript-promise-es6/test/model/InlineObject5.spec.js rename samples/client/petstore/{javascript-es6/test/model/AdditionalPropertiesArray.spec.js => javascript-promise-es6/test/model/InlineResponseDefault.spec.js} (73%) create mode 100644 samples/client/petstore/javascript-promise-es6/test/model/NullableClass.spec.js create mode 100644 samples/client/petstore/javascript-promise-es6/test/model/OuterEnumDefaultValue.spec.js create mode 100644 samples/client/petstore/javascript-promise-es6/test/model/OuterEnumInteger.spec.js create mode 100644 samples/client/petstore/javascript-promise-es6/test/model/OuterEnumIntegerDefaultValue.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/TypeHolderDefault.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/TypeHolderExample.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/package-lock.json delete mode 100644 samples/openapi3/client/petstore/javascript-es6/pom.xml delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/model/TypeHolderDefault.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/model/TypeHolderExample.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/ApiClientTest.js diff --git a/bin/javascript-es6-petstore.sh b/bin/javascript-es6-petstore.sh index 7c80155bb155..96e45b4b8e74 100755 --- a/bin/javascript-es6-petstore.sh +++ b/bin/javascript-es6-petstore.sh @@ -28,8 +28,7 @@ fi # if you've executed sbt assembly previously it will use that instead. export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties" ags="generate -t modules/openapi-generator/src/main/resources/Javascript/es6 \ --i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g javascript \ ---additional-properties appName=PetstoreClient \ --o samples/client/petstore/javascript-es6 $@" +-i modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml -g javascript \ +-o samples/openapi3/client/petstore/javascript-es6 --additional-properties appName=PetstoreClient $@" java $JAVA_OPTS -jar $executable $ags diff --git a/bin/javascript-petstore-all.sh b/bin/javascript-petstore-all.sh index 5471de073265..1a3a72af7ef2 100755 --- a/bin/javascript-petstore-all.sh +++ b/bin/javascript-petstore-all.sh @@ -1,6 +1,4 @@ #!/bin/sh -./bin/javascript-petstore.sh -./bin/javascript-promise-petstore.sh ./bin/javascript-es6-petstore.sh ./bin/javascript-promise-es6-petstore.sh diff --git a/bin/javascript-petstore.sh b/bin/javascript-petstore.sh deleted file mode 100755 index f2313a0c198b..000000000000 --- a/bin/javascript-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/sh - -SCRIPT="$0" -echo "# START SCRIPT: $SCRIPT" - -while [ -h "$SCRIPT" ] ; do - ls=`ls -ld "$SCRIPT"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - SCRIPT="$link" - else - SCRIPT=`dirname "$SCRIPT"`/"$link" - fi -done - -if [ ! -d "${APP_DIR}" ]; then - APP_DIR=`dirname "$SCRIPT"`/.. - APP_DIR=`cd "${APP_DIR}"; pwd` -fi - -executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar" - -if [ ! -f "$executable" ] -then - mvn -B clean package -fi - -# if you've executed sbt assembly previously it will use that instead. -export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties" -ags="generate -t modules/openapi-generator/src/main/resources/Javascript -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g javascript -o samples/client/petstore/javascript --additional-properties appName=PetstoreClient,useES6=false $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/javascript-promise-es6-petstore.sh b/bin/javascript-promise-es6-petstore.sh index c953eb99dad3..42a866b1d655 100755 --- a/bin/javascript-promise-es6-petstore.sh +++ b/bin/javascript-promise-es6-petstore.sh @@ -28,8 +28,8 @@ fi # if you've executed sbt assembly previously it will use that instead. export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties" ags="generate -t modules/openapi-generator/src/main/resources/Javascript/es6 \ --i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g javascript \ +-i modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml -g javascript \ -o samples/client/petstore/javascript-promise-es6 \ ---additional-properties appName=PetstoreClient,usePromises=true,useES6=true $@" +--additional-properties appName=PetstoreClient,usePromises=true $@" java $JAVA_OPTS -jar $executable $ags diff --git a/bin/javascript-promise-petstore.sh b/bin/javascript-promise-petstore.sh deleted file mode 100755 index 6702e60b2a39..000000000000 --- a/bin/javascript-promise-petstore.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/sh - -SCRIPT="$0" -echo "# START SCRIPT: $SCRIPT" - -while [ -h "$SCRIPT" ] ; do - ls=`ls -ld "$SCRIPT"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - SCRIPT="$link" - else - SCRIPT=`dirname "$SCRIPT"`/"$link" - fi -done - -if [ ! -d "${APP_DIR}" ]; then - APP_DIR=`dirname "$SCRIPT"`/.. - APP_DIR=`cd "${APP_DIR}"; pwd` -fi - -executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar" - -if [ ! -f "$executable" ] -then - mvn -B clean package -fi - -# if you've executed sbt assembly previously it will use that instead. -export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties" -ags="generate \ --t modules/openapi-generator/src/main/resources/Javascript \ --i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml \ --g javascript \ --o samples/client/petstore/javascript-promise \ ---additional-properties usePromises=true,useES6=false \ ---additional-properties appName=PetstoreClient $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/javascript-es6-petstore.sh b/bin/openapi3/javascript-es6-petstore.sh deleted file mode 100755 index 96e45b4b8e74..000000000000 --- a/bin/openapi3/javascript-es6-petstore.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/sh - -SCRIPT="$0" -echo "# START SCRIPT: $SCRIPT" - -while [ -h "$SCRIPT" ] ; do - ls=`ls -ld "$SCRIPT"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - SCRIPT="$link" - else - SCRIPT=`dirname "$SCRIPT"`/"$link" - fi -done - -if [ ! -d "${APP_DIR}" ]; then - APP_DIR=`dirname "$SCRIPT"`/.. - APP_DIR=`cd "${APP_DIR}"; pwd` -fi - -executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar" - -if [ ! -f "$executable" ] -then - mvn -B clean package -fi - -# if you've executed sbt assembly previously it will use that instead. -export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties" -ags="generate -t modules/openapi-generator/src/main/resources/Javascript/es6 \ --i modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml -g javascript \ --o samples/openapi3/client/petstore/javascript-es6 --additional-properties appName=PetstoreClient $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/windows/javascript-es6-petstore.bat b/bin/windows/javascript-es6-petstore.bat index 6ae6e93550c0..d7ef07a8400e 100644 --- a/bin/windows/javascript-es6-petstore.bat +++ b/bin/windows/javascript-es6-petstore.bat @@ -5,6 +5,6 @@ If Not Exist %executable% ( ) REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore-with-fake-endpoints-models-for-testing.yaml -g javascript -o samples\client\petstore\javascript-es6 --additional-properties useES6=true +set ags=generate -i modules\openapi-generator\src\test\resources\3_0\petstore-with-fake-endpoints-models-for-testing.yaml -g javascript -o samples\client\petstore\javascript-es6 java %JAVA_OPTS% -jar %executable% %ags% --additional-properties appName=PetstoreClient diff --git a/bin/windows/javascript-petstore-all.bat b/bin/windows/javascript-petstore-all.bat index efbde1ac83e1..0775478ae9ec 100755 --- a/bin/windows/javascript-petstore-all.bat +++ b/bin/windows/javascript-petstore-all.bat @@ -1,4 +1,2 @@ -call .\bin\windows\javascript-petstore.bat -call .\bin\windows\javascript-promise-petstore.bat call .\bin\windows\javascript-es6-petstore.bat call .\bin\windows\javascript-promise-es6-petstore.bat diff --git a/bin/windows/javascript-petstore.bat b/bin/windows/javascript-petstore.bat deleted file mode 100755 index 04abbd1837dc..000000000000 --- a/bin/windows/javascript-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore-with-fake-endpoints-models-for-testing.yaml -g javascript -o samples\client\petstore\javascript --additional-properties appName=PetstoreClient,useES6=false - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/javascript-promise-es6-petstore.bat b/bin/windows/javascript-promise-es6-petstore.bat index 41959932277b..86f71f55ce5d 100644 --- a/bin/windows/javascript-promise-es6-petstore.bat +++ b/bin/windows/javascript-promise-es6-petstore.bat @@ -5,6 +5,6 @@ If Not Exist %executable% ( ) REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore-with-fake-endpoints-models-for-testing.yaml -g javascript -o samples\client\petstore\javascript-promise-es6 --additional-properties useES6=true,usePromises=true +set ags=generate -i modules\openapi-generator\src\test\resources\3_0\petstore-with-fake-endpoints-models-for-testing.yaml -g javascript -o samples\client\petstore\javascript-promise-es6 --additional-properties appName=PetstoreClient,usePromises=true -java %JAVA_OPTS% -jar %executable% %ags% --additional-properties appName=PetstoreClient +java %JAVA_OPTS% -jar %executable% %ags% 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 1c1bea5403be..5ba759a3fd72 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 @@ -198,7 +198,7 @@ public JavascriptClientCodegen() { cliOptions.add(new CliOption(CodegenConstants.HIDE_GENERATION_TIMESTAMP, CodegenConstants.HIDE_GENERATION_TIMESTAMP_DESC) .defaultValue(Boolean.TRUE.toString())); cliOptions.add(new CliOption(USE_ES6, - "use JavaScript ES6 (ECMAScript 6) (beta). Default is ES6.") + "use JavaScript ES6 (ECMAScript 6). Default is ES6. (This option has been deprecated and will be removed in the 5.x release as ES5 is no longer supported)") .defaultValue(Boolean.TRUE.toString())); cliOptions.add(new CliOption(CodegenConstants.MODEL_PROPERTY_NAMING, CodegenConstants.MODEL_PROPERTY_NAMING_DESC).defaultValue("camelCase")); cliOptions.add(new CliOption(NPM_REPOSITORY, "Use this property to set an url your private npmRepo in the package.json")); diff --git a/samples/client/petstore/javascript-es6/.openapi-generator/VERSION b/samples/client/petstore/javascript-es6/.openapi-generator/VERSION index d99e7162d01f..83a328a9227e 100644 --- a/samples/client/petstore/javascript-es6/.openapi-generator/VERSION +++ b/samples/client/petstore/javascript-es6/.openapi-generator/VERSION @@ -1 +1 @@ -5.0.0-SNAPSHOT \ No newline at end of file +4.1.0-SNAPSHOT \ No newline at end of file diff --git a/samples/client/petstore/javascript-es6/README.md b/samples/client/petstore/javascript-es6/README.md index 4634d6309967..70e6ac7a2aa2 100644 --- a/samples/client/petstore/javascript-es6/README.md +++ b/samples/client/petstore/javascript-es6/README.md @@ -102,7 +102,7 @@ var OpenApiPetstore = require('open_api_petstore'); var api = new OpenApiPetstore.AnotherFakeApi() -var body = new OpenApiPetstore.Client(); // {Client} client model +var client = new OpenApiPetstore.Client(); // {Client} client model var callback = function(error, data, response) { if (error) { console.error(error); @@ -110,7 +110,7 @@ var callback = function(error, data, response) { console.log('API called successfully. Returned data: ' + data); } }; -api.call123testSpecialTags(body, callback); +api.call123testSpecialTags(client, callback); ``` @@ -121,7 +121,8 @@ All URIs are relative to *http://petstore.swagger.io:80/v2* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- *OpenApiPetstore.AnotherFakeApi* | [**call123testSpecialTags**](docs/AnotherFakeApi.md#call123testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags -*OpenApiPetstore.FakeApi* | [**createXmlItem**](docs/FakeApi.md#createXmlItem) | **POST** /fake/create_xml_item | creates an XmlItem +*OpenApiPetstore.DefaultApi* | [**fooGet**](docs/DefaultApi.md#fooGet) | **GET** /foo | +*OpenApiPetstore.FakeApi* | [**fakeHealthGet**](docs/FakeApi.md#fakeHealthGet) | **GET** /fake/health | Health check endpoint *OpenApiPetstore.FakeApi* | [**fakeOuterBooleanSerialize**](docs/FakeApi.md#fakeOuterBooleanSerialize) | **POST** /fake/outer/boolean | *OpenApiPetstore.FakeApi* | [**fakeOuterCompositeSerialize**](docs/FakeApi.md#fakeOuterCompositeSerialize) | **POST** /fake/outer/composite | *OpenApiPetstore.FakeApi* | [**fakeOuterNumberSerialize**](docs/FakeApi.md#fakeOuterNumberSerialize) | **POST** /fake/outer/number | @@ -129,12 +130,11 @@ Class | Method | HTTP request | Description *OpenApiPetstore.FakeApi* | [**testBodyWithFileSchema**](docs/FakeApi.md#testBodyWithFileSchema) | **PUT** /fake/body-with-file-schema | *OpenApiPetstore.FakeApi* | [**testBodyWithQueryParams**](docs/FakeApi.md#testBodyWithQueryParams) | **PUT** /fake/body-with-query-params | *OpenApiPetstore.FakeApi* | [**testClientModel**](docs/FakeApi.md#testClientModel) | **PATCH** /fake | To test \"client\" model -*OpenApiPetstore.FakeApi* | [**testEndpointParameters**](docs/FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 +*OpenApiPetstore.FakeApi* | [**testEndpointParameters**](docs/FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 *OpenApiPetstore.FakeApi* | [**testEnumParameters**](docs/FakeApi.md#testEnumParameters) | **GET** /fake | To test enum parameters *OpenApiPetstore.FakeApi* | [**testGroupParameters**](docs/FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) *OpenApiPetstore.FakeApi* | [**testInlineAdditionalProperties**](docs/FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties *OpenApiPetstore.FakeApi* | [**testJsonFormData**](docs/FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data -*OpenApiPetstore.FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | *OpenApiPetstore.FakeClassnameTags123Api* | [**testClassname**](docs/FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case *OpenApiPetstore.PetApi* | [**addPet**](docs/PetApi.md#addPet) | **POST** /pet | Add a new pet to the store *OpenApiPetstore.PetApi* | [**deletePet**](docs/PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet @@ -161,21 +161,12 @@ Class | Method | HTTP request | Description ## Documentation for Models - - [OpenApiPetstore.AdditionalPropertiesAnyType](docs/AdditionalPropertiesAnyType.md) - - [OpenApiPetstore.AdditionalPropertiesArray](docs/AdditionalPropertiesArray.md) - - [OpenApiPetstore.AdditionalPropertiesBoolean](docs/AdditionalPropertiesBoolean.md) - [OpenApiPetstore.AdditionalPropertiesClass](docs/AdditionalPropertiesClass.md) - - [OpenApiPetstore.AdditionalPropertiesInteger](docs/AdditionalPropertiesInteger.md) - - [OpenApiPetstore.AdditionalPropertiesNumber](docs/AdditionalPropertiesNumber.md) - - [OpenApiPetstore.AdditionalPropertiesObject](docs/AdditionalPropertiesObject.md) - - [OpenApiPetstore.AdditionalPropertiesString](docs/AdditionalPropertiesString.md) - [OpenApiPetstore.Animal](docs/Animal.md) - [OpenApiPetstore.ApiResponse](docs/ApiResponse.md) - [OpenApiPetstore.ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md) - [OpenApiPetstore.ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md) - [OpenApiPetstore.ArrayTest](docs/ArrayTest.md) - - [OpenApiPetstore.BigCat](docs/BigCat.md) - - [OpenApiPetstore.BigCatAllOf](docs/BigCatAllOf.md) - [OpenApiPetstore.Capitalization](docs/Capitalization.md) - [OpenApiPetstore.Cat](docs/Cat.md) - [OpenApiPetstore.CatAllOf](docs/CatAllOf.md) @@ -189,26 +180,36 @@ Class | Method | HTTP request | Description - [OpenApiPetstore.EnumTest](docs/EnumTest.md) - [OpenApiPetstore.File](docs/File.md) - [OpenApiPetstore.FileSchemaTestClass](docs/FileSchemaTestClass.md) + - [OpenApiPetstore.Foo](docs/Foo.md) - [OpenApiPetstore.FormatTest](docs/FormatTest.md) - [OpenApiPetstore.HasOnlyReadOnly](docs/HasOnlyReadOnly.md) + - [OpenApiPetstore.HealthCheckResult](docs/HealthCheckResult.md) + - [OpenApiPetstore.InlineObject](docs/InlineObject.md) + - [OpenApiPetstore.InlineObject1](docs/InlineObject1.md) + - [OpenApiPetstore.InlineObject2](docs/InlineObject2.md) + - [OpenApiPetstore.InlineObject3](docs/InlineObject3.md) + - [OpenApiPetstore.InlineObject4](docs/InlineObject4.md) + - [OpenApiPetstore.InlineObject5](docs/InlineObject5.md) + - [OpenApiPetstore.InlineResponseDefault](docs/InlineResponseDefault.md) - [OpenApiPetstore.List](docs/List.md) - [OpenApiPetstore.MapTest](docs/MapTest.md) - [OpenApiPetstore.MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md) - [OpenApiPetstore.Model200Response](docs/Model200Response.md) - [OpenApiPetstore.ModelReturn](docs/ModelReturn.md) - [OpenApiPetstore.Name](docs/Name.md) + - [OpenApiPetstore.NullableClass](docs/NullableClass.md) - [OpenApiPetstore.NumberOnly](docs/NumberOnly.md) - [OpenApiPetstore.Order](docs/Order.md) - [OpenApiPetstore.OuterComposite](docs/OuterComposite.md) - [OpenApiPetstore.OuterEnum](docs/OuterEnum.md) + - [OpenApiPetstore.OuterEnumDefaultValue](docs/OuterEnumDefaultValue.md) + - [OpenApiPetstore.OuterEnumInteger](docs/OuterEnumInteger.md) + - [OpenApiPetstore.OuterEnumIntegerDefaultValue](docs/OuterEnumIntegerDefaultValue.md) - [OpenApiPetstore.Pet](docs/Pet.md) - [OpenApiPetstore.ReadOnlyFirst](docs/ReadOnlyFirst.md) - [OpenApiPetstore.SpecialModelName](docs/SpecialModelName.md) - [OpenApiPetstore.Tag](docs/Tag.md) - - [OpenApiPetstore.TypeHolderDefault](docs/TypeHolderDefault.md) - - [OpenApiPetstore.TypeHolderExample](docs/TypeHolderExample.md) - [OpenApiPetstore.User](docs/User.md) - - [OpenApiPetstore.XmlItem](docs/XmlItem.md) ## Documentation for Authorization @@ -233,6 +234,12 @@ Class | Method | HTTP request | Description +### bearer_test + +- **Type**: Bearer authentication (JWT) + + + ### http_basic_test - **Type**: HTTP basic authentication diff --git a/samples/client/petstore/javascript-es6/docs/AdditionalPropertiesClass.md b/samples/client/petstore/javascript-es6/docs/AdditionalPropertiesClass.md index 9f8a26bcc612..c85e85acd9e3 100644 --- a/samples/client/petstore/javascript-es6/docs/AdditionalPropertiesClass.md +++ b/samples/client/petstore/javascript-es6/docs/AdditionalPropertiesClass.md @@ -4,16 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**mapString** | **{String: String}** | | [optional] -**mapNumber** | **{String: Number}** | | [optional] -**mapInteger** | **{String: Number}** | | [optional] -**mapBoolean** | **{String: Boolean}** | | [optional] -**mapArrayInteger** | **{String: [Number]}** | | [optional] -**mapArrayAnytype** | **{String: [Object]}** | | [optional] -**mapMapString** | **{String: {String: String}}** | | [optional] -**mapMapAnytype** | **{String: {String: Object}}** | | [optional] -**anytype1** | **Object** | | [optional] -**anytype2** | **Object** | | [optional] -**anytype3** | **Object** | | [optional] +**mapProperty** | **{String: String}** | | [optional] +**mapOfMapProperty** | **{String: {String: String}}** | | [optional] diff --git a/samples/client/petstore/javascript-es6/docs/AdditionalPropertiesNumber.md b/samples/client/petstore/javascript-es6/docs/AdditionalPropertiesNumber.md deleted file mode 100644 index 6f4273d6eb36..000000000000 --- a/samples/client/petstore/javascript-es6/docs/AdditionalPropertiesNumber.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.AdditionalPropertiesNumber - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | | [optional] - - diff --git a/samples/client/petstore/javascript-es6/docs/AdditionalPropertiesObject.md b/samples/client/petstore/javascript-es6/docs/AdditionalPropertiesObject.md deleted file mode 100644 index 58a92784180d..000000000000 --- a/samples/client/petstore/javascript-es6/docs/AdditionalPropertiesObject.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.AdditionalPropertiesObject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | | [optional] - - diff --git a/samples/client/petstore/javascript-es6/docs/AdditionalPropertiesString.md b/samples/client/petstore/javascript-es6/docs/AdditionalPropertiesString.md deleted file mode 100644 index ee6ad171eef5..000000000000 --- a/samples/client/petstore/javascript-es6/docs/AdditionalPropertiesString.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.AdditionalPropertiesString - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | | [optional] - - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/AnimalFarm.md b/samples/client/petstore/javascript-es6/docs/AnimalFarm.md similarity index 100% rename from samples/openapi3/client/petstore/javascript-es6/docs/AnimalFarm.md rename to samples/client/petstore/javascript-es6/docs/AnimalFarm.md diff --git a/samples/client/petstore/javascript-es6/docs/AnotherFakeApi.md b/samples/client/petstore/javascript-es6/docs/AnotherFakeApi.md index 18cccdca983c..ba01bd3e2a20 100644 --- a/samples/client/petstore/javascript-es6/docs/AnotherFakeApi.md +++ b/samples/client/petstore/javascript-es6/docs/AnotherFakeApi.md @@ -10,7 +10,7 @@ Method | HTTP request | Description ## call123testSpecialTags -> Client call123testSpecialTags(body) +> Client call123testSpecialTags(client) To test special tags @@ -22,8 +22,8 @@ To test special tags and operation ID starting with number import OpenApiPetstore from 'open_api_petstore'; let apiInstance = new OpenApiPetstore.AnotherFakeApi(); -let body = new OpenApiPetstore.Client(); // Client | client model -apiInstance.call123testSpecialTags(body, (error, data, response) => { +let client = new OpenApiPetstore.Client(); // Client | client model +apiInstance.call123testSpecialTags(client, (error, data, response) => { if (error) { console.error(error); } else { @@ -37,7 +37,7 @@ apiInstance.call123testSpecialTags(body, (error, data, response) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**Client**](Client.md)| client model | + **client** | [**Client**](Client.md)| client model | ### Return type diff --git a/samples/client/petstore/javascript-es6/docs/BigCat.md b/samples/client/petstore/javascript-es6/docs/BigCat.md deleted file mode 100644 index bbd79b2ba1bb..000000000000 --- a/samples/client/petstore/javascript-es6/docs/BigCat.md +++ /dev/null @@ -1,24 +0,0 @@ -# OpenApiPetstore.BigCat - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**kind** | **String** | | [optional] - - - -## Enum: KindEnum - - -* `lions` (value: `"lions"`) - -* `tigers` (value: `"tigers"`) - -* `leopards` (value: `"leopards"`) - -* `jaguars` (value: `"jaguars"`) - - - - diff --git a/samples/client/petstore/javascript-es6/docs/BigCatAllOf.md b/samples/client/petstore/javascript-es6/docs/BigCatAllOf.md deleted file mode 100644 index c5e83bfdaebb..000000000000 --- a/samples/client/petstore/javascript-es6/docs/BigCatAllOf.md +++ /dev/null @@ -1,24 +0,0 @@ -# OpenApiPetstore.BigCatAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**kind** | **String** | | [optional] - - - -## Enum: KindEnum - - -* `lions` (value: `"lions"`) - -* `tigers` (value: `"tigers"`) - -* `leopards` (value: `"leopards"`) - -* `jaguars` (value: `"jaguars"`) - - - - diff --git a/samples/client/petstore/javascript-es6/docs/DefaultApi.md b/samples/client/petstore/javascript-es6/docs/DefaultApi.md new file mode 100644 index 000000000000..cf507abc2ffb --- /dev/null +++ b/samples/client/petstore/javascript-es6/docs/DefaultApi.md @@ -0,0 +1,48 @@ +# OpenApiPetstore.DefaultApi + +All URIs are relative to *http://petstore.swagger.io:80/v2* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**fooGet**](DefaultApi.md#fooGet) | **GET** /foo | + + + +## fooGet + +> InlineResponseDefault fooGet() + + + +### Example + +```javascript +import OpenApiPetstore from 'open_api_petstore'; + +let apiInstance = new OpenApiPetstore.DefaultApi(); +apiInstance.fooGet((error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}); +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**InlineResponseDefault**](InlineResponseDefault.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + diff --git a/samples/client/petstore/javascript-es6/docs/EnumTest.md b/samples/client/petstore/javascript-es6/docs/EnumTest.md index c1504aeb4f72..b56c3c4cef63 100644 --- a/samples/client/petstore/javascript-es6/docs/EnumTest.md +++ b/samples/client/petstore/javascript-es6/docs/EnumTest.md @@ -9,6 +9,9 @@ Name | Type | Description | Notes **enumInteger** | **Number** | | [optional] **enumNumber** | **Number** | | [optional] **outerEnum** | [**OuterEnum**](OuterEnum.md) | | [optional] +**outerEnumInteger** | [**OuterEnumInteger**](OuterEnumInteger.md) | | [optional] +**outerEnumDefaultValue** | [**OuterEnumDefaultValue**](OuterEnumDefaultValue.md) | | [optional] +**outerEnumIntegerDefaultValue** | [**OuterEnumIntegerDefaultValue**](OuterEnumIntegerDefaultValue.md) | | [optional] diff --git a/samples/client/petstore/javascript-es6/docs/FakeApi.md b/samples/client/petstore/javascript-es6/docs/FakeApi.md index 337fd96880b3..cc6ba6590f02 100644 --- a/samples/client/petstore/javascript-es6/docs/FakeApi.md +++ b/samples/client/petstore/javascript-es6/docs/FakeApi.md @@ -4,7 +4,7 @@ All URIs are relative to *http://petstore.swagger.io:80/v2* Method | HTTP request | Description ------------- | ------------- | ------------- -[**createXmlItem**](FakeApi.md#createXmlItem) | **POST** /fake/create_xml_item | creates an XmlItem +[**fakeHealthGet**](FakeApi.md#fakeHealthGet) | **GET** /fake/health | Health check endpoint [**fakeOuterBooleanSerialize**](FakeApi.md#fakeOuterBooleanSerialize) | **POST** /fake/outer/boolean | [**fakeOuterCompositeSerialize**](FakeApi.md#fakeOuterCompositeSerialize) | **POST** /fake/outer/composite | [**fakeOuterNumberSerialize**](FakeApi.md#fakeOuterNumberSerialize) | **POST** /fake/outer/number | @@ -12,22 +12,19 @@ Method | HTTP request | Description [**testBodyWithFileSchema**](FakeApi.md#testBodyWithFileSchema) | **PUT** /fake/body-with-file-schema | [**testBodyWithQueryParams**](FakeApi.md#testBodyWithQueryParams) | **PUT** /fake/body-with-query-params | [**testClientModel**](FakeApi.md#testClientModel) | **PATCH** /fake | To test \"client\" model -[**testEndpointParameters**](FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 +[**testEndpointParameters**](FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 [**testEnumParameters**](FakeApi.md#testEnumParameters) | **GET** /fake | To test enum parameters [**testGroupParameters**](FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) [**testInlineAdditionalProperties**](FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties [**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data -[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | -## createXmlItem +## fakeHealthGet -> createXmlItem(xmlItem) +> HealthCheckResult fakeHealthGet() -creates an XmlItem - -this route creates an XmlItem +Health check endpoint ### Example @@ -35,26 +32,22 @@ this route creates an XmlItem import OpenApiPetstore from 'open_api_petstore'; let apiInstance = new OpenApiPetstore.FakeApi(); -let xmlItem = new OpenApiPetstore.XmlItem(); // XmlItem | XmlItem Body -apiInstance.createXmlItem(xmlItem, (error, data, response) => { +apiInstance.fakeHealthGet((error, data, response) => { if (error) { console.error(error); } else { - console.log('API called successfully.'); + console.log('API called successfully. Returned data: ' + data); } }); ``` ### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **xmlItem** | [**XmlItem**](XmlItem.md)| XmlItem Body | +This endpoint does not need any parameter. ### Return type -null (empty response body) +[**HealthCheckResult**](HealthCheckResult.md) ### Authorization @@ -62,8 +55,8 @@ No authorization required ### HTTP request headers -- **Content-Type**: application/xml, application/xml; charset=utf-8, application/xml; charset=utf-16, text/xml, text/xml; charset=utf-8, text/xml; charset=utf-16 -- **Accept**: Not defined +- **Content-Type**: Not defined +- **Accept**: application/json ## fakeOuterBooleanSerialize @@ -109,7 +102,7 @@ No authorization required ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: */* @@ -128,7 +121,7 @@ import OpenApiPetstore from 'open_api_petstore'; let apiInstance = new OpenApiPetstore.FakeApi(); let opts = { - 'body': new OpenApiPetstore.OuterComposite() // OuterComposite | Input composite as post body + 'outerComposite': new OpenApiPetstore.OuterComposite() // OuterComposite | Input composite as post body }; apiInstance.fakeOuterCompositeSerialize(opts, (error, data, response) => { if (error) { @@ -144,7 +137,7 @@ apiInstance.fakeOuterCompositeSerialize(opts, (error, data, response) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional] + **outerComposite** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional] ### Return type @@ -156,7 +149,7 @@ No authorization required ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: */* @@ -203,7 +196,7 @@ No authorization required ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: */* @@ -250,13 +243,13 @@ No authorization required ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: */* ## testBodyWithFileSchema -> testBodyWithFileSchema(body) +> testBodyWithFileSchema(fileSchemaTestClass) @@ -268,8 +261,8 @@ For this test, the body for this request much reference a schema named `Fil import OpenApiPetstore from 'open_api_petstore'; let apiInstance = new OpenApiPetstore.FakeApi(); -let body = new OpenApiPetstore.FileSchemaTestClass(); // FileSchemaTestClass | -apiInstance.testBodyWithFileSchema(body, (error, data, response) => { +let fileSchemaTestClass = new OpenApiPetstore.FileSchemaTestClass(); // FileSchemaTestClass | +apiInstance.testBodyWithFileSchema(fileSchemaTestClass, (error, data, response) => { if (error) { console.error(error); } else { @@ -283,7 +276,7 @@ apiInstance.testBodyWithFileSchema(body, (error, data, response) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | + **fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | ### Return type @@ -301,7 +294,7 @@ No authorization required ## testBodyWithQueryParams -> testBodyWithQueryParams(query, body) +> testBodyWithQueryParams(query, user) @@ -312,8 +305,8 @@ import OpenApiPetstore from 'open_api_petstore'; let apiInstance = new OpenApiPetstore.FakeApi(); let query = "query_example"; // String | -let body = new OpenApiPetstore.User(); // User | -apiInstance.testBodyWithQueryParams(query, body, (error, data, response) => { +let user = new OpenApiPetstore.User(); // User | +apiInstance.testBodyWithQueryParams(query, user, (error, data, response) => { if (error) { console.error(error); } else { @@ -328,7 +321,7 @@ apiInstance.testBodyWithQueryParams(query, body, (error, data, response) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **query** | **String**| | - **body** | [**User**](User.md)| | + **user** | [**User**](User.md)| | ### Return type @@ -346,7 +339,7 @@ No authorization required ## testClientModel -> Client testClientModel(body) +> Client testClientModel(client) To test \"client\" model @@ -358,8 +351,8 @@ To test \"client\" model import OpenApiPetstore from 'open_api_petstore'; let apiInstance = new OpenApiPetstore.FakeApi(); -let body = new OpenApiPetstore.Client(); // Client | client model -apiInstance.testClientModel(body, (error, data, response) => { +let client = new OpenApiPetstore.Client(); // Client | client model +apiInstance.testClientModel(client, (error, data, response) => { if (error) { console.error(error); } else { @@ -373,7 +366,7 @@ apiInstance.testClientModel(body, (error, data, response) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**Client**](Client.md)| client model | + **client** | [**Client**](Client.md)| client model | ### Return type @@ -393,9 +386,9 @@ No authorization required > testEndpointParameters(_number, _double, patternWithoutDelimiter, _byte, opts) -Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 +Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 -Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 +Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 ### Example @@ -540,6 +533,10 @@ Fake endpoint to test group parameters (optional) ```javascript import OpenApiPetstore from 'open_api_petstore'; +let defaultClient = OpenApiPetstore.ApiClient.instance; +// Configure Bearer (JWT) access token for authorization: bearer_test +let bearer_test = defaultClient.authentications['bearer_test']; +bearer_test.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new OpenApiPetstore.FakeApi(); let requiredStringGroup = 56; // Number | Required String in group parameters @@ -577,7 +574,7 @@ null (empty response body) ### Authorization -No authorization required +[bearer_test](../README.md#bearer_test) ### HTTP request headers @@ -587,7 +584,7 @@ No authorization required ## testInlineAdditionalProperties -> testInlineAdditionalProperties(param) +> testInlineAdditionalProperties(requestBody) test inline additionalProperties @@ -597,8 +594,8 @@ test inline additionalProperties import OpenApiPetstore from 'open_api_petstore'; let apiInstance = new OpenApiPetstore.FakeApi(); -let param = {key: "null"}; // {String: String} | request body -apiInstance.testInlineAdditionalProperties(param, (error, data, response) => { +let requestBody = {key: "null"}; // {String: String} | request body +apiInstance.testInlineAdditionalProperties(requestBody, (error, data, response) => { if (error) { console.error(error); } else { @@ -612,7 +609,7 @@ apiInstance.testInlineAdditionalProperties(param, (error, data, response) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **param** | [**{String: String}**](String.md)| request body | + **requestBody** | [**{String: String}**](String.md)| request body | ### Return type @@ -672,56 +669,3 @@ No authorization required - **Content-Type**: application/x-www-form-urlencoded - **Accept**: Not defined - -## testQueryParameterCollectionFormat - -> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context) - - - -To test the collection format in query parameters - -### Example - -```javascript -import OpenApiPetstore from 'open_api_petstore'; - -let apiInstance = new OpenApiPetstore.FakeApi(); -let pipe = ["null"]; // [String] | -let ioutil = ["null"]; // [String] | -let http = ["null"]; // [String] | -let url = ["null"]; // [String] | -let context = ["null"]; // [String] | -apiInstance.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, (error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully.'); - } -}); -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pipe** | [**[String]**](String.md)| | - **ioutil** | [**[String]**](String.md)| | - **http** | [**[String]**](String.md)| | - **url** | [**[String]**](String.md)| | - **context** | [**[String]**](String.md)| | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - diff --git a/samples/client/petstore/javascript-es6/docs/FakeClassnameTags123Api.md b/samples/client/petstore/javascript-es6/docs/FakeClassnameTags123Api.md index 067da4f34b1a..142a911a3c94 100644 --- a/samples/client/petstore/javascript-es6/docs/FakeClassnameTags123Api.md +++ b/samples/client/petstore/javascript-es6/docs/FakeClassnameTags123Api.md @@ -10,7 +10,7 @@ Method | HTTP request | Description ## testClassname -> Client testClassname(body) +> Client testClassname(client) To test class name in snake case @@ -28,8 +28,8 @@ api_key_query.apiKey = 'YOUR API KEY'; //api_key_query.apiKeyPrefix = 'Token'; let apiInstance = new OpenApiPetstore.FakeClassnameTags123Api(); -let body = new OpenApiPetstore.Client(); // Client | client model -apiInstance.testClassname(body, (error, data, response) => { +let client = new OpenApiPetstore.Client(); // Client | client model +apiInstance.testClassname(client, (error, data, response) => { if (error) { console.error(error); } else { @@ -43,7 +43,7 @@ apiInstance.testClassname(body, (error, data, response) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**Client**](Client.md)| client model | + **client** | [**Client**](Client.md)| client model | ### Return type diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/Fake_classname_tags123Api.md b/samples/client/petstore/javascript-es6/docs/Fake_classname_tags123Api.md similarity index 100% rename from samples/openapi3/client/petstore/javascript-es6/docs/Fake_classname_tags123Api.md rename to samples/client/petstore/javascript-es6/docs/Fake_classname_tags123Api.md diff --git a/samples/client/petstore/javascript-es6/docs/AdditionalPropertiesAnyType.md b/samples/client/petstore/javascript-es6/docs/Foo.md similarity index 56% rename from samples/client/petstore/javascript-es6/docs/AdditionalPropertiesAnyType.md rename to samples/client/petstore/javascript-es6/docs/Foo.md index 4b14f26ad125..1e0c9a294c48 100644 --- a/samples/client/petstore/javascript-es6/docs/AdditionalPropertiesAnyType.md +++ b/samples/client/petstore/javascript-es6/docs/Foo.md @@ -1,9 +1,9 @@ -# OpenApiPetstore.AdditionalPropertiesAnyType +# OpenApiPetstore.Foo ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **String** | | [optional] +**bar** | **String** | | [optional] [default to 'bar'] diff --git a/samples/client/petstore/javascript-es6/docs/FormatTest.md b/samples/client/petstore/javascript-es6/docs/FormatTest.md index d0df4b552e5a..83d751d4cdde 100644 --- a/samples/client/petstore/javascript-es6/docs/FormatTest.md +++ b/samples/client/petstore/javascript-es6/docs/FormatTest.md @@ -17,6 +17,7 @@ Name | Type | Description | Notes **dateTime** | **Date** | | [optional] **uuid** | **String** | | [optional] **password** | **String** | | -**bigDecimal** | **Number** | | [optional] +**patternWithDigits** | **String** | A string that is a 10 digit number. Can have leading zeros. | [optional] +**patternWithDigitsAndDelimiter** | **String** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional] diff --git a/samples/client/petstore/javascript-es6/docs/HasOnlyReadOnly.md b/samples/client/petstore/javascript-es6/docs/HasOnlyReadOnly.md index bfe08a1baee2..f3d71895b54b 100644 --- a/samples/client/petstore/javascript-es6/docs/HasOnlyReadOnly.md +++ b/samples/client/petstore/javascript-es6/docs/HasOnlyReadOnly.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**bar** | **String** | | [optional] [readonly] -**foo** | **String** | | [optional] [readonly] +**bar** | **String** | | [optional] +**foo** | **String** | | [optional] diff --git a/samples/client/petstore/javascript-es6/docs/AdditionalPropertiesArray.md b/samples/client/petstore/javascript-es6/docs/HealthCheckResult.md similarity index 56% rename from samples/client/petstore/javascript-es6/docs/AdditionalPropertiesArray.md rename to samples/client/petstore/javascript-es6/docs/HealthCheckResult.md index b99e8820d27a..bbb74ac6a0ae 100644 --- a/samples/client/petstore/javascript-es6/docs/AdditionalPropertiesArray.md +++ b/samples/client/petstore/javascript-es6/docs/HealthCheckResult.md @@ -1,9 +1,9 @@ -# OpenApiPetstore.AdditionalPropertiesArray +# OpenApiPetstore.HealthCheckResult ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **String** | | [optional] +**nullableMessage** | **String** | | [optional] diff --git a/samples/client/petstore/javascript-es6/docs/InlineObject.md b/samples/client/petstore/javascript-es6/docs/InlineObject.md new file mode 100644 index 000000000000..529c032d7a99 --- /dev/null +++ b/samples/client/petstore/javascript-es6/docs/InlineObject.md @@ -0,0 +1,10 @@ +# OpenApiPetstore.InlineObject + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | Updated name of the pet | [optional] +**status** | **String** | Updated status of the pet | [optional] + + diff --git a/samples/client/petstore/javascript-es6/docs/InlineObject1.md b/samples/client/petstore/javascript-es6/docs/InlineObject1.md new file mode 100644 index 000000000000..bd2fcd57a209 --- /dev/null +++ b/samples/client/petstore/javascript-es6/docs/InlineObject1.md @@ -0,0 +1,10 @@ +# OpenApiPetstore.InlineObject1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**additionalMetadata** | **String** | Additional data to pass to server | [optional] +**file** | **File** | file to upload | [optional] + + diff --git a/samples/client/petstore/javascript-es6/docs/InlineObject2.md b/samples/client/petstore/javascript-es6/docs/InlineObject2.md new file mode 100644 index 000000000000..7d703a9086a3 --- /dev/null +++ b/samples/client/petstore/javascript-es6/docs/InlineObject2.md @@ -0,0 +1,34 @@ +# OpenApiPetstore.InlineObject2 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enumFormStringArray** | **[String]** | Form parameter enum test (string array) | [optional] +**enumFormString** | **String** | Form parameter enum test (string) | [optional] [default to '-efg'] + + + +## Enum: [EnumFormStringArrayEnum] + + +* `GREATER_THAN` (value: `">"`) + +* `DOLLAR` (value: `"$"`) + + + + + +## Enum: EnumFormStringEnum + + +* `_abc` (value: `"_abc"`) + +* `-efg` (value: `"-efg"`) + +* `(xyz)` (value: `"(xyz)"`) + + + + diff --git a/samples/client/petstore/javascript-es6/docs/InlineObject3.md b/samples/client/petstore/javascript-es6/docs/InlineObject3.md new file mode 100644 index 000000000000..ec8980b728e7 --- /dev/null +++ b/samples/client/petstore/javascript-es6/docs/InlineObject3.md @@ -0,0 +1,22 @@ +# OpenApiPetstore.InlineObject3 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**integer** | **Number** | None | [optional] +**int32** | **Number** | None | [optional] +**int64** | **Number** | None | [optional] +**_number** | **Number** | None | +**_float** | **Number** | None | [optional] +**_double** | **Number** | None | +**_string** | **String** | None | [optional] +**patternWithoutDelimiter** | **String** | None | +**_byte** | **Blob** | None | +**binary** | **File** | None | [optional] +**_date** | **Date** | None | [optional] +**dateTime** | **Date** | None | [optional] +**password** | **String** | None | [optional] +**callback** | **String** | None | [optional] + + diff --git a/samples/client/petstore/javascript-es6/docs/InlineObject4.md b/samples/client/petstore/javascript-es6/docs/InlineObject4.md new file mode 100644 index 000000000000..07ce4b0cac21 --- /dev/null +++ b/samples/client/petstore/javascript-es6/docs/InlineObject4.md @@ -0,0 +1,10 @@ +# OpenApiPetstore.InlineObject4 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**param** | **String** | field1 | +**param2** | **String** | field2 | + + diff --git a/samples/client/petstore/javascript-es6/docs/InlineObject5.md b/samples/client/petstore/javascript-es6/docs/InlineObject5.md new file mode 100644 index 000000000000..16547e7f52bc --- /dev/null +++ b/samples/client/petstore/javascript-es6/docs/InlineObject5.md @@ -0,0 +1,10 @@ +# OpenApiPetstore.InlineObject5 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**additionalMetadata** | **String** | Additional data to pass to server | [optional] +**requiredFile** | **File** | file to upload | + + diff --git a/samples/client/petstore/javascript-es6/docs/InlineResponseDefault.md b/samples/client/petstore/javascript-es6/docs/InlineResponseDefault.md new file mode 100644 index 000000000000..19cae09524bd --- /dev/null +++ b/samples/client/petstore/javascript-es6/docs/InlineResponseDefault.md @@ -0,0 +1,9 @@ +# OpenApiPetstore.InlineResponseDefault + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**_string** | [**Foo**](Foo.md) | | [optional] + + diff --git a/samples/client/petstore/javascript-es6/docs/Name.md b/samples/client/petstore/javascript-es6/docs/Name.md index d9f2fbeb68ba..be2344179b47 100644 --- a/samples/client/petstore/javascript-es6/docs/Name.md +++ b/samples/client/petstore/javascript-es6/docs/Name.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **Number** | | -**snakeCase** | **Number** | | [optional] [readonly] +**snakeCase** | **Number** | | [optional] **property** | **String** | | [optional] -**_123number** | **Number** | | [optional] [readonly] +**_123number** | **Number** | | [optional] diff --git a/samples/client/petstore/javascript-es6/docs/NullableClass.md b/samples/client/petstore/javascript-es6/docs/NullableClass.md new file mode 100644 index 000000000000..3460980270dd --- /dev/null +++ b/samples/client/petstore/javascript-es6/docs/NullableClass.md @@ -0,0 +1,20 @@ +# OpenApiPetstore.NullableClass + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**integerProp** | **Number** | | [optional] +**numberProp** | **Number** | | [optional] +**booleanProp** | **Boolean** | | [optional] +**stringProp** | **String** | | [optional] +**dateProp** | **Date** | | [optional] +**datetimeProp** | **Date** | | [optional] +**arrayNullableProp** | **[Object]** | | [optional] +**arrayAndItemsNullableProp** | **[Object]** | | [optional] +**arrayItemsNullable** | **[Object]** | | [optional] +**objectNullableProp** | **{String: Object}** | | [optional] +**objectAndItemsNullableProp** | **{String: Object}** | | [optional] +**objectItemsNullable** | **{String: Object}** | | [optional] + + diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/OuterBoolean.md b/samples/client/petstore/javascript-es6/docs/OuterBoolean.md similarity index 100% rename from samples/openapi3/client/petstore/javascript-es6/docs/OuterBoolean.md rename to samples/client/petstore/javascript-es6/docs/OuterBoolean.md diff --git a/samples/client/petstore/javascript-es6/docs/OuterEnumDefaultValue.md b/samples/client/petstore/javascript-es6/docs/OuterEnumDefaultValue.md new file mode 100644 index 000000000000..6da697f63689 --- /dev/null +++ b/samples/client/petstore/javascript-es6/docs/OuterEnumDefaultValue.md @@ -0,0 +1,12 @@ +# OpenApiPetstore.OuterEnumDefaultValue + +## Enum + + +* `placed` (value: `"placed"`) + +* `approved` (value: `"approved"`) + +* `delivered` (value: `"delivered"`) + + diff --git a/samples/client/petstore/javascript-es6/docs/OuterEnumInteger.md b/samples/client/petstore/javascript-es6/docs/OuterEnumInteger.md new file mode 100644 index 000000000000..224989a0e6c7 --- /dev/null +++ b/samples/client/petstore/javascript-es6/docs/OuterEnumInteger.md @@ -0,0 +1,12 @@ +# OpenApiPetstore.OuterEnumInteger + +## Enum + + +* `0` (value: `0`) + +* `1` (value: `1`) + +* `2` (value: `2`) + + diff --git a/samples/client/petstore/javascript-es6/docs/OuterEnumIntegerDefaultValue.md b/samples/client/petstore/javascript-es6/docs/OuterEnumIntegerDefaultValue.md new file mode 100644 index 000000000000..fffd3f8f315a --- /dev/null +++ b/samples/client/petstore/javascript-es6/docs/OuterEnumIntegerDefaultValue.md @@ -0,0 +1,12 @@ +# OpenApiPetstore.OuterEnumIntegerDefaultValue + +## Enum + + +* `0` (value: `0`) + +* `1` (value: `1`) + +* `2` (value: `2`) + + diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/OuterNumber.md b/samples/client/petstore/javascript-es6/docs/OuterNumber.md similarity index 100% rename from samples/openapi3/client/petstore/javascript-es6/docs/OuterNumber.md rename to samples/client/petstore/javascript-es6/docs/OuterNumber.md diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/OuterString.md b/samples/client/petstore/javascript-es6/docs/OuterString.md similarity index 100% rename from samples/openapi3/client/petstore/javascript-es6/docs/OuterString.md rename to samples/client/petstore/javascript-es6/docs/OuterString.md diff --git a/samples/client/petstore/javascript-es6/docs/PetApi.md b/samples/client/petstore/javascript-es6/docs/PetApi.md index 4eba3f2d42b6..44734fbe72d3 100644 --- a/samples/client/petstore/javascript-es6/docs/PetApi.md +++ b/samples/client/petstore/javascript-es6/docs/PetApi.md @@ -18,7 +18,7 @@ Method | HTTP request | Description ## addPet -> addPet(body) +> addPet(pet) Add a new pet to the store @@ -32,8 +32,8 @@ let petstore_auth = defaultClient.authentications['petstore_auth']; petstore_auth.accessToken = 'YOUR ACCESS TOKEN'; let apiInstance = new OpenApiPetstore.PetApi(); -let body = new OpenApiPetstore.Pet(); // Pet | Pet object that needs to be added to the store -apiInstance.addPet(body, (error, data, response) => { +let pet = new OpenApiPetstore.Pet(); // Pet | Pet object that needs to be added to the store +apiInstance.addPet(pet, (error, data, response) => { if (error) { console.error(error); } else { @@ -47,7 +47,7 @@ apiInstance.addPet(body, (error, data, response) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | + **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | ### Return type @@ -265,7 +265,7 @@ Name | Type | Description | Notes ## updatePet -> updatePet(body) +> updatePet(pet) Update an existing pet @@ -279,8 +279,8 @@ let petstore_auth = defaultClient.authentications['petstore_auth']; petstore_auth.accessToken = 'YOUR ACCESS TOKEN'; let apiInstance = new OpenApiPetstore.PetApi(); -let body = new OpenApiPetstore.Pet(); // Pet | Pet object that needs to be added to the store -apiInstance.updatePet(body, (error, data, response) => { +let pet = new OpenApiPetstore.Pet(); // Pet | Pet object that needs to be added to the store +apiInstance.updatePet(pet, (error, data, response) => { if (error) { console.error(error); } else { @@ -294,7 +294,7 @@ apiInstance.updatePet(body, (error, data, response) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | + **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | ### Return type diff --git a/samples/client/petstore/javascript-es6/docs/ReadOnlyFirst.md b/samples/client/petstore/javascript-es6/docs/ReadOnlyFirst.md index eee7a321d406..01063e61a99f 100644 --- a/samples/client/petstore/javascript-es6/docs/ReadOnlyFirst.md +++ b/samples/client/petstore/javascript-es6/docs/ReadOnlyFirst.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**bar** | **String** | | [optional] [readonly] +**bar** | **String** | | [optional] **baz** | **String** | | [optional] diff --git a/samples/client/petstore/javascript-es6/docs/StoreApi.md b/samples/client/petstore/javascript-es6/docs/StoreApi.md index cfc59367e4bd..0f29ae4629fa 100644 --- a/samples/client/petstore/javascript-es6/docs/StoreApi.md +++ b/samples/client/petstore/javascript-es6/docs/StoreApi.md @@ -150,7 +150,7 @@ No authorization required ## placeOrder -> Order placeOrder(body) +> Order placeOrder(order) Place an order for a pet @@ -160,8 +160,8 @@ Place an order for a pet import OpenApiPetstore from 'open_api_petstore'; let apiInstance = new OpenApiPetstore.StoreApi(); -let body = new OpenApiPetstore.Order(); // Order | order placed for purchasing the pet -apiInstance.placeOrder(body, (error, data, response) => { +let order = new OpenApiPetstore.Order(); // Order | order placed for purchasing the pet +apiInstance.placeOrder(order, (error, data, response) => { if (error) { console.error(error); } else { @@ -175,7 +175,7 @@ apiInstance.placeOrder(body, (error, data, response) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**Order**](Order.md)| order placed for purchasing the pet | + **order** | [**Order**](Order.md)| order placed for purchasing the pet | ### Return type @@ -187,6 +187,6 @@ No authorization required ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: application/xml, application/json diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/StringBooleanMap.md b/samples/client/petstore/javascript-es6/docs/StringBooleanMap.md similarity index 100% rename from samples/openapi3/client/petstore/javascript-es6/docs/StringBooleanMap.md rename to samples/client/petstore/javascript-es6/docs/StringBooleanMap.md diff --git a/samples/client/petstore/javascript-es6/docs/TypeHolderDefault.md b/samples/client/petstore/javascript-es6/docs/TypeHolderDefault.md index 3342b500760c..e726bb053545 100644 --- a/samples/client/petstore/javascript-es6/docs/TypeHolderDefault.md +++ b/samples/client/petstore/javascript-es6/docs/TypeHolderDefault.md @@ -1,7 +1,6 @@ # OpenApiPetstore.TypeHolderDefault ## Properties - Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **stringItem** | **String** | | [default to 'what'] diff --git a/samples/client/petstore/javascript-es6/docs/TypeHolderExample.md b/samples/client/petstore/javascript-es6/docs/TypeHolderExample.md index 44ba1e3aef7f..925271cb6cd1 100644 --- a/samples/client/petstore/javascript-es6/docs/TypeHolderExample.md +++ b/samples/client/petstore/javascript-es6/docs/TypeHolderExample.md @@ -1,12 +1,10 @@ # OpenApiPetstore.TypeHolderExample ## Properties - Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **stringItem** | **String** | | **numberItem** | **Number** | | -**floatItem** | **Number** | | **integerItem** | **Number** | | **boolItem** | **Boolean** | | **arrayItem** | **[Number]** | | diff --git a/samples/client/petstore/javascript-es6/docs/UserApi.md b/samples/client/petstore/javascript-es6/docs/UserApi.md index 121ddbda6657..c45620854176 100644 --- a/samples/client/petstore/javascript-es6/docs/UserApi.md +++ b/samples/client/petstore/javascript-es6/docs/UserApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description ## createUser -> createUser(body) +> createUser(user) Create user @@ -29,8 +29,8 @@ This can only be done by the logged in user. import OpenApiPetstore from 'open_api_petstore'; let apiInstance = new OpenApiPetstore.UserApi(); -let body = new OpenApiPetstore.User(); // User | Created user object -apiInstance.createUser(body, (error, data, response) => { +let user = new OpenApiPetstore.User(); // User | Created user object +apiInstance.createUser(user, (error, data, response) => { if (error) { console.error(error); } else { @@ -44,7 +44,7 @@ apiInstance.createUser(body, (error, data, response) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**User**](User.md)| Created user object | + **user** | [**User**](User.md)| Created user object | ### Return type @@ -56,13 +56,13 @@ No authorization required ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: Not defined ## createUsersWithArrayInput -> createUsersWithArrayInput(body) +> createUsersWithArrayInput(user) Creates list of users with given input array @@ -72,8 +72,8 @@ Creates list of users with given input array import OpenApiPetstore from 'open_api_petstore'; let apiInstance = new OpenApiPetstore.UserApi(); -let body = [new OpenApiPetstore.User()]; // [User] | List of user object -apiInstance.createUsersWithArrayInput(body, (error, data, response) => { +let user = [new OpenApiPetstore.User()]; // [User] | List of user object +apiInstance.createUsersWithArrayInput(user, (error, data, response) => { if (error) { console.error(error); } else { @@ -87,7 +87,7 @@ apiInstance.createUsersWithArrayInput(body, (error, data, response) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**[User]**](User.md)| List of user object | + **user** | [**[User]**](User.md)| List of user object | ### Return type @@ -99,13 +99,13 @@ No authorization required ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: Not defined ## createUsersWithListInput -> createUsersWithListInput(body) +> createUsersWithListInput(user) Creates list of users with given input array @@ -115,8 +115,8 @@ Creates list of users with given input array import OpenApiPetstore from 'open_api_petstore'; let apiInstance = new OpenApiPetstore.UserApi(); -let body = [new OpenApiPetstore.User()]; // [User] | List of user object -apiInstance.createUsersWithListInput(body, (error, data, response) => { +let user = [new OpenApiPetstore.User()]; // [User] | List of user object +apiInstance.createUsersWithListInput(user, (error, data, response) => { if (error) { console.error(error); } else { @@ -130,7 +130,7 @@ apiInstance.createUsersWithListInput(body, (error, data, response) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**[User]**](User.md)| List of user object | + **user** | [**[User]**](User.md)| List of user object | ### Return type @@ -142,7 +142,7 @@ No authorization required ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: Not defined @@ -320,7 +320,7 @@ No authorization required ## updateUser -> updateUser(username, body) +> updateUser(username, user) Updated user @@ -333,8 +333,8 @@ import OpenApiPetstore from 'open_api_petstore'; let apiInstance = new OpenApiPetstore.UserApi(); let username = "username_example"; // String | name that need to be deleted -let body = new OpenApiPetstore.User(); // User | Updated user object -apiInstance.updateUser(username, body, (error, data, response) => { +let user = new OpenApiPetstore.User(); // User | Updated user object +apiInstance.updateUser(username, user, (error, data, response) => { if (error) { console.error(error); } else { @@ -349,7 +349,7 @@ apiInstance.updateUser(username, body, (error, data, response) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **username** | **String**| name that need to be deleted | - **body** | [**User**](User.md)| Updated user object | + **user** | [**User**](User.md)| Updated user object | ### Return type @@ -361,6 +361,6 @@ No authorization required ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: Not defined diff --git a/samples/client/petstore/javascript-es6/docs/XmlItem.md b/samples/client/petstore/javascript-es6/docs/XmlItem.md deleted file mode 100644 index 8711fac40809..000000000000 --- a/samples/client/petstore/javascript-es6/docs/XmlItem.md +++ /dev/null @@ -1,37 +0,0 @@ -# OpenApiPetstore.XmlItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**attributeString** | **String** | | [optional] -**attributeNumber** | **Number** | | [optional] -**attributeInteger** | **Number** | | [optional] -**attributeBoolean** | **Boolean** | | [optional] -**wrappedArray** | **[Number]** | | [optional] -**nameString** | **String** | | [optional] -**nameNumber** | **Number** | | [optional] -**nameInteger** | **Number** | | [optional] -**nameBoolean** | **Boolean** | | [optional] -**nameArray** | **[Number]** | | [optional] -**nameWrappedArray** | **[Number]** | | [optional] -**prefixString** | **String** | | [optional] -**prefixNumber** | **Number** | | [optional] -**prefixInteger** | **Number** | | [optional] -**prefixBoolean** | **Boolean** | | [optional] -**prefixArray** | **[Number]** | | [optional] -**prefixWrappedArray** | **[Number]** | | [optional] -**namespaceString** | **String** | | [optional] -**namespaceNumber** | **Number** | | [optional] -**namespaceInteger** | **Number** | | [optional] -**namespaceBoolean** | **Boolean** | | [optional] -**namespaceArray** | **[Number]** | | [optional] -**namespaceWrappedArray** | **[Number]** | | [optional] -**prefixNsString** | **String** | | [optional] -**prefixNsNumber** | **Number** | | [optional] -**prefixNsInteger** | **Number** | | [optional] -**prefixNsBoolean** | **Boolean** | | [optional] -**prefixNsArray** | **[Number]** | | [optional] -**prefixNsWrappedArray** | **[Number]** | | [optional] - - diff --git a/samples/client/petstore/javascript-es6/git_push.sh b/samples/client/petstore/javascript-es6/git_push.sh index ced3be2b0c7b..04dd5df38e83 100644 --- a/samples/client/petstore/javascript-es6/git_push.sh +++ b/samples/client/petstore/javascript-es6/git_push.sh @@ -1,17 +1,11 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" git_user_id=$1 git_repo_id=$2 release_note=$3 -git_host=$4 - -if [ "$git_host" = "" ]; then - git_host="github.com" - echo "[INFO] No command line input provided. Set \$git_host to $git_host" -fi if [ "$git_user_id" = "" ]; then git_user_id="GIT_USER_ID" @@ -34,7 +28,7 @@ git init # Adds the files in the local repository and stages them for commit. git add . -# Commits the tracked changes and prepares them to be pushed to a remote repository. +# Commits the tracked changes and prepares them to be pushed to a remote repository. git commit -m "$release_note" # Sets the new remote @@ -42,10 +36,10 @@ git_remote=`git remote` if [ "$git_remote" = "" ]; then # git remote not defined if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." - git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the Git credential in your environment." + git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git else - git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git + git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git fi fi @@ -53,6 +47,6 @@ fi git pull origin master # Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git" git push origin master 2>&1 | grep -v 'To https' diff --git a/samples/client/petstore/javascript-es6/pom.xml b/samples/client/petstore/javascript-es6/pom.xml index 66f75f962f93..dc2e0fa9a9e8 100644 --- a/samples/client/petstore/javascript-es6/pom.xml +++ b/samples/client/petstore/javascript-es6/pom.xml @@ -1,10 +1,10 @@ 4.0.0 org.openapitools - openapi-petstore-javascript-es6 + openapi-v3-petstore-javascript-es6 pom 1.0-SNAPSHOT - OpenAPI Petstore JS Client (ES6) + OpenAPI v3 Petstore JS Client (ES6) diff --git a/samples/client/petstore/javascript-es6/src/ApiClient.js b/samples/client/petstore/javascript-es6/src/ApiClient.js index 9d51da74d549..83cba1cae1a3 100644 --- a/samples/client/petstore/javascript-es6/src/ApiClient.js +++ b/samples/client/petstore/javascript-es6/src/ApiClient.js @@ -43,6 +43,7 @@ class ApiClient { this.authentications = { 'api_key': {type: 'apiKey', 'in': 'header', name: 'api_key'}, 'api_key_query': {type: 'apiKey', 'in': 'query', name: 'api_key_query'}, + 'bearer_test': {type: 'bearer'}, // JWT 'http_basic_test': {type: 'basic'}, 'petstore_auth': {type: 'oauth2'} } @@ -362,7 +363,7 @@ class ApiClient { * @param {Array.} accepts An array of acceptable response MIME types. * @param {(String|Array|ObjectFunction)} returnType The required type to return; can be a string for simple types or the * constructor for a complex type. - * @param {String} apiBasePath base path defined in the operation/path level to override the default one + * @param {String} apiBasePath base path defined in the operation/path level to override the default one * @param {module:ApiClient~callApiCallback} callback The callback function. * @returns {Object} The SuperAgent request object. */ @@ -557,8 +558,41 @@ class ApiClient { hostSettings() { return [ { - 'url': "http://petstore.swagger.io:80/v2", - 'description': "No description provided", + 'url': "http://{server}.swagger.io:{port}/v2", + 'description': "petstore server", + 'variables': { + server: { + 'description': "No description provided", + 'default_value': "petstore", + 'enum_values': [ + "petstore", + "qa-petstore", + "dev-petstore" + ] + }, + port: { + 'description': "No description provided", + 'default_value': "80", + 'enum_values': [ + "80", + "8080" + ] + } + } + }, + { + 'url': "https://localhost:8080/{version}", + 'description': "The local server", + 'variables': { + version: { + 'description': "No description provided", + 'default_value': "v2", + 'enum_values': [ + "v1", + "v2" + ] + } + } } ]; } diff --git a/samples/client/petstore/javascript-es6/src/api/AnotherFakeApi.js b/samples/client/petstore/javascript-es6/src/api/AnotherFakeApi.js index 1231b9ddce63..c84fc12049af 100644 --- a/samples/client/petstore/javascript-es6/src/api/AnotherFakeApi.js +++ b/samples/client/petstore/javascript-es6/src/api/AnotherFakeApi.js @@ -45,15 +45,15 @@ export default class AnotherFakeApi { /** * To test special tags * To test special tags and operation ID starting with number - * @param {module:model/Client} body client model + * @param {module:model/Client} client client model * @param {module:api/AnotherFakeApi~call123testSpecialTagsCallback} callback The callback function, accepting three arguments: error, data, response * data is of type: {@link module:model/Client} */ - call123testSpecialTags(body, callback) { - let postBody = body; - // verify the required parameter 'body' is set - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling call123testSpecialTags"); + call123testSpecialTags(client, callback) { + let postBody = client; + // verify the required parameter 'client' is set + if (client === undefined || client === null) { + throw new Error("Missing the required parameter 'client' when calling call123testSpecialTags"); } let pathParams = { diff --git a/samples/client/petstore/javascript-es6/src/api/DefaultApi.js b/samples/client/petstore/javascript-es6/src/api/DefaultApi.js new file mode 100644 index 000000000000..2a586e6fc32a --- /dev/null +++ b/samples/client/petstore/javascript-es6/src/api/DefaultApi.js @@ -0,0 +1,73 @@ +/** + * OpenAPI Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import InlineResponseDefault from '../model/InlineResponseDefault'; + +/** +* Default service. +* @module api/DefaultApi +* @version 1.0.0 +*/ +export default class DefaultApi { + + /** + * Constructs a new DefaultApi. + * @alias module:api/DefaultApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + /** + * Callback function to receive the result of the fooGet operation. + * @callback module:api/DefaultApi~fooGetCallback + * @param {String} error Error message, if any. + * @param {module:model/InlineResponseDefault} data The data returned by the service call. + * @param {String} response The complete HTTP response. + */ + + /** + * @param {module:api/DefaultApi~fooGetCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/InlineResponseDefault} + */ + fooGet(callback) { + let postBody = null; + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = []; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = InlineResponseDefault; + return this.apiClient.callApi( + '/foo', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + + +} diff --git a/samples/client/petstore/javascript-es6/src/api/FakeApi.js b/samples/client/petstore/javascript-es6/src/api/FakeApi.js index 8c3bffd8c857..b779413c5a33 100644 --- a/samples/client/petstore/javascript-es6/src/api/FakeApi.js +++ b/samples/client/petstore/javascript-es6/src/api/FakeApi.js @@ -15,9 +15,9 @@ import ApiClient from "../ApiClient"; import Client from '../model/Client'; import FileSchemaTestClass from '../model/FileSchemaTestClass'; +import HealthCheckResult from '../model/HealthCheckResult'; import OuterComposite from '../model/OuterComposite'; import User from '../model/User'; -import XmlItem from '../model/XmlItem'; /** * Fake service. @@ -39,25 +39,20 @@ export default class FakeApi { /** - * Callback function to receive the result of the createXmlItem operation. - * @callback module:api/FakeApi~createXmlItemCallback + * Callback function to receive the result of the fakeHealthGet operation. + * @callback module:api/FakeApi~fakeHealthGetCallback * @param {String} error Error message, if any. - * @param data This operation does not return a value. + * @param {module:model/HealthCheckResult} data The data returned by the service call. * @param {String} response The complete HTTP response. */ /** - * creates an XmlItem - * this route creates an XmlItem - * @param {module:model/XmlItem} xmlItem XmlItem Body - * @param {module:api/FakeApi~createXmlItemCallback} callback The callback function, accepting three arguments: error, data, response + * Health check endpoint + * @param {module:api/FakeApi~fakeHealthGetCallback} callback The callback function, accepting three arguments: error, data, response + * data is of type: {@link module:model/HealthCheckResult} */ - createXmlItem(xmlItem, callback) { - let postBody = xmlItem; - // verify the required parameter 'xmlItem' is set - if (xmlItem === undefined || xmlItem === null) { - throw new Error("Missing the required parameter 'xmlItem' when calling createXmlItem"); - } + fakeHealthGet(callback) { + let postBody = null; let pathParams = { }; @@ -69,11 +64,11 @@ export default class FakeApi { }; let authNames = []; - let contentTypes = ['application/xml', 'application/xml; charset=utf-8', 'application/xml; charset=utf-16', 'text/xml', 'text/xml; charset=utf-8', 'text/xml; charset=utf-16']; - let accepts = []; - let returnType = null; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = HealthCheckResult; return this.apiClient.callApi( - '/fake/create_xml_item', 'POST', + '/fake/health', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); @@ -108,7 +103,7 @@ export default class FakeApi { }; let authNames = []; - let contentTypes = []; + let contentTypes = ['application/json']; let accepts = ['*/*']; let returnType = 'Boolean'; return this.apiClient.callApi( @@ -129,13 +124,13 @@ export default class FakeApi { /** * Test serialization of object with outer number type * @param {Object} opts Optional parameters - * @param {module:model/OuterComposite} opts.body Input composite as post body + * @param {module:model/OuterComposite} opts.outerComposite Input composite as post body * @param {module:api/FakeApi~fakeOuterCompositeSerializeCallback} callback The callback function, accepting three arguments: error, data, response * data is of type: {@link module:model/OuterComposite} */ fakeOuterCompositeSerialize(opts, callback) { opts = opts || {}; - let postBody = opts['body']; + let postBody = opts['outerComposite']; let pathParams = { }; @@ -147,7 +142,7 @@ export default class FakeApi { }; let authNames = []; - let contentTypes = []; + let contentTypes = ['application/json']; let accepts = ['*/*']; let returnType = OuterComposite; return this.apiClient.callApi( @@ -186,7 +181,7 @@ export default class FakeApi { }; let authNames = []; - let contentTypes = []; + let contentTypes = ['application/json']; let accepts = ['*/*']; let returnType = 'Number'; return this.apiClient.callApi( @@ -225,7 +220,7 @@ export default class FakeApi { }; let authNames = []; - let contentTypes = []; + let contentTypes = ['application/json']; let accepts = ['*/*']; let returnType = 'String'; return this.apiClient.callApi( @@ -245,14 +240,14 @@ export default class FakeApi { /** * For this test, the body for this request much reference a schema named `File`. - * @param {module:model/FileSchemaTestClass} body + * @param {module:model/FileSchemaTestClass} fileSchemaTestClass * @param {module:api/FakeApi~testBodyWithFileSchemaCallback} callback The callback function, accepting three arguments: error, data, response */ - testBodyWithFileSchema(body, callback) { - let postBody = body; - // verify the required parameter 'body' is set - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling testBodyWithFileSchema"); + testBodyWithFileSchema(fileSchemaTestClass, callback) { + let postBody = fileSchemaTestClass; + // verify the required parameter 'fileSchemaTestClass' is set + if (fileSchemaTestClass === undefined || fileSchemaTestClass === null) { + throw new Error("Missing the required parameter 'fileSchemaTestClass' when calling testBodyWithFileSchema"); } let pathParams = { @@ -285,18 +280,18 @@ export default class FakeApi { /** * @param {String} query - * @param {module:model/User} body + * @param {module:model/User} user * @param {module:api/FakeApi~testBodyWithQueryParamsCallback} callback The callback function, accepting three arguments: error, data, response */ - testBodyWithQueryParams(query, body, callback) { - let postBody = body; + testBodyWithQueryParams(query, user, callback) { + let postBody = user; // verify the required parameter 'query' is set if (query === undefined || query === null) { throw new Error("Missing the required parameter 'query' when calling testBodyWithQueryParams"); } - // verify the required parameter 'body' is set - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling testBodyWithQueryParams"); + // verify the required parameter 'user' is set + if (user === undefined || user === null) { + throw new Error("Missing the required parameter 'user' when calling testBodyWithQueryParams"); } let pathParams = { @@ -331,15 +326,15 @@ export default class FakeApi { /** * To test \"client\" model * To test \"client\" model - * @param {module:model/Client} body client model + * @param {module:model/Client} client client model * @param {module:api/FakeApi~testClientModelCallback} callback The callback function, accepting three arguments: error, data, response * data is of type: {@link module:model/Client} */ - testClientModel(body, callback) { - let postBody = body; - // verify the required parameter 'body' is set - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling testClientModel"); + testClientModel(client, callback) { + let postBody = client; + // verify the required parameter 'client' is set + if (client === undefined || client === null) { + throw new Error("Missing the required parameter 'client' when calling testClientModel"); } let pathParams = { @@ -371,8 +366,8 @@ export default class FakeApi { */ /** - * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 + * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 + * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 * @param {Number} _number None * @param {Number} _double None * @param {String} patternWithoutDelimiter None @@ -473,7 +468,7 @@ export default class FakeApi { let pathParams = { }; let queryParams = { - 'enum_query_string_array': this.apiClient.buildCollectionParam(opts['enumQueryStringArray'], 'csv'), + 'enum_query_string_array': this.apiClient.buildCollectionParam(opts['enumQueryStringArray'], 'multi'), 'enum_query_string': opts['enumQueryString'], 'enum_query_integer': opts['enumQueryInteger'], 'enum_query_double': opts['enumQueryDouble'] @@ -549,7 +544,7 @@ export default class FakeApi { let formParams = { }; - let authNames = []; + let authNames = ['bearer_test']; let contentTypes = []; let accepts = []; let returnType = null; @@ -570,14 +565,14 @@ export default class FakeApi { /** * test inline additionalProperties - * @param {Object.} param request body + * @param {Object.} requestBody request body * @param {module:api/FakeApi~testInlineAdditionalPropertiesCallback} callback The callback function, accepting three arguments: error, data, response */ - testInlineAdditionalProperties(param, callback) { - let postBody = param; - // verify the required parameter 'param' is set - if (param === undefined || param === null) { - throw new Error("Missing the required parameter 'param' when calling testInlineAdditionalProperties"); + testInlineAdditionalProperties(requestBody, callback) { + let postBody = requestBody; + // verify the required parameter 'requestBody' is set + if (requestBody === undefined || requestBody === null) { + throw new Error("Missing the required parameter 'requestBody' when calling testInlineAdditionalProperties"); } let pathParams = { @@ -647,70 +642,5 @@ export default class FakeApi { ); } - /** - * Callback function to receive the result of the testQueryParameterCollectionFormat operation. - * @callback module:api/FakeApi~testQueryParameterCollectionFormatCallback - * @param {String} error Error message, if any. - * @param data This operation does not return a value. - * @param {String} response The complete HTTP response. - */ - - /** - * To test the collection format in query parameters - * @param {Array.} pipe - * @param {Array.} ioutil - * @param {Array.} http - * @param {Array.} url - * @param {Array.} context - * @param {module:api/FakeApi~testQueryParameterCollectionFormatCallback} callback The callback function, accepting three arguments: error, data, response - */ - testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, callback) { - let postBody = null; - // verify the required parameter 'pipe' is set - if (pipe === undefined || pipe === null) { - throw new Error("Missing the required parameter 'pipe' when calling testQueryParameterCollectionFormat"); - } - // verify the required parameter 'ioutil' is set - if (ioutil === undefined || ioutil === null) { - throw new Error("Missing the required parameter 'ioutil' when calling testQueryParameterCollectionFormat"); - } - // verify the required parameter 'http' is set - if (http === undefined || http === null) { - throw new Error("Missing the required parameter 'http' when calling testQueryParameterCollectionFormat"); - } - // verify the required parameter 'url' is set - if (url === undefined || url === null) { - throw new Error("Missing the required parameter 'url' when calling testQueryParameterCollectionFormat"); - } - // verify the required parameter 'context' is set - if (context === undefined || context === null) { - throw new Error("Missing the required parameter 'context' when calling testQueryParameterCollectionFormat"); - } - - let pathParams = { - }; - let queryParams = { - 'pipe': this.apiClient.buildCollectionParam(pipe, 'csv'), - 'ioutil': this.apiClient.buildCollectionParam(ioutil, 'csv'), - 'http': this.apiClient.buildCollectionParam(http, 'space'), - 'url': this.apiClient.buildCollectionParam(url, 'csv'), - 'context': this.apiClient.buildCollectionParam(context, 'multi') - }; - let headerParams = { - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = []; - let returnType = null; - return this.apiClient.callApi( - '/fake/test-query-paramters', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - } diff --git a/samples/client/petstore/javascript-es6/src/api/FakeClassnameTags123Api.js b/samples/client/petstore/javascript-es6/src/api/FakeClassnameTags123Api.js index be6005d1f73f..324529a59b2b 100644 --- a/samples/client/petstore/javascript-es6/src/api/FakeClassnameTags123Api.js +++ b/samples/client/petstore/javascript-es6/src/api/FakeClassnameTags123Api.js @@ -45,15 +45,15 @@ export default class FakeClassnameTags123Api { /** * To test class name in snake case * To test class name in snake case - * @param {module:model/Client} body client model + * @param {module:model/Client} client client model * @param {module:api/FakeClassnameTags123Api~testClassnameCallback} callback The callback function, accepting three arguments: error, data, response * data is of type: {@link module:model/Client} */ - testClassname(body, callback) { - let 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"); + testClassname(client, callback) { + let postBody = client; + // verify the required parameter 'client' is set + if (client === undefined || client === null) { + throw new Error("Missing the required parameter 'client' when calling testClassname"); } let pathParams = { diff --git a/samples/client/petstore/javascript-es6/src/api/PetApi.js b/samples/client/petstore/javascript-es6/src/api/PetApi.js index 0aa787e8fa3c..0f23c0690101 100644 --- a/samples/client/petstore/javascript-es6/src/api/PetApi.js +++ b/samples/client/petstore/javascript-es6/src/api/PetApi.js @@ -45,14 +45,15 @@ export default class PetApi { /** * Add a new pet to the store - * @param {module:model/Pet} body Pet object that needs to be added to the store + * @param {module:model/Pet} pet Pet object that needs to be added to the store * @param {module:api/PetApi~addPetCallback} callback The callback function, accepting three arguments: error, data, response */ - addPet(body, callback) { - let postBody = body; - // verify the required parameter 'body' is set - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling addPet"); + addPet(pet, opts, callback) { + opts = opts || {}; + let postBody = pet; + // verify the required parameter 'pet' is set + if (pet === undefined || pet === null) { + throw new Error("Missing the required parameter 'pet' when calling addPet"); } let pathParams = { @@ -68,10 +69,19 @@ export default class PetApi { let contentTypes = ['application/json', 'application/xml']; let accepts = []; let returnType = null; + let basePaths = ['http://petstore.swagger.io/v2', 'http://path-server-test.petstore.local/v2']; + let basePath = basePaths[0]; // by default use the first one in "servers" defined in OpenAPI + if (typeof opts['_base_path_index'] !== 'undefined') { + if (opts['_base_path_index'] >= basePaths.length || opts['_base_path_index'] < 0) { + throw new Error("Invalid index " + opts['_base_path_index'] + " when selecting the host settings. Must be less than " + basePaths.length); + } + basePath = basePaths[opts['_base_path_index']]; + } + return this.apiClient.callApi( '/pet', 'POST', pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback + authNames, contentTypes, accepts, returnType, basePath, callback ); } @@ -259,14 +269,15 @@ export default class PetApi { /** * Update an existing pet - * @param {module:model/Pet} body Pet object that needs to be added to the store + * @param {module:model/Pet} pet Pet object that needs to be added to the store * @param {module:api/PetApi~updatePetCallback} callback The callback function, accepting three arguments: error, data, response */ - updatePet(body, callback) { - let postBody = body; - // verify the required parameter 'body' is set - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updatePet"); + updatePet(pet, opts, callback) { + opts = opts || {}; + let postBody = pet; + // verify the required parameter 'pet' is set + if (pet === undefined || pet === null) { + throw new Error("Missing the required parameter 'pet' when calling updatePet"); } let pathParams = { @@ -282,10 +293,19 @@ export default class PetApi { let contentTypes = ['application/json', 'application/xml']; let accepts = []; let returnType = null; + let basePaths = ['http://petstore.swagger.io/v2', 'http://path-server-test.petstore.local/v2']; + let basePath = basePaths[0]; // by default use the first one in "servers" defined in OpenAPI + if (typeof opts['_base_path_index'] !== 'undefined') { + if (opts['_base_path_index'] >= basePaths.length || opts['_base_path_index'] < 0) { + throw new Error("Invalid index " + opts['_base_path_index'] + " when selecting the host settings. Must be less than " + basePaths.length); + } + basePath = basePaths[opts['_base_path_index']]; + } + return this.apiClient.callApi( '/pet', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback + authNames, contentTypes, accepts, returnType, basePath, callback ); } diff --git a/samples/client/petstore/javascript-es6/src/api/StoreApi.js b/samples/client/petstore/javascript-es6/src/api/StoreApi.js index caa035182ef1..74ad1afd3efa 100644 --- a/samples/client/petstore/javascript-es6/src/api/StoreApi.js +++ b/samples/client/petstore/javascript-es6/src/api/StoreApi.js @@ -166,15 +166,15 @@ export default class StoreApi { /** * Place an order for a pet - * @param {module:model/Order} body order placed for purchasing the pet + * @param {module:model/Order} order order placed for purchasing the pet * @param {module:api/StoreApi~placeOrderCallback} callback The callback function, accepting three arguments: error, data, response * data is of type: {@link module:model/Order} */ - placeOrder(body, callback) { - let postBody = body; - // verify the required parameter 'body' is set - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling placeOrder"); + placeOrder(order, callback) { + let postBody = order; + // verify the required parameter 'order' is set + if (order === undefined || order === null) { + throw new Error("Missing the required parameter 'order' when calling placeOrder"); } let pathParams = { @@ -187,7 +187,7 @@ export default class StoreApi { }; let authNames = []; - let contentTypes = []; + let contentTypes = ['application/json']; let accepts = ['application/xml', 'application/json']; let returnType = Order; return this.apiClient.callApi( diff --git a/samples/client/petstore/javascript-es6/src/api/UserApi.js b/samples/client/petstore/javascript-es6/src/api/UserApi.js index aba7b237e692..83720dd3a1dd 100644 --- a/samples/client/petstore/javascript-es6/src/api/UserApi.js +++ b/samples/client/petstore/javascript-es6/src/api/UserApi.js @@ -45,14 +45,14 @@ export default class UserApi { /** * Create user * This can only be done by the logged in user. - * @param {module:model/User} body Created user object + * @param {module:model/User} user Created user object * @param {module:api/UserApi~createUserCallback} callback The callback function, accepting three arguments: error, data, response */ - createUser(body, callback) { - let postBody = body; - // verify the required parameter 'body' is set - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling createUser"); + createUser(user, callback) { + let postBody = user; + // verify the required parameter 'user' is set + if (user === undefined || user === null) { + throw new Error("Missing the required parameter 'user' when calling createUser"); } let pathParams = { @@ -65,7 +65,7 @@ export default class UserApi { }; let authNames = []; - let contentTypes = []; + let contentTypes = ['application/json']; let accepts = []; let returnType = null; return this.apiClient.callApi( @@ -85,14 +85,14 @@ export default class UserApi { /** * Creates list of users with given input array - * @param {Array.} body List of user object + * @param {Array.} user List of user object * @param {module:api/UserApi~createUsersWithArrayInputCallback} callback The callback function, accepting three arguments: error, data, response */ - createUsersWithArrayInput(body, callback) { - let postBody = body; - // verify the required parameter 'body' is set - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling createUsersWithArrayInput"); + createUsersWithArrayInput(user, callback) { + let postBody = user; + // verify the required parameter 'user' is set + if (user === undefined || user === null) { + throw new Error("Missing the required parameter 'user' when calling createUsersWithArrayInput"); } let pathParams = { @@ -105,7 +105,7 @@ export default class UserApi { }; let authNames = []; - let contentTypes = []; + let contentTypes = ['application/json']; let accepts = []; let returnType = null; return this.apiClient.callApi( @@ -125,14 +125,14 @@ export default class UserApi { /** * Creates list of users with given input array - * @param {Array.} body List of user object + * @param {Array.} user List of user object * @param {module:api/UserApi~createUsersWithListInputCallback} callback The callback function, accepting three arguments: error, data, response */ - createUsersWithListInput(body, callback) { - let postBody = body; - // verify the required parameter 'body' is set - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling createUsersWithListInput"); + createUsersWithListInput(user, callback) { + let postBody = user; + // verify the required parameter 'user' is set + if (user === undefined || user === null) { + throw new Error("Missing the required parameter 'user' when calling createUsersWithListInput"); } let pathParams = { @@ -145,7 +145,7 @@ export default class UserApi { }; let authNames = []; - let contentTypes = []; + let contentTypes = ['application/json']; let accepts = []; let returnType = null; return this.apiClient.callApi( @@ -334,18 +334,18 @@ export default class UserApi { * Updated user * This can only be done by the logged in user. * @param {String} username name that need to be deleted - * @param {module:model/User} body Updated user object + * @param {module:model/User} user Updated user object * @param {module:api/UserApi~updateUserCallback} callback The callback function, accepting three arguments: error, data, response */ - updateUser(username, body, callback) { - let postBody = body; + updateUser(username, user, callback) { + let postBody = user; // verify the required parameter 'username' is set if (username === undefined || username === null) { throw new Error("Missing the required parameter 'username' when calling updateUser"); } - // verify the required parameter 'body' is set - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateUser"); + // verify the required parameter 'user' is set + if (user === undefined || user === null) { + throw new Error("Missing the required parameter 'user' when calling updateUser"); } let pathParams = { @@ -359,7 +359,7 @@ export default class UserApi { }; let authNames = []; - let contentTypes = []; + let contentTypes = ['application/json']; let accepts = []; let returnType = null; return this.apiClient.callApi( diff --git a/samples/client/petstore/javascript-es6/src/index.js b/samples/client/petstore/javascript-es6/src/index.js index e4dc27efbc35..1a0cda3b1dcd 100644 --- a/samples/client/petstore/javascript-es6/src/index.js +++ b/samples/client/petstore/javascript-es6/src/index.js @@ -13,21 +13,12 @@ import ApiClient from './ApiClient'; -import AdditionalPropertiesAnyType from './model/AdditionalPropertiesAnyType'; -import AdditionalPropertiesArray from './model/AdditionalPropertiesArray'; -import AdditionalPropertiesBoolean from './model/AdditionalPropertiesBoolean'; import AdditionalPropertiesClass from './model/AdditionalPropertiesClass'; -import AdditionalPropertiesInteger from './model/AdditionalPropertiesInteger'; -import AdditionalPropertiesNumber from './model/AdditionalPropertiesNumber'; -import AdditionalPropertiesObject from './model/AdditionalPropertiesObject'; -import AdditionalPropertiesString from './model/AdditionalPropertiesString'; import Animal from './model/Animal'; import ApiResponse from './model/ApiResponse'; import ArrayOfArrayOfNumberOnly from './model/ArrayOfArrayOfNumberOnly'; import ArrayOfNumberOnly from './model/ArrayOfNumberOnly'; import ArrayTest from './model/ArrayTest'; -import BigCat from './model/BigCat'; -import BigCatAllOf from './model/BigCatAllOf'; import Capitalization from './model/Capitalization'; import Cat from './model/Cat'; import CatAllOf from './model/CatAllOf'; @@ -41,27 +32,38 @@ import EnumClass from './model/EnumClass'; import EnumTest from './model/EnumTest'; import File from './model/File'; import FileSchemaTestClass from './model/FileSchemaTestClass'; +import Foo from './model/Foo'; import FormatTest from './model/FormatTest'; import HasOnlyReadOnly from './model/HasOnlyReadOnly'; +import HealthCheckResult from './model/HealthCheckResult'; +import InlineObject from './model/InlineObject'; +import InlineObject1 from './model/InlineObject1'; +import InlineObject2 from './model/InlineObject2'; +import InlineObject3 from './model/InlineObject3'; +import InlineObject4 from './model/InlineObject4'; +import InlineObject5 from './model/InlineObject5'; +import InlineResponseDefault from './model/InlineResponseDefault'; import List from './model/List'; import MapTest from './model/MapTest'; import MixedPropertiesAndAdditionalPropertiesClass from './model/MixedPropertiesAndAdditionalPropertiesClass'; import Model200Response from './model/Model200Response'; import ModelReturn from './model/ModelReturn'; import Name from './model/Name'; +import NullableClass from './model/NullableClass'; import NumberOnly from './model/NumberOnly'; import Order from './model/Order'; import OuterComposite from './model/OuterComposite'; import OuterEnum from './model/OuterEnum'; +import OuterEnumDefaultValue from './model/OuterEnumDefaultValue'; +import OuterEnumInteger from './model/OuterEnumInteger'; +import OuterEnumIntegerDefaultValue from './model/OuterEnumIntegerDefaultValue'; import Pet from './model/Pet'; import ReadOnlyFirst from './model/ReadOnlyFirst'; import SpecialModelName from './model/SpecialModelName'; import Tag from './model/Tag'; -import TypeHolderDefault from './model/TypeHolderDefault'; -import TypeHolderExample from './model/TypeHolderExample'; import User from './model/User'; -import XmlItem from './model/XmlItem'; import AnotherFakeApi from './api/AnotherFakeApi'; +import DefaultApi from './api/DefaultApi'; import FakeApi from './api/FakeApi'; import FakeClassnameTags123Api from './api/FakeClassnameTags123Api'; import PetApi from './api/PetApi'; @@ -107,54 +109,12 @@ export { */ ApiClient, - /** - * The AdditionalPropertiesAnyType model constructor. - * @property {module:model/AdditionalPropertiesAnyType} - */ - AdditionalPropertiesAnyType, - - /** - * The AdditionalPropertiesArray model constructor. - * @property {module:model/AdditionalPropertiesArray} - */ - AdditionalPropertiesArray, - - /** - * The AdditionalPropertiesBoolean model constructor. - * @property {module:model/AdditionalPropertiesBoolean} - */ - AdditionalPropertiesBoolean, - /** * The AdditionalPropertiesClass model constructor. * @property {module:model/AdditionalPropertiesClass} */ AdditionalPropertiesClass, - /** - * The AdditionalPropertiesInteger model constructor. - * @property {module:model/AdditionalPropertiesInteger} - */ - AdditionalPropertiesInteger, - - /** - * The AdditionalPropertiesNumber model constructor. - * @property {module:model/AdditionalPropertiesNumber} - */ - AdditionalPropertiesNumber, - - /** - * The AdditionalPropertiesObject model constructor. - * @property {module:model/AdditionalPropertiesObject} - */ - AdditionalPropertiesObject, - - /** - * The AdditionalPropertiesString model constructor. - * @property {module:model/AdditionalPropertiesString} - */ - AdditionalPropertiesString, - /** * The Animal model constructor. * @property {module:model/Animal} @@ -185,18 +145,6 @@ export { */ ArrayTest, - /** - * The BigCat model constructor. - * @property {module:model/BigCat} - */ - BigCat, - - /** - * The BigCatAllOf model constructor. - * @property {module:model/BigCatAllOf} - */ - BigCatAllOf, - /** * The Capitalization model constructor. * @property {module:model/Capitalization} @@ -275,6 +223,12 @@ export { */ FileSchemaTestClass, + /** + * The Foo model constructor. + * @property {module:model/Foo} + */ + Foo, + /** * The FormatTest model constructor. * @property {module:model/FormatTest} @@ -287,6 +241,54 @@ export { */ HasOnlyReadOnly, + /** + * The HealthCheckResult model constructor. + * @property {module:model/HealthCheckResult} + */ + HealthCheckResult, + + /** + * The InlineObject model constructor. + * @property {module:model/InlineObject} + */ + InlineObject, + + /** + * The InlineObject1 model constructor. + * @property {module:model/InlineObject1} + */ + InlineObject1, + + /** + * The InlineObject2 model constructor. + * @property {module:model/InlineObject2} + */ + InlineObject2, + + /** + * The InlineObject3 model constructor. + * @property {module:model/InlineObject3} + */ + InlineObject3, + + /** + * The InlineObject4 model constructor. + * @property {module:model/InlineObject4} + */ + InlineObject4, + + /** + * The InlineObject5 model constructor. + * @property {module:model/InlineObject5} + */ + InlineObject5, + + /** + * The InlineResponseDefault model constructor. + * @property {module:model/InlineResponseDefault} + */ + InlineResponseDefault, + /** * The List model constructor. * @property {module:model/List} @@ -323,6 +325,12 @@ export { */ Name, + /** + * The NullableClass model constructor. + * @property {module:model/NullableClass} + */ + NullableClass, + /** * The NumberOnly model constructor. * @property {module:model/NumberOnly} @@ -347,6 +355,24 @@ export { */ OuterEnum, + /** + * The OuterEnumDefaultValue model constructor. + * @property {module:model/OuterEnumDefaultValue} + */ + OuterEnumDefaultValue, + + /** + * The OuterEnumInteger model constructor. + * @property {module:model/OuterEnumInteger} + */ + OuterEnumInteger, + + /** + * The OuterEnumIntegerDefaultValue model constructor. + * @property {module:model/OuterEnumIntegerDefaultValue} + */ + OuterEnumIntegerDefaultValue, + /** * The Pet model constructor. * @property {module:model/Pet} @@ -371,36 +397,24 @@ export { */ Tag, - /** - * The TypeHolderDefault model constructor. - * @property {module:model/TypeHolderDefault} - */ - TypeHolderDefault, - - /** - * The TypeHolderExample model constructor. - * @property {module:model/TypeHolderExample} - */ - TypeHolderExample, - /** * The User model constructor. * @property {module:model/User} */ User, - /** - * The XmlItem model constructor. - * @property {module:model/XmlItem} - */ - XmlItem, - /** * The AnotherFakeApi service constructor. * @property {module:api/AnotherFakeApi} */ AnotherFakeApi, + /** + * The DefaultApi service constructor. + * @property {module:api/DefaultApi} + */ + DefaultApi, + /** * The FakeApi service constructor. * @property {module:api/FakeApi} diff --git a/samples/client/petstore/javascript-es6/src/model/AdditionalPropertiesBoolean.js b/samples/client/petstore/javascript-es6/src/model/AdditionalPropertiesBoolean.js deleted file mode 100644 index 57001bb1ffc5..000000000000 --- a/samples/client/petstore/javascript-es6/src/model/AdditionalPropertiesBoolean.js +++ /dev/null @@ -1,75 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The AdditionalPropertiesBoolean model module. - * @module model/AdditionalPropertiesBoolean - * @version 1.0.0 - */ -class AdditionalPropertiesBoolean { - /** - * Constructs a new AdditionalPropertiesBoolean. - * @alias module:model/AdditionalPropertiesBoolean - * @extends Object - */ - constructor() { - - AdditionalPropertiesBoolean.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 AdditionalPropertiesBoolean 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/AdditionalPropertiesBoolean} obj Optional instance to populate. - * @return {module:model/AdditionalPropertiesBoolean} The populated AdditionalPropertiesBoolean instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AdditionalPropertiesBoolean(); - - ApiClient.constructFromObject(data, obj, 'Boolean'); - - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {String} name - */ -AdditionalPropertiesBoolean.prototype['name'] = undefined; - - - - - - -export default AdditionalPropertiesBoolean; - diff --git a/samples/client/petstore/javascript-es6/src/model/AdditionalPropertiesClass.js b/samples/client/petstore/javascript-es6/src/model/AdditionalPropertiesClass.js index a6e1a88e3b40..d6d83cca284f 100644 --- a/samples/client/petstore/javascript-es6/src/model/AdditionalPropertiesClass.js +++ b/samples/client/petstore/javascript-es6/src/model/AdditionalPropertiesClass.js @@ -47,38 +47,11 @@ class AdditionalPropertiesClass { if (data) { obj = obj || new AdditionalPropertiesClass(); - if (data.hasOwnProperty('map_string')) { - obj['map_string'] = ApiClient.convertToType(data['map_string'], {'String': 'String'}); + if (data.hasOwnProperty('map_property')) { + obj['map_property'] = ApiClient.convertToType(data['map_property'], {'String': 'String'}); } - if (data.hasOwnProperty('map_number')) { - obj['map_number'] = ApiClient.convertToType(data['map_number'], {'String': 'Number'}); - } - if (data.hasOwnProperty('map_integer')) { - obj['map_integer'] = ApiClient.convertToType(data['map_integer'], {'String': 'Number'}); - } - if (data.hasOwnProperty('map_boolean')) { - obj['map_boolean'] = ApiClient.convertToType(data['map_boolean'], {'String': 'Boolean'}); - } - if (data.hasOwnProperty('map_array_integer')) { - obj['map_array_integer'] = ApiClient.convertToType(data['map_array_integer'], {'String': ['Number']}); - } - if (data.hasOwnProperty('map_array_anytype')) { - obj['map_array_anytype'] = ApiClient.convertToType(data['map_array_anytype'], {'String': [Object]}); - } - if (data.hasOwnProperty('map_map_string')) { - obj['map_map_string'] = ApiClient.convertToType(data['map_map_string'], {'String': {'String': 'String'}}); - } - if (data.hasOwnProperty('map_map_anytype')) { - obj['map_map_anytype'] = ApiClient.convertToType(data['map_map_anytype'], {'String': {'String': Object}}); - } - if (data.hasOwnProperty('anytype_1')) { - obj['anytype_1'] = ApiClient.convertToType(data['anytype_1'], Object); - } - if (data.hasOwnProperty('anytype_2')) { - obj['anytype_2'] = ApiClient.convertToType(data['anytype_2'], Object); - } - if (data.hasOwnProperty('anytype_3')) { - obj['anytype_3'] = ApiClient.convertToType(data['anytype_3'], Object); + if (data.hasOwnProperty('map_of_map_property')) { + obj['map_of_map_property'] = ApiClient.convertToType(data['map_of_map_property'], {'String': {'String': 'String'}}); } } return obj; @@ -88,59 +61,14 @@ class AdditionalPropertiesClass { } /** - * @member {Object.} map_string - */ -AdditionalPropertiesClass.prototype['map_string'] = undefined; - -/** - * @member {Object.} map_number - */ -AdditionalPropertiesClass.prototype['map_number'] = undefined; - -/** - * @member {Object.} map_integer - */ -AdditionalPropertiesClass.prototype['map_integer'] = undefined; - -/** - * @member {Object.} map_boolean - */ -AdditionalPropertiesClass.prototype['map_boolean'] = undefined; - -/** - * @member {Object.>} map_array_integer - */ -AdditionalPropertiesClass.prototype['map_array_integer'] = undefined; - -/** - * @member {Object.>} map_array_anytype - */ -AdditionalPropertiesClass.prototype['map_array_anytype'] = undefined; - -/** - * @member {Object.>} map_map_string - */ -AdditionalPropertiesClass.prototype['map_map_string'] = undefined; - -/** - * @member {Object.>} map_map_anytype - */ -AdditionalPropertiesClass.prototype['map_map_anytype'] = undefined; - -/** - * @member {Object} anytype_1 - */ -AdditionalPropertiesClass.prototype['anytype_1'] = undefined; - -/** - * @member {Object} anytype_2 + * @member {Object.} map_property */ -AdditionalPropertiesClass.prototype['anytype_2'] = undefined; +AdditionalPropertiesClass.prototype['map_property'] = undefined; /** - * @member {Object} anytype_3 + * @member {Object.>} map_of_map_property */ -AdditionalPropertiesClass.prototype['anytype_3'] = undefined; +AdditionalPropertiesClass.prototype['map_of_map_property'] = undefined; diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/AnimalFarm.js b/samples/client/petstore/javascript-es6/src/model/AnimalFarm.js similarity index 100% rename from samples/openapi3/client/petstore/javascript-es6/src/model/AnimalFarm.js rename to samples/client/petstore/javascript-es6/src/model/AnimalFarm.js diff --git a/samples/client/petstore/javascript-es6/src/model/BigCat.js b/samples/client/petstore/javascript-es6/src/model/BigCat.js deleted file mode 100644 index 764e45d31dc9..000000000000 --- a/samples/client/petstore/javascript-es6/src/model/BigCat.js +++ /dev/null @@ -1,132 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BigCatAllOf from './BigCatAllOf'; -import Cat from './Cat'; - -/** - * The BigCat model module. - * @module model/BigCat - * @version 1.0.0 - */ -class BigCat { - /** - * Constructs a new BigCat. - * @alias module:model/BigCat - * @extends module:model/Cat - * @implements module:model/Cat - * @implements module:model/BigCatAllOf - * @param className {String} - */ - constructor(className) { - Cat.initialize(this, className);BigCatAllOf.initialize(this); - BigCat.initialize(this, className); - } - - /** - * 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, className) { - } - - /** - * Constructs a BigCat 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/BigCat} obj Optional instance to populate. - * @return {module:model/BigCat} The populated BigCat instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BigCat(); - Cat.constructFromObject(data, obj); - Cat.constructFromObject(data, obj); - BigCatAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {module:model/BigCat.KindEnum} kind - */ -BigCat.prototype['kind'] = undefined; - - -// Implement Cat interface: -/** - * @member {String} className - */ -Cat.prototype['className'] = undefined; -/** - * @member {String} color - * @default 'red' - */ -Cat.prototype['color'] = 'red'; -/** - * @member {Boolean} declawed - */ -Cat.prototype['declawed'] = undefined; -// Implement BigCatAllOf interface: -/** - * @member {module:model/BigCatAllOf.KindEnum} kind - */ -BigCatAllOf.prototype['kind'] = undefined; - - - -/** - * Allowed values for the kind property. - * @enum {String} - * @readonly - */ -BigCat['KindEnum'] = { - - /** - * value: "lions" - * @const - */ - "lions": "lions", - - /** - * value: "tigers" - * @const - */ - "tigers": "tigers", - - /** - * value: "leopards" - * @const - */ - "leopards": "leopards", - - /** - * value: "jaguars" - * @const - */ - "jaguars": "jaguars" -}; - - - -export default BigCat; - diff --git a/samples/client/petstore/javascript-es6/src/model/BigCatAllOf.js b/samples/client/petstore/javascript-es6/src/model/BigCatAllOf.js deleted file mode 100644 index 1b79f1a2849f..000000000000 --- a/samples/client/petstore/javascript-es6/src/model/BigCatAllOf.js +++ /dev/null @@ -1,104 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The BigCatAllOf model module. - * @module model/BigCatAllOf - * @version 1.0.0 - */ -class BigCatAllOf { - /** - * Constructs a new BigCatAllOf. - * @alias module:model/BigCatAllOf - */ - constructor() { - - BigCatAllOf.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 BigCatAllOf 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/BigCatAllOf} obj Optional instance to populate. - * @return {module:model/BigCatAllOf} The populated BigCatAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BigCatAllOf(); - - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {module:model/BigCatAllOf.KindEnum} kind - */ -BigCatAllOf.prototype['kind'] = undefined; - - - - - -/** - * Allowed values for the kind property. - * @enum {String} - * @readonly - */ -BigCatAllOf['KindEnum'] = { - - /** - * value: "lions" - * @const - */ - "lions": "lions", - - /** - * value: "tigers" - * @const - */ - "tigers": "tigers", - - /** - * value: "leopards" - * @const - */ - "leopards": "leopards", - - /** - * value: "jaguars" - * @const - */ - "jaguars": "jaguars" -}; - - - -export default BigCatAllOf; - diff --git a/samples/client/petstore/javascript-es6/src/model/EnumTest.js b/samples/client/petstore/javascript-es6/src/model/EnumTest.js index 458e08153a89..dc684b7c26b1 100644 --- a/samples/client/petstore/javascript-es6/src/model/EnumTest.js +++ b/samples/client/petstore/javascript-es6/src/model/EnumTest.js @@ -13,6 +13,9 @@ import ApiClient from '../ApiClient'; import OuterEnum from './OuterEnum'; +import OuterEnumDefaultValue from './OuterEnumDefaultValue'; +import OuterEnumInteger from './OuterEnumInteger'; +import OuterEnumIntegerDefaultValue from './OuterEnumIntegerDefaultValue'; /** * The EnumTest model module. @@ -65,6 +68,15 @@ class EnumTest { if (data.hasOwnProperty('outerEnum')) { obj['outerEnum'] = OuterEnum.constructFromObject(data['outerEnum']); } + if (data.hasOwnProperty('outerEnumInteger')) { + obj['outerEnumInteger'] = OuterEnumInteger.constructFromObject(data['outerEnumInteger']); + } + if (data.hasOwnProperty('outerEnumDefaultValue')) { + obj['outerEnumDefaultValue'] = OuterEnumDefaultValue.constructFromObject(data['outerEnumDefaultValue']); + } + if (data.hasOwnProperty('outerEnumIntegerDefaultValue')) { + obj['outerEnumIntegerDefaultValue'] = OuterEnumIntegerDefaultValue.constructFromObject(data['outerEnumIntegerDefaultValue']); + } } return obj; } @@ -97,6 +109,21 @@ EnumTest.prototype['enum_number'] = undefined; */ EnumTest.prototype['outerEnum'] = undefined; +/** + * @member {module:model/OuterEnumInteger} outerEnumInteger + */ +EnumTest.prototype['outerEnumInteger'] = undefined; + +/** + * @member {module:model/OuterEnumDefaultValue} outerEnumDefaultValue + */ +EnumTest.prototype['outerEnumDefaultValue'] = undefined; + +/** + * @member {module:model/OuterEnumIntegerDefaultValue} outerEnumIntegerDefaultValue + */ +EnumTest.prototype['outerEnumIntegerDefaultValue'] = undefined; + diff --git a/samples/client/petstore/javascript-es6/src/model/AdditionalPropertiesArray.js b/samples/client/petstore/javascript-es6/src/model/Foo.js similarity index 52% rename from samples/client/petstore/javascript-es6/src/model/AdditionalPropertiesArray.js rename to samples/client/petstore/javascript-es6/src/model/Foo.js index d630c2f5b75c..3e4477b805b9 100644 --- a/samples/client/petstore/javascript-es6/src/model/AdditionalPropertiesArray.js +++ b/samples/client/petstore/javascript-es6/src/model/Foo.js @@ -14,19 +14,18 @@ import ApiClient from '../ApiClient'; /** - * The AdditionalPropertiesArray model module. - * @module model/AdditionalPropertiesArray + * The Foo model module. + * @module model/Foo * @version 1.0.0 */ -class AdditionalPropertiesArray { +class Foo { /** - * Constructs a new AdditionalPropertiesArray. - * @alias module:model/AdditionalPropertiesArray - * @extends Object + * Constructs a new Foo. + * @alias module:model/Foo */ constructor() { - AdditionalPropertiesArray.initialize(this); + Foo.initialize(this); } /** @@ -38,21 +37,18 @@ class AdditionalPropertiesArray { } /** - * Constructs a AdditionalPropertiesArray from a plain JavaScript object, optionally creating a new instance. + * Constructs a Foo 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/AdditionalPropertiesArray} obj Optional instance to populate. - * @return {module:model/AdditionalPropertiesArray} The populated AdditionalPropertiesArray instance. + * @param {module:model/Foo} obj Optional instance to populate. + * @return {module:model/Foo} The populated Foo instance. */ static constructFromObject(data, obj) { if (data) { - obj = obj || new AdditionalPropertiesArray(); + obj = obj || new Foo(); - ApiClient.constructFromObject(data, obj, 'Array'); - - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); + if (data.hasOwnProperty('bar')) { + obj['bar'] = ApiClient.convertToType(data['bar'], 'String'); } } return obj; @@ -62,14 +58,15 @@ class AdditionalPropertiesArray { } /** - * @member {String} name + * @member {String} bar + * @default 'bar' */ -AdditionalPropertiesArray.prototype['name'] = undefined; +Foo.prototype['bar'] = 'bar'; -export default AdditionalPropertiesArray; +export default Foo; diff --git a/samples/client/petstore/javascript-es6/src/model/FormatTest.js b/samples/client/petstore/javascript-es6/src/model/FormatTest.js index 978d4d3a808d..0c5fccb9072b 100644 --- a/samples/client/petstore/javascript-es6/src/model/FormatTest.js +++ b/samples/client/petstore/javascript-es6/src/model/FormatTest.js @@ -94,8 +94,11 @@ class FormatTest { if (data.hasOwnProperty('password')) { obj['password'] = ApiClient.convertToType(data['password'], 'String'); } - if (data.hasOwnProperty('BigDecimal')) { - obj['BigDecimal'] = ApiClient.convertToType(data['BigDecimal'], 'Number'); + if (data.hasOwnProperty('pattern_with_digits')) { + obj['pattern_with_digits'] = ApiClient.convertToType(data['pattern_with_digits'], 'String'); + } + if (data.hasOwnProperty('pattern_with_digits_and_delimiter')) { + obj['pattern_with_digits_and_delimiter'] = ApiClient.convertToType(data['pattern_with_digits_and_delimiter'], 'String'); } } return obj; @@ -170,9 +173,16 @@ FormatTest.prototype['uuid'] = undefined; FormatTest.prototype['password'] = undefined; /** - * @member {Number} BigDecimal + * A string that is a 10 digit number. Can have leading zeros. + * @member {String} pattern_with_digits + */ +FormatTest.prototype['pattern_with_digits'] = undefined; + +/** + * A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. + * @member {String} pattern_with_digits_and_delimiter */ -FormatTest.prototype['BigDecimal'] = undefined; +FormatTest.prototype['pattern_with_digits_and_delimiter'] = undefined; diff --git a/samples/client/petstore/javascript-es6/src/model/AdditionalPropertiesNumber.js b/samples/client/petstore/javascript-es6/src/model/HealthCheckResult.js similarity index 51% rename from samples/client/petstore/javascript-es6/src/model/AdditionalPropertiesNumber.js rename to samples/client/petstore/javascript-es6/src/model/HealthCheckResult.js index 4acb6986f2d9..2dd62c2a267b 100644 --- a/samples/client/petstore/javascript-es6/src/model/AdditionalPropertiesNumber.js +++ b/samples/client/petstore/javascript-es6/src/model/HealthCheckResult.js @@ -14,19 +14,19 @@ import ApiClient from '../ApiClient'; /** - * The AdditionalPropertiesNumber model module. - * @module model/AdditionalPropertiesNumber + * The HealthCheckResult model module. + * @module model/HealthCheckResult * @version 1.0.0 */ -class AdditionalPropertiesNumber { +class HealthCheckResult { /** - * Constructs a new AdditionalPropertiesNumber. - * @alias module:model/AdditionalPropertiesNumber - * @extends Object + * Constructs a new HealthCheckResult. + * Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model. + * @alias module:model/HealthCheckResult */ constructor() { - AdditionalPropertiesNumber.initialize(this); + HealthCheckResult.initialize(this); } /** @@ -38,21 +38,18 @@ class AdditionalPropertiesNumber { } /** - * Constructs a AdditionalPropertiesNumber from a plain JavaScript object, optionally creating a new instance. + * Constructs a HealthCheckResult 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/AdditionalPropertiesNumber} obj Optional instance to populate. - * @return {module:model/AdditionalPropertiesNumber} The populated AdditionalPropertiesNumber instance. + * @param {module:model/HealthCheckResult} obj Optional instance to populate. + * @return {module:model/HealthCheckResult} The populated HealthCheckResult instance. */ static constructFromObject(data, obj) { if (data) { - obj = obj || new AdditionalPropertiesNumber(); + obj = obj || new HealthCheckResult(); - ApiClient.constructFromObject(data, obj, 'Number'); - - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); + if (data.hasOwnProperty('NullableMessage')) { + obj['NullableMessage'] = ApiClient.convertToType(data['NullableMessage'], 'String'); } } return obj; @@ -62,14 +59,14 @@ class AdditionalPropertiesNumber { } /** - * @member {String} name + * @member {String} NullableMessage */ -AdditionalPropertiesNumber.prototype['name'] = undefined; +HealthCheckResult.prototype['NullableMessage'] = undefined; -export default AdditionalPropertiesNumber; +export default HealthCheckResult; diff --git a/samples/client/petstore/javascript-es6/src/model/AdditionalPropertiesObject.js b/samples/client/petstore/javascript-es6/src/model/InlineObject.js similarity index 58% rename from samples/client/petstore/javascript-es6/src/model/AdditionalPropertiesObject.js rename to samples/client/petstore/javascript-es6/src/model/InlineObject.js index 14796a296af7..6815bc809cf6 100644 --- a/samples/client/petstore/javascript-es6/src/model/AdditionalPropertiesObject.js +++ b/samples/client/petstore/javascript-es6/src/model/InlineObject.js @@ -14,19 +14,18 @@ import ApiClient from '../ApiClient'; /** - * The AdditionalPropertiesObject model module. - * @module model/AdditionalPropertiesObject + * The InlineObject model module. + * @module model/InlineObject * @version 1.0.0 */ -class AdditionalPropertiesObject { +class InlineObject { /** - * Constructs a new AdditionalPropertiesObject. - * @alias module:model/AdditionalPropertiesObject - * @extends Object + * Constructs a new InlineObject. + * @alias module:model/InlineObject */ constructor() { - AdditionalPropertiesObject.initialize(this); + InlineObject.initialize(this); } /** @@ -38,22 +37,22 @@ class AdditionalPropertiesObject { } /** - * Constructs a AdditionalPropertiesObject from a plain JavaScript object, optionally creating a new instance. + * Constructs a InlineObject 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/AdditionalPropertiesObject} obj Optional instance to populate. - * @return {module:model/AdditionalPropertiesObject} The populated AdditionalPropertiesObject instance. + * @param {module:model/InlineObject} obj Optional instance to populate. + * @return {module:model/InlineObject} The populated InlineObject instance. */ static constructFromObject(data, obj) { if (data) { - obj = obj || new AdditionalPropertiesObject(); - - ApiClient.constructFromObject(data, obj, 'Object'); - + obj = obj || new InlineObject(); if (data.hasOwnProperty('name')) { obj['name'] = ApiClient.convertToType(data['name'], 'String'); } + if (data.hasOwnProperty('status')) { + obj['status'] = ApiClient.convertToType(data['status'], 'String'); + } } return obj; } @@ -62,14 +61,21 @@ class AdditionalPropertiesObject { } /** + * Updated name of the pet * @member {String} name */ -AdditionalPropertiesObject.prototype['name'] = undefined; +InlineObject.prototype['name'] = undefined; + +/** + * Updated status of the pet + * @member {String} status + */ +InlineObject.prototype['status'] = undefined; -export default AdditionalPropertiesObject; +export default InlineObject; diff --git a/samples/client/petstore/javascript-es6/src/model/AdditionalPropertiesInteger.js b/samples/client/petstore/javascript-es6/src/model/InlineObject1.js similarity index 50% rename from samples/client/petstore/javascript-es6/src/model/AdditionalPropertiesInteger.js rename to samples/client/petstore/javascript-es6/src/model/InlineObject1.js index 6e68ed7ac815..947877256fb2 100644 --- a/samples/client/petstore/javascript-es6/src/model/AdditionalPropertiesInteger.js +++ b/samples/client/petstore/javascript-es6/src/model/InlineObject1.js @@ -14,19 +14,18 @@ import ApiClient from '../ApiClient'; /** - * The AdditionalPropertiesInteger model module. - * @module model/AdditionalPropertiesInteger + * The InlineObject1 model module. + * @module model/InlineObject1 * @version 1.0.0 */ -class AdditionalPropertiesInteger { +class InlineObject1 { /** - * Constructs a new AdditionalPropertiesInteger. - * @alias module:model/AdditionalPropertiesInteger - * @extends Object + * Constructs a new InlineObject1. + * @alias module:model/InlineObject1 */ constructor() { - AdditionalPropertiesInteger.initialize(this); + InlineObject1.initialize(this); } /** @@ -38,21 +37,21 @@ class AdditionalPropertiesInteger { } /** - * Constructs a AdditionalPropertiesInteger from a plain JavaScript object, optionally creating a new instance. + * Constructs a InlineObject1 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/AdditionalPropertiesInteger} obj Optional instance to populate. - * @return {module:model/AdditionalPropertiesInteger} The populated AdditionalPropertiesInteger instance. + * @param {module:model/InlineObject1} obj Optional instance to populate. + * @return {module:model/InlineObject1} The populated InlineObject1 instance. */ static constructFromObject(data, obj) { if (data) { - obj = obj || new AdditionalPropertiesInteger(); + obj = obj || new InlineObject1(); - ApiClient.constructFromObject(data, obj, 'Number'); - - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); + if (data.hasOwnProperty('additionalMetadata')) { + obj['additionalMetadata'] = ApiClient.convertToType(data['additionalMetadata'], 'String'); + } + if (data.hasOwnProperty('file')) { + obj['file'] = ApiClient.convertToType(data['file'], File); } } return obj; @@ -62,14 +61,21 @@ class AdditionalPropertiesInteger { } /** - * @member {String} name + * Additional data to pass to server + * @member {String} additionalMetadata + */ +InlineObject1.prototype['additionalMetadata'] = undefined; + +/** + * file to upload + * @member {File} file */ -AdditionalPropertiesInteger.prototype['name'] = undefined; +InlineObject1.prototype['file'] = undefined; -export default AdditionalPropertiesInteger; +export default InlineObject1; diff --git a/samples/client/petstore/javascript-es6/src/model/InlineObject2.js b/samples/client/petstore/javascript-es6/src/model/InlineObject2.js new file mode 100644 index 000000000000..e6ed9044568b --- /dev/null +++ b/samples/client/petstore/javascript-es6/src/model/InlineObject2.js @@ -0,0 +1,130 @@ +/** + * OpenAPI Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The InlineObject2 model module. + * @module model/InlineObject2 + * @version 1.0.0 + */ +class InlineObject2 { + /** + * Constructs a new InlineObject2. + * @alias module:model/InlineObject2 + */ + constructor() { + + InlineObject2.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 InlineObject2 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/InlineObject2} obj Optional instance to populate. + * @return {module:model/InlineObject2} The populated InlineObject2 instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InlineObject2(); + + if (data.hasOwnProperty('enum_form_string_array')) { + obj['enum_form_string_array'] = ApiClient.convertToType(data['enum_form_string_array'], ['String']); + } + if (data.hasOwnProperty('enum_form_string')) { + obj['enum_form_string'] = ApiClient.convertToType(data['enum_form_string'], 'String'); + } + } + return obj; + } + + +} + +/** + * Form parameter enum test (string array) + * @member {Array.} enum_form_string_array + */ +InlineObject2.prototype['enum_form_string_array'] = undefined; + +/** + * Form parameter enum test (string) + * @member {module:model/InlineObject2.EnumFormStringEnum} enum_form_string + * @default '-efg' + */ +InlineObject2.prototype['enum_form_string'] = '-efg'; + + + + + +/** + * Allowed values for the enumFormStringArray property. + * @enum {String} + * @readonly + */ +InlineObject2['EnumFormStringArrayEnum'] = { + + /** + * value: ">" + * @const + */ + "GREATER_THAN": ">", + + /** + * value: "$" + * @const + */ + "DOLLAR": "$" +}; + + +/** + * Allowed values for the enum_form_string property. + * @enum {String} + * @readonly + */ +InlineObject2['EnumFormStringEnum'] = { + + /** + * value: "_abc" + * @const + */ + "_abc": "_abc", + + /** + * value: "-efg" + * @const + */ + "-efg": "-efg", + + /** + * value: "(xyz)" + * @const + */ + "(xyz)": "(xyz)" +}; + + + +export default InlineObject2; + diff --git a/samples/client/petstore/javascript-es6/src/model/InlineObject3.js b/samples/client/petstore/javascript-es6/src/model/InlineObject3.js new file mode 100644 index 000000000000..6a14f67109c8 --- /dev/null +++ b/samples/client/petstore/javascript-es6/src/model/InlineObject3.js @@ -0,0 +1,197 @@ +/** + * OpenAPI Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The InlineObject3 model module. + * @module model/InlineObject3 + * @version 1.0.0 + */ +class InlineObject3 { + /** + * Constructs a new InlineObject3. + * @alias module:model/InlineObject3 + * @param _number {Number} None + * @param _double {Number} None + * @param patternWithoutDelimiter {String} None + * @param _byte {Blob} None + */ + constructor(_number, _double, patternWithoutDelimiter, _byte) { + + InlineObject3.initialize(this, _number, _double, patternWithoutDelimiter, _byte); + } + + /** + * 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, _number, _double, patternWithoutDelimiter, _byte) { + obj['number'] = _number; + obj['double'] = _double; + obj['pattern_without_delimiter'] = patternWithoutDelimiter; + obj['byte'] = _byte; + } + + /** + * Constructs a InlineObject3 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/InlineObject3} obj Optional instance to populate. + * @return {module:model/InlineObject3} The populated InlineObject3 instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InlineObject3(); + + if (data.hasOwnProperty('integer')) { + obj['integer'] = ApiClient.convertToType(data['integer'], 'Number'); + } + if (data.hasOwnProperty('int32')) { + obj['int32'] = ApiClient.convertToType(data['int32'], 'Number'); + } + if (data.hasOwnProperty('int64')) { + obj['int64'] = ApiClient.convertToType(data['int64'], 'Number'); + } + if (data.hasOwnProperty('number')) { + obj['number'] = ApiClient.convertToType(data['number'], 'Number'); + } + if (data.hasOwnProperty('float')) { + obj['float'] = ApiClient.convertToType(data['float'], 'Number'); + } + if (data.hasOwnProperty('double')) { + obj['double'] = ApiClient.convertToType(data['double'], 'Number'); + } + if (data.hasOwnProperty('string')) { + obj['string'] = ApiClient.convertToType(data['string'], 'String'); + } + if (data.hasOwnProperty('pattern_without_delimiter')) { + obj['pattern_without_delimiter'] = ApiClient.convertToType(data['pattern_without_delimiter'], 'String'); + } + if (data.hasOwnProperty('byte')) { + obj['byte'] = ApiClient.convertToType(data['byte'], 'Blob'); + } + if (data.hasOwnProperty('binary')) { + obj['binary'] = ApiClient.convertToType(data['binary'], File); + } + if (data.hasOwnProperty('date')) { + obj['date'] = ApiClient.convertToType(data['date'], 'Date'); + } + if (data.hasOwnProperty('dateTime')) { + obj['dateTime'] = ApiClient.convertToType(data['dateTime'], 'Date'); + } + if (data.hasOwnProperty('password')) { + obj['password'] = ApiClient.convertToType(data['password'], 'String'); + } + if (data.hasOwnProperty('callback')) { + obj['callback'] = ApiClient.convertToType(data['callback'], 'String'); + } + } + return obj; + } + + +} + +/** + * None + * @member {Number} integer + */ +InlineObject3.prototype['integer'] = undefined; + +/** + * None + * @member {Number} int32 + */ +InlineObject3.prototype['int32'] = undefined; + +/** + * None + * @member {Number} int64 + */ +InlineObject3.prototype['int64'] = undefined; + +/** + * None + * @member {Number} number + */ +InlineObject3.prototype['number'] = undefined; + +/** + * None + * @member {Number} float + */ +InlineObject3.prototype['float'] = undefined; + +/** + * None + * @member {Number} double + */ +InlineObject3.prototype['double'] = undefined; + +/** + * None + * @member {String} string + */ +InlineObject3.prototype['string'] = undefined; + +/** + * None + * @member {String} pattern_without_delimiter + */ +InlineObject3.prototype['pattern_without_delimiter'] = undefined; + +/** + * None + * @member {Blob} byte + */ +InlineObject3.prototype['byte'] = undefined; + +/** + * None + * @member {File} binary + */ +InlineObject3.prototype['binary'] = undefined; + +/** + * None + * @member {Date} date + */ +InlineObject3.prototype['date'] = undefined; + +/** + * None + * @member {Date} dateTime + */ +InlineObject3.prototype['dateTime'] = undefined; + +/** + * None + * @member {String} password + */ +InlineObject3.prototype['password'] = undefined; + +/** + * None + * @member {String} callback + */ +InlineObject3.prototype['callback'] = undefined; + + + + + + +export default InlineObject3; + diff --git a/samples/client/petstore/javascript-es6/src/model/InlineObject4.js b/samples/client/petstore/javascript-es6/src/model/InlineObject4.js new file mode 100644 index 000000000000..9d5d5715c66f --- /dev/null +++ b/samples/client/petstore/javascript-es6/src/model/InlineObject4.js @@ -0,0 +1,85 @@ +/** + * OpenAPI Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The InlineObject4 model module. + * @module model/InlineObject4 + * @version 1.0.0 + */ +class InlineObject4 { + /** + * Constructs a new InlineObject4. + * @alias module:model/InlineObject4 + * @param param {String} field1 + * @param param2 {String} field2 + */ + constructor(param, param2) { + + InlineObject4.initialize(this, param, param2); + } + + /** + * 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, param, param2) { + obj['param'] = param; + obj['param2'] = param2; + } + + /** + * Constructs a InlineObject4 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/InlineObject4} obj Optional instance to populate. + * @return {module:model/InlineObject4} The populated InlineObject4 instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InlineObject4(); + + if (data.hasOwnProperty('param')) { + obj['param'] = ApiClient.convertToType(data['param'], 'String'); + } + if (data.hasOwnProperty('param2')) { + obj['param2'] = ApiClient.convertToType(data['param2'], 'String'); + } + } + return obj; + } + + +} + +/** + * field1 + * @member {String} param + */ +InlineObject4.prototype['param'] = undefined; + +/** + * field2 + * @member {String} param2 + */ +InlineObject4.prototype['param2'] = undefined; + + + + + + +export default InlineObject4; + diff --git a/samples/client/petstore/javascript-es6/src/model/InlineObject5.js b/samples/client/petstore/javascript-es6/src/model/InlineObject5.js new file mode 100644 index 000000000000..1969e9b2ef3a --- /dev/null +++ b/samples/client/petstore/javascript-es6/src/model/InlineObject5.js @@ -0,0 +1,83 @@ +/** + * OpenAPI Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The InlineObject5 model module. + * @module model/InlineObject5 + * @version 1.0.0 + */ +class InlineObject5 { + /** + * Constructs a new InlineObject5. + * @alias module:model/InlineObject5 + * @param requiredFile {File} file to upload + */ + constructor(requiredFile) { + + InlineObject5.initialize(this, requiredFile); + } + + /** + * 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, requiredFile) { + obj['requiredFile'] = requiredFile; + } + + /** + * Constructs a InlineObject5 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/InlineObject5} obj Optional instance to populate. + * @return {module:model/InlineObject5} The populated InlineObject5 instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InlineObject5(); + + if (data.hasOwnProperty('additionalMetadata')) { + obj['additionalMetadata'] = ApiClient.convertToType(data['additionalMetadata'], 'String'); + } + if (data.hasOwnProperty('requiredFile')) { + obj['requiredFile'] = ApiClient.convertToType(data['requiredFile'], File); + } + } + return obj; + } + + +} + +/** + * Additional data to pass to server + * @member {String} additionalMetadata + */ +InlineObject5.prototype['additionalMetadata'] = undefined; + +/** + * file to upload + * @member {File} requiredFile + */ +InlineObject5.prototype['requiredFile'] = undefined; + + + + + + +export default InlineObject5; + diff --git a/samples/client/petstore/javascript-es6/src/model/InlineResponseDefault.js b/samples/client/petstore/javascript-es6/src/model/InlineResponseDefault.js new file mode 100644 index 000000000000..2f66d888ec94 --- /dev/null +++ b/samples/client/petstore/javascript-es6/src/model/InlineResponseDefault.js @@ -0,0 +1,72 @@ +/** + * OpenAPI Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Foo from './Foo'; + +/** + * The InlineResponseDefault model module. + * @module model/InlineResponseDefault + * @version 1.0.0 + */ +class InlineResponseDefault { + /** + * Constructs a new InlineResponseDefault. + * @alias module:model/InlineResponseDefault + */ + constructor() { + + InlineResponseDefault.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 InlineResponseDefault 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/InlineResponseDefault} obj Optional instance to populate. + * @return {module:model/InlineResponseDefault} The populated InlineResponseDefault instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InlineResponseDefault(); + + if (data.hasOwnProperty('string')) { + obj['string'] = Foo.constructFromObject(data['string']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/Foo} string + */ +InlineResponseDefault.prototype['string'] = undefined; + + + + + + +export default InlineResponseDefault; + diff --git a/samples/client/petstore/javascript-es6/src/model/NullableClass.js b/samples/client/petstore/javascript-es6/src/model/NullableClass.js new file mode 100644 index 000000000000..12a0f2509b6c --- /dev/null +++ b/samples/client/petstore/javascript-es6/src/model/NullableClass.js @@ -0,0 +1,163 @@ +/** + * OpenAPI Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The NullableClass model module. + * @module model/NullableClass + * @version 1.0.0 + */ +class NullableClass { + /** + * Constructs a new NullableClass. + * @alias module:model/NullableClass + * @extends Object + */ + constructor() { + + NullableClass.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 NullableClass 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/NullableClass} obj Optional instance to populate. + * @return {module:model/NullableClass} The populated NullableClass instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new NullableClass(); + + ApiClient.constructFromObject(data, obj, 'Object'); + + + if (data.hasOwnProperty('integer_prop')) { + obj['integer_prop'] = ApiClient.convertToType(data['integer_prop'], 'Number'); + } + if (data.hasOwnProperty('number_prop')) { + obj['number_prop'] = ApiClient.convertToType(data['number_prop'], 'Number'); + } + if (data.hasOwnProperty('boolean_prop')) { + obj['boolean_prop'] = ApiClient.convertToType(data['boolean_prop'], 'Boolean'); + } + if (data.hasOwnProperty('string_prop')) { + obj['string_prop'] = ApiClient.convertToType(data['string_prop'], 'String'); + } + if (data.hasOwnProperty('date_prop')) { + obj['date_prop'] = ApiClient.convertToType(data['date_prop'], 'Date'); + } + if (data.hasOwnProperty('datetime_prop')) { + obj['datetime_prop'] = ApiClient.convertToType(data['datetime_prop'], 'Date'); + } + if (data.hasOwnProperty('array_nullable_prop')) { + obj['array_nullable_prop'] = ApiClient.convertToType(data['array_nullable_prop'], [Object]); + } + if (data.hasOwnProperty('array_and_items_nullable_prop')) { + obj['array_and_items_nullable_prop'] = ApiClient.convertToType(data['array_and_items_nullable_prop'], [Object]); + } + if (data.hasOwnProperty('array_items_nullable')) { + obj['array_items_nullable'] = ApiClient.convertToType(data['array_items_nullable'], [Object]); + } + if (data.hasOwnProperty('object_nullable_prop')) { + obj['object_nullable_prop'] = ApiClient.convertToType(data['object_nullable_prop'], {'String': Object}); + } + if (data.hasOwnProperty('object_and_items_nullable_prop')) { + obj['object_and_items_nullable_prop'] = ApiClient.convertToType(data['object_and_items_nullable_prop'], {'String': Object}); + } + if (data.hasOwnProperty('object_items_nullable')) { + obj['object_items_nullable'] = ApiClient.convertToType(data['object_items_nullable'], {'String': Object}); + } + } + return obj; + } + + +} + +/** + * @member {Number} integer_prop + */ +NullableClass.prototype['integer_prop'] = undefined; + +/** + * @member {Number} number_prop + */ +NullableClass.prototype['number_prop'] = undefined; + +/** + * @member {Boolean} boolean_prop + */ +NullableClass.prototype['boolean_prop'] = undefined; + +/** + * @member {String} string_prop + */ +NullableClass.prototype['string_prop'] = undefined; + +/** + * @member {Date} date_prop + */ +NullableClass.prototype['date_prop'] = undefined; + +/** + * @member {Date} datetime_prop + */ +NullableClass.prototype['datetime_prop'] = undefined; + +/** + * @member {Array.} array_nullable_prop + */ +NullableClass.prototype['array_nullable_prop'] = undefined; + +/** + * @member {Array.} array_and_items_nullable_prop + */ +NullableClass.prototype['array_and_items_nullable_prop'] = undefined; + +/** + * @member {Array.} array_items_nullable + */ +NullableClass.prototype['array_items_nullable'] = undefined; + +/** + * @member {Object.} object_nullable_prop + */ +NullableClass.prototype['object_nullable_prop'] = undefined; + +/** + * @member {Object.} object_and_items_nullable_prop + */ +NullableClass.prototype['object_and_items_nullable_prop'] = undefined; + +/** + * @member {Object.} object_items_nullable + */ +NullableClass.prototype['object_items_nullable'] = undefined; + + + + + + +export default NullableClass; + diff --git a/samples/client/petstore/javascript-es6/src/model/OuterEnumDefaultValue.js b/samples/client/petstore/javascript-es6/src/model/OuterEnumDefaultValue.js new file mode 100644 index 000000000000..a65b1dd0a6be --- /dev/null +++ b/samples/client/petstore/javascript-es6/src/model/OuterEnumDefaultValue.js @@ -0,0 +1,53 @@ +/** + * OpenAPI Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +/** +* Enum class OuterEnumDefaultValue. +* @enum {} +* @readonly +*/ +export default class OuterEnumDefaultValue { + + /** + * value: "placed" + * @const + */ + "placed" = "placed"; + + + /** + * value: "approved" + * @const + */ + "approved" = "approved"; + + + /** + * value: "delivered" + * @const + */ + "delivered" = "delivered"; + + + + /** + * Returns a OuterEnumDefaultValue enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/OuterEnumDefaultValue} The enum OuterEnumDefaultValue value. + */ + static constructFromObject(object) { + return object; + } +} + diff --git a/samples/client/petstore/javascript-es6/src/model/OuterEnumInteger.js b/samples/client/petstore/javascript-es6/src/model/OuterEnumInteger.js new file mode 100644 index 000000000000..b6fc29568a02 --- /dev/null +++ b/samples/client/petstore/javascript-es6/src/model/OuterEnumInteger.js @@ -0,0 +1,53 @@ +/** + * OpenAPI Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +/** +* Enum class OuterEnumInteger. +* @enum {} +* @readonly +*/ +export default class OuterEnumInteger { + + /** + * value: 0 + * @const + */ + "0" = 0; + + + /** + * value: 1 + * @const + */ + "1" = 1; + + + /** + * value: 2 + * @const + */ + "2" = 2; + + + + /** + * Returns a OuterEnumInteger enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/OuterEnumInteger} The enum OuterEnumInteger value. + */ + static constructFromObject(object) { + return object; + } +} + diff --git a/samples/client/petstore/javascript-es6/src/model/OuterEnumIntegerDefaultValue.js b/samples/client/petstore/javascript-es6/src/model/OuterEnumIntegerDefaultValue.js new file mode 100644 index 000000000000..86a9d6b9467e --- /dev/null +++ b/samples/client/petstore/javascript-es6/src/model/OuterEnumIntegerDefaultValue.js @@ -0,0 +1,53 @@ +/** + * OpenAPI Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +/** +* Enum class OuterEnumIntegerDefaultValue. +* @enum {} +* @readonly +*/ +export default class OuterEnumIntegerDefaultValue { + + /** + * value: 0 + * @const + */ + "0" = 0; + + + /** + * value: 1 + * @const + */ + "1" = 1; + + + /** + * value: 2 + * @const + */ + "2" = 2; + + + + /** + * Returns a OuterEnumIntegerDefaultValue enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/OuterEnumIntegerDefaultValue} The enum OuterEnumIntegerDefaultValue value. + */ + static constructFromObject(object) { + return object; + } +} + diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/StringBooleanMap.js b/samples/client/petstore/javascript-es6/src/model/StringBooleanMap.js similarity index 100% rename from samples/openapi3/client/petstore/javascript-es6/src/model/StringBooleanMap.js rename to samples/client/petstore/javascript-es6/src/model/StringBooleanMap.js diff --git a/samples/client/petstore/javascript-es6/src/model/TypeHolderDefault.js b/samples/client/petstore/javascript-es6/src/model/TypeHolderDefault.js index 4ca66c6407ca..819ef864a5c6 100644 --- a/samples/client/petstore/javascript-es6/src/model/TypeHolderDefault.js +++ b/samples/client/petstore/javascript-es6/src/model/TypeHolderDefault.js @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * The version of the OpenAPI document: 1.0.0 + * OpenAPI spec version: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/samples/client/petstore/javascript-es6/src/model/TypeHolderExample.js b/samples/client/petstore/javascript-es6/src/model/TypeHolderExample.js index fa969870f8fa..3eeced56961a 100644 --- a/samples/client/petstore/javascript-es6/src/model/TypeHolderExample.js +++ b/samples/client/petstore/javascript-es6/src/model/TypeHolderExample.js @@ -2,7 +2,7 @@ * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * - * The version of the OpenAPI document: 1.0.0 + * OpenAPI spec version: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -24,14 +24,13 @@ class TypeHolderExample { * @alias module:model/TypeHolderExample * @param stringItem {String} * @param numberItem {Number} - * @param floatItem {Number} * @param integerItem {Number} * @param boolItem {Boolean} * @param arrayItem {Array.} */ - constructor(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem) { + constructor(stringItem, numberItem, integerItem, boolItem, arrayItem) { - TypeHolderExample.initialize(this, stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem); + TypeHolderExample.initialize(this, stringItem, numberItem, integerItem, boolItem, arrayItem); } /** @@ -39,10 +38,9 @@ class TypeHolderExample { * 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, stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem) { + static initialize(obj, stringItem, numberItem, integerItem, boolItem, arrayItem) { obj['string_item'] = stringItem; obj['number_item'] = numberItem; - obj['float_item'] = floatItem; obj['integer_item'] = integerItem; obj['bool_item'] = boolItem; obj['array_item'] = arrayItem; @@ -65,9 +63,6 @@ class TypeHolderExample { if (data.hasOwnProperty('number_item')) { obj['number_item'] = ApiClient.convertToType(data['number_item'], 'Number'); } - if (data.hasOwnProperty('float_item')) { - obj['float_item'] = ApiClient.convertToType(data['float_item'], 'Number'); - } if (data.hasOwnProperty('integer_item')) { obj['integer_item'] = ApiClient.convertToType(data['integer_item'], 'Number'); } @@ -94,11 +89,6 @@ TypeHolderExample.prototype['string_item'] = undefined; */ TypeHolderExample.prototype['number_item'] = undefined; -/** - * @member {Number} float_item - */ -TypeHolderExample.prototype['float_item'] = undefined; - /** * @member {Number} integer_item */ diff --git a/samples/client/petstore/javascript-es6/src/model/XmlItem.js b/samples/client/petstore/javascript-es6/src/model/XmlItem.js deleted file mode 100644 index 7510c480b288..000000000000 --- a/samples/client/petstore/javascript-es6/src/model/XmlItem.js +++ /dev/null @@ -1,295 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The XmlItem model module. - * @module model/XmlItem - * @version 1.0.0 - */ -class XmlItem { - /** - * Constructs a new XmlItem. - * @alias module:model/XmlItem - */ - constructor() { - - XmlItem.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 XmlItem 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/XmlItem} obj Optional instance to populate. - * @return {module:model/XmlItem} The populated XmlItem instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new XmlItem(); - - if (data.hasOwnProperty('attribute_string')) { - obj['attribute_string'] = ApiClient.convertToType(data['attribute_string'], 'String'); - } - if (data.hasOwnProperty('attribute_number')) { - obj['attribute_number'] = ApiClient.convertToType(data['attribute_number'], 'Number'); - } - if (data.hasOwnProperty('attribute_integer')) { - obj['attribute_integer'] = ApiClient.convertToType(data['attribute_integer'], 'Number'); - } - if (data.hasOwnProperty('attribute_boolean')) { - obj['attribute_boolean'] = ApiClient.convertToType(data['attribute_boolean'], 'Boolean'); - } - if (data.hasOwnProperty('wrapped_array')) { - obj['wrapped_array'] = ApiClient.convertToType(data['wrapped_array'], ['Number']); - } - if (data.hasOwnProperty('name_string')) { - obj['name_string'] = ApiClient.convertToType(data['name_string'], 'String'); - } - if (data.hasOwnProperty('name_number')) { - obj['name_number'] = ApiClient.convertToType(data['name_number'], 'Number'); - } - if (data.hasOwnProperty('name_integer')) { - obj['name_integer'] = ApiClient.convertToType(data['name_integer'], 'Number'); - } - if (data.hasOwnProperty('name_boolean')) { - obj['name_boolean'] = ApiClient.convertToType(data['name_boolean'], 'Boolean'); - } - if (data.hasOwnProperty('name_array')) { - obj['name_array'] = ApiClient.convertToType(data['name_array'], ['Number']); - } - if (data.hasOwnProperty('name_wrapped_array')) { - obj['name_wrapped_array'] = ApiClient.convertToType(data['name_wrapped_array'], ['Number']); - } - if (data.hasOwnProperty('prefix_string')) { - obj['prefix_string'] = ApiClient.convertToType(data['prefix_string'], 'String'); - } - if (data.hasOwnProperty('prefix_number')) { - obj['prefix_number'] = ApiClient.convertToType(data['prefix_number'], 'Number'); - } - if (data.hasOwnProperty('prefix_integer')) { - obj['prefix_integer'] = ApiClient.convertToType(data['prefix_integer'], 'Number'); - } - if (data.hasOwnProperty('prefix_boolean')) { - obj['prefix_boolean'] = ApiClient.convertToType(data['prefix_boolean'], 'Boolean'); - } - if (data.hasOwnProperty('prefix_array')) { - obj['prefix_array'] = ApiClient.convertToType(data['prefix_array'], ['Number']); - } - if (data.hasOwnProperty('prefix_wrapped_array')) { - obj['prefix_wrapped_array'] = ApiClient.convertToType(data['prefix_wrapped_array'], ['Number']); - } - if (data.hasOwnProperty('namespace_string')) { - obj['namespace_string'] = ApiClient.convertToType(data['namespace_string'], 'String'); - } - if (data.hasOwnProperty('namespace_number')) { - obj['namespace_number'] = ApiClient.convertToType(data['namespace_number'], 'Number'); - } - if (data.hasOwnProperty('namespace_integer')) { - obj['namespace_integer'] = ApiClient.convertToType(data['namespace_integer'], 'Number'); - } - if (data.hasOwnProperty('namespace_boolean')) { - obj['namespace_boolean'] = ApiClient.convertToType(data['namespace_boolean'], 'Boolean'); - } - if (data.hasOwnProperty('namespace_array')) { - obj['namespace_array'] = ApiClient.convertToType(data['namespace_array'], ['Number']); - } - if (data.hasOwnProperty('namespace_wrapped_array')) { - obj['namespace_wrapped_array'] = ApiClient.convertToType(data['namespace_wrapped_array'], ['Number']); - } - if (data.hasOwnProperty('prefix_ns_string')) { - obj['prefix_ns_string'] = ApiClient.convertToType(data['prefix_ns_string'], 'String'); - } - if (data.hasOwnProperty('prefix_ns_number')) { - obj['prefix_ns_number'] = ApiClient.convertToType(data['prefix_ns_number'], 'Number'); - } - if (data.hasOwnProperty('prefix_ns_integer')) { - obj['prefix_ns_integer'] = ApiClient.convertToType(data['prefix_ns_integer'], 'Number'); - } - if (data.hasOwnProperty('prefix_ns_boolean')) { - obj['prefix_ns_boolean'] = ApiClient.convertToType(data['prefix_ns_boolean'], 'Boolean'); - } - if (data.hasOwnProperty('prefix_ns_array')) { - obj['prefix_ns_array'] = ApiClient.convertToType(data['prefix_ns_array'], ['Number']); - } - if (data.hasOwnProperty('prefix_ns_wrapped_array')) { - obj['prefix_ns_wrapped_array'] = ApiClient.convertToType(data['prefix_ns_wrapped_array'], ['Number']); - } - } - return obj; - } - - -} - -/** - * @member {String} attribute_string - */ -XmlItem.prototype['attribute_string'] = undefined; - -/** - * @member {Number} attribute_number - */ -XmlItem.prototype['attribute_number'] = undefined; - -/** - * @member {Number} attribute_integer - */ -XmlItem.prototype['attribute_integer'] = undefined; - -/** - * @member {Boolean} attribute_boolean - */ -XmlItem.prototype['attribute_boolean'] = undefined; - -/** - * @member {Array.} wrapped_array - */ -XmlItem.prototype['wrapped_array'] = undefined; - -/** - * @member {String} name_string - */ -XmlItem.prototype['name_string'] = undefined; - -/** - * @member {Number} name_number - */ -XmlItem.prototype['name_number'] = undefined; - -/** - * @member {Number} name_integer - */ -XmlItem.prototype['name_integer'] = undefined; - -/** - * @member {Boolean} name_boolean - */ -XmlItem.prototype['name_boolean'] = undefined; - -/** - * @member {Array.} name_array - */ -XmlItem.prototype['name_array'] = undefined; - -/** - * @member {Array.} name_wrapped_array - */ -XmlItem.prototype['name_wrapped_array'] = undefined; - -/** - * @member {String} prefix_string - */ -XmlItem.prototype['prefix_string'] = undefined; - -/** - * @member {Number} prefix_number - */ -XmlItem.prototype['prefix_number'] = undefined; - -/** - * @member {Number} prefix_integer - */ -XmlItem.prototype['prefix_integer'] = undefined; - -/** - * @member {Boolean} prefix_boolean - */ -XmlItem.prototype['prefix_boolean'] = undefined; - -/** - * @member {Array.} prefix_array - */ -XmlItem.prototype['prefix_array'] = undefined; - -/** - * @member {Array.} prefix_wrapped_array - */ -XmlItem.prototype['prefix_wrapped_array'] = undefined; - -/** - * @member {String} namespace_string - */ -XmlItem.prototype['namespace_string'] = undefined; - -/** - * @member {Number} namespace_number - */ -XmlItem.prototype['namespace_number'] = undefined; - -/** - * @member {Number} namespace_integer - */ -XmlItem.prototype['namespace_integer'] = undefined; - -/** - * @member {Boolean} namespace_boolean - */ -XmlItem.prototype['namespace_boolean'] = undefined; - -/** - * @member {Array.} namespace_array - */ -XmlItem.prototype['namespace_array'] = undefined; - -/** - * @member {Array.} namespace_wrapped_array - */ -XmlItem.prototype['namespace_wrapped_array'] = undefined; - -/** - * @member {String} prefix_ns_string - */ -XmlItem.prototype['prefix_ns_string'] = undefined; - -/** - * @member {Number} prefix_ns_number - */ -XmlItem.prototype['prefix_ns_number'] = undefined; - -/** - * @member {Number} prefix_ns_integer - */ -XmlItem.prototype['prefix_ns_integer'] = undefined; - -/** - * @member {Boolean} prefix_ns_boolean - */ -XmlItem.prototype['prefix_ns_boolean'] = undefined; - -/** - * @member {Array.} prefix_ns_array - */ -XmlItem.prototype['prefix_ns_array'] = undefined; - -/** - * @member {Array.} prefix_ns_wrapped_array - */ -XmlItem.prototype['prefix_ns_wrapped_array'] = undefined; - - - - - - -export default XmlItem; - diff --git a/samples/openapi3/client/petstore/javascript-es6/src/test/api/AnotherFakeApi.spec.js b/samples/client/petstore/javascript-es6/src/test/api/AnotherFakeApi.spec.js similarity index 100% rename from samples/openapi3/client/petstore/javascript-es6/src/test/api/AnotherFakeApi.spec.js rename to samples/client/petstore/javascript-es6/src/test/api/AnotherFakeApi.spec.js diff --git a/samples/openapi3/client/petstore/javascript-es6/src/test/api/FakeApi.spec.js b/samples/client/petstore/javascript-es6/src/test/api/FakeApi.spec.js similarity index 100% rename from samples/openapi3/client/petstore/javascript-es6/src/test/api/FakeApi.spec.js rename to samples/client/petstore/javascript-es6/src/test/api/FakeApi.spec.js diff --git a/samples/openapi3/client/petstore/javascript-es6/src/test/api/FakeClassnameTags123Api.spec.js b/samples/client/petstore/javascript-es6/src/test/api/FakeClassnameTags123Api.spec.js similarity index 100% rename from samples/openapi3/client/petstore/javascript-es6/src/test/api/FakeClassnameTags123Api.spec.js rename to samples/client/petstore/javascript-es6/src/test/api/FakeClassnameTags123Api.spec.js diff --git a/samples/openapi3/client/petstore/javascript-es6/src/test/api/PetApi.spec.js b/samples/client/petstore/javascript-es6/src/test/api/PetApi.spec.js similarity index 100% rename from samples/openapi3/client/petstore/javascript-es6/src/test/api/PetApi.spec.js rename to samples/client/petstore/javascript-es6/src/test/api/PetApi.spec.js diff --git a/samples/openapi3/client/petstore/javascript-es6/src/test/api/StoreApi.spec.js b/samples/client/petstore/javascript-es6/src/test/api/StoreApi.spec.js similarity index 100% rename from samples/openapi3/client/petstore/javascript-es6/src/test/api/StoreApi.spec.js rename to samples/client/petstore/javascript-es6/src/test/api/StoreApi.spec.js diff --git a/samples/openapi3/client/petstore/javascript-es6/src/test/api/UserApi.spec.js b/samples/client/petstore/javascript-es6/src/test/api/UserApi.spec.js similarity index 100% rename from samples/openapi3/client/petstore/javascript-es6/src/test/api/UserApi.spec.js rename to samples/client/petstore/javascript-es6/src/test/api/UserApi.spec.js diff --git a/samples/client/petstore/javascript-es6/test/ApiClientTest.js b/samples/client/petstore/javascript-es6/test/ApiClientTest.js index 5e98b685a911..00629d52d2b5 100644 --- a/samples/client/petstore/javascript-es6/test/ApiClientTest.js +++ b/samples/client/petstore/javascript-es6/test/ApiClientTest.js @@ -1,10 +1,10 @@ if (typeof module === 'object' && module.exports) { var expect = require('expect.js'); - var SwaggerPetstore = require('../src/index'); + var OpenAPIPetstore = require('../src/index'); var sinon = require('sinon'); } -var apiClient = SwaggerPetstore.ApiClient.instance; +var apiClient = OpenAPIPetstore.ApiClient.instance; describe('ApiClient', function() { describe('defaults', function() { @@ -13,6 +13,7 @@ describe('ApiClient', function() { expect(apiClient.basePath).to.be('http://petstore.swagger.io:80/v2'); expect(apiClient.authentications).to.eql({ petstore_auth: {type: 'oauth2'}, + bearer_test: {type: 'bearer'}, 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'}, @@ -45,7 +46,7 @@ describe('ApiClient', function() { }); it('should have correct default values with new API client and can customize it', function() { - var newClient = new SwaggerPetstore.ApiClient; + var newClient = new OpenAPIPetstore.ApiClient; expect(newClient.basePath).to.be('http://petstore.swagger.io:80/v2'); expect(newClient.buildUrl('/abc', {})).to.be('http://petstore.swagger.io:80/v2/abc'); @@ -131,6 +132,35 @@ describe('ApiClient', function() { }); }); + describe('multipleServers', function() { + describe('host settings', function() { + var hosts = apiClient.hostSettings(); + it('should have proper 1st URL', function() { + expect(hosts[0]['url']).to.be('http://{server}.swagger.io:{port}/v2'); + expect(hosts[0]['variables']['server']['default_value']).to.be('petstore'); + }); + + it('should have proper 2nd URL', function() { + expect(hosts[1]['url']).to.be('https://localhost:8080/{version}'); + expect(hosts[1]['variables']['version']['default_value']).to.be('v2'); + }); + }); + + describe('get host from settings', function() { + it('should have correct default URL', function() { + expect(apiClient.getBasePathFromSettings(0)).to.be('http://petstore.swagger.io:80/v2'); + }); + + it('should have correct URL with port 8080', function() { + expect(apiClient.getBasePathFromSettings(0, {'port': '8080'})).to.be('http://petstore.swagger.io:8080/v2'); + }); + + it('should have correct URL with port 8080 and dev-petstore', function() { + expect(apiClient.getBasePathFromSettings(0, {'server': 'dev-petstore', 'port': '8080'})).to.be('http://dev-petstore.swagger.io:8080/v2'); + }); + }); + }); + describe('#applyAuthToRequest', function() { var req, newClient; @@ -143,7 +173,7 @@ describe('ApiClient', function() { sinon.stub(req, 'auth'); sinon.stub(req, 'set'); sinon.stub(req, 'query'); - newClient = new SwaggerPetstore.ApiClient(); + newClient = new OpenAPIPetstore.ApiClient(); }); describe('basic', function() { @@ -344,7 +374,7 @@ describe('ApiClient', function() { }); it('should put default headers in request', function() { - var newClient = new SwaggerPetstore.ApiClient; + var newClient = new OpenAPIPetstore.ApiClient; newClient.defaultHeaders['Content-Type'] = 'text/plain' newClient.defaultHeaders['api_key'] = 'special-key' @@ -356,7 +386,7 @@ describe('ApiClient', function() { }); it('should override default headers with provided header params', function() { - var newClient = new SwaggerPetstore.ApiClient; + var newClient = new OpenAPIPetstore.ApiClient; newClient.defaultHeaders['Content-Type'] = 'text/plain' newClient.defaultHeaders['api_key'] = 'special-key' diff --git a/samples/client/petstore/javascript-es6/test/api/AnotherFakeApi.spec.js b/samples/client/petstore/javascript-es6/test/api/AnotherFakeApi.spec.js index cc0edc79ac01..750840784236 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', process.cwd()+'/src/index'], factory); + 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(process.cwd()+'/src/index')); + factory(require('expect.js'), require('../../src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); @@ -48,10 +48,10 @@ } describe('AnotherFakeApi', function() { - describe('call123testSpecialTags', function() { - it('should call call123testSpecialTags successfully', function(done) { - //uncomment below and update the code to test call123testSpecialTags - //instance.call123testSpecialTags(function(error) { + 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(); //}); diff --git a/samples/client/petstore/javascript-es6/test/api/DefaultApi.spec.js b/samples/client/petstore/javascript-es6/test/api/DefaultApi.spec.js new file mode 100644 index 000000000000..5d37f0a2e1f8 --- /dev/null +++ b/samples/client/petstore/javascript-es6/test/api/DefaultApi.spec.js @@ -0,0 +1,63 @@ +/** + * 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. + * + */ + +(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.OpenApiPetstore); + } +}(this, function(expect, OpenApiPetstore) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new OpenApiPetstore.DefaultApi(); + }); + + 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('DefaultApi', function() { + describe('fooGet', function() { + it('should call fooGet successfully', function(done) { + //uncomment below and update the code to test fooGet + //instance.fooGet(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); 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 1f0d2e140f11..7931dbdd6c8d 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', process.cwd()+'/src/index'], factory); + 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(process.cwd()+'/src/index')); + factory(require('expect.js'), require('../../src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); @@ -48,16 +48,6 @@ } 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 @@ -98,16 +88,6 @@ 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 @@ -148,16 +128,6 @@ 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 c9b8c836f87b..a9f0780a18fd 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', process.cwd()+'/src/index'], factory); + 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(process.cwd()+'/src/index')); + factory(require('expect.js'), require('../../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 1818900165cf..49dcc0605816 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', process.cwd()+'/src/index'], factory); + 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(process.cwd()+'/src/index')); + factory(require('expect.js'), require('../../src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); @@ -25,10 +25,10 @@ }(this, function(expect, OpenApiPetstore) { 'use strict'; - var instance; + var api_instance; beforeEach(function() { - instance = new OpenApiPetstore.PetApi(); + api_instance = new OpenApiPetstore.PetApi(); }); var getProperty = function(object, getter, property) { @@ -47,7 +47,56 @@ 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) { + this.timeout(15000); + var pet = createRandomPet(); + try { + //api_instance.addPet(pet, {_base_path_index: 1}, function(error) { + api_instance.addPet(pet, null, function(error) { + if (error) throw error; + + api_instance.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_instance.deletePet(pet.id); + done(); + }); + }); + } catch (error) { + done(error); + } + }); describe('addPet', function() { it('should call addPet successfully', function(done) { //uncomment below and update the code to test addPet @@ -128,16 +177,6 @@ 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 86b775815772..cd542e15f5d1 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', process.cwd()+'/src/index'], factory); + 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(process.cwd()+'/src/index')); + factory(require('expect.js'), require('../../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 891f2dc47587..c5ba7e4e4bc0 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', process.cwd()+'/src/index'], factory); + 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(process.cwd()+'/src/index')); + factory(require('expect.js'), require('../../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 deleted file mode 100644 index e15e37a473e6..000000000000 --- a/samples/client/petstore/javascript-es6/test/model/AdditionalPropertiesAnyType.spec.js +++ /dev/null @@ -1,65 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.AdditionalPropertiesAnyType(); - }); - - 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('AdditionalPropertiesAnyType', function() { - it('should create an instance of AdditionalPropertiesAnyType', function() { - // uncomment below and update the code to test AdditionalPropertiesAnyType - //var instane = new OpenApiPetstore.AdditionalPropertiesAnyType(); - //expect(instance).to.be.a(OpenApiPetstore.AdditionalPropertiesAnyType); - }); - - 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.AdditionalPropertiesAnyType(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-es6/test/model/AdditionalPropertiesBoolean.spec.js b/samples/client/petstore/javascript-es6/test/model/AdditionalPropertiesBoolean.spec.js deleted file mode 100644 index 672c6d3b3ab0..000000000000 --- a/samples/client/petstore/javascript-es6/test/model/AdditionalPropertiesBoolean.spec.js +++ /dev/null @@ -1,65 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.AdditionalPropertiesBoolean(); - }); - - 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('AdditionalPropertiesBoolean', function() { - it('should create an instance of AdditionalPropertiesBoolean', function() { - // uncomment below and update the code to test AdditionalPropertiesBoolean - //var instane = new OpenApiPetstore.AdditionalPropertiesBoolean(); - //expect(instance).to.be.a(OpenApiPetstore.AdditionalPropertiesBoolean); - }); - - 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.AdditionalPropertiesBoolean(); - //expect(instance).to.be(); - }); - - }); - -})); 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 97946110fbbb..4c472d5ac5f3 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', process.cwd()+'/src/index'], factory); + 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(process.cwd()+'/src/index')); + factory(require('expect.js'), require('../../src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); @@ -54,68 +54,14 @@ //expect(instance).to.be.a(OpenApiPetstore.AdditionalPropertiesClass); }); - it('should have the property mapString (base name: "map_string")', function() { - // uncomment below and update the code to test the property mapString + 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(); //expect(instance).to.be(); }); - 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 + 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(); //expect(instance).to.be(); }); 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 541e42c052a7..dbe9ef41d144 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', process.cwd()+'/src/index'], factory); + 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(process.cwd()+'/src/index')); + factory(require('expect.js'), require('../../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 6bf65ed8c27a..1165094a73c0 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', process.cwd()+'/src/index'], factory); + 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(process.cwd()+'/src/index')); + factory(require('expect.js'), require('../../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 c0e7294153c1..f30c53f5ed65 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', process.cwd()+'/src/index'], factory); + 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(process.cwd()+'/src/index')); + factory(require('expect.js'), require('../../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 8b1a334ae4f6..6c2bc8807d93 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', process.cwd()+'/src/index'], factory); + 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(process.cwd()+'/src/index')); + factory(require('expect.js'), require('../../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 56e527b5af45..ab9294b159cd 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', process.cwd()+'/src/index'], factory); + 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(process.cwd()+'/src/index')); + factory(require('expect.js'), require('../../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 af2de38aba9f..8be47e3e132d 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', process.cwd()+'/src/index'], factory); + 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(process.cwd()+'/src/index')); + factory(require('expect.js'), require('../../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 538496a14dc8..99b7496450db 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', process.cwd()+'/src/index'], factory); + 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(process.cwd()+'/src/index')); + factory(require('expect.js'), require('../../src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-es6/test/model/CatAllOf.spec.js b/samples/client/petstore/javascript-es6/test/model/CatAllOf.spec.js index 7db37ef7e297..be4cf8b972ae 100644 --- a/samples/client/petstore/javascript-es6/test/model/CatAllOf.spec.js +++ b/samples/client/petstore/javascript-es6/test/model/CatAllOf.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 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 33a4e190d3a5..2a02a9e4708b 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', process.cwd()+'/src/index'], factory); + 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(process.cwd()+'/src/index')); + factory(require('expect.js'), require('../../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 5a0704ce1f93..d87a995d19b6 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', process.cwd()+'/src/index'], factory); + 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(process.cwd()+'/src/index')); + factory(require('expect.js'), require('../../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 00c35bdf53fe..182ad6244341 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', process.cwd()+'/src/index'], factory); + 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(process.cwd()+'/src/index')); + factory(require('expect.js'), require('../../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 5fb66ca82ac5..13d1584d01a0 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', process.cwd()+'/src/index'], factory); + 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(process.cwd()+'/src/index')); + factory(require('expect.js'), require('../../src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-es6/test/model/DogAllOf.spec.js b/samples/client/petstore/javascript-es6/test/model/DogAllOf.spec.js index cf0a7d2b9391..767e3b0071b9 100644 --- a/samples/client/petstore/javascript-es6/test/model/DogAllOf.spec.js +++ b/samples/client/petstore/javascript-es6/test/model/DogAllOf.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 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 3bcca2e2f033..dae8d83d7f2a 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', process.cwd()+'/src/index'], factory); + 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(process.cwd()+'/src/index')); + factory(require('expect.js'), require('../../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 c5c5e6eff58a..eb5a1117918f 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', process.cwd()+'/src/index'], factory); + 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(process.cwd()+'/src/index')); + factory(require('expect.js'), require('../../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 c65804928fc2..6d7c2519e684 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', process.cwd()+'/src/index'], factory); + 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(process.cwd()+'/src/index')); + factory(require('expect.js'), require('../../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 f76e2660fd08..10666dc53c7c 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', process.cwd()+'/src/index'], factory); + 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(process.cwd()+'/src/index')); + factory(require('expect.js'), require('../../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 3cdf1be6c2e3..d6e49689d232 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', process.cwd()+'/src/index'], factory); + 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(process.cwd()+'/src/index')); + factory(require('expect.js'), require('../../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/Foo.spec.js similarity index 67% rename from samples/client/petstore/javascript-es6/test/model/AdditionalPropertiesString.spec.js rename to samples/client/petstore/javascript-es6/test/model/Foo.spec.js index 41614af44093..19023af6f106 100644 --- a/samples/client/petstore/javascript-es6/test/model/AdditionalPropertiesString.spec.js +++ b/samples/client/petstore/javascript-es6/test/model/Foo.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); + 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(process.cwd()+'/src/index')); + factory(require('expect.js'), require('../../src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new OpenApiPetstore.AdditionalPropertiesString(); + instance = new OpenApiPetstore.Foo(); }); var getProperty = function(object, getter, property) { @@ -47,16 +47,16 @@ object[property] = value; } - describe('AdditionalPropertiesString', function() { - it('should create an instance of AdditionalPropertiesString', function() { - // uncomment below and update the code to test AdditionalPropertiesString - //var instane = new OpenApiPetstore.AdditionalPropertiesString(); - //expect(instance).to.be.a(OpenApiPetstore.AdditionalPropertiesString); + describe('Foo', function() { + it('should create an instance of Foo', function() { + // uncomment below and update the code to test Foo + //var instane = new OpenApiPetstore.Foo(); + //expect(instance).to.be.a(OpenApiPetstore.Foo); }); - 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.AdditionalPropertiesString(); + 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.Foo(); //expect(instance).to.be(); }); 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 6ce03fc91985..2e61e4f8ed94 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', process.cwd()+'/src/index'], factory); + 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(process.cwd()+'/src/index')); + factory(require('expect.js'), require('../../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 ced64afe9d7d..409e06ad823c 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', process.cwd()+'/src/index'], factory); + 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(process.cwd()+'/src/index')); + factory(require('expect.js'), require('../../src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-es6/test/model/HealthCheckResult.spec.js b/samples/client/petstore/javascript-es6/test/model/HealthCheckResult.spec.js new file mode 100644 index 000000000000..fec4b172d816 --- /dev/null +++ b/samples/client/petstore/javascript-es6/test/model/HealthCheckResult.spec.js @@ -0,0 +1,65 @@ +/** + * OpenAPI Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * 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. + * + */ + +(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.OpenApiPetstore); + } +}(this, function(expect, OpenApiPetstore) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new OpenApiPetstore.HealthCheckResult(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('HealthCheckResult', function() { + it('should create an instance of HealthCheckResult', function() { + // uncomment below and update the code to test HealthCheckResult + //var instane = new OpenApiPetstore.HealthCheckResult(); + //expect(instance).to.be.a(OpenApiPetstore.HealthCheckResult); + }); + + it('should have the property nullableMessage (base name: "NullableMessage")', function() { + // uncomment below and update the code to test the property nullableMessage + //var instane = new OpenApiPetstore.HealthCheckResult(); + //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/InlineObject.spec.js similarity index 66% rename from samples/client/petstore/javascript-es6/test/model/AdditionalPropertiesInteger.spec.js rename to samples/client/petstore/javascript-es6/test/model/InlineObject.spec.js index 927abe7f4abe..2f3c1707a2b8 100644 --- a/samples/client/petstore/javascript-es6/test/model/AdditionalPropertiesInteger.spec.js +++ b/samples/client/petstore/javascript-es6/test/model/InlineObject.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); + 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(process.cwd()+'/src/index')); + factory(require('expect.js'), require('../../src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new OpenApiPetstore.AdditionalPropertiesInteger(); + instance = new OpenApiPetstore.InlineObject(); }); var getProperty = function(object, getter, property) { @@ -47,16 +47,22 @@ object[property] = value; } - describe('AdditionalPropertiesInteger', function() { - it('should create an instance of AdditionalPropertiesInteger', function() { - // uncomment below and update the code to test AdditionalPropertiesInteger - //var instane = new OpenApiPetstore.AdditionalPropertiesInteger(); - //expect(instance).to.be.a(OpenApiPetstore.AdditionalPropertiesInteger); + describe('InlineObject', function() { + it('should create an instance of InlineObject', function() { + // uncomment below and update the code to test InlineObject + //var instane = new OpenApiPetstore.InlineObject(); + //expect(instance).to.be.a(OpenApiPetstore.InlineObject); }); 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.AdditionalPropertiesInteger(); + //var instane = new OpenApiPetstore.InlineObject(); + //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.InlineObject(); //expect(instance).to.be(); }); diff --git a/samples/client/petstore/javascript-es6/test/model/InlineObject1.spec.js b/samples/client/petstore/javascript-es6/test/model/InlineObject1.spec.js new file mode 100644 index 000000000000..b83a0204f8fa --- /dev/null +++ b/samples/client/petstore/javascript-es6/test/model/InlineObject1.spec.js @@ -0,0 +1,71 @@ +/** + * OpenAPI Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * 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. + * + */ + +(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.OpenApiPetstore); + } +}(this, function(expect, OpenApiPetstore) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new OpenApiPetstore.InlineObject1(); + }); + + 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('InlineObject1', function() { + it('should create an instance of InlineObject1', function() { + // uncomment below and update the code to test InlineObject1 + //var instane = new OpenApiPetstore.InlineObject1(); + //expect(instance).to.be.a(OpenApiPetstore.InlineObject1); + }); + + it('should have the property additionalMetadata (base name: "additionalMetadata")', function() { + // uncomment below and update the code to test the property additionalMetadata + //var instane = new OpenApiPetstore.InlineObject1(); + //expect(instance).to.be(); + }); + + it('should have the property file (base name: "file")', function() { + // uncomment below and update the code to test the property file + //var instane = new OpenApiPetstore.InlineObject1(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/samples/client/petstore/javascript-es6/test/model/InlineObject2.spec.js b/samples/client/petstore/javascript-es6/test/model/InlineObject2.spec.js new file mode 100644 index 000000000000..db91d138c39c --- /dev/null +++ b/samples/client/petstore/javascript-es6/test/model/InlineObject2.spec.js @@ -0,0 +1,71 @@ +/** + * OpenAPI Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * 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. + * + */ + +(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.OpenApiPetstore); + } +}(this, function(expect, OpenApiPetstore) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new OpenApiPetstore.InlineObject2(); + }); + + 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('InlineObject2', function() { + it('should create an instance of InlineObject2', function() { + // uncomment below and update the code to test InlineObject2 + //var instane = new OpenApiPetstore.InlineObject2(); + //expect(instance).to.be.a(OpenApiPetstore.InlineObject2); + }); + + it('should have the property enumFormStringArray (base name: "enum_form_string_array")', function() { + // uncomment below and update the code to test the property enumFormStringArray + //var instane = new OpenApiPetstore.InlineObject2(); + //expect(instance).to.be(); + }); + + it('should have the property enumFormString (base name: "enum_form_string")', function() { + // uncomment below and update the code to test the property enumFormString + //var instane = new OpenApiPetstore.InlineObject2(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/samples/client/petstore/javascript-es6/test/model/InlineObject3.spec.js b/samples/client/petstore/javascript-es6/test/model/InlineObject3.spec.js new file mode 100644 index 000000000000..5e2647ed2c44 --- /dev/null +++ b/samples/client/petstore/javascript-es6/test/model/InlineObject3.spec.js @@ -0,0 +1,143 @@ +/** + * 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. + * + */ + +(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.OpenApiPetstore); + } +}(this, function(expect, OpenApiPetstore) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new OpenApiPetstore.InlineObject3(); + }); + + 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('InlineObject3', function() { + it('should create an instance of InlineObject3', function() { + // uncomment below and update the code to test InlineObject3 + //var instane = new OpenApiPetstore.InlineObject3(); + //expect(instance).to.be.a(OpenApiPetstore.InlineObject3); + }); + + 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.InlineObject3(); + //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.InlineObject3(); + //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.InlineObject3(); + //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.InlineObject3(); + //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.InlineObject3(); + //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.InlineObject3(); + //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.InlineObject3(); + //expect(instance).to.be(); + }); + + it('should have the property patternWithoutDelimiter (base name: "pattern_without_delimiter")', function() { + // uncomment below and update the code to test the property patternWithoutDelimiter + //var instane = new OpenApiPetstore.InlineObject3(); + //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.InlineObject3(); + //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.InlineObject3(); + //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.InlineObject3(); + //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.InlineObject3(); + //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.InlineObject3(); + //expect(instance).to.be(); + }); + + it('should have the property callback (base name: "callback")', function() { + // uncomment below and update the code to test the property callback + //var instane = new OpenApiPetstore.InlineObject3(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/samples/client/petstore/javascript-es6/test/model/InlineObject4.spec.js b/samples/client/petstore/javascript-es6/test/model/InlineObject4.spec.js new file mode 100644 index 000000000000..10e6acf7e7c6 --- /dev/null +++ b/samples/client/petstore/javascript-es6/test/model/InlineObject4.spec.js @@ -0,0 +1,71 @@ +/** + * OpenAPI Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * 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. + * + */ + +(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.OpenApiPetstore); + } +}(this, function(expect, OpenApiPetstore) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new OpenApiPetstore.InlineObject4(); + }); + + 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('InlineObject4', function() { + it('should create an instance of InlineObject4', function() { + // uncomment below and update the code to test InlineObject4 + //var instane = new OpenApiPetstore.InlineObject4(); + //expect(instance).to.be.a(OpenApiPetstore.InlineObject4); + }); + + it('should have the property param (base name: "param")', function() { + // uncomment below and update the code to test the property param + //var instane = new OpenApiPetstore.InlineObject4(); + //expect(instance).to.be(); + }); + + it('should have the property param2 (base name: "param2")', function() { + // uncomment below and update the code to test the property param2 + //var instane = new OpenApiPetstore.InlineObject4(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/samples/client/petstore/javascript-es6/test/model/InlineObject5.spec.js b/samples/client/petstore/javascript-es6/test/model/InlineObject5.spec.js new file mode 100644 index 000000000000..13f4fa6bc8df --- /dev/null +++ b/samples/client/petstore/javascript-es6/test/model/InlineObject5.spec.js @@ -0,0 +1,71 @@ +/** + * OpenAPI Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * 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. + * + */ + +(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.OpenApiPetstore); + } +}(this, function(expect, OpenApiPetstore) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new OpenApiPetstore.InlineObject5(); + }); + + 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('InlineObject5', function() { + it('should create an instance of InlineObject5', function() { + // uncomment below and update the code to test InlineObject5 + //var instane = new OpenApiPetstore.InlineObject5(); + //expect(instance).to.be.a(OpenApiPetstore.InlineObject5); + }); + + it('should have the property additionalMetadata (base name: "additionalMetadata")', function() { + // uncomment below and update the code to test the property additionalMetadata + //var instane = new OpenApiPetstore.InlineObject5(); + //expect(instance).to.be(); + }); + + it('should have the property requiredFile (base name: "requiredFile")', function() { + // uncomment below and update the code to test the property requiredFile + //var instane = new OpenApiPetstore.InlineObject5(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/samples/client/petstore/javascript-es6/test/model/AdditionalPropertiesObject.spec.js b/samples/client/petstore/javascript-es6/test/model/InlineResponseDefault.spec.js similarity index 67% rename from samples/client/petstore/javascript-es6/test/model/AdditionalPropertiesObject.spec.js rename to samples/client/petstore/javascript-es6/test/model/InlineResponseDefault.spec.js index 0f1c32a186a4..eb5491bf8a88 100644 --- a/samples/client/petstore/javascript-es6/test/model/AdditionalPropertiesObject.spec.js +++ b/samples/client/petstore/javascript-es6/test/model/InlineResponseDefault.spec.js @@ -14,10 +14,10 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); + 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(process.cwd()+'/src/index')); + factory(require('expect.js'), require('../../src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new OpenApiPetstore.AdditionalPropertiesObject(); + instance = new OpenApiPetstore.InlineResponseDefault(); }); var getProperty = function(object, getter, property) { @@ -47,16 +47,16 @@ object[property] = value; } - describe('AdditionalPropertiesObject', function() { - it('should create an instance of AdditionalPropertiesObject', function() { - // uncomment below and update the code to test AdditionalPropertiesObject - //var instane = new OpenApiPetstore.AdditionalPropertiesObject(); - //expect(instance).to.be.a(OpenApiPetstore.AdditionalPropertiesObject); + describe('InlineResponseDefault', function() { + it('should create an instance of InlineResponseDefault', function() { + // uncomment below and update the code to test InlineResponseDefault + //var instane = new OpenApiPetstore.InlineResponseDefault(); + //expect(instance).to.be.a(OpenApiPetstore.InlineResponseDefault); }); - 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.AdditionalPropertiesObject(); + 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.InlineResponseDefault(); //expect(instance).to.be(); }); 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 190b15174404..e3a8574d9aef 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', process.cwd()+'/src/index'], factory); + 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(process.cwd()+'/src/index')); + factory(require('expect.js'), require('../../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 83fba503f2cc..da009beec4eb 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', process.cwd()+'/src/index'], factory); + 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(process.cwd()+'/src/index')); + factory(require('expect.js'), require('../../src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); @@ -66,18 +66,6 @@ //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 aefbd4a1e118..c9174f561547 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', process.cwd()+'/src/index'], factory); + 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(process.cwd()+'/src/index')); + factory(require('expect.js'), require('../../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 86baa3a6e1bb..13f768e97307 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', process.cwd()+'/src/index'], factory); + 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(process.cwd()+'/src/index')); + factory(require('expect.js'), require('../../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 80ace52e711f..bda09c52366d 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', process.cwd()+'/src/index'], factory); + 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(process.cwd()+'/src/index')); + factory(require('expect.js'), require('../../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 8fd3787a60c2..3726b8867b4c 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', process.cwd()+'/src/index'], factory); + 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(process.cwd()+'/src/index')); + factory(require('expect.js'), require('../../src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-es6/test/model/NullableClass.spec.js b/samples/client/petstore/javascript-es6/test/model/NullableClass.spec.js new file mode 100644 index 000000000000..89cd2821d42b --- /dev/null +++ b/samples/client/petstore/javascript-es6/test/model/NullableClass.spec.js @@ -0,0 +1,131 @@ +/** + * OpenAPI Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.OpenApiPetstore); + } +}(this, function(expect, OpenApiPetstore) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new OpenApiPetstore.NullableClass(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('NullableClass', function() { + it('should create an instance of NullableClass', function() { + // uncomment below and update the code to test NullableClass + //var instane = new OpenApiPetstore.NullableClass(); + //expect(instance).to.be.a(OpenApiPetstore.NullableClass); + }); + + it('should have the property integerProp (base name: "integer_prop")', function() { + // uncomment below and update the code to test the property integerProp + //var instane = new OpenApiPetstore.NullableClass(); + //expect(instance).to.be(); + }); + + it('should have the property numberProp (base name: "number_prop")', function() { + // uncomment below and update the code to test the property numberProp + //var instane = new OpenApiPetstore.NullableClass(); + //expect(instance).to.be(); + }); + + it('should have the property booleanProp (base name: "boolean_prop")', function() { + // uncomment below and update the code to test the property booleanProp + //var instane = new OpenApiPetstore.NullableClass(); + //expect(instance).to.be(); + }); + + it('should have the property stringProp (base name: "string_prop")', function() { + // uncomment below and update the code to test the property stringProp + //var instane = new OpenApiPetstore.NullableClass(); + //expect(instance).to.be(); + }); + + it('should have the property dateProp (base name: "date_prop")', function() { + // uncomment below and update the code to test the property dateProp + //var instane = new OpenApiPetstore.NullableClass(); + //expect(instance).to.be(); + }); + + it('should have the property datetimeProp (base name: "datetime_prop")', function() { + // uncomment below and update the code to test the property datetimeProp + //var instane = new OpenApiPetstore.NullableClass(); + //expect(instance).to.be(); + }); + + it('should have the property arrayNullableProp (base name: "array_nullable_prop")', function() { + // uncomment below and update the code to test the property arrayNullableProp + //var instane = new OpenApiPetstore.NullableClass(); + //expect(instance).to.be(); + }); + + it('should have the property arrayAndItemsNullableProp (base name: "array_and_items_nullable_prop")', function() { + // uncomment below and update the code to test the property arrayAndItemsNullableProp + //var instane = new OpenApiPetstore.NullableClass(); + //expect(instance).to.be(); + }); + + it('should have the property arrayItemsNullable (base name: "array_items_nullable")', function() { + // uncomment below and update the code to test the property arrayItemsNullable + //var instane = new OpenApiPetstore.NullableClass(); + //expect(instance).to.be(); + }); + + it('should have the property objectNullableProp (base name: "object_nullable_prop")', function() { + // uncomment below and update the code to test the property objectNullableProp + //var instane = new OpenApiPetstore.NullableClass(); + //expect(instance).to.be(); + }); + + it('should have the property objectAndItemsNullableProp (base name: "object_and_items_nullable_prop")', function() { + // uncomment below and update the code to test the property objectAndItemsNullableProp + //var instane = new OpenApiPetstore.NullableClass(); + //expect(instance).to.be(); + }); + + it('should have the property objectItemsNullable (base name: "object_items_nullable")', function() { + // uncomment below and update the code to test the property objectItemsNullable + //var instane = new OpenApiPetstore.NullableClass(); + //expect(instance).to.be(); + }); + + }); + +})); 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 8d9b191b8ceb..2261973c9af1 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', process.cwd()+'/src/index'], factory); + 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(process.cwd()+'/src/index')); + factory(require('expect.js'), require('../../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 3cf5ee02c0b1..536d217cc5be 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', process.cwd()+'/src/index'], factory); + 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(process.cwd()+'/src/index')); + factory(require('expect.js'), require('../../src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/OuterBoolean.spec.js b/samples/client/petstore/javascript-es6/test/model/OuterBoolean.spec.js similarity index 100% rename from samples/openapi3/client/petstore/javascript-es6/test/model/OuterBoolean.spec.js rename to samples/client/petstore/javascript-es6/test/model/OuterBoolean.spec.js 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 e642d911b1e0..3309d6194223 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', process.cwd()+'/src/index'], factory); + 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(process.cwd()+'/src/index')); + factory(require('expect.js'), require('../../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 98fc8e470828..fa51fa90cb45 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', process.cwd()+'/src/index'], factory); + 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(process.cwd()+'/src/index')); + factory(require('expect.js'), require('../../src/index')); } else { // Browser globals (root is window) factory(root.expect, root.OpenApiPetstore); diff --git a/samples/client/petstore/javascript-es6/test/model/OuterEnumDefaultValue.spec.js b/samples/client/petstore/javascript-es6/test/model/OuterEnumDefaultValue.spec.js new file mode 100644 index 000000000000..7358f731e757 --- /dev/null +++ b/samples/client/petstore/javascript-es6/test/model/OuterEnumDefaultValue.spec.js @@ -0,0 +1,58 @@ +/** + * OpenAPI Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * 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. + * + */ + +(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.OpenApiPetstore); + } +}(this, function(expect, OpenApiPetstore) { + 'use strict'; + + var instance; + + beforeEach(function() { + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('OuterEnumDefaultValue', function() { + it('should create an instance of OuterEnumDefaultValue', function() { + // uncomment below and update the code to test OuterEnumDefaultValue + //var instane = new OpenApiPetstore.OuterEnumDefaultValue(); + //expect(instance).to.be.a(OpenApiPetstore.OuterEnumDefaultValue); + }); + + }); + +})); diff --git a/samples/client/petstore/javascript-es6/test/model/OuterEnumInteger.spec.js b/samples/client/petstore/javascript-es6/test/model/OuterEnumInteger.spec.js new file mode 100644 index 000000000000..d7d09b16ea76 --- /dev/null +++ b/samples/client/petstore/javascript-es6/test/model/OuterEnumInteger.spec.js @@ -0,0 +1,58 @@ +/** + * OpenAPI Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * 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. + * + */ + +(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.OpenApiPetstore); + } +}(this, function(expect, OpenApiPetstore) { + 'use strict'; + + var instance; + + beforeEach(function() { + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('OuterEnumInteger', function() { + it('should create an instance of OuterEnumInteger', function() { + // uncomment below and update the code to test OuterEnumInteger + //var instane = new OpenApiPetstore.OuterEnumInteger(); + //expect(instance).to.be.a(OpenApiPetstore.OuterEnumInteger); + }); + + }); + +})); diff --git a/samples/client/petstore/javascript-es6/test/model/OuterEnumIntegerDefaultValue.spec.js b/samples/client/petstore/javascript-es6/test/model/OuterEnumIntegerDefaultValue.spec.js new file mode 100644 index 000000000000..0b9e2f7933d3 --- /dev/null +++ b/samples/client/petstore/javascript-es6/test/model/OuterEnumIntegerDefaultValue.spec.js @@ -0,0 +1,58 @@ +/** + * OpenAPI Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * 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. + * + */ + +(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.OpenApiPetstore); + } +}(this, function(expect, OpenApiPetstore) { + 'use strict'; + + var instance; + + beforeEach(function() { + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('OuterEnumIntegerDefaultValue', function() { + it('should create an instance of OuterEnumIntegerDefaultValue', function() { + // uncomment below and update the code to test OuterEnumIntegerDefaultValue + //var instane = new OpenApiPetstore.OuterEnumIntegerDefaultValue(); + //expect(instance).to.be.a(OpenApiPetstore.OuterEnumIntegerDefaultValue); + }); + + }); + +})); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/OuterNumber.spec.js b/samples/client/petstore/javascript-es6/test/model/OuterNumber.spec.js similarity index 100% rename from samples/openapi3/client/petstore/javascript-es6/test/model/OuterNumber.spec.js rename to samples/client/petstore/javascript-es6/test/model/OuterNumber.spec.js diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/OuterString.spec.js b/samples/client/petstore/javascript-es6/test/model/OuterString.spec.js similarity index 100% rename from samples/openapi3/client/petstore/javascript-es6/test/model/OuterString.spec.js rename to samples/client/petstore/javascript-es6/test/model/OuterString.spec.js 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 139b4fe0ac4a..f8ce9b93a3cd 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', process.cwd()+'/src/index'], factory); + 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(process.cwd()+'/src/index')); + factory(require('expect.js'), require('../../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 13a4f7a16f42..5bc5cb3a7005 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', process.cwd()+'/src/index'], factory); + 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(process.cwd()+'/src/index')); + factory(require('expect.js'), require('../../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 ccbd26dc3f21..f459d2e0cd6f 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', process.cwd()+'/src/index'], factory); + 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(process.cwd()+'/src/index')); + factory(require('expect.js'), require('../../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 17c48f5c2560..2213b06d5090 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', process.cwd()+'/src/index'], factory); + 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(process.cwd()+'/src/index')); + factory(require('expect.js'), require('../../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 deleted file mode 100644 index 6d918826b387..000000000000 --- a/samples/client/petstore/javascript-es6/test/model/TypeHolderDefault.spec.js +++ /dev/null @@ -1,89 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.TypeHolderDefault(); - }); - - 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('TypeHolderDefault', function() { - it('should create an instance of TypeHolderDefault', function() { - // uncomment below and update the code to test TypeHolderDefault - //var instane = new OpenApiPetstore.TypeHolderDefault(); - //expect(instance).to.be.a(OpenApiPetstore.TypeHolderDefault); - }); - - it('should have the property stringItem (base name: "string_item")', function() { - // uncomment below and update the code to test the property stringItem - //var instane = new OpenApiPetstore.TypeHolderDefault(); - //expect(instance).to.be(); - }); - - it('should have the property numberItem (base name: "number_item")', function() { - // uncomment below and update the code to test the property numberItem - //var instane = new OpenApiPetstore.TypeHolderDefault(); - //expect(instance).to.be(); - }); - - it('should have the property integerItem (base name: "integer_item")', function() { - // uncomment below and update the code to test the property integerItem - //var instane = new OpenApiPetstore.TypeHolderDefault(); - //expect(instance).to.be(); - }); - - it('should have the property boolItem (base name: "bool_item")', function() { - // uncomment below and update the code to test the property boolItem - //var instane = new OpenApiPetstore.TypeHolderDefault(); - //expect(instance).to.be(); - }); - - it('should have the property arrayItem (base name: "array_item")', function() { - // uncomment below and update the code to test the property arrayItem - //var instane = new OpenApiPetstore.TypeHolderDefault(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-es6/test/model/TypeHolderExample.spec.js b/samples/client/petstore/javascript-es6/test/model/TypeHolderExample.spec.js deleted file mode 100644 index 20cb2d3c8b4f..000000000000 --- a/samples/client/petstore/javascript-es6/test/model/TypeHolderExample.spec.js +++ /dev/null @@ -1,89 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.TypeHolderExample(); - }); - - 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('TypeHolderExample', function() { - it('should create an instance of TypeHolderExample', function() { - // uncomment below and update the code to test TypeHolderExample - //var instane = new OpenApiPetstore.TypeHolderExample(); - //expect(instance).to.be.a(OpenApiPetstore.TypeHolderExample); - }); - - it('should have the property stringItem (base name: "string_item")', function() { - // uncomment below and update the code to test the property stringItem - //var instane = new OpenApiPetstore.TypeHolderExample(); - //expect(instance).to.be(); - }); - - it('should have the property numberItem (base name: "number_item")', function() { - // uncomment below and update the code to test the property numberItem - //var instane = new OpenApiPetstore.TypeHolderExample(); - //expect(instance).to.be(); - }); - - it('should have the property integerItem (base name: "integer_item")', function() { - // uncomment below and update the code to test the property integerItem - //var instane = new OpenApiPetstore.TypeHolderExample(); - //expect(instance).to.be(); - }); - - it('should have the property boolItem (base name: "bool_item")', function() { - // uncomment below and update the code to test the property boolItem - //var instane = new OpenApiPetstore.TypeHolderExample(); - //expect(instance).to.be(); - }); - - it('should have the property arrayItem (base name: "array_item")', function() { - // uncomment below and update the code to test the property arrayItem - //var instane = new OpenApiPetstore.TypeHolderExample(); - //expect(instance).to.be(); - }); - - }); - -})); 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 f2ce2c36ab33..f0cd8819ec88 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', process.cwd()+'/src/index'], factory); + 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(process.cwd()+'/src/index')); + factory(require('expect.js'), require('../../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 deleted file mode 100644 index 3775c96866b1..000000000000 --- a/samples/client/petstore/javascript-es6/test/model/XmlItem.spec.js +++ /dev/null @@ -1,233 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.XmlItem(); - }); - - 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('XmlItem', function() { - it('should create an instance of XmlItem', function() { - // uncomment below and update the code to test XmlItem - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be.a(OpenApiPetstore.XmlItem); - }); - - it('should have the property attributeString (base name: "attribute_string")', function() { - // uncomment below and update the code to test the property attributeString - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property attributeNumber (base name: "attribute_number")', function() { - // uncomment below and update the code to test the property attributeNumber - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property attributeInteger (base name: "attribute_integer")', function() { - // uncomment below and update the code to test the property attributeInteger - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property attributeBoolean (base name: "attribute_boolean")', function() { - // uncomment below and update the code to test the property attributeBoolean - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property wrappedArray (base name: "wrapped_array")', function() { - // uncomment below and update the code to test the property wrappedArray - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property nameString (base name: "name_string")', function() { - // uncomment below and update the code to test the property nameString - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property nameNumber (base name: "name_number")', function() { - // uncomment below and update the code to test the property nameNumber - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property nameInteger (base name: "name_integer")', function() { - // uncomment below and update the code to test the property nameInteger - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property nameBoolean (base name: "name_boolean")', function() { - // uncomment below and update the code to test the property nameBoolean - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property nameArray (base name: "name_array")', function() { - // uncomment below and update the code to test the property nameArray - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property nameWrappedArray (base name: "name_wrapped_array")', function() { - // uncomment below and update the code to test the property nameWrappedArray - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property prefixString (base name: "prefix_string")', function() { - // uncomment below and update the code to test the property prefixString - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property prefixNumber (base name: "prefix_number")', function() { - // uncomment below and update the code to test the property prefixNumber - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property prefixInteger (base name: "prefix_integer")', function() { - // uncomment below and update the code to test the property prefixInteger - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property prefixBoolean (base name: "prefix_boolean")', function() { - // uncomment below and update the code to test the property prefixBoolean - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property prefixArray (base name: "prefix_array")', function() { - // uncomment below and update the code to test the property prefixArray - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property prefixWrappedArray (base name: "prefix_wrapped_array")', function() { - // uncomment below and update the code to test the property prefixWrappedArray - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property namespaceString (base name: "namespace_string")', function() { - // uncomment below and update the code to test the property namespaceString - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property namespaceNumber (base name: "namespace_number")', function() { - // uncomment below and update the code to test the property namespaceNumber - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property namespaceInteger (base name: "namespace_integer")', function() { - // uncomment below and update the code to test the property namespaceInteger - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property namespaceBoolean (base name: "namespace_boolean")', function() { - // uncomment below and update the code to test the property namespaceBoolean - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property namespaceArray (base name: "namespace_array")', function() { - // uncomment below and update the code to test the property namespaceArray - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property namespaceWrappedArray (base name: "namespace_wrapped_array")', function() { - // uncomment below and update the code to test the property namespaceWrappedArray - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property prefixNsString (base name: "prefix_ns_string")', function() { - // uncomment below and update the code to test the property prefixNsString - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property prefixNsNumber (base name: "prefix_ns_number")', function() { - // uncomment below and update the code to test the property prefixNsNumber - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property prefixNsInteger (base name: "prefix_ns_integer")', function() { - // uncomment below and update the code to test the property prefixNsInteger - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property prefixNsBoolean (base name: "prefix_ns_boolean")', function() { - // uncomment below and update the code to test the property prefixNsBoolean - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property prefixNsArray (base name: "prefix_ns_array")', function() { - // uncomment below and update the code to test the property prefixNsArray - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property prefixNsWrappedArray (base name: "prefix_ns_wrapped_array")', function() { - // uncomment below and update the code to test the property prefixNsWrappedArray - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/run_tests.html b/samples/client/petstore/javascript-es6/test/run_tests.html similarity index 100% rename from samples/openapi3/client/petstore/javascript-es6/test/run_tests.html rename to samples/client/petstore/javascript-es6/test/run_tests.html diff --git a/samples/client/petstore/javascript-promise-es6/README.md b/samples/client/petstore/javascript-promise-es6/README.md index 3657c3574fe5..a890453dfa54 100644 --- a/samples/client/petstore/javascript-promise-es6/README.md +++ b/samples/client/petstore/javascript-promise-es6/README.md @@ -102,8 +102,8 @@ var OpenApiPetstore = require('open_api_petstore'); var api = new OpenApiPetstore.AnotherFakeApi() -var body = new OpenApiPetstore.Client(); // {Client} client model -api.call123testSpecialTags(body).then(function(data) { +var client = new OpenApiPetstore.Client(); // {Client} client model +api.call123testSpecialTags(client).then(function(data) { console.log('API called successfully. Returned data: ' + data); }, function(error) { console.error(error); @@ -119,7 +119,9 @@ All URIs are relative to *http://petstore.swagger.io:80/v2* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- *OpenApiPetstore.AnotherFakeApi* | [**call123testSpecialTags**](docs/AnotherFakeApi.md#call123testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags -*OpenApiPetstore.FakeApi* | [**createXmlItem**](docs/FakeApi.md#createXmlItem) | **POST** /fake/create_xml_item | creates an XmlItem +*OpenApiPetstore.DefaultApi* | [**fooGet**](docs/DefaultApi.md#fooGet) | **GET** /foo | +*OpenApiPetstore.FakeApi* | [**fakeHealthGet**](docs/FakeApi.md#fakeHealthGet) | **GET** /fake/health | Health check endpoint +*OpenApiPetstore.FakeApi* | [**fakeHttpSignatureTest**](docs/FakeApi.md#fakeHttpSignatureTest) | **GET** /fake/http-signature-test | test http signature authentication *OpenApiPetstore.FakeApi* | [**fakeOuterBooleanSerialize**](docs/FakeApi.md#fakeOuterBooleanSerialize) | **POST** /fake/outer/boolean | *OpenApiPetstore.FakeApi* | [**fakeOuterCompositeSerialize**](docs/FakeApi.md#fakeOuterCompositeSerialize) | **POST** /fake/outer/composite | *OpenApiPetstore.FakeApi* | [**fakeOuterNumberSerialize**](docs/FakeApi.md#fakeOuterNumberSerialize) | **POST** /fake/outer/number | @@ -127,7 +129,7 @@ Class | Method | HTTP request | Description *OpenApiPetstore.FakeApi* | [**testBodyWithFileSchema**](docs/FakeApi.md#testBodyWithFileSchema) | **PUT** /fake/body-with-file-schema | *OpenApiPetstore.FakeApi* | [**testBodyWithQueryParams**](docs/FakeApi.md#testBodyWithQueryParams) | **PUT** /fake/body-with-query-params | *OpenApiPetstore.FakeApi* | [**testClientModel**](docs/FakeApi.md#testClientModel) | **PATCH** /fake | To test \"client\" model -*OpenApiPetstore.FakeApi* | [**testEndpointParameters**](docs/FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 +*OpenApiPetstore.FakeApi* | [**testEndpointParameters**](docs/FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 *OpenApiPetstore.FakeApi* | [**testEnumParameters**](docs/FakeApi.md#testEnumParameters) | **GET** /fake | To test enum parameters *OpenApiPetstore.FakeApi* | [**testGroupParameters**](docs/FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) *OpenApiPetstore.FakeApi* | [**testInlineAdditionalProperties**](docs/FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties @@ -159,21 +161,12 @@ Class | Method | HTTP request | Description ## Documentation for Models - - [OpenApiPetstore.AdditionalPropertiesAnyType](docs/AdditionalPropertiesAnyType.md) - - [OpenApiPetstore.AdditionalPropertiesArray](docs/AdditionalPropertiesArray.md) - - [OpenApiPetstore.AdditionalPropertiesBoolean](docs/AdditionalPropertiesBoolean.md) - [OpenApiPetstore.AdditionalPropertiesClass](docs/AdditionalPropertiesClass.md) - - [OpenApiPetstore.AdditionalPropertiesInteger](docs/AdditionalPropertiesInteger.md) - - [OpenApiPetstore.AdditionalPropertiesNumber](docs/AdditionalPropertiesNumber.md) - - [OpenApiPetstore.AdditionalPropertiesObject](docs/AdditionalPropertiesObject.md) - - [OpenApiPetstore.AdditionalPropertiesString](docs/AdditionalPropertiesString.md) - [OpenApiPetstore.Animal](docs/Animal.md) - [OpenApiPetstore.ApiResponse](docs/ApiResponse.md) - [OpenApiPetstore.ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md) - [OpenApiPetstore.ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md) - [OpenApiPetstore.ArrayTest](docs/ArrayTest.md) - - [OpenApiPetstore.BigCat](docs/BigCat.md) - - [OpenApiPetstore.BigCatAllOf](docs/BigCatAllOf.md) - [OpenApiPetstore.Capitalization](docs/Capitalization.md) - [OpenApiPetstore.Cat](docs/Cat.md) - [OpenApiPetstore.CatAllOf](docs/CatAllOf.md) @@ -187,26 +180,36 @@ Class | Method | HTTP request | Description - [OpenApiPetstore.EnumTest](docs/EnumTest.md) - [OpenApiPetstore.File](docs/File.md) - [OpenApiPetstore.FileSchemaTestClass](docs/FileSchemaTestClass.md) + - [OpenApiPetstore.Foo](docs/Foo.md) - [OpenApiPetstore.FormatTest](docs/FormatTest.md) - [OpenApiPetstore.HasOnlyReadOnly](docs/HasOnlyReadOnly.md) + - [OpenApiPetstore.HealthCheckResult](docs/HealthCheckResult.md) + - [OpenApiPetstore.InlineObject](docs/InlineObject.md) + - [OpenApiPetstore.InlineObject1](docs/InlineObject1.md) + - [OpenApiPetstore.InlineObject2](docs/InlineObject2.md) + - [OpenApiPetstore.InlineObject3](docs/InlineObject3.md) + - [OpenApiPetstore.InlineObject4](docs/InlineObject4.md) + - [OpenApiPetstore.InlineObject5](docs/InlineObject5.md) + - [OpenApiPetstore.InlineResponseDefault](docs/InlineResponseDefault.md) - [OpenApiPetstore.List](docs/List.md) - [OpenApiPetstore.MapTest](docs/MapTest.md) - [OpenApiPetstore.MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md) - [OpenApiPetstore.Model200Response](docs/Model200Response.md) - [OpenApiPetstore.ModelReturn](docs/ModelReturn.md) - [OpenApiPetstore.Name](docs/Name.md) + - [OpenApiPetstore.NullableClass](docs/NullableClass.md) - [OpenApiPetstore.NumberOnly](docs/NumberOnly.md) - [OpenApiPetstore.Order](docs/Order.md) - [OpenApiPetstore.OuterComposite](docs/OuterComposite.md) - [OpenApiPetstore.OuterEnum](docs/OuterEnum.md) + - [OpenApiPetstore.OuterEnumDefaultValue](docs/OuterEnumDefaultValue.md) + - [OpenApiPetstore.OuterEnumInteger](docs/OuterEnumInteger.md) + - [OpenApiPetstore.OuterEnumIntegerDefaultValue](docs/OuterEnumIntegerDefaultValue.md) - [OpenApiPetstore.Pet](docs/Pet.md) - [OpenApiPetstore.ReadOnlyFirst](docs/ReadOnlyFirst.md) - [OpenApiPetstore.SpecialModelName](docs/SpecialModelName.md) - [OpenApiPetstore.Tag](docs/Tag.md) - - [OpenApiPetstore.TypeHolderDefault](docs/TypeHolderDefault.md) - - [OpenApiPetstore.TypeHolderExample](docs/TypeHolderExample.md) - [OpenApiPetstore.User](docs/User.md) - - [OpenApiPetstore.XmlItem](docs/XmlItem.md) ## Documentation for Authorization @@ -231,12 +234,23 @@ Class | Method | HTTP request | Description +### bearer_test + +- **Type**: Bearer authentication (JWT) + + + ### http_basic_test - **Type**: HTTP basic authentication +### http_signature_test + + + + ### petstore_auth diff --git a/samples/client/petstore/javascript-promise-es6/docs/AdditionalPropertiesClass.md b/samples/client/petstore/javascript-promise-es6/docs/AdditionalPropertiesClass.md index 9f8a26bcc612..c85e85acd9e3 100644 --- a/samples/client/petstore/javascript-promise-es6/docs/AdditionalPropertiesClass.md +++ b/samples/client/petstore/javascript-promise-es6/docs/AdditionalPropertiesClass.md @@ -4,16 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**mapString** | **{String: String}** | | [optional] -**mapNumber** | **{String: Number}** | | [optional] -**mapInteger** | **{String: Number}** | | [optional] -**mapBoolean** | **{String: Boolean}** | | [optional] -**mapArrayInteger** | **{String: [Number]}** | | [optional] -**mapArrayAnytype** | **{String: [Object]}** | | [optional] -**mapMapString** | **{String: {String: String}}** | | [optional] -**mapMapAnytype** | **{String: {String: Object}}** | | [optional] -**anytype1** | **Object** | | [optional] -**anytype2** | **Object** | | [optional] -**anytype3** | **Object** | | [optional] +**mapProperty** | **{String: String}** | | [optional] +**mapOfMapProperty** | **{String: {String: String}}** | | [optional] diff --git a/samples/client/petstore/javascript-promise-es6/docs/AnotherFakeApi.md b/samples/client/petstore/javascript-promise-es6/docs/AnotherFakeApi.md index 8e36d0fe8c47..56b31d95242d 100644 --- a/samples/client/petstore/javascript-promise-es6/docs/AnotherFakeApi.md +++ b/samples/client/petstore/javascript-promise-es6/docs/AnotherFakeApi.md @@ -10,7 +10,7 @@ Method | HTTP request | Description ## call123testSpecialTags -> Client call123testSpecialTags(body) +> Client call123testSpecialTags(client) To test special tags @@ -22,8 +22,8 @@ To test special tags and operation ID starting with number import OpenApiPetstore from 'open_api_petstore'; let apiInstance = new OpenApiPetstore.AnotherFakeApi(); -let body = new OpenApiPetstore.Client(); // Client | client model -apiInstance.call123testSpecialTags(body).then((data) => { +let client = new OpenApiPetstore.Client(); // Client | client model +apiInstance.call123testSpecialTags(client).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -36,7 +36,7 @@ apiInstance.call123testSpecialTags(body).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**Client**](Client.md)| client model | + **client** | [**Client**](Client.md)| client model | ### Return type diff --git a/samples/client/petstore/javascript-promise-es6/docs/DefaultApi.md b/samples/client/petstore/javascript-promise-es6/docs/DefaultApi.md new file mode 100644 index 000000000000..d9dc50faa2e7 --- /dev/null +++ b/samples/client/petstore/javascript-promise-es6/docs/DefaultApi.md @@ -0,0 +1,47 @@ +# OpenApiPetstore.DefaultApi + +All URIs are relative to *http://petstore.swagger.io:80/v2* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**fooGet**](DefaultApi.md#fooGet) | **GET** /foo | + + + +## fooGet + +> InlineResponseDefault fooGet() + + + +### Example + +```javascript +import OpenApiPetstore from 'open_api_petstore'; + +let apiInstance = new OpenApiPetstore.DefaultApi(); +apiInstance.fooGet().then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**InlineResponseDefault**](InlineResponseDefault.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + diff --git a/samples/client/petstore/javascript-promise-es6/docs/EnumTest.md b/samples/client/petstore/javascript-promise-es6/docs/EnumTest.md index c1504aeb4f72..b56c3c4cef63 100644 --- a/samples/client/petstore/javascript-promise-es6/docs/EnumTest.md +++ b/samples/client/petstore/javascript-promise-es6/docs/EnumTest.md @@ -9,6 +9,9 @@ Name | Type | Description | Notes **enumInteger** | **Number** | | [optional] **enumNumber** | **Number** | | [optional] **outerEnum** | [**OuterEnum**](OuterEnum.md) | | [optional] +**outerEnumInteger** | [**OuterEnumInteger**](OuterEnumInteger.md) | | [optional] +**outerEnumDefaultValue** | [**OuterEnumDefaultValue**](OuterEnumDefaultValue.md) | | [optional] +**outerEnumIntegerDefaultValue** | [**OuterEnumIntegerDefaultValue**](OuterEnumIntegerDefaultValue.md) | | [optional] diff --git a/samples/client/petstore/javascript-promise-es6/docs/FakeApi.md b/samples/client/petstore/javascript-promise-es6/docs/FakeApi.md index 21fe5b74ff57..c910944599f8 100644 --- a/samples/client/petstore/javascript-promise-es6/docs/FakeApi.md +++ b/samples/client/petstore/javascript-promise-es6/docs/FakeApi.md @@ -4,7 +4,8 @@ All URIs are relative to *http://petstore.swagger.io:80/v2* Method | HTTP request | Description ------------- | ------------- | ------------- -[**createXmlItem**](FakeApi.md#createXmlItem) | **POST** /fake/create_xml_item | creates an XmlItem +[**fakeHealthGet**](FakeApi.md#fakeHealthGet) | **GET** /fake/health | Health check endpoint +[**fakeHttpSignatureTest**](FakeApi.md#fakeHttpSignatureTest) | **GET** /fake/http-signature-test | test http signature authentication [**fakeOuterBooleanSerialize**](FakeApi.md#fakeOuterBooleanSerialize) | **POST** /fake/outer/boolean | [**fakeOuterCompositeSerialize**](FakeApi.md#fakeOuterCompositeSerialize) | **POST** /fake/outer/composite | [**fakeOuterNumberSerialize**](FakeApi.md#fakeOuterNumberSerialize) | **POST** /fake/outer/number | @@ -12,7 +13,7 @@ Method | HTTP request | Description [**testBodyWithFileSchema**](FakeApi.md#testBodyWithFileSchema) | **PUT** /fake/body-with-file-schema | [**testBodyWithQueryParams**](FakeApi.md#testBodyWithQueryParams) | **PUT** /fake/body-with-query-params | [**testClientModel**](FakeApi.md#testClientModel) | **PATCH** /fake | To test \"client\" model -[**testEndpointParameters**](FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 +[**testEndpointParameters**](FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 [**testEnumParameters**](FakeApi.md#testEnumParameters) | **GET** /fake | To test enum parameters [**testGroupParameters**](FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) [**testInlineAdditionalProperties**](FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties @@ -21,22 +22,63 @@ Method | HTTP request | Description -## createXmlItem +## fakeHealthGet -> createXmlItem(xmlItem) +> HealthCheckResult fakeHealthGet() -creates an XmlItem +Health check endpoint -this route creates an XmlItem +### Example + +```javascript +import OpenApiPetstore from 'open_api_petstore'; + +let apiInstance = new OpenApiPetstore.FakeApi(); +apiInstance.fakeHealthGet().then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**HealthCheckResult**](HealthCheckResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## fakeHttpSignatureTest + +> fakeHttpSignatureTest(pet, opts) + +test http signature authentication ### Example ```javascript import OpenApiPetstore from 'open_api_petstore'; +let defaultClient = OpenApiPetstore.ApiClient.instance; let apiInstance = new OpenApiPetstore.FakeApi(); -let xmlItem = new OpenApiPetstore.XmlItem(); // XmlItem | XmlItem Body -apiInstance.createXmlItem(xmlItem).then(() => { +let pet = new OpenApiPetstore.Pet(); // Pet | Pet object that needs to be added to the store +let opts = { + 'query1': "query1_example", // String | query parameter + 'header1': "header1_example" // String | header parameter +}; +apiInstance.fakeHttpSignatureTest(pet, opts).then(() => { console.log('API called successfully.'); }, (error) => { console.error(error); @@ -49,7 +91,9 @@ apiInstance.createXmlItem(xmlItem).then(() => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xmlItem** | [**XmlItem**](XmlItem.md)| XmlItem Body | + **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | + **query1** | **String**| query parameter | [optional] + **header1** | **String**| header parameter | [optional] ### Return type @@ -57,11 +101,11 @@ null (empty response body) ### Authorization -No authorization required +[http_signature_test](../README.md#http_signature_test) ### HTTP request headers -- **Content-Type**: application/xml, application/xml; charset=utf-8, application/xml; charset=utf-16, text/xml, text/xml; charset=utf-8, text/xml; charset=utf-16 +- **Content-Type**: application/json, application/xml - **Accept**: Not defined @@ -107,7 +151,7 @@ No authorization required ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: */* @@ -126,7 +170,7 @@ import OpenApiPetstore from 'open_api_petstore'; let apiInstance = new OpenApiPetstore.FakeApi(); let opts = { - 'body': new OpenApiPetstore.OuterComposite() // OuterComposite | Input composite as post body + 'outerComposite': new OpenApiPetstore.OuterComposite() // OuterComposite | Input composite as post body }; apiInstance.fakeOuterCompositeSerialize(opts).then((data) => { console.log('API called successfully. Returned data: ' + data); @@ -141,7 +185,7 @@ apiInstance.fakeOuterCompositeSerialize(opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional] + **outerComposite** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional] ### Return type @@ -153,7 +197,7 @@ No authorization required ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: */* @@ -199,7 +243,7 @@ No authorization required ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: */* @@ -245,13 +289,13 @@ No authorization required ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: */* ## testBodyWithFileSchema -> testBodyWithFileSchema(body) +> testBodyWithFileSchema(fileSchemaTestClass) @@ -263,8 +307,8 @@ For this test, the body for this request much reference a schema named `Fil import OpenApiPetstore from 'open_api_petstore'; let apiInstance = new OpenApiPetstore.FakeApi(); -let body = new OpenApiPetstore.FileSchemaTestClass(); // FileSchemaTestClass | -apiInstance.testBodyWithFileSchema(body).then(() => { +let fileSchemaTestClass = new OpenApiPetstore.FileSchemaTestClass(); // FileSchemaTestClass | +apiInstance.testBodyWithFileSchema(fileSchemaTestClass).then(() => { console.log('API called successfully.'); }, (error) => { console.error(error); @@ -277,7 +321,7 @@ apiInstance.testBodyWithFileSchema(body).then(() => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | + **fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | ### Return type @@ -295,7 +339,7 @@ No authorization required ## testBodyWithQueryParams -> testBodyWithQueryParams(query, body) +> testBodyWithQueryParams(query, user) @@ -306,8 +350,8 @@ import OpenApiPetstore from 'open_api_petstore'; let apiInstance = new OpenApiPetstore.FakeApi(); let query = "query_example"; // String | -let body = new OpenApiPetstore.User(); // User | -apiInstance.testBodyWithQueryParams(query, body).then(() => { +let user = new OpenApiPetstore.User(); // User | +apiInstance.testBodyWithQueryParams(query, user).then(() => { console.log('API called successfully.'); }, (error) => { console.error(error); @@ -321,7 +365,7 @@ apiInstance.testBodyWithQueryParams(query, body).then(() => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **query** | **String**| | - **body** | [**User**](User.md)| | + **user** | [**User**](User.md)| | ### Return type @@ -339,7 +383,7 @@ No authorization required ## testClientModel -> Client testClientModel(body) +> Client testClientModel(client) To test \"client\" model @@ -351,8 +395,8 @@ To test \"client\" model import OpenApiPetstore from 'open_api_petstore'; let apiInstance = new OpenApiPetstore.FakeApi(); -let body = new OpenApiPetstore.Client(); // Client | client model -apiInstance.testClientModel(body).then((data) => { +let client = new OpenApiPetstore.Client(); // Client | client model +apiInstance.testClientModel(client).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -365,7 +409,7 @@ apiInstance.testClientModel(body).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**Client**](Client.md)| client model | + **client** | [**Client**](Client.md)| client model | ### Return type @@ -385,9 +429,9 @@ No authorization required > testEndpointParameters(_number, _double, patternWithoutDelimiter, _byte, opts) -Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 +Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 -Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 +Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 ### Example @@ -530,6 +574,10 @@ Fake endpoint to test group parameters (optional) ```javascript import OpenApiPetstore from 'open_api_petstore'; +let defaultClient = OpenApiPetstore.ApiClient.instance; +// Configure Bearer (JWT) access token for authorization: bearer_test +let bearer_test = defaultClient.authentications['bearer_test']; +bearer_test.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new OpenApiPetstore.FakeApi(); let requiredStringGroup = 56; // Number | Required String in group parameters @@ -566,7 +614,7 @@ null (empty response body) ### Authorization -No authorization required +[bearer_test](../README.md#bearer_test) ### HTTP request headers @@ -576,7 +624,7 @@ No authorization required ## testInlineAdditionalProperties -> testInlineAdditionalProperties(param) +> testInlineAdditionalProperties(requestBody) test inline additionalProperties @@ -586,8 +634,8 @@ test inline additionalProperties import OpenApiPetstore from 'open_api_petstore'; let apiInstance = new OpenApiPetstore.FakeApi(); -let param = {key: "null"}; // {String: String} | request body -apiInstance.testInlineAdditionalProperties(param).then(() => { +let requestBody = {key: "null"}; // {String: String} | request body +apiInstance.testInlineAdditionalProperties(requestBody).then(() => { console.log('API called successfully.'); }, (error) => { console.error(error); @@ -600,7 +648,7 @@ apiInstance.testInlineAdditionalProperties(param).then(() => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **param** | [**{String: String}**](String.md)| request body | + **requestBody** | [**{String: String}**](String.md)| request body | ### Return type diff --git a/samples/client/petstore/javascript-promise-es6/docs/FakeClassnameTags123Api.md b/samples/client/petstore/javascript-promise-es6/docs/FakeClassnameTags123Api.md index 22c6ab1499a6..28a1db3822c7 100644 --- a/samples/client/petstore/javascript-promise-es6/docs/FakeClassnameTags123Api.md +++ b/samples/client/petstore/javascript-promise-es6/docs/FakeClassnameTags123Api.md @@ -10,7 +10,7 @@ Method | HTTP request | Description ## testClassname -> Client testClassname(body) +> Client testClassname(client) To test class name in snake case @@ -28,8 +28,8 @@ api_key_query.apiKey = 'YOUR API KEY'; //api_key_query.apiKeyPrefix = 'Token'; let apiInstance = new OpenApiPetstore.FakeClassnameTags123Api(); -let body = new OpenApiPetstore.Client(); // Client | client model -apiInstance.testClassname(body).then((data) => { +let client = new OpenApiPetstore.Client(); // Client | client model +apiInstance.testClassname(client).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -42,7 +42,7 @@ apiInstance.testClassname(body).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**Client**](Client.md)| client model | + **client** | [**Client**](Client.md)| client model | ### Return type diff --git a/samples/client/petstore/javascript-es6/docs/AdditionalPropertiesBoolean.md b/samples/client/petstore/javascript-promise-es6/docs/Foo.md similarity index 56% rename from samples/client/petstore/javascript-es6/docs/AdditionalPropertiesBoolean.md rename to samples/client/petstore/javascript-promise-es6/docs/Foo.md index db3f089ce98e..1e0c9a294c48 100644 --- a/samples/client/petstore/javascript-es6/docs/AdditionalPropertiesBoolean.md +++ b/samples/client/petstore/javascript-promise-es6/docs/Foo.md @@ -1,9 +1,9 @@ -# OpenApiPetstore.AdditionalPropertiesBoolean +# OpenApiPetstore.Foo ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **String** | | [optional] +**bar** | **String** | | [optional] [default to 'bar'] diff --git a/samples/client/petstore/javascript-promise-es6/docs/FormatTest.md b/samples/client/petstore/javascript-promise-es6/docs/FormatTest.md index d0df4b552e5a..83d751d4cdde 100644 --- a/samples/client/petstore/javascript-promise-es6/docs/FormatTest.md +++ b/samples/client/petstore/javascript-promise-es6/docs/FormatTest.md @@ -17,6 +17,7 @@ Name | Type | Description | Notes **dateTime** | **Date** | | [optional] **uuid** | **String** | | [optional] **password** | **String** | | -**bigDecimal** | **Number** | | [optional] +**patternWithDigits** | **String** | A string that is a 10 digit number. Can have leading zeros. | [optional] +**patternWithDigitsAndDelimiter** | **String** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional] diff --git a/samples/client/petstore/javascript-es6/docs/AdditionalPropertiesInteger.md b/samples/client/petstore/javascript-promise-es6/docs/HealthCheckResult.md similarity index 56% rename from samples/client/petstore/javascript-es6/docs/AdditionalPropertiesInteger.md rename to samples/client/petstore/javascript-promise-es6/docs/HealthCheckResult.md index be98887371ae..bbb74ac6a0ae 100644 --- a/samples/client/petstore/javascript-es6/docs/AdditionalPropertiesInteger.md +++ b/samples/client/petstore/javascript-promise-es6/docs/HealthCheckResult.md @@ -1,9 +1,9 @@ -# OpenApiPetstore.AdditionalPropertiesInteger +# OpenApiPetstore.HealthCheckResult ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **String** | | [optional] +**nullableMessage** | **String** | | [optional] diff --git a/samples/client/petstore/javascript-promise-es6/docs/InlineObject.md b/samples/client/petstore/javascript-promise-es6/docs/InlineObject.md new file mode 100644 index 000000000000..529c032d7a99 --- /dev/null +++ b/samples/client/petstore/javascript-promise-es6/docs/InlineObject.md @@ -0,0 +1,10 @@ +# OpenApiPetstore.InlineObject + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | Updated name of the pet | [optional] +**status** | **String** | Updated status of the pet | [optional] + + diff --git a/samples/client/petstore/javascript-promise-es6/docs/InlineObject1.md b/samples/client/petstore/javascript-promise-es6/docs/InlineObject1.md new file mode 100644 index 000000000000..bd2fcd57a209 --- /dev/null +++ b/samples/client/petstore/javascript-promise-es6/docs/InlineObject1.md @@ -0,0 +1,10 @@ +# OpenApiPetstore.InlineObject1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**additionalMetadata** | **String** | Additional data to pass to server | [optional] +**file** | **File** | file to upload | [optional] + + diff --git a/samples/client/petstore/javascript-promise-es6/docs/InlineObject2.md b/samples/client/petstore/javascript-promise-es6/docs/InlineObject2.md new file mode 100644 index 000000000000..7d703a9086a3 --- /dev/null +++ b/samples/client/petstore/javascript-promise-es6/docs/InlineObject2.md @@ -0,0 +1,34 @@ +# OpenApiPetstore.InlineObject2 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enumFormStringArray** | **[String]** | Form parameter enum test (string array) | [optional] +**enumFormString** | **String** | Form parameter enum test (string) | [optional] [default to '-efg'] + + + +## Enum: [EnumFormStringArrayEnum] + + +* `GREATER_THAN` (value: `">"`) + +* `DOLLAR` (value: `"$"`) + + + + + +## Enum: EnumFormStringEnum + + +* `_abc` (value: `"_abc"`) + +* `-efg` (value: `"-efg"`) + +* `(xyz)` (value: `"(xyz)"`) + + + + diff --git a/samples/client/petstore/javascript-promise-es6/docs/InlineObject3.md b/samples/client/petstore/javascript-promise-es6/docs/InlineObject3.md new file mode 100644 index 000000000000..ec8980b728e7 --- /dev/null +++ b/samples/client/petstore/javascript-promise-es6/docs/InlineObject3.md @@ -0,0 +1,22 @@ +# OpenApiPetstore.InlineObject3 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**integer** | **Number** | None | [optional] +**int32** | **Number** | None | [optional] +**int64** | **Number** | None | [optional] +**_number** | **Number** | None | +**_float** | **Number** | None | [optional] +**_double** | **Number** | None | +**_string** | **String** | None | [optional] +**patternWithoutDelimiter** | **String** | None | +**_byte** | **Blob** | None | +**binary** | **File** | None | [optional] +**_date** | **Date** | None | [optional] +**dateTime** | **Date** | None | [optional] +**password** | **String** | None | [optional] +**callback** | **String** | None | [optional] + + diff --git a/samples/client/petstore/javascript-promise-es6/docs/InlineObject4.md b/samples/client/petstore/javascript-promise-es6/docs/InlineObject4.md new file mode 100644 index 000000000000..07ce4b0cac21 --- /dev/null +++ b/samples/client/petstore/javascript-promise-es6/docs/InlineObject4.md @@ -0,0 +1,10 @@ +# OpenApiPetstore.InlineObject4 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**param** | **String** | field1 | +**param2** | **String** | field2 | + + diff --git a/samples/client/petstore/javascript-promise-es6/docs/InlineObject5.md b/samples/client/petstore/javascript-promise-es6/docs/InlineObject5.md new file mode 100644 index 000000000000..16547e7f52bc --- /dev/null +++ b/samples/client/petstore/javascript-promise-es6/docs/InlineObject5.md @@ -0,0 +1,10 @@ +# OpenApiPetstore.InlineObject5 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**additionalMetadata** | **String** | Additional data to pass to server | [optional] +**requiredFile** | **File** | file to upload | + + diff --git a/samples/client/petstore/javascript-promise-es6/docs/InlineResponseDefault.md b/samples/client/petstore/javascript-promise-es6/docs/InlineResponseDefault.md new file mode 100644 index 000000000000..19cae09524bd --- /dev/null +++ b/samples/client/petstore/javascript-promise-es6/docs/InlineResponseDefault.md @@ -0,0 +1,9 @@ +# OpenApiPetstore.InlineResponseDefault + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**_string** | [**Foo**](Foo.md) | | [optional] + + diff --git a/samples/client/petstore/javascript-promise-es6/docs/NullableClass.md b/samples/client/petstore/javascript-promise-es6/docs/NullableClass.md new file mode 100644 index 000000000000..3460980270dd --- /dev/null +++ b/samples/client/petstore/javascript-promise-es6/docs/NullableClass.md @@ -0,0 +1,20 @@ +# OpenApiPetstore.NullableClass + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**integerProp** | **Number** | | [optional] +**numberProp** | **Number** | | [optional] +**booleanProp** | **Boolean** | | [optional] +**stringProp** | **String** | | [optional] +**dateProp** | **Date** | | [optional] +**datetimeProp** | **Date** | | [optional] +**arrayNullableProp** | **[Object]** | | [optional] +**arrayAndItemsNullableProp** | **[Object]** | | [optional] +**arrayItemsNullable** | **[Object]** | | [optional] +**objectNullableProp** | **{String: Object}** | | [optional] +**objectAndItemsNullableProp** | **{String: Object}** | | [optional] +**objectItemsNullable** | **{String: Object}** | | [optional] + + diff --git a/samples/client/petstore/javascript-promise-es6/docs/OuterEnumDefaultValue.md b/samples/client/petstore/javascript-promise-es6/docs/OuterEnumDefaultValue.md new file mode 100644 index 000000000000..6da697f63689 --- /dev/null +++ b/samples/client/petstore/javascript-promise-es6/docs/OuterEnumDefaultValue.md @@ -0,0 +1,12 @@ +# OpenApiPetstore.OuterEnumDefaultValue + +## Enum + + +* `placed` (value: `"placed"`) + +* `approved` (value: `"approved"`) + +* `delivered` (value: `"delivered"`) + + diff --git a/samples/client/petstore/javascript-promise-es6/docs/OuterEnumInteger.md b/samples/client/petstore/javascript-promise-es6/docs/OuterEnumInteger.md new file mode 100644 index 000000000000..224989a0e6c7 --- /dev/null +++ b/samples/client/petstore/javascript-promise-es6/docs/OuterEnumInteger.md @@ -0,0 +1,12 @@ +# OpenApiPetstore.OuterEnumInteger + +## Enum + + +* `0` (value: `0`) + +* `1` (value: `1`) + +* `2` (value: `2`) + + diff --git a/samples/client/petstore/javascript-promise-es6/docs/OuterEnumIntegerDefaultValue.md b/samples/client/petstore/javascript-promise-es6/docs/OuterEnumIntegerDefaultValue.md new file mode 100644 index 000000000000..fffd3f8f315a --- /dev/null +++ b/samples/client/petstore/javascript-promise-es6/docs/OuterEnumIntegerDefaultValue.md @@ -0,0 +1,12 @@ +# OpenApiPetstore.OuterEnumIntegerDefaultValue + +## Enum + + +* `0` (value: `0`) + +* `1` (value: `1`) + +* `2` (value: `2`) + + diff --git a/samples/client/petstore/javascript-promise-es6/docs/PetApi.md b/samples/client/petstore/javascript-promise-es6/docs/PetApi.md index 5ec7e44f4157..fccaf8273bb9 100644 --- a/samples/client/petstore/javascript-promise-es6/docs/PetApi.md +++ b/samples/client/petstore/javascript-promise-es6/docs/PetApi.md @@ -18,7 +18,7 @@ Method | HTTP request | Description ## addPet -> addPet(body) +> addPet(pet) Add a new pet to the store @@ -32,8 +32,8 @@ let petstore_auth = defaultClient.authentications['petstore_auth']; petstore_auth.accessToken = 'YOUR ACCESS TOKEN'; let apiInstance = new OpenApiPetstore.PetApi(); -let body = new OpenApiPetstore.Pet(); // Pet | Pet object that needs to be added to the store -apiInstance.addPet(body).then(() => { +let pet = new OpenApiPetstore.Pet(); // Pet | Pet object that needs to be added to the store +apiInstance.addPet(pet).then(() => { console.log('API called successfully.'); }, (error) => { console.error(error); @@ -46,7 +46,7 @@ apiInstance.addPet(body).then(() => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | + **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | ### Return type @@ -260,7 +260,7 @@ Name | Type | Description | Notes ## updatePet -> updatePet(body) +> updatePet(pet) Update an existing pet @@ -274,8 +274,8 @@ let petstore_auth = defaultClient.authentications['petstore_auth']; petstore_auth.accessToken = 'YOUR ACCESS TOKEN'; let apiInstance = new OpenApiPetstore.PetApi(); -let body = new OpenApiPetstore.Pet(); // Pet | Pet object that needs to be added to the store -apiInstance.updatePet(body).then(() => { +let pet = new OpenApiPetstore.Pet(); // Pet | Pet object that needs to be added to the store +apiInstance.updatePet(pet).then(() => { console.log('API called successfully.'); }, (error) => { console.error(error); @@ -288,7 +288,7 @@ apiInstance.updatePet(body).then(() => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | + **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | ### Return type diff --git a/samples/client/petstore/javascript-promise-es6/docs/StoreApi.md b/samples/client/petstore/javascript-promise-es6/docs/StoreApi.md index 321aa3928a54..98adf9587cc1 100644 --- a/samples/client/petstore/javascript-promise-es6/docs/StoreApi.md +++ b/samples/client/petstore/javascript-promise-es6/docs/StoreApi.md @@ -147,7 +147,7 @@ No authorization required ## placeOrder -> Order placeOrder(body) +> Order placeOrder(order) Place an order for a pet @@ -157,8 +157,8 @@ Place an order for a pet import OpenApiPetstore from 'open_api_petstore'; let apiInstance = new OpenApiPetstore.StoreApi(); -let body = new OpenApiPetstore.Order(); // Order | order placed for purchasing the pet -apiInstance.placeOrder(body).then((data) => { +let order = new OpenApiPetstore.Order(); // Order | order placed for purchasing the pet +apiInstance.placeOrder(order).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -171,7 +171,7 @@ apiInstance.placeOrder(body).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**Order**](Order.md)| order placed for purchasing the pet | + **order** | [**Order**](Order.md)| order placed for purchasing the pet | ### Return type @@ -183,6 +183,6 @@ No authorization required ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: application/xml, application/json diff --git a/samples/client/petstore/javascript-promise-es6/docs/UserApi.md b/samples/client/petstore/javascript-promise-es6/docs/UserApi.md index 47af6eedad62..9d6f340886b6 100644 --- a/samples/client/petstore/javascript-promise-es6/docs/UserApi.md +++ b/samples/client/petstore/javascript-promise-es6/docs/UserApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description ## createUser -> createUser(body) +> createUser(user) Create user @@ -29,8 +29,8 @@ This can only be done by the logged in user. import OpenApiPetstore from 'open_api_petstore'; let apiInstance = new OpenApiPetstore.UserApi(); -let body = new OpenApiPetstore.User(); // User | Created user object -apiInstance.createUser(body).then(() => { +let user = new OpenApiPetstore.User(); // User | Created user object +apiInstance.createUser(user).then(() => { console.log('API called successfully.'); }, (error) => { console.error(error); @@ -43,7 +43,7 @@ apiInstance.createUser(body).then(() => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**User**](User.md)| Created user object | + **user** | [**User**](User.md)| Created user object | ### Return type @@ -55,13 +55,13 @@ No authorization required ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: Not defined ## createUsersWithArrayInput -> createUsersWithArrayInput(body) +> createUsersWithArrayInput(user) Creates list of users with given input array @@ -71,8 +71,8 @@ Creates list of users with given input array import OpenApiPetstore from 'open_api_petstore'; let apiInstance = new OpenApiPetstore.UserApi(); -let body = [new OpenApiPetstore.User()]; // [User] | List of user object -apiInstance.createUsersWithArrayInput(body).then(() => { +let user = [new OpenApiPetstore.User()]; // [User] | List of user object +apiInstance.createUsersWithArrayInput(user).then(() => { console.log('API called successfully.'); }, (error) => { console.error(error); @@ -85,7 +85,7 @@ apiInstance.createUsersWithArrayInput(body).then(() => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**[User]**](User.md)| List of user object | + **user** | [**[User]**](User.md)| List of user object | ### Return type @@ -97,13 +97,13 @@ No authorization required ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: Not defined ## createUsersWithListInput -> createUsersWithListInput(body) +> createUsersWithListInput(user) Creates list of users with given input array @@ -113,8 +113,8 @@ Creates list of users with given input array import OpenApiPetstore from 'open_api_petstore'; let apiInstance = new OpenApiPetstore.UserApi(); -let body = [new OpenApiPetstore.User()]; // [User] | List of user object -apiInstance.createUsersWithListInput(body).then(() => { +let user = [new OpenApiPetstore.User()]; // [User] | List of user object +apiInstance.createUsersWithListInput(user).then(() => { console.log('API called successfully.'); }, (error) => { console.error(error); @@ -127,7 +127,7 @@ apiInstance.createUsersWithListInput(body).then(() => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**[User]**](User.md)| List of user object | + **user** | [**[User]**](User.md)| List of user object | ### Return type @@ -139,7 +139,7 @@ No authorization required ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: Not defined @@ -313,7 +313,7 @@ No authorization required ## updateUser -> updateUser(username, body) +> updateUser(username, user) Updated user @@ -326,8 +326,8 @@ import OpenApiPetstore from 'open_api_petstore'; let apiInstance = new OpenApiPetstore.UserApi(); let username = "username_example"; // String | name that need to be deleted -let body = new OpenApiPetstore.User(); // User | Updated user object -apiInstance.updateUser(username, body).then(() => { +let user = new OpenApiPetstore.User(); // User | Updated user object +apiInstance.updateUser(username, user).then(() => { console.log('API called successfully.'); }, (error) => { console.error(error); @@ -341,7 +341,7 @@ apiInstance.updateUser(username, body).then(() => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **username** | **String**| name that need to be deleted | - **body** | [**User**](User.md)| Updated user object | + **user** | [**User**](User.md)| Updated user object | ### Return type @@ -353,6 +353,6 @@ No authorization required ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: Not defined diff --git a/samples/client/petstore/javascript-promise-es6/src/ApiClient.js b/samples/client/petstore/javascript-promise-es6/src/ApiClient.js index 581711e0194b..9a330d1d6832 100644 --- a/samples/client/petstore/javascript-promise-es6/src/ApiClient.js +++ b/samples/client/petstore/javascript-promise-es6/src/ApiClient.js @@ -43,6 +43,7 @@ class ApiClient { this.authentications = { 'api_key': {type: 'apiKey', 'in': 'header', name: 'api_key'}, 'api_key_query': {type: 'apiKey', 'in': 'query', name: 'api_key_query'}, + 'bearer_test': {type: 'bearer'}, // JWT 'http_basic_test': {type: 'basic'}, 'petstore_auth': {type: 'oauth2'} } @@ -558,8 +559,41 @@ class ApiClient { hostSettings() { return [ { - 'url': "http://petstore.swagger.io:80/v2", - 'description': "No description provided", + 'url': "http://{server}.swagger.io:{port}/v2", + 'description': "petstore server", + 'variables': { + server: { + 'description': "No description provided", + 'default_value': "petstore", + 'enum_values': [ + "petstore", + "qa-petstore", + "dev-petstore" + ] + }, + port: { + 'description': "No description provided", + 'default_value': "80", + 'enum_values': [ + "80", + "8080" + ] + } + } + }, + { + 'url': "https://localhost:8080/{version}", + 'description': "The local server", + 'variables': { + version: { + 'description': "No description provided", + 'default_value': "v2", + 'enum_values': [ + "v1", + "v2" + ] + } + } } ]; } diff --git a/samples/client/petstore/javascript-promise-es6/src/api/AnotherFakeApi.js b/samples/client/petstore/javascript-promise-es6/src/api/AnotherFakeApi.js index c4c9028c1a4e..eba05f7bb8bc 100644 --- a/samples/client/petstore/javascript-promise-es6/src/api/AnotherFakeApi.js +++ b/samples/client/petstore/javascript-promise-es6/src/api/AnotherFakeApi.js @@ -38,14 +38,14 @@ export default class AnotherFakeApi { /** * To test special tags * To test special tags and operation ID starting with number - * @param {module:model/Client} body client model + * @param {module:model/Client} client 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 */ - call123testSpecialTagsWithHttpInfo(body) { - let postBody = body; - // verify the required parameter 'body' is set - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling call123testSpecialTags"); + call123testSpecialTagsWithHttpInfo(client) { + let postBody = client; + // verify the required parameter 'client' is set + if (client === undefined || client === null) { + throw new Error("Missing the required parameter 'client' when calling call123testSpecialTags"); } let pathParams = { @@ -71,11 +71,11 @@ export default class AnotherFakeApi { /** * To test special tags * To test special tags and operation ID starting with number - * @param {module:model/Client} body client model + * @param {module:model/Client} client client model * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Client} */ - call123testSpecialTags(body) { - return this.call123testSpecialTagsWithHttpInfo(body) + call123testSpecialTags(client) { + return this.call123testSpecialTagsWithHttpInfo(client) .then(function(response_and_data) { return response_and_data.data; }); diff --git a/samples/client/petstore/javascript-promise-es6/src/api/DefaultApi.js b/samples/client/petstore/javascript-promise-es6/src/api/DefaultApi.js new file mode 100644 index 000000000000..54b31db8d09d --- /dev/null +++ b/samples/client/petstore/javascript-promise-es6/src/api/DefaultApi.js @@ -0,0 +1,75 @@ +/** + * OpenAPI Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import InlineResponseDefault from '../model/InlineResponseDefault'; + +/** +* Default service. +* @module api/DefaultApi +* @version 1.0.0 +*/ +export default class DefaultApi { + + /** + * Constructs a new DefaultApi. + * @alias module:api/DefaultApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + + /** + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/InlineResponseDefault} and HTTP response + */ + fooGetWithHttpInfo() { + let postBody = null; + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = []; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = InlineResponseDefault; + return this.apiClient.callApi( + '/foo', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InlineResponseDefault} + */ + fooGet() { + return this.fooGetWithHttpInfo() + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + +} diff --git a/samples/client/petstore/javascript-promise-es6/src/api/FakeApi.js b/samples/client/petstore/javascript-promise-es6/src/api/FakeApi.js index 8c041077a12e..ebd78bfda488 100644 --- a/samples/client/petstore/javascript-promise-es6/src/api/FakeApi.js +++ b/samples/client/petstore/javascript-promise-es6/src/api/FakeApi.js @@ -15,9 +15,10 @@ import ApiClient from "../ApiClient"; import Client from '../model/Client'; import FileSchemaTestClass from '../model/FileSchemaTestClass'; +import HealthCheckResult from '../model/HealthCheckResult'; import OuterComposite from '../model/OuterComposite'; +import Pet from '../model/Pet'; import User from '../model/User'; -import XmlItem from '../model/XmlItem'; /** * Fake service. @@ -40,46 +41,92 @@ export default class FakeApi { /** - * creates an XmlItem - * this route creates an XmlItem - * @param {module:model/XmlItem} xmlItem XmlItem Body + * Health check endpoint + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/HealthCheckResult} and HTTP response + */ + fakeHealthGetWithHttpInfo() { + let postBody = null; + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = []; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = HealthCheckResult; + return this.apiClient.callApi( + '/fake/health', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Health check endpoint + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/HealthCheckResult} + */ + fakeHealthGet() { + return this.fakeHealthGetWithHttpInfo() + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * test http signature authentication + * @param {module:model/Pet} pet Pet object that needs to be added to the store + * @param {Object} opts Optional parameters + * @param {String} opts.query1 query parameter + * @param {String} opts.header1 header parameter * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response */ - createXmlItemWithHttpInfo(xmlItem) { - let postBody = xmlItem; - // verify the required parameter 'xmlItem' is set - if (xmlItem === undefined || xmlItem === null) { - throw new Error("Missing the required parameter 'xmlItem' when calling createXmlItem"); + fakeHttpSignatureTestWithHttpInfo(pet, opts) { + opts = opts || {}; + let postBody = pet; + // verify the required parameter 'pet' is set + if (pet === undefined || pet === null) { + throw new Error("Missing the required parameter 'pet' when calling fakeHttpSignatureTest"); } let pathParams = { }; let queryParams = { + 'query_1': opts['query1'] }; let headerParams = { + 'header_1': opts['header1'] }; let formParams = { }; - let authNames = []; - let contentTypes = ['application/xml', 'application/xml; charset=utf-8', 'application/xml; charset=utf-16', 'text/xml', 'text/xml; charset=utf-8', 'text/xml; charset=utf-16']; + let authNames = ['http_signature_test']; + let contentTypes = ['application/json', 'application/xml']; let accepts = []; let returnType = null; return this.apiClient.callApi( - '/fake/create_xml_item', 'POST', + '/fake/http-signature-test', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); } /** - * creates an XmlItem - * this route creates an XmlItem - * @param {module:model/XmlItem} xmlItem XmlItem Body + * test http signature authentication + * @param {module:model/Pet} pet Pet object that needs to be added to the store + * @param {Object} opts Optional parameters + * @param {String} opts.query1 query parameter + * @param {String} opts.header1 header parameter * @return {Promise} a {@link https://www.promisejs.org/|Promise} */ - createXmlItem(xmlItem) { - return this.createXmlItemWithHttpInfo(xmlItem) + fakeHttpSignatureTest(pet, opts) { + return this.fakeHttpSignatureTestWithHttpInfo(pet, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -106,7 +153,7 @@ export default class FakeApi { }; let authNames = []; - let contentTypes = []; + let contentTypes = ['application/json']; let accepts = ['*/*']; let returnType = 'Boolean'; return this.apiClient.callApi( @@ -133,12 +180,12 @@ export default class FakeApi { /** * Test serialization of object with outer number type * @param {Object} opts Optional parameters - * @param {module:model/OuterComposite} opts.body Input composite as post body + * @param {module:model/OuterComposite} opts.outerComposite Input composite as post body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OuterComposite} and HTTP response */ fakeOuterCompositeSerializeWithHttpInfo(opts) { opts = opts || {}; - let postBody = opts['body']; + let postBody = opts['outerComposite']; let pathParams = { }; @@ -150,7 +197,7 @@ export default class FakeApi { }; let authNames = []; - let contentTypes = []; + let contentTypes = ['application/json']; let accepts = ['*/*']; let returnType = OuterComposite; return this.apiClient.callApi( @@ -163,7 +210,7 @@ export default class FakeApi { /** * Test serialization of object with outer number type * @param {Object} opts Optional parameters - * @param {module:model/OuterComposite} opts.body Input composite as post body + * @param {module:model/OuterComposite} opts.outerComposite Input composite as post body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OuterComposite} */ fakeOuterCompositeSerialize(opts) { @@ -194,7 +241,7 @@ export default class FakeApi { }; let authNames = []; - let contentTypes = []; + let contentTypes = ['application/json']; let accepts = ['*/*']; let returnType = 'Number'; return this.apiClient.callApi( @@ -238,7 +285,7 @@ export default class FakeApi { }; let authNames = []; - let contentTypes = []; + let contentTypes = ['application/json']; let accepts = ['*/*']; let returnType = 'String'; return this.apiClient.callApi( @@ -264,14 +311,14 @@ export default class FakeApi { /** * For this test, the body for this request much reference a schema named `File`. - * @param {module:model/FileSchemaTestClass} body + * @param {module:model/FileSchemaTestClass} fileSchemaTestClass * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response */ - testBodyWithFileSchemaWithHttpInfo(body) { - let postBody = body; - // verify the required parameter 'body' is set - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling testBodyWithFileSchema"); + testBodyWithFileSchemaWithHttpInfo(fileSchemaTestClass) { + let postBody = fileSchemaTestClass; + // verify the required parameter 'fileSchemaTestClass' is set + if (fileSchemaTestClass === undefined || fileSchemaTestClass === null) { + throw new Error("Missing the required parameter 'fileSchemaTestClass' when calling testBodyWithFileSchema"); } let pathParams = { @@ -296,11 +343,11 @@ export default class FakeApi { /** * For this test, the body for this request much reference a schema named `File`. - * @param {module:model/FileSchemaTestClass} body + * @param {module:model/FileSchemaTestClass} fileSchemaTestClass * @return {Promise} a {@link https://www.promisejs.org/|Promise} */ - testBodyWithFileSchema(body) { - return this.testBodyWithFileSchemaWithHttpInfo(body) + testBodyWithFileSchema(fileSchemaTestClass) { + return this.testBodyWithFileSchemaWithHttpInfo(fileSchemaTestClass) .then(function(response_and_data) { return response_and_data.data; }); @@ -309,18 +356,18 @@ export default class FakeApi { /** * @param {String} query - * @param {module:model/User} body + * @param {module:model/User} user * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response */ - testBodyWithQueryParamsWithHttpInfo(query, body) { - let postBody = body; + testBodyWithQueryParamsWithHttpInfo(query, user) { + let postBody = user; // verify the required parameter 'query' is set if (query === undefined || query === null) { throw new Error("Missing the required parameter 'query' when calling testBodyWithQueryParams"); } - // verify the required parameter 'body' is set - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling testBodyWithQueryParams"); + // verify the required parameter 'user' is set + if (user === undefined || user === null) { + throw new Error("Missing the required parameter 'user' when calling testBodyWithQueryParams"); } let pathParams = { @@ -346,11 +393,11 @@ export default class FakeApi { /** * @param {String} query - * @param {module:model/User} body + * @param {module:model/User} user * @return {Promise} a {@link https://www.promisejs.org/|Promise} */ - testBodyWithQueryParams(query, body) { - return this.testBodyWithQueryParamsWithHttpInfo(query, body) + testBodyWithQueryParams(query, user) { + return this.testBodyWithQueryParamsWithHttpInfo(query, user) .then(function(response_and_data) { return response_and_data.data; }); @@ -360,14 +407,14 @@ export default class FakeApi { /** * To test \"client\" model * To test \"client\" model - * @param {module:model/Client} body client model + * @param {module:model/Client} client 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 */ - testClientModelWithHttpInfo(body) { - let postBody = body; - // verify the required parameter 'body' is set - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling testClientModel"); + testClientModelWithHttpInfo(client) { + let postBody = client; + // verify the required parameter 'client' is set + if (client === undefined || client === null) { + throw new Error("Missing the required parameter 'client' when calling testClientModel"); } let pathParams = { @@ -393,11 +440,11 @@ export default class FakeApi { /** * To test \"client\" model * To test \"client\" model - * @param {module:model/Client} body client model + * @param {module:model/Client} client client model * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Client} */ - testClientModel(body) { - return this.testClientModelWithHttpInfo(body) + testClientModel(client) { + return this.testClientModelWithHttpInfo(client) .then(function(response_and_data) { return response_and_data.data; }); @@ -405,8 +452,8 @@ export default class FakeApi { /** - * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 + * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 + * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 * @param {Number} _number None * @param {Number} _double None * @param {String} patternWithoutDelimiter None @@ -479,8 +526,8 @@ export default class FakeApi { } /** - * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 + * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 + * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 * @param {Number} _number None * @param {Number} _double None * @param {String} patternWithoutDelimiter None @@ -527,7 +574,7 @@ export default class FakeApi { let pathParams = { }; let queryParams = { - 'enum_query_string_array': this.apiClient.buildCollectionParam(opts['enumQueryStringArray'], 'csv'), + 'enum_query_string_array': this.apiClient.buildCollectionParam(opts['enumQueryStringArray'], 'multi'), 'enum_query_string': opts['enumQueryString'], 'enum_query_integer': opts['enumQueryInteger'], 'enum_query_double': opts['enumQueryDouble'] @@ -617,7 +664,7 @@ export default class FakeApi { let formParams = { }; - let authNames = []; + let authNames = ['bearer_test']; let contentTypes = []; let accepts = []; let returnType = null; @@ -650,14 +697,14 @@ export default class FakeApi { /** * test inline additionalProperties - * @param {Object.} param request body + * @param {Object.} requestBody request body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response */ - testInlineAdditionalPropertiesWithHttpInfo(param) { - let postBody = param; - // verify the required parameter 'param' is set - if (param === undefined || param === null) { - throw new Error("Missing the required parameter 'param' when calling testInlineAdditionalProperties"); + testInlineAdditionalPropertiesWithHttpInfo(requestBody) { + let postBody = requestBody; + // verify the required parameter 'requestBody' is set + if (requestBody === undefined || requestBody === null) { + throw new Error("Missing the required parameter 'requestBody' when calling testInlineAdditionalProperties"); } let pathParams = { @@ -682,11 +729,11 @@ export default class FakeApi { /** * test inline additionalProperties - * @param {Object.} param request body + * @param {Object.} requestBody request body * @return {Promise} a {@link https://www.promisejs.org/|Promise} */ - testInlineAdditionalProperties(param) { - return this.testInlineAdditionalPropertiesWithHttpInfo(param) + testInlineAdditionalProperties(requestBody) { + return this.testInlineAdditionalPropertiesWithHttpInfo(requestBody) .then(function(response_and_data) { return response_and_data.data; }); @@ -781,7 +828,7 @@ export default class FakeApi { let pathParams = { }; let queryParams = { - 'pipe': this.apiClient.buildCollectionParam(pipe, 'csv'), + 'pipe': this.apiClient.buildCollectionParam(pipe, 'multi'), 'ioutil': this.apiClient.buildCollectionParam(ioutil, 'csv'), 'http': this.apiClient.buildCollectionParam(http, 'space'), 'url': this.apiClient.buildCollectionParam(url, 'csv'), diff --git a/samples/client/petstore/javascript-promise-es6/src/api/FakeClassnameTags123Api.js b/samples/client/petstore/javascript-promise-es6/src/api/FakeClassnameTags123Api.js index 06afc18258bd..97aa73bd81ca 100644 --- a/samples/client/petstore/javascript-promise-es6/src/api/FakeClassnameTags123Api.js +++ b/samples/client/petstore/javascript-promise-es6/src/api/FakeClassnameTags123Api.js @@ -38,14 +38,14 @@ export default class FakeClassnameTags123Api { /** * To test class name in snake case * To test class name in snake case - * @param {module:model/Client} body client model + * @param {module:model/Client} client 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 */ - testClassnameWithHttpInfo(body) { - let 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"); + testClassnameWithHttpInfo(client) { + let postBody = client; + // verify the required parameter 'client' is set + if (client === undefined || client === null) { + throw new Error("Missing the required parameter 'client' when calling testClassname"); } let pathParams = { @@ -71,11 +71,11 @@ export default class FakeClassnameTags123Api { /** * To test class name in snake case * To test class name in snake case - * @param {module:model/Client} body client model + * @param {module:model/Client} client client model * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Client} */ - testClassname(body) { - return this.testClassnameWithHttpInfo(body) + testClassname(client) { + return this.testClassnameWithHttpInfo(client) .then(function(response_and_data) { return response_and_data.data; }); diff --git a/samples/client/petstore/javascript-promise-es6/src/api/PetApi.js b/samples/client/petstore/javascript-promise-es6/src/api/PetApi.js index 1157f9978a59..c7e004c2fd87 100644 --- a/samples/client/petstore/javascript-promise-es6/src/api/PetApi.js +++ b/samples/client/petstore/javascript-promise-es6/src/api/PetApi.js @@ -38,14 +38,15 @@ export default class PetApi { /** * Add a new pet to the store - * @param {module:model/Pet} body Pet object that needs to be added to the store + * @param {module:model/Pet} pet Pet object that needs to be added to the store * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response */ - addPetWithHttpInfo(body) { - let postBody = body; - // verify the required parameter 'body' is set - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling addPet"); + addPetWithHttpInfo(pet, opts) { + opts = opts || {}; + let postBody = pet; + // verify the required parameter 'pet' is set + if (pet === undefined || pet === null) { + throw new Error("Missing the required parameter 'pet' when calling addPet"); } let pathParams = { @@ -61,20 +62,29 @@ export default class PetApi { let contentTypes = ['application/json', 'application/xml']; let accepts = []; let returnType = null; + let basePaths = ['http://petstore.swagger.io/v2', 'http://path-server-test.petstore.local/v2']; + let basePath = basePaths[0]; // by default use the first one in "servers" defined in OpenAPI + if (typeof opts['_base_path_index'] !== 'undefined') { + if (opts['_base_path_index'] >= basePaths.length || opts['_base_path_index'] < 0) { + throw new Error("Invalid index " + opts['_base_path_index'] + " when selecting the host settings. Must be less than " + basePaths.length); + } + basePath = basePaths[opts['_base_path_index']]; + } + return this.apiClient.callApi( '/pet', 'POST', pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null + authNames, contentTypes, accepts, returnType, basePath ); } /** * Add a new pet to the store - * @param {module:model/Pet} body Pet object that needs to be added to the store + * @param {module:model/Pet} pet Pet object that needs to be added to the store * @return {Promise} a {@link https://www.promisejs.org/|Promise} */ - addPet(body) { - return this.addPetWithHttpInfo(body) + addPet(pet, opts) { + return this.addPetWithHttpInfo(pet, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -279,14 +289,15 @@ export default class PetApi { /** * Update an existing pet - * @param {module:model/Pet} body Pet object that needs to be added to the store + * @param {module:model/Pet} pet Pet object that needs to be added to the store * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response */ - updatePetWithHttpInfo(body) { - let postBody = body; - // verify the required parameter 'body' is set - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updatePet"); + updatePetWithHttpInfo(pet, opts) { + opts = opts || {}; + let postBody = pet; + // verify the required parameter 'pet' is set + if (pet === undefined || pet === null) { + throw new Error("Missing the required parameter 'pet' when calling updatePet"); } let pathParams = { @@ -302,20 +313,29 @@ export default class PetApi { let contentTypes = ['application/json', 'application/xml']; let accepts = []; let returnType = null; + let basePaths = ['http://petstore.swagger.io/v2', 'http://path-server-test.petstore.local/v2']; + let basePath = basePaths[0]; // by default use the first one in "servers" defined in OpenAPI + if (typeof opts['_base_path_index'] !== 'undefined') { + if (opts['_base_path_index'] >= basePaths.length || opts['_base_path_index'] < 0) { + throw new Error("Invalid index " + opts['_base_path_index'] + " when selecting the host settings. Must be less than " + basePaths.length); + } + basePath = basePaths[opts['_base_path_index']]; + } + return this.apiClient.callApi( '/pet', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null + authNames, contentTypes, accepts, returnType, basePath ); } /** * Update an existing pet - * @param {module:model/Pet} body Pet object that needs to be added to the store + * @param {module:model/Pet} pet Pet object that needs to be added to the store * @return {Promise} a {@link https://www.promisejs.org/|Promise} */ - updatePet(body) { - return this.updatePetWithHttpInfo(body) + updatePet(pet, opts) { + return this.updatePetWithHttpInfo(pet, opts) .then(function(response_and_data) { return response_and_data.data; }); diff --git a/samples/client/petstore/javascript-promise-es6/src/api/StoreApi.js b/samples/client/petstore/javascript-promise-es6/src/api/StoreApi.js index ec7fd11b883d..2ba58ae8149d 100644 --- a/samples/client/petstore/javascript-promise-es6/src/api/StoreApi.js +++ b/samples/client/petstore/javascript-promise-es6/src/api/StoreApi.js @@ -174,14 +174,14 @@ export default class StoreApi { /** * Place an order for a pet - * @param {module:model/Order} body order placed for purchasing the pet + * @param {module:model/Order} order order placed for purchasing the pet * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Order} and HTTP response */ - placeOrderWithHttpInfo(body) { - let postBody = body; - // verify the required parameter 'body' is set - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling placeOrder"); + placeOrderWithHttpInfo(order) { + let postBody = order; + // verify the required parameter 'order' is set + if (order === undefined || order === null) { + throw new Error("Missing the required parameter 'order' when calling placeOrder"); } let pathParams = { @@ -194,7 +194,7 @@ export default class StoreApi { }; let authNames = []; - let contentTypes = []; + let contentTypes = ['application/json']; let accepts = ['application/xml', 'application/json']; let returnType = Order; return this.apiClient.callApi( @@ -206,11 +206,11 @@ export default class StoreApi { /** * Place an order for a pet - * @param {module:model/Order} body order placed for purchasing the pet + * @param {module:model/Order} order order placed for purchasing the pet * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Order} */ - placeOrder(body) { - return this.placeOrderWithHttpInfo(body) + placeOrder(order) { + return this.placeOrderWithHttpInfo(order) .then(function(response_and_data) { return response_and_data.data; }); diff --git a/samples/client/petstore/javascript-promise-es6/src/api/UserApi.js b/samples/client/petstore/javascript-promise-es6/src/api/UserApi.js index 4921080e9472..976e0da36da7 100644 --- a/samples/client/petstore/javascript-promise-es6/src/api/UserApi.js +++ b/samples/client/petstore/javascript-promise-es6/src/api/UserApi.js @@ -38,14 +38,14 @@ export default class UserApi { /** * Create user * This can only be done by the logged in user. - * @param {module:model/User} body Created user object + * @param {module:model/User} user Created user object * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response */ - createUserWithHttpInfo(body) { - let postBody = body; - // verify the required parameter 'body' is set - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling createUser"); + createUserWithHttpInfo(user) { + let postBody = user; + // verify the required parameter 'user' is set + if (user === undefined || user === null) { + throw new Error("Missing the required parameter 'user' when calling createUser"); } let pathParams = { @@ -58,7 +58,7 @@ export default class UserApi { }; let authNames = []; - let contentTypes = []; + let contentTypes = ['application/json']; let accepts = []; let returnType = null; return this.apiClient.callApi( @@ -71,11 +71,11 @@ export default class UserApi { /** * Create user * This can only be done by the logged in user. - * @param {module:model/User} body Created user object + * @param {module:model/User} user Created user object * @return {Promise} a {@link https://www.promisejs.org/|Promise} */ - createUser(body) { - return this.createUserWithHttpInfo(body) + createUser(user) { + return this.createUserWithHttpInfo(user) .then(function(response_and_data) { return response_and_data.data; }); @@ -84,14 +84,14 @@ export default class UserApi { /** * Creates list of users with given input array - * @param {Array.} body List of user object + * @param {Array.} user List of user object * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response */ - createUsersWithArrayInputWithHttpInfo(body) { - let postBody = body; - // verify the required parameter 'body' is set - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling createUsersWithArrayInput"); + createUsersWithArrayInputWithHttpInfo(user) { + let postBody = user; + // verify the required parameter 'user' is set + if (user === undefined || user === null) { + throw new Error("Missing the required parameter 'user' when calling createUsersWithArrayInput"); } let pathParams = { @@ -104,7 +104,7 @@ export default class UserApi { }; let authNames = []; - let contentTypes = []; + let contentTypes = ['application/json']; let accepts = []; let returnType = null; return this.apiClient.callApi( @@ -116,11 +116,11 @@ export default class UserApi { /** * Creates list of users with given input array - * @param {Array.} body List of user object + * @param {Array.} user List of user object * @return {Promise} a {@link https://www.promisejs.org/|Promise} */ - createUsersWithArrayInput(body) { - return this.createUsersWithArrayInputWithHttpInfo(body) + createUsersWithArrayInput(user) { + return this.createUsersWithArrayInputWithHttpInfo(user) .then(function(response_and_data) { return response_and_data.data; }); @@ -129,14 +129,14 @@ export default class UserApi { /** * Creates list of users with given input array - * @param {Array.} body List of user object + * @param {Array.} user List of user object * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response */ - createUsersWithListInputWithHttpInfo(body) { - let postBody = body; - // verify the required parameter 'body' is set - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling createUsersWithListInput"); + createUsersWithListInputWithHttpInfo(user) { + let postBody = user; + // verify the required parameter 'user' is set + if (user === undefined || user === null) { + throw new Error("Missing the required parameter 'user' when calling createUsersWithListInput"); } let pathParams = { @@ -149,7 +149,7 @@ export default class UserApi { }; let authNames = []; - let contentTypes = []; + let contentTypes = ['application/json']; let accepts = []; let returnType = null; return this.apiClient.callApi( @@ -161,11 +161,11 @@ export default class UserApi { /** * Creates list of users with given input array - * @param {Array.} body List of user object + * @param {Array.} user List of user object * @return {Promise} a {@link https://www.promisejs.org/|Promise} */ - createUsersWithListInput(body) { - return this.createUsersWithListInputWithHttpInfo(body) + createUsersWithListInput(user) { + return this.createUsersWithListInputWithHttpInfo(user) .then(function(response_and_data) { return response_and_data.data; }); @@ -362,18 +362,18 @@ export default class UserApi { * Updated user * This can only be done by the logged in user. * @param {String} username name that need to be deleted - * @param {module:model/User} body Updated user object + * @param {module:model/User} user Updated user object * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response */ - updateUserWithHttpInfo(username, body) { - let postBody = body; + updateUserWithHttpInfo(username, user) { + let postBody = user; // verify the required parameter 'username' is set if (username === undefined || username === null) { throw new Error("Missing the required parameter 'username' when calling updateUser"); } - // verify the required parameter 'body' is set - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateUser"); + // verify the required parameter 'user' is set + if (user === undefined || user === null) { + throw new Error("Missing the required parameter 'user' when calling updateUser"); } let pathParams = { @@ -387,7 +387,7 @@ export default class UserApi { }; let authNames = []; - let contentTypes = []; + let contentTypes = ['application/json']; let accepts = []; let returnType = null; return this.apiClient.callApi( @@ -401,11 +401,11 @@ export default class UserApi { * Updated user * This can only be done by the logged in user. * @param {String} username name that need to be deleted - * @param {module:model/User} body Updated user object + * @param {module:model/User} user Updated user object * @return {Promise} a {@link https://www.promisejs.org/|Promise} */ - updateUser(username, body) { - return this.updateUserWithHttpInfo(username, body) + updateUser(username, user) { + return this.updateUserWithHttpInfo(username, user) .then(function(response_and_data) { return response_and_data.data; }); diff --git a/samples/client/petstore/javascript-promise-es6/src/index.js b/samples/client/petstore/javascript-promise-es6/src/index.js index e4dc27efbc35..1a0cda3b1dcd 100644 --- a/samples/client/petstore/javascript-promise-es6/src/index.js +++ b/samples/client/petstore/javascript-promise-es6/src/index.js @@ -13,21 +13,12 @@ import ApiClient from './ApiClient'; -import AdditionalPropertiesAnyType from './model/AdditionalPropertiesAnyType'; -import AdditionalPropertiesArray from './model/AdditionalPropertiesArray'; -import AdditionalPropertiesBoolean from './model/AdditionalPropertiesBoolean'; import AdditionalPropertiesClass from './model/AdditionalPropertiesClass'; -import AdditionalPropertiesInteger from './model/AdditionalPropertiesInteger'; -import AdditionalPropertiesNumber from './model/AdditionalPropertiesNumber'; -import AdditionalPropertiesObject from './model/AdditionalPropertiesObject'; -import AdditionalPropertiesString from './model/AdditionalPropertiesString'; import Animal from './model/Animal'; import ApiResponse from './model/ApiResponse'; import ArrayOfArrayOfNumberOnly from './model/ArrayOfArrayOfNumberOnly'; import ArrayOfNumberOnly from './model/ArrayOfNumberOnly'; import ArrayTest from './model/ArrayTest'; -import BigCat from './model/BigCat'; -import BigCatAllOf from './model/BigCatAllOf'; import Capitalization from './model/Capitalization'; import Cat from './model/Cat'; import CatAllOf from './model/CatAllOf'; @@ -41,27 +32,38 @@ import EnumClass from './model/EnumClass'; import EnumTest from './model/EnumTest'; import File from './model/File'; import FileSchemaTestClass from './model/FileSchemaTestClass'; +import Foo from './model/Foo'; import FormatTest from './model/FormatTest'; import HasOnlyReadOnly from './model/HasOnlyReadOnly'; +import HealthCheckResult from './model/HealthCheckResult'; +import InlineObject from './model/InlineObject'; +import InlineObject1 from './model/InlineObject1'; +import InlineObject2 from './model/InlineObject2'; +import InlineObject3 from './model/InlineObject3'; +import InlineObject4 from './model/InlineObject4'; +import InlineObject5 from './model/InlineObject5'; +import InlineResponseDefault from './model/InlineResponseDefault'; import List from './model/List'; import MapTest from './model/MapTest'; import MixedPropertiesAndAdditionalPropertiesClass from './model/MixedPropertiesAndAdditionalPropertiesClass'; import Model200Response from './model/Model200Response'; import ModelReturn from './model/ModelReturn'; import Name from './model/Name'; +import NullableClass from './model/NullableClass'; import NumberOnly from './model/NumberOnly'; import Order from './model/Order'; import OuterComposite from './model/OuterComposite'; import OuterEnum from './model/OuterEnum'; +import OuterEnumDefaultValue from './model/OuterEnumDefaultValue'; +import OuterEnumInteger from './model/OuterEnumInteger'; +import OuterEnumIntegerDefaultValue from './model/OuterEnumIntegerDefaultValue'; import Pet from './model/Pet'; import ReadOnlyFirst from './model/ReadOnlyFirst'; import SpecialModelName from './model/SpecialModelName'; import Tag from './model/Tag'; -import TypeHolderDefault from './model/TypeHolderDefault'; -import TypeHolderExample from './model/TypeHolderExample'; import User from './model/User'; -import XmlItem from './model/XmlItem'; import AnotherFakeApi from './api/AnotherFakeApi'; +import DefaultApi from './api/DefaultApi'; import FakeApi from './api/FakeApi'; import FakeClassnameTags123Api from './api/FakeClassnameTags123Api'; import PetApi from './api/PetApi'; @@ -107,54 +109,12 @@ export { */ ApiClient, - /** - * The AdditionalPropertiesAnyType model constructor. - * @property {module:model/AdditionalPropertiesAnyType} - */ - AdditionalPropertiesAnyType, - - /** - * The AdditionalPropertiesArray model constructor. - * @property {module:model/AdditionalPropertiesArray} - */ - AdditionalPropertiesArray, - - /** - * The AdditionalPropertiesBoolean model constructor. - * @property {module:model/AdditionalPropertiesBoolean} - */ - AdditionalPropertiesBoolean, - /** * The AdditionalPropertiesClass model constructor. * @property {module:model/AdditionalPropertiesClass} */ AdditionalPropertiesClass, - /** - * The AdditionalPropertiesInteger model constructor. - * @property {module:model/AdditionalPropertiesInteger} - */ - AdditionalPropertiesInteger, - - /** - * The AdditionalPropertiesNumber model constructor. - * @property {module:model/AdditionalPropertiesNumber} - */ - AdditionalPropertiesNumber, - - /** - * The AdditionalPropertiesObject model constructor. - * @property {module:model/AdditionalPropertiesObject} - */ - AdditionalPropertiesObject, - - /** - * The AdditionalPropertiesString model constructor. - * @property {module:model/AdditionalPropertiesString} - */ - AdditionalPropertiesString, - /** * The Animal model constructor. * @property {module:model/Animal} @@ -185,18 +145,6 @@ export { */ ArrayTest, - /** - * The BigCat model constructor. - * @property {module:model/BigCat} - */ - BigCat, - - /** - * The BigCatAllOf model constructor. - * @property {module:model/BigCatAllOf} - */ - BigCatAllOf, - /** * The Capitalization model constructor. * @property {module:model/Capitalization} @@ -275,6 +223,12 @@ export { */ FileSchemaTestClass, + /** + * The Foo model constructor. + * @property {module:model/Foo} + */ + Foo, + /** * The FormatTest model constructor. * @property {module:model/FormatTest} @@ -287,6 +241,54 @@ export { */ HasOnlyReadOnly, + /** + * The HealthCheckResult model constructor. + * @property {module:model/HealthCheckResult} + */ + HealthCheckResult, + + /** + * The InlineObject model constructor. + * @property {module:model/InlineObject} + */ + InlineObject, + + /** + * The InlineObject1 model constructor. + * @property {module:model/InlineObject1} + */ + InlineObject1, + + /** + * The InlineObject2 model constructor. + * @property {module:model/InlineObject2} + */ + InlineObject2, + + /** + * The InlineObject3 model constructor. + * @property {module:model/InlineObject3} + */ + InlineObject3, + + /** + * The InlineObject4 model constructor. + * @property {module:model/InlineObject4} + */ + InlineObject4, + + /** + * The InlineObject5 model constructor. + * @property {module:model/InlineObject5} + */ + InlineObject5, + + /** + * The InlineResponseDefault model constructor. + * @property {module:model/InlineResponseDefault} + */ + InlineResponseDefault, + /** * The List model constructor. * @property {module:model/List} @@ -323,6 +325,12 @@ export { */ Name, + /** + * The NullableClass model constructor. + * @property {module:model/NullableClass} + */ + NullableClass, + /** * The NumberOnly model constructor. * @property {module:model/NumberOnly} @@ -347,6 +355,24 @@ export { */ OuterEnum, + /** + * The OuterEnumDefaultValue model constructor. + * @property {module:model/OuterEnumDefaultValue} + */ + OuterEnumDefaultValue, + + /** + * The OuterEnumInteger model constructor. + * @property {module:model/OuterEnumInteger} + */ + OuterEnumInteger, + + /** + * The OuterEnumIntegerDefaultValue model constructor. + * @property {module:model/OuterEnumIntegerDefaultValue} + */ + OuterEnumIntegerDefaultValue, + /** * The Pet model constructor. * @property {module:model/Pet} @@ -371,36 +397,24 @@ export { */ Tag, - /** - * The TypeHolderDefault model constructor. - * @property {module:model/TypeHolderDefault} - */ - TypeHolderDefault, - - /** - * The TypeHolderExample model constructor. - * @property {module:model/TypeHolderExample} - */ - TypeHolderExample, - /** * The User model constructor. * @property {module:model/User} */ User, - /** - * The XmlItem model constructor. - * @property {module:model/XmlItem} - */ - XmlItem, - /** * The AnotherFakeApi service constructor. * @property {module:api/AnotherFakeApi} */ AnotherFakeApi, + /** + * The DefaultApi service constructor. + * @property {module:api/DefaultApi} + */ + DefaultApi, + /** * The FakeApi service constructor. * @property {module:api/FakeApi} diff --git a/samples/client/petstore/javascript-promise-es6/src/model/AdditionalPropertiesClass.js b/samples/client/petstore/javascript-promise-es6/src/model/AdditionalPropertiesClass.js index a6e1a88e3b40..d6d83cca284f 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/AdditionalPropertiesClass.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/AdditionalPropertiesClass.js @@ -47,38 +47,11 @@ class AdditionalPropertiesClass { if (data) { obj = obj || new AdditionalPropertiesClass(); - if (data.hasOwnProperty('map_string')) { - obj['map_string'] = ApiClient.convertToType(data['map_string'], {'String': 'String'}); + if (data.hasOwnProperty('map_property')) { + obj['map_property'] = ApiClient.convertToType(data['map_property'], {'String': 'String'}); } - if (data.hasOwnProperty('map_number')) { - obj['map_number'] = ApiClient.convertToType(data['map_number'], {'String': 'Number'}); - } - if (data.hasOwnProperty('map_integer')) { - obj['map_integer'] = ApiClient.convertToType(data['map_integer'], {'String': 'Number'}); - } - if (data.hasOwnProperty('map_boolean')) { - obj['map_boolean'] = ApiClient.convertToType(data['map_boolean'], {'String': 'Boolean'}); - } - if (data.hasOwnProperty('map_array_integer')) { - obj['map_array_integer'] = ApiClient.convertToType(data['map_array_integer'], {'String': ['Number']}); - } - if (data.hasOwnProperty('map_array_anytype')) { - obj['map_array_anytype'] = ApiClient.convertToType(data['map_array_anytype'], {'String': [Object]}); - } - if (data.hasOwnProperty('map_map_string')) { - obj['map_map_string'] = ApiClient.convertToType(data['map_map_string'], {'String': {'String': 'String'}}); - } - if (data.hasOwnProperty('map_map_anytype')) { - obj['map_map_anytype'] = ApiClient.convertToType(data['map_map_anytype'], {'String': {'String': Object}}); - } - if (data.hasOwnProperty('anytype_1')) { - obj['anytype_1'] = ApiClient.convertToType(data['anytype_1'], Object); - } - if (data.hasOwnProperty('anytype_2')) { - obj['anytype_2'] = ApiClient.convertToType(data['anytype_2'], Object); - } - if (data.hasOwnProperty('anytype_3')) { - obj['anytype_3'] = ApiClient.convertToType(data['anytype_3'], Object); + if (data.hasOwnProperty('map_of_map_property')) { + obj['map_of_map_property'] = ApiClient.convertToType(data['map_of_map_property'], {'String': {'String': 'String'}}); } } return obj; @@ -88,59 +61,14 @@ class AdditionalPropertiesClass { } /** - * @member {Object.} map_string - */ -AdditionalPropertiesClass.prototype['map_string'] = undefined; - -/** - * @member {Object.} map_number - */ -AdditionalPropertiesClass.prototype['map_number'] = undefined; - -/** - * @member {Object.} map_integer - */ -AdditionalPropertiesClass.prototype['map_integer'] = undefined; - -/** - * @member {Object.} map_boolean - */ -AdditionalPropertiesClass.prototype['map_boolean'] = undefined; - -/** - * @member {Object.>} map_array_integer - */ -AdditionalPropertiesClass.prototype['map_array_integer'] = undefined; - -/** - * @member {Object.>} map_array_anytype - */ -AdditionalPropertiesClass.prototype['map_array_anytype'] = undefined; - -/** - * @member {Object.>} map_map_string - */ -AdditionalPropertiesClass.prototype['map_map_string'] = undefined; - -/** - * @member {Object.>} map_map_anytype - */ -AdditionalPropertiesClass.prototype['map_map_anytype'] = undefined; - -/** - * @member {Object} anytype_1 - */ -AdditionalPropertiesClass.prototype['anytype_1'] = undefined; - -/** - * @member {Object} anytype_2 + * @member {Object.} map_property */ -AdditionalPropertiesClass.prototype['anytype_2'] = undefined; +AdditionalPropertiesClass.prototype['map_property'] = undefined; /** - * @member {Object} anytype_3 + * @member {Object.>} map_of_map_property */ -AdditionalPropertiesClass.prototype['anytype_3'] = undefined; +AdditionalPropertiesClass.prototype['map_of_map_property'] = undefined; diff --git a/samples/client/petstore/javascript-promise-es6/src/model/EnumTest.js b/samples/client/petstore/javascript-promise-es6/src/model/EnumTest.js index 458e08153a89..dc684b7c26b1 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/EnumTest.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/EnumTest.js @@ -13,6 +13,9 @@ import ApiClient from '../ApiClient'; import OuterEnum from './OuterEnum'; +import OuterEnumDefaultValue from './OuterEnumDefaultValue'; +import OuterEnumInteger from './OuterEnumInteger'; +import OuterEnumIntegerDefaultValue from './OuterEnumIntegerDefaultValue'; /** * The EnumTest model module. @@ -65,6 +68,15 @@ class EnumTest { if (data.hasOwnProperty('outerEnum')) { obj['outerEnum'] = OuterEnum.constructFromObject(data['outerEnum']); } + if (data.hasOwnProperty('outerEnumInteger')) { + obj['outerEnumInteger'] = OuterEnumInteger.constructFromObject(data['outerEnumInteger']); + } + if (data.hasOwnProperty('outerEnumDefaultValue')) { + obj['outerEnumDefaultValue'] = OuterEnumDefaultValue.constructFromObject(data['outerEnumDefaultValue']); + } + if (data.hasOwnProperty('outerEnumIntegerDefaultValue')) { + obj['outerEnumIntegerDefaultValue'] = OuterEnumIntegerDefaultValue.constructFromObject(data['outerEnumIntegerDefaultValue']); + } } return obj; } @@ -97,6 +109,21 @@ EnumTest.prototype['enum_number'] = undefined; */ EnumTest.prototype['outerEnum'] = undefined; +/** + * @member {module:model/OuterEnumInteger} outerEnumInteger + */ +EnumTest.prototype['outerEnumInteger'] = undefined; + +/** + * @member {module:model/OuterEnumDefaultValue} outerEnumDefaultValue + */ +EnumTest.prototype['outerEnumDefaultValue'] = undefined; + +/** + * @member {module:model/OuterEnumIntegerDefaultValue} outerEnumIntegerDefaultValue + */ +EnumTest.prototype['outerEnumIntegerDefaultValue'] = undefined; + diff --git a/samples/client/petstore/javascript-promise-es6/src/model/Foo.js b/samples/client/petstore/javascript-promise-es6/src/model/Foo.js new file mode 100644 index 000000000000..3e4477b805b9 --- /dev/null +++ b/samples/client/petstore/javascript-promise-es6/src/model/Foo.js @@ -0,0 +1,72 @@ +/** + * OpenAPI Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The Foo model module. + * @module model/Foo + * @version 1.0.0 + */ +class Foo { + /** + * Constructs a new Foo. + * @alias module:model/Foo + */ + constructor() { + + Foo.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 Foo 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/Foo} obj Optional instance to populate. + * @return {module:model/Foo} The populated Foo instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new Foo(); + + if (data.hasOwnProperty('bar')) { + obj['bar'] = ApiClient.convertToType(data['bar'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {String} bar + * @default 'bar' + */ +Foo.prototype['bar'] = 'bar'; + + + + + + +export default Foo; + diff --git a/samples/client/petstore/javascript-promise-es6/src/model/FormatTest.js b/samples/client/petstore/javascript-promise-es6/src/model/FormatTest.js index 978d4d3a808d..0c5fccb9072b 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/FormatTest.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/FormatTest.js @@ -94,8 +94,11 @@ class FormatTest { if (data.hasOwnProperty('password')) { obj['password'] = ApiClient.convertToType(data['password'], 'String'); } - if (data.hasOwnProperty('BigDecimal')) { - obj['BigDecimal'] = ApiClient.convertToType(data['BigDecimal'], 'Number'); + if (data.hasOwnProperty('pattern_with_digits')) { + obj['pattern_with_digits'] = ApiClient.convertToType(data['pattern_with_digits'], 'String'); + } + if (data.hasOwnProperty('pattern_with_digits_and_delimiter')) { + obj['pattern_with_digits_and_delimiter'] = ApiClient.convertToType(data['pattern_with_digits_and_delimiter'], 'String'); } } return obj; @@ -170,9 +173,16 @@ FormatTest.prototype['uuid'] = undefined; FormatTest.prototype['password'] = undefined; /** - * @member {Number} BigDecimal + * A string that is a 10 digit number. Can have leading zeros. + * @member {String} pattern_with_digits + */ +FormatTest.prototype['pattern_with_digits'] = undefined; + +/** + * A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. + * @member {String} pattern_with_digits_and_delimiter */ -FormatTest.prototype['BigDecimal'] = undefined; +FormatTest.prototype['pattern_with_digits_and_delimiter'] = undefined; diff --git a/samples/client/petstore/javascript-promise-es6/src/model/HealthCheckResult.js b/samples/client/petstore/javascript-promise-es6/src/model/HealthCheckResult.js new file mode 100644 index 000000000000..2dd62c2a267b --- /dev/null +++ b/samples/client/petstore/javascript-promise-es6/src/model/HealthCheckResult.js @@ -0,0 +1,72 @@ +/** + * OpenAPI Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The HealthCheckResult model module. + * @module model/HealthCheckResult + * @version 1.0.0 + */ +class HealthCheckResult { + /** + * Constructs a new HealthCheckResult. + * Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model. + * @alias module:model/HealthCheckResult + */ + constructor() { + + HealthCheckResult.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 HealthCheckResult 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/HealthCheckResult} obj Optional instance to populate. + * @return {module:model/HealthCheckResult} The populated HealthCheckResult instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new HealthCheckResult(); + + if (data.hasOwnProperty('NullableMessage')) { + obj['NullableMessage'] = ApiClient.convertToType(data['NullableMessage'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {String} NullableMessage + */ +HealthCheckResult.prototype['NullableMessage'] = undefined; + + + + + + +export default HealthCheckResult; + diff --git a/samples/client/petstore/javascript-es6/src/model/AdditionalPropertiesString.js b/samples/client/petstore/javascript-promise-es6/src/model/InlineObject.js similarity index 58% rename from samples/client/petstore/javascript-es6/src/model/AdditionalPropertiesString.js rename to samples/client/petstore/javascript-promise-es6/src/model/InlineObject.js index f5792a66c534..6815bc809cf6 100644 --- a/samples/client/petstore/javascript-es6/src/model/AdditionalPropertiesString.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/InlineObject.js @@ -14,19 +14,18 @@ import ApiClient from '../ApiClient'; /** - * The AdditionalPropertiesString model module. - * @module model/AdditionalPropertiesString + * The InlineObject model module. + * @module model/InlineObject * @version 1.0.0 */ -class AdditionalPropertiesString { +class InlineObject { /** - * Constructs a new AdditionalPropertiesString. - * @alias module:model/AdditionalPropertiesString - * @extends Object + * Constructs a new InlineObject. + * @alias module:model/InlineObject */ constructor() { - AdditionalPropertiesString.initialize(this); + InlineObject.initialize(this); } /** @@ -38,22 +37,22 @@ class AdditionalPropertiesString { } /** - * Constructs a AdditionalPropertiesString from a plain JavaScript object, optionally creating a new instance. + * Constructs a InlineObject 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/AdditionalPropertiesString} obj Optional instance to populate. - * @return {module:model/AdditionalPropertiesString} The populated AdditionalPropertiesString instance. + * @param {module:model/InlineObject} obj Optional instance to populate. + * @return {module:model/InlineObject} The populated InlineObject instance. */ static constructFromObject(data, obj) { if (data) { - obj = obj || new AdditionalPropertiesString(); - - ApiClient.constructFromObject(data, obj, 'String'); - + obj = obj || new InlineObject(); if (data.hasOwnProperty('name')) { obj['name'] = ApiClient.convertToType(data['name'], 'String'); } + if (data.hasOwnProperty('status')) { + obj['status'] = ApiClient.convertToType(data['status'], 'String'); + } } return obj; } @@ -62,14 +61,21 @@ class AdditionalPropertiesString { } /** + * Updated name of the pet * @member {String} name */ -AdditionalPropertiesString.prototype['name'] = undefined; +InlineObject.prototype['name'] = undefined; + +/** + * Updated status of the pet + * @member {String} status + */ +InlineObject.prototype['status'] = undefined; -export default AdditionalPropertiesString; +export default InlineObject; diff --git a/samples/client/petstore/javascript-es6/src/model/AdditionalPropertiesAnyType.js b/samples/client/petstore/javascript-promise-es6/src/model/InlineObject1.js similarity index 50% rename from samples/client/petstore/javascript-es6/src/model/AdditionalPropertiesAnyType.js rename to samples/client/petstore/javascript-promise-es6/src/model/InlineObject1.js index b836b0e93c75..947877256fb2 100644 --- a/samples/client/petstore/javascript-es6/src/model/AdditionalPropertiesAnyType.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/InlineObject1.js @@ -14,19 +14,18 @@ import ApiClient from '../ApiClient'; /** - * The AdditionalPropertiesAnyType model module. - * @module model/AdditionalPropertiesAnyType + * The InlineObject1 model module. + * @module model/InlineObject1 * @version 1.0.0 */ -class AdditionalPropertiesAnyType { +class InlineObject1 { /** - * Constructs a new AdditionalPropertiesAnyType. - * @alias module:model/AdditionalPropertiesAnyType - * @extends Object + * Constructs a new InlineObject1. + * @alias module:model/InlineObject1 */ constructor() { - AdditionalPropertiesAnyType.initialize(this); + InlineObject1.initialize(this); } /** @@ -38,21 +37,21 @@ class AdditionalPropertiesAnyType { } /** - * Constructs a AdditionalPropertiesAnyType from a plain JavaScript object, optionally creating a new instance. + * Constructs a InlineObject1 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/AdditionalPropertiesAnyType} obj Optional instance to populate. - * @return {module:model/AdditionalPropertiesAnyType} The populated AdditionalPropertiesAnyType instance. + * @param {module:model/InlineObject1} obj Optional instance to populate. + * @return {module:model/InlineObject1} The populated InlineObject1 instance. */ static constructFromObject(data, obj) { if (data) { - obj = obj || new AdditionalPropertiesAnyType(); + obj = obj || new InlineObject1(); - ApiClient.constructFromObject(data, obj, 'Object'); - - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); + if (data.hasOwnProperty('additionalMetadata')) { + obj['additionalMetadata'] = ApiClient.convertToType(data['additionalMetadata'], 'String'); + } + if (data.hasOwnProperty('file')) { + obj['file'] = ApiClient.convertToType(data['file'], File); } } return obj; @@ -62,14 +61,21 @@ class AdditionalPropertiesAnyType { } /** - * @member {String} name + * Additional data to pass to server + * @member {String} additionalMetadata + */ +InlineObject1.prototype['additionalMetadata'] = undefined; + +/** + * file to upload + * @member {File} file */ -AdditionalPropertiesAnyType.prototype['name'] = undefined; +InlineObject1.prototype['file'] = undefined; -export default AdditionalPropertiesAnyType; +export default InlineObject1; diff --git a/samples/client/petstore/javascript-promise-es6/src/model/InlineObject2.js b/samples/client/petstore/javascript-promise-es6/src/model/InlineObject2.js new file mode 100644 index 000000000000..e6ed9044568b --- /dev/null +++ b/samples/client/petstore/javascript-promise-es6/src/model/InlineObject2.js @@ -0,0 +1,130 @@ +/** + * OpenAPI Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The InlineObject2 model module. + * @module model/InlineObject2 + * @version 1.0.0 + */ +class InlineObject2 { + /** + * Constructs a new InlineObject2. + * @alias module:model/InlineObject2 + */ + constructor() { + + InlineObject2.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 InlineObject2 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/InlineObject2} obj Optional instance to populate. + * @return {module:model/InlineObject2} The populated InlineObject2 instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InlineObject2(); + + if (data.hasOwnProperty('enum_form_string_array')) { + obj['enum_form_string_array'] = ApiClient.convertToType(data['enum_form_string_array'], ['String']); + } + if (data.hasOwnProperty('enum_form_string')) { + obj['enum_form_string'] = ApiClient.convertToType(data['enum_form_string'], 'String'); + } + } + return obj; + } + + +} + +/** + * Form parameter enum test (string array) + * @member {Array.} enum_form_string_array + */ +InlineObject2.prototype['enum_form_string_array'] = undefined; + +/** + * Form parameter enum test (string) + * @member {module:model/InlineObject2.EnumFormStringEnum} enum_form_string + * @default '-efg' + */ +InlineObject2.prototype['enum_form_string'] = '-efg'; + + + + + +/** + * Allowed values for the enumFormStringArray property. + * @enum {String} + * @readonly + */ +InlineObject2['EnumFormStringArrayEnum'] = { + + /** + * value: ">" + * @const + */ + "GREATER_THAN": ">", + + /** + * value: "$" + * @const + */ + "DOLLAR": "$" +}; + + +/** + * Allowed values for the enum_form_string property. + * @enum {String} + * @readonly + */ +InlineObject2['EnumFormStringEnum'] = { + + /** + * value: "_abc" + * @const + */ + "_abc": "_abc", + + /** + * value: "-efg" + * @const + */ + "-efg": "-efg", + + /** + * value: "(xyz)" + * @const + */ + "(xyz)": "(xyz)" +}; + + + +export default InlineObject2; + diff --git a/samples/client/petstore/javascript-promise-es6/src/model/InlineObject3.js b/samples/client/petstore/javascript-promise-es6/src/model/InlineObject3.js new file mode 100644 index 000000000000..6a14f67109c8 --- /dev/null +++ b/samples/client/petstore/javascript-promise-es6/src/model/InlineObject3.js @@ -0,0 +1,197 @@ +/** + * OpenAPI Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The InlineObject3 model module. + * @module model/InlineObject3 + * @version 1.0.0 + */ +class InlineObject3 { + /** + * Constructs a new InlineObject3. + * @alias module:model/InlineObject3 + * @param _number {Number} None + * @param _double {Number} None + * @param patternWithoutDelimiter {String} None + * @param _byte {Blob} None + */ + constructor(_number, _double, patternWithoutDelimiter, _byte) { + + InlineObject3.initialize(this, _number, _double, patternWithoutDelimiter, _byte); + } + + /** + * 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, _number, _double, patternWithoutDelimiter, _byte) { + obj['number'] = _number; + obj['double'] = _double; + obj['pattern_without_delimiter'] = patternWithoutDelimiter; + obj['byte'] = _byte; + } + + /** + * Constructs a InlineObject3 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/InlineObject3} obj Optional instance to populate. + * @return {module:model/InlineObject3} The populated InlineObject3 instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InlineObject3(); + + if (data.hasOwnProperty('integer')) { + obj['integer'] = ApiClient.convertToType(data['integer'], 'Number'); + } + if (data.hasOwnProperty('int32')) { + obj['int32'] = ApiClient.convertToType(data['int32'], 'Number'); + } + if (data.hasOwnProperty('int64')) { + obj['int64'] = ApiClient.convertToType(data['int64'], 'Number'); + } + if (data.hasOwnProperty('number')) { + obj['number'] = ApiClient.convertToType(data['number'], 'Number'); + } + if (data.hasOwnProperty('float')) { + obj['float'] = ApiClient.convertToType(data['float'], 'Number'); + } + if (data.hasOwnProperty('double')) { + obj['double'] = ApiClient.convertToType(data['double'], 'Number'); + } + if (data.hasOwnProperty('string')) { + obj['string'] = ApiClient.convertToType(data['string'], 'String'); + } + if (data.hasOwnProperty('pattern_without_delimiter')) { + obj['pattern_without_delimiter'] = ApiClient.convertToType(data['pattern_without_delimiter'], 'String'); + } + if (data.hasOwnProperty('byte')) { + obj['byte'] = ApiClient.convertToType(data['byte'], 'Blob'); + } + if (data.hasOwnProperty('binary')) { + obj['binary'] = ApiClient.convertToType(data['binary'], File); + } + if (data.hasOwnProperty('date')) { + obj['date'] = ApiClient.convertToType(data['date'], 'Date'); + } + if (data.hasOwnProperty('dateTime')) { + obj['dateTime'] = ApiClient.convertToType(data['dateTime'], 'Date'); + } + if (data.hasOwnProperty('password')) { + obj['password'] = ApiClient.convertToType(data['password'], 'String'); + } + if (data.hasOwnProperty('callback')) { + obj['callback'] = ApiClient.convertToType(data['callback'], 'String'); + } + } + return obj; + } + + +} + +/** + * None + * @member {Number} integer + */ +InlineObject3.prototype['integer'] = undefined; + +/** + * None + * @member {Number} int32 + */ +InlineObject3.prototype['int32'] = undefined; + +/** + * None + * @member {Number} int64 + */ +InlineObject3.prototype['int64'] = undefined; + +/** + * None + * @member {Number} number + */ +InlineObject3.prototype['number'] = undefined; + +/** + * None + * @member {Number} float + */ +InlineObject3.prototype['float'] = undefined; + +/** + * None + * @member {Number} double + */ +InlineObject3.prototype['double'] = undefined; + +/** + * None + * @member {String} string + */ +InlineObject3.prototype['string'] = undefined; + +/** + * None + * @member {String} pattern_without_delimiter + */ +InlineObject3.prototype['pattern_without_delimiter'] = undefined; + +/** + * None + * @member {Blob} byte + */ +InlineObject3.prototype['byte'] = undefined; + +/** + * None + * @member {File} binary + */ +InlineObject3.prototype['binary'] = undefined; + +/** + * None + * @member {Date} date + */ +InlineObject3.prototype['date'] = undefined; + +/** + * None + * @member {Date} dateTime + */ +InlineObject3.prototype['dateTime'] = undefined; + +/** + * None + * @member {String} password + */ +InlineObject3.prototype['password'] = undefined; + +/** + * None + * @member {String} callback + */ +InlineObject3.prototype['callback'] = undefined; + + + + + + +export default InlineObject3; + diff --git a/samples/client/petstore/javascript-promise-es6/src/model/InlineObject4.js b/samples/client/petstore/javascript-promise-es6/src/model/InlineObject4.js new file mode 100644 index 000000000000..9d5d5715c66f --- /dev/null +++ b/samples/client/petstore/javascript-promise-es6/src/model/InlineObject4.js @@ -0,0 +1,85 @@ +/** + * OpenAPI Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The InlineObject4 model module. + * @module model/InlineObject4 + * @version 1.0.0 + */ +class InlineObject4 { + /** + * Constructs a new InlineObject4. + * @alias module:model/InlineObject4 + * @param param {String} field1 + * @param param2 {String} field2 + */ + constructor(param, param2) { + + InlineObject4.initialize(this, param, param2); + } + + /** + * 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, param, param2) { + obj['param'] = param; + obj['param2'] = param2; + } + + /** + * Constructs a InlineObject4 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/InlineObject4} obj Optional instance to populate. + * @return {module:model/InlineObject4} The populated InlineObject4 instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InlineObject4(); + + if (data.hasOwnProperty('param')) { + obj['param'] = ApiClient.convertToType(data['param'], 'String'); + } + if (data.hasOwnProperty('param2')) { + obj['param2'] = ApiClient.convertToType(data['param2'], 'String'); + } + } + return obj; + } + + +} + +/** + * field1 + * @member {String} param + */ +InlineObject4.prototype['param'] = undefined; + +/** + * field2 + * @member {String} param2 + */ +InlineObject4.prototype['param2'] = undefined; + + + + + + +export default InlineObject4; + diff --git a/samples/client/petstore/javascript-promise-es6/src/model/InlineObject5.js b/samples/client/petstore/javascript-promise-es6/src/model/InlineObject5.js new file mode 100644 index 000000000000..1969e9b2ef3a --- /dev/null +++ b/samples/client/petstore/javascript-promise-es6/src/model/InlineObject5.js @@ -0,0 +1,83 @@ +/** + * OpenAPI Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The InlineObject5 model module. + * @module model/InlineObject5 + * @version 1.0.0 + */ +class InlineObject5 { + /** + * Constructs a new InlineObject5. + * @alias module:model/InlineObject5 + * @param requiredFile {File} file to upload + */ + constructor(requiredFile) { + + InlineObject5.initialize(this, requiredFile); + } + + /** + * 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, requiredFile) { + obj['requiredFile'] = requiredFile; + } + + /** + * Constructs a InlineObject5 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/InlineObject5} obj Optional instance to populate. + * @return {module:model/InlineObject5} The populated InlineObject5 instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InlineObject5(); + + if (data.hasOwnProperty('additionalMetadata')) { + obj['additionalMetadata'] = ApiClient.convertToType(data['additionalMetadata'], 'String'); + } + if (data.hasOwnProperty('requiredFile')) { + obj['requiredFile'] = ApiClient.convertToType(data['requiredFile'], File); + } + } + return obj; + } + + +} + +/** + * Additional data to pass to server + * @member {String} additionalMetadata + */ +InlineObject5.prototype['additionalMetadata'] = undefined; + +/** + * file to upload + * @member {File} requiredFile + */ +InlineObject5.prototype['requiredFile'] = undefined; + + + + + + +export default InlineObject5; + diff --git a/samples/client/petstore/javascript-promise-es6/src/model/InlineResponseDefault.js b/samples/client/petstore/javascript-promise-es6/src/model/InlineResponseDefault.js new file mode 100644 index 000000000000..2f66d888ec94 --- /dev/null +++ b/samples/client/petstore/javascript-promise-es6/src/model/InlineResponseDefault.js @@ -0,0 +1,72 @@ +/** + * OpenAPI Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import Foo from './Foo'; + +/** + * The InlineResponseDefault model module. + * @module model/InlineResponseDefault + * @version 1.0.0 + */ +class InlineResponseDefault { + /** + * Constructs a new InlineResponseDefault. + * @alias module:model/InlineResponseDefault + */ + constructor() { + + InlineResponseDefault.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 InlineResponseDefault 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/InlineResponseDefault} obj Optional instance to populate. + * @return {module:model/InlineResponseDefault} The populated InlineResponseDefault instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InlineResponseDefault(); + + if (data.hasOwnProperty('string')) { + obj['string'] = Foo.constructFromObject(data['string']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/Foo} string + */ +InlineResponseDefault.prototype['string'] = undefined; + + + + + + +export default InlineResponseDefault; + diff --git a/samples/client/petstore/javascript-promise-es6/src/model/NullableClass.js b/samples/client/petstore/javascript-promise-es6/src/model/NullableClass.js new file mode 100644 index 000000000000..12a0f2509b6c --- /dev/null +++ b/samples/client/petstore/javascript-promise-es6/src/model/NullableClass.js @@ -0,0 +1,163 @@ +/** + * OpenAPI Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The NullableClass model module. + * @module model/NullableClass + * @version 1.0.0 + */ +class NullableClass { + /** + * Constructs a new NullableClass. + * @alias module:model/NullableClass + * @extends Object + */ + constructor() { + + NullableClass.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 NullableClass 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/NullableClass} obj Optional instance to populate. + * @return {module:model/NullableClass} The populated NullableClass instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new NullableClass(); + + ApiClient.constructFromObject(data, obj, 'Object'); + + + if (data.hasOwnProperty('integer_prop')) { + obj['integer_prop'] = ApiClient.convertToType(data['integer_prop'], 'Number'); + } + if (data.hasOwnProperty('number_prop')) { + obj['number_prop'] = ApiClient.convertToType(data['number_prop'], 'Number'); + } + if (data.hasOwnProperty('boolean_prop')) { + obj['boolean_prop'] = ApiClient.convertToType(data['boolean_prop'], 'Boolean'); + } + if (data.hasOwnProperty('string_prop')) { + obj['string_prop'] = ApiClient.convertToType(data['string_prop'], 'String'); + } + if (data.hasOwnProperty('date_prop')) { + obj['date_prop'] = ApiClient.convertToType(data['date_prop'], 'Date'); + } + if (data.hasOwnProperty('datetime_prop')) { + obj['datetime_prop'] = ApiClient.convertToType(data['datetime_prop'], 'Date'); + } + if (data.hasOwnProperty('array_nullable_prop')) { + obj['array_nullable_prop'] = ApiClient.convertToType(data['array_nullable_prop'], [Object]); + } + if (data.hasOwnProperty('array_and_items_nullable_prop')) { + obj['array_and_items_nullable_prop'] = ApiClient.convertToType(data['array_and_items_nullable_prop'], [Object]); + } + if (data.hasOwnProperty('array_items_nullable')) { + obj['array_items_nullable'] = ApiClient.convertToType(data['array_items_nullable'], [Object]); + } + if (data.hasOwnProperty('object_nullable_prop')) { + obj['object_nullable_prop'] = ApiClient.convertToType(data['object_nullable_prop'], {'String': Object}); + } + if (data.hasOwnProperty('object_and_items_nullable_prop')) { + obj['object_and_items_nullable_prop'] = ApiClient.convertToType(data['object_and_items_nullable_prop'], {'String': Object}); + } + if (data.hasOwnProperty('object_items_nullable')) { + obj['object_items_nullable'] = ApiClient.convertToType(data['object_items_nullable'], {'String': Object}); + } + } + return obj; + } + + +} + +/** + * @member {Number} integer_prop + */ +NullableClass.prototype['integer_prop'] = undefined; + +/** + * @member {Number} number_prop + */ +NullableClass.prototype['number_prop'] = undefined; + +/** + * @member {Boolean} boolean_prop + */ +NullableClass.prototype['boolean_prop'] = undefined; + +/** + * @member {String} string_prop + */ +NullableClass.prototype['string_prop'] = undefined; + +/** + * @member {Date} date_prop + */ +NullableClass.prototype['date_prop'] = undefined; + +/** + * @member {Date} datetime_prop + */ +NullableClass.prototype['datetime_prop'] = undefined; + +/** + * @member {Array.} array_nullable_prop + */ +NullableClass.prototype['array_nullable_prop'] = undefined; + +/** + * @member {Array.} array_and_items_nullable_prop + */ +NullableClass.prototype['array_and_items_nullable_prop'] = undefined; + +/** + * @member {Array.} array_items_nullable + */ +NullableClass.prototype['array_items_nullable'] = undefined; + +/** + * @member {Object.} object_nullable_prop + */ +NullableClass.prototype['object_nullable_prop'] = undefined; + +/** + * @member {Object.} object_and_items_nullable_prop + */ +NullableClass.prototype['object_and_items_nullable_prop'] = undefined; + +/** + * @member {Object.} object_items_nullable + */ +NullableClass.prototype['object_items_nullable'] = undefined; + + + + + + +export default NullableClass; + diff --git a/samples/client/petstore/javascript-promise-es6/src/model/OuterEnumDefaultValue.js b/samples/client/petstore/javascript-promise-es6/src/model/OuterEnumDefaultValue.js new file mode 100644 index 000000000000..a65b1dd0a6be --- /dev/null +++ b/samples/client/petstore/javascript-promise-es6/src/model/OuterEnumDefaultValue.js @@ -0,0 +1,53 @@ +/** + * OpenAPI Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +/** +* Enum class OuterEnumDefaultValue. +* @enum {} +* @readonly +*/ +export default class OuterEnumDefaultValue { + + /** + * value: "placed" + * @const + */ + "placed" = "placed"; + + + /** + * value: "approved" + * @const + */ + "approved" = "approved"; + + + /** + * value: "delivered" + * @const + */ + "delivered" = "delivered"; + + + + /** + * Returns a OuterEnumDefaultValue enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/OuterEnumDefaultValue} The enum OuterEnumDefaultValue value. + */ + static constructFromObject(object) { + return object; + } +} + diff --git a/samples/client/petstore/javascript-promise-es6/src/model/OuterEnumInteger.js b/samples/client/petstore/javascript-promise-es6/src/model/OuterEnumInteger.js new file mode 100644 index 000000000000..b6fc29568a02 --- /dev/null +++ b/samples/client/petstore/javascript-promise-es6/src/model/OuterEnumInteger.js @@ -0,0 +1,53 @@ +/** + * OpenAPI Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +/** +* Enum class OuterEnumInteger. +* @enum {} +* @readonly +*/ +export default class OuterEnumInteger { + + /** + * value: 0 + * @const + */ + "0" = 0; + + + /** + * value: 1 + * @const + */ + "1" = 1; + + + /** + * value: 2 + * @const + */ + "2" = 2; + + + + /** + * Returns a OuterEnumInteger enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/OuterEnumInteger} The enum OuterEnumInteger value. + */ + static constructFromObject(object) { + return object; + } +} + diff --git a/samples/client/petstore/javascript-promise-es6/src/model/OuterEnumIntegerDefaultValue.js b/samples/client/petstore/javascript-promise-es6/src/model/OuterEnumIntegerDefaultValue.js new file mode 100644 index 000000000000..86a9d6b9467e --- /dev/null +++ b/samples/client/petstore/javascript-promise-es6/src/model/OuterEnumIntegerDefaultValue.js @@ -0,0 +1,53 @@ +/** + * OpenAPI Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +/** +* Enum class OuterEnumIntegerDefaultValue. +* @enum {} +* @readonly +*/ +export default class OuterEnumIntegerDefaultValue { + + /** + * value: 0 + * @const + */ + "0" = 0; + + + /** + * value: 1 + * @const + */ + "1" = 1; + + + /** + * value: 2 + * @const + */ + "2" = 2; + + + + /** + * Returns a OuterEnumIntegerDefaultValue enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/OuterEnumIntegerDefaultValue} The enum OuterEnumIntegerDefaultValue value. + */ + static constructFromObject(object) { + return object; + } +} + diff --git a/samples/client/petstore/javascript-promise-es6/test/api/DefaultApi.spec.js b/samples/client/petstore/javascript-promise-es6/test/api/DefaultApi.spec.js new file mode 100644 index 000000000000..34ef8d5c2e0c --- /dev/null +++ b/samples/client/petstore/javascript-promise-es6/test/api/DefaultApi.spec.js @@ -0,0 +1,63 @@ +/** + * OpenAPI Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.OpenApiPetstore); + } +}(this, function(expect, OpenApiPetstore) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new OpenApiPetstore.DefaultApi(); + }); + + 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('DefaultApi', function() { + describe('fooGet', function() { + it('should call fooGet successfully', function(done) { + //uncomment below and update the code to test fooGet + //instance.fooGet(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/samples/client/petstore/javascript-es6/test/model/BigCat.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/Foo.spec.js similarity index 78% rename from samples/client/petstore/javascript-es6/test/model/BigCat.spec.js rename to samples/client/petstore/javascript-promise-es6/test/model/Foo.spec.js index c21833ff2293..7460803792c8 100644 --- a/samples/client/petstore/javascript-es6/test/model/BigCat.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/model/Foo.spec.js @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new OpenApiPetstore.BigCat(); + instance = new OpenApiPetstore.Foo(); }); var getProperty = function(object, getter, property) { @@ -47,16 +47,16 @@ object[property] = value; } - describe('BigCat', function() { - it('should create an instance of BigCat', function() { - // uncomment below and update the code to test BigCat - //var instane = new OpenApiPetstore.BigCat(); - //expect(instance).to.be.a(OpenApiPetstore.BigCat); + describe('Foo', function() { + it('should create an instance of Foo', function() { + // uncomment below and update the code to test Foo + //var instane = new OpenApiPetstore.Foo(); + //expect(instance).to.be.a(OpenApiPetstore.Foo); }); - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new OpenApiPetstore.BigCat(); + 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.Foo(); //expect(instance).to.be(); }); diff --git a/samples/client/petstore/javascript-es6/test/model/BigCatAllOf.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/HealthCheckResult.spec.js similarity index 74% rename from samples/client/petstore/javascript-es6/test/model/BigCatAllOf.spec.js rename to samples/client/petstore/javascript-promise-es6/test/model/HealthCheckResult.spec.js index c27440b42c34..7399370b1461 100644 --- a/samples/client/petstore/javascript-es6/test/model/BigCatAllOf.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/model/HealthCheckResult.spec.js @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new OpenApiPetstore.BigCatAllOf(); + instance = new OpenApiPetstore.HealthCheckResult(); }); var getProperty = function(object, getter, property) { @@ -47,16 +47,16 @@ object[property] = value; } - describe('BigCatAllOf', function() { - it('should create an instance of BigCatAllOf', function() { - // uncomment below and update the code to test BigCatAllOf - //var instane = new OpenApiPetstore.BigCatAllOf(); - //expect(instance).to.be.a(OpenApiPetstore.BigCatAllOf); + describe('HealthCheckResult', function() { + it('should create an instance of HealthCheckResult', function() { + // uncomment below and update the code to test HealthCheckResult + //var instane = new OpenApiPetstore.HealthCheckResult(); + //expect(instance).to.be.a(OpenApiPetstore.HealthCheckResult); }); - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new OpenApiPetstore.BigCatAllOf(); + it('should have the property nullableMessage (base name: "NullableMessage")', function() { + // uncomment below and update the code to test the property nullableMessage + //var instane = new OpenApiPetstore.HealthCheckResult(); //expect(instance).to.be(); }); diff --git a/samples/client/petstore/javascript-es6/test/model/AdditionalPropertiesNumber.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/InlineObject.spec.js similarity index 70% rename from samples/client/petstore/javascript-es6/test/model/AdditionalPropertiesNumber.spec.js rename to samples/client/petstore/javascript-promise-es6/test/model/InlineObject.spec.js index 316cda1ce0ca..9dd0a26e7607 100644 --- a/samples/client/petstore/javascript-es6/test/model/AdditionalPropertiesNumber.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/model/InlineObject.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new OpenApiPetstore.AdditionalPropertiesNumber(); + instance = new OpenApiPetstore.InlineObject(); }); var getProperty = function(object, getter, property) { @@ -47,16 +47,22 @@ object[property] = value; } - describe('AdditionalPropertiesNumber', function() { - it('should create an instance of AdditionalPropertiesNumber', function() { - // uncomment below and update the code to test AdditionalPropertiesNumber - //var instane = new OpenApiPetstore.AdditionalPropertiesNumber(); - //expect(instance).to.be.a(OpenApiPetstore.AdditionalPropertiesNumber); + describe('InlineObject', function() { + it('should create an instance of InlineObject', function() { + // uncomment below and update the code to test InlineObject + //var instane = new OpenApiPetstore.InlineObject(); + //expect(instance).to.be.a(OpenApiPetstore.InlineObject); }); 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.AdditionalPropertiesNumber(); + //var instane = new OpenApiPetstore.InlineObject(); + //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.InlineObject(); //expect(instance).to.be(); }); diff --git a/samples/client/petstore/javascript-promise-es6/test/model/InlineObject1.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/InlineObject1.spec.js new file mode 100644 index 000000000000..6a31acb18fb6 --- /dev/null +++ b/samples/client/petstore/javascript-promise-es6/test/model/InlineObject1.spec.js @@ -0,0 +1,71 @@ +/** + * OpenAPI Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.OpenApiPetstore); + } +}(this, function(expect, OpenApiPetstore) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new OpenApiPetstore.InlineObject1(); + }); + + 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('InlineObject1', function() { + it('should create an instance of InlineObject1', function() { + // uncomment below and update the code to test InlineObject1 + //var instane = new OpenApiPetstore.InlineObject1(); + //expect(instance).to.be.a(OpenApiPetstore.InlineObject1); + }); + + it('should have the property additionalMetadata (base name: "additionalMetadata")', function() { + // uncomment below and update the code to test the property additionalMetadata + //var instane = new OpenApiPetstore.InlineObject1(); + //expect(instance).to.be(); + }); + + it('should have the property file (base name: "file")', function() { + // uncomment below and update the code to test the property file + //var instane = new OpenApiPetstore.InlineObject1(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/samples/client/petstore/javascript-promise-es6/test/model/InlineObject2.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/InlineObject2.spec.js new file mode 100644 index 000000000000..1d7da6eb6b36 --- /dev/null +++ b/samples/client/petstore/javascript-promise-es6/test/model/InlineObject2.spec.js @@ -0,0 +1,71 @@ +/** + * OpenAPI Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.OpenApiPetstore); + } +}(this, function(expect, OpenApiPetstore) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new OpenApiPetstore.InlineObject2(); + }); + + 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('InlineObject2', function() { + it('should create an instance of InlineObject2', function() { + // uncomment below and update the code to test InlineObject2 + //var instane = new OpenApiPetstore.InlineObject2(); + //expect(instance).to.be.a(OpenApiPetstore.InlineObject2); + }); + + it('should have the property enumFormStringArray (base name: "enum_form_string_array")', function() { + // uncomment below and update the code to test the property enumFormStringArray + //var instane = new OpenApiPetstore.InlineObject2(); + //expect(instance).to.be(); + }); + + it('should have the property enumFormString (base name: "enum_form_string")', function() { + // uncomment below and update the code to test the property enumFormString + //var instane = new OpenApiPetstore.InlineObject2(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/samples/client/petstore/javascript-promise-es6/test/model/InlineObject3.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/InlineObject3.spec.js new file mode 100644 index 000000000000..5265e4462902 --- /dev/null +++ b/samples/client/petstore/javascript-promise-es6/test/model/InlineObject3.spec.js @@ -0,0 +1,143 @@ +/** + * OpenAPI Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.OpenApiPetstore); + } +}(this, function(expect, OpenApiPetstore) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new OpenApiPetstore.InlineObject3(); + }); + + 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('InlineObject3', function() { + it('should create an instance of InlineObject3', function() { + // uncomment below and update the code to test InlineObject3 + //var instane = new OpenApiPetstore.InlineObject3(); + //expect(instance).to.be.a(OpenApiPetstore.InlineObject3); + }); + + 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.InlineObject3(); + //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.InlineObject3(); + //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.InlineObject3(); + //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.InlineObject3(); + //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.InlineObject3(); + //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.InlineObject3(); + //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.InlineObject3(); + //expect(instance).to.be(); + }); + + it('should have the property patternWithoutDelimiter (base name: "pattern_without_delimiter")', function() { + // uncomment below and update the code to test the property patternWithoutDelimiter + //var instane = new OpenApiPetstore.InlineObject3(); + //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.InlineObject3(); + //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.InlineObject3(); + //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.InlineObject3(); + //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.InlineObject3(); + //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.InlineObject3(); + //expect(instance).to.be(); + }); + + it('should have the property callback (base name: "callback")', function() { + // uncomment below and update the code to test the property callback + //var instane = new OpenApiPetstore.InlineObject3(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/samples/client/petstore/javascript-promise-es6/test/model/InlineObject4.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/InlineObject4.spec.js new file mode 100644 index 000000000000..0324721e117b --- /dev/null +++ b/samples/client/petstore/javascript-promise-es6/test/model/InlineObject4.spec.js @@ -0,0 +1,71 @@ +/** + * OpenAPI Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.OpenApiPetstore); + } +}(this, function(expect, OpenApiPetstore) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new OpenApiPetstore.InlineObject4(); + }); + + 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('InlineObject4', function() { + it('should create an instance of InlineObject4', function() { + // uncomment below and update the code to test InlineObject4 + //var instane = new OpenApiPetstore.InlineObject4(); + //expect(instance).to.be.a(OpenApiPetstore.InlineObject4); + }); + + it('should have the property param (base name: "param")', function() { + // uncomment below and update the code to test the property param + //var instane = new OpenApiPetstore.InlineObject4(); + //expect(instance).to.be(); + }); + + it('should have the property param2 (base name: "param2")', function() { + // uncomment below and update the code to test the property param2 + //var instane = new OpenApiPetstore.InlineObject4(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/samples/client/petstore/javascript-promise-es6/test/model/InlineObject5.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/InlineObject5.spec.js new file mode 100644 index 000000000000..cabcbb1404c3 --- /dev/null +++ b/samples/client/petstore/javascript-promise-es6/test/model/InlineObject5.spec.js @@ -0,0 +1,71 @@ +/** + * OpenAPI Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.OpenApiPetstore); + } +}(this, function(expect, OpenApiPetstore) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new OpenApiPetstore.InlineObject5(); + }); + + 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('InlineObject5', function() { + it('should create an instance of InlineObject5', function() { + // uncomment below and update the code to test InlineObject5 + //var instane = new OpenApiPetstore.InlineObject5(); + //expect(instance).to.be.a(OpenApiPetstore.InlineObject5); + }); + + it('should have the property additionalMetadata (base name: "additionalMetadata")', function() { + // uncomment below and update the code to test the property additionalMetadata + //var instane = new OpenApiPetstore.InlineObject5(); + //expect(instance).to.be(); + }); + + it('should have the property requiredFile (base name: "requiredFile")', function() { + // uncomment below and update the code to test the property requiredFile + //var instane = new OpenApiPetstore.InlineObject5(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/samples/client/petstore/javascript-es6/test/model/AdditionalPropertiesArray.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/InlineResponseDefault.spec.js similarity index 73% rename from samples/client/petstore/javascript-es6/test/model/AdditionalPropertiesArray.spec.js rename to samples/client/petstore/javascript-promise-es6/test/model/InlineResponseDefault.spec.js index 1721c4499e02..bec91c162342 100644 --- a/samples/client/petstore/javascript-es6/test/model/AdditionalPropertiesArray.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/model/InlineResponseDefault.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new OpenApiPetstore.AdditionalPropertiesArray(); + instance = new OpenApiPetstore.InlineResponseDefault(); }); var getProperty = function(object, getter, property) { @@ -47,16 +47,16 @@ object[property] = value; } - describe('AdditionalPropertiesArray', function() { - it('should create an instance of AdditionalPropertiesArray', function() { - // uncomment below and update the code to test AdditionalPropertiesArray - //var instane = new OpenApiPetstore.AdditionalPropertiesArray(); - //expect(instance).to.be.a(OpenApiPetstore.AdditionalPropertiesArray); + describe('InlineResponseDefault', function() { + it('should create an instance of InlineResponseDefault', function() { + // uncomment below and update the code to test InlineResponseDefault + //var instane = new OpenApiPetstore.InlineResponseDefault(); + //expect(instance).to.be.a(OpenApiPetstore.InlineResponseDefault); }); - 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.AdditionalPropertiesArray(); + 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.InlineResponseDefault(); //expect(instance).to.be(); }); diff --git a/samples/client/petstore/javascript-promise-es6/test/model/NullableClass.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/NullableClass.spec.js new file mode 100644 index 000000000000..89cd2821d42b --- /dev/null +++ b/samples/client/petstore/javascript-promise-es6/test/model/NullableClass.spec.js @@ -0,0 +1,131 @@ +/** + * OpenAPI Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.OpenApiPetstore); + } +}(this, function(expect, OpenApiPetstore) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new OpenApiPetstore.NullableClass(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('NullableClass', function() { + it('should create an instance of NullableClass', function() { + // uncomment below and update the code to test NullableClass + //var instane = new OpenApiPetstore.NullableClass(); + //expect(instance).to.be.a(OpenApiPetstore.NullableClass); + }); + + it('should have the property integerProp (base name: "integer_prop")', function() { + // uncomment below and update the code to test the property integerProp + //var instane = new OpenApiPetstore.NullableClass(); + //expect(instance).to.be(); + }); + + it('should have the property numberProp (base name: "number_prop")', function() { + // uncomment below and update the code to test the property numberProp + //var instane = new OpenApiPetstore.NullableClass(); + //expect(instance).to.be(); + }); + + it('should have the property booleanProp (base name: "boolean_prop")', function() { + // uncomment below and update the code to test the property booleanProp + //var instane = new OpenApiPetstore.NullableClass(); + //expect(instance).to.be(); + }); + + it('should have the property stringProp (base name: "string_prop")', function() { + // uncomment below and update the code to test the property stringProp + //var instane = new OpenApiPetstore.NullableClass(); + //expect(instance).to.be(); + }); + + it('should have the property dateProp (base name: "date_prop")', function() { + // uncomment below and update the code to test the property dateProp + //var instane = new OpenApiPetstore.NullableClass(); + //expect(instance).to.be(); + }); + + it('should have the property datetimeProp (base name: "datetime_prop")', function() { + // uncomment below and update the code to test the property datetimeProp + //var instane = new OpenApiPetstore.NullableClass(); + //expect(instance).to.be(); + }); + + it('should have the property arrayNullableProp (base name: "array_nullable_prop")', function() { + // uncomment below and update the code to test the property arrayNullableProp + //var instane = new OpenApiPetstore.NullableClass(); + //expect(instance).to.be(); + }); + + it('should have the property arrayAndItemsNullableProp (base name: "array_and_items_nullable_prop")', function() { + // uncomment below and update the code to test the property arrayAndItemsNullableProp + //var instane = new OpenApiPetstore.NullableClass(); + //expect(instance).to.be(); + }); + + it('should have the property arrayItemsNullable (base name: "array_items_nullable")', function() { + // uncomment below and update the code to test the property arrayItemsNullable + //var instane = new OpenApiPetstore.NullableClass(); + //expect(instance).to.be(); + }); + + it('should have the property objectNullableProp (base name: "object_nullable_prop")', function() { + // uncomment below and update the code to test the property objectNullableProp + //var instane = new OpenApiPetstore.NullableClass(); + //expect(instance).to.be(); + }); + + it('should have the property objectAndItemsNullableProp (base name: "object_and_items_nullable_prop")', function() { + // uncomment below and update the code to test the property objectAndItemsNullableProp + //var instane = new OpenApiPetstore.NullableClass(); + //expect(instance).to.be(); + }); + + it('should have the property objectItemsNullable (base name: "object_items_nullable")', function() { + // uncomment below and update the code to test the property objectItemsNullable + //var instane = new OpenApiPetstore.NullableClass(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/samples/client/petstore/javascript-promise-es6/test/model/OuterEnumDefaultValue.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/OuterEnumDefaultValue.spec.js new file mode 100644 index 000000000000..9da972203e12 --- /dev/null +++ b/samples/client/petstore/javascript-promise-es6/test/model/OuterEnumDefaultValue.spec.js @@ -0,0 +1,58 @@ +/** + * OpenAPI Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.OpenApiPetstore); + } +}(this, function(expect, OpenApiPetstore) { + 'use strict'; + + var instance; + + beforeEach(function() { + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('OuterEnumDefaultValue', function() { + it('should create an instance of OuterEnumDefaultValue', function() { + // uncomment below and update the code to test OuterEnumDefaultValue + //var instane = new OpenApiPetstore.OuterEnumDefaultValue(); + //expect(instance).to.be.a(OpenApiPetstore.OuterEnumDefaultValue); + }); + + }); + +})); diff --git a/samples/client/petstore/javascript-promise-es6/test/model/OuterEnumInteger.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/OuterEnumInteger.spec.js new file mode 100644 index 000000000000..196da96a8da8 --- /dev/null +++ b/samples/client/petstore/javascript-promise-es6/test/model/OuterEnumInteger.spec.js @@ -0,0 +1,58 @@ +/** + * OpenAPI Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.OpenApiPetstore); + } +}(this, function(expect, OpenApiPetstore) { + 'use strict'; + + var instance; + + beforeEach(function() { + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('OuterEnumInteger', function() { + it('should create an instance of OuterEnumInteger', function() { + // uncomment below and update the code to test OuterEnumInteger + //var instane = new OpenApiPetstore.OuterEnumInteger(); + //expect(instance).to.be.a(OpenApiPetstore.OuterEnumInteger); + }); + + }); + +})); diff --git a/samples/client/petstore/javascript-promise-es6/test/model/OuterEnumIntegerDefaultValue.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/OuterEnumIntegerDefaultValue.spec.js new file mode 100644 index 000000000000..24829ac61213 --- /dev/null +++ b/samples/client/petstore/javascript-promise-es6/test/model/OuterEnumIntegerDefaultValue.spec.js @@ -0,0 +1,58 @@ +/** + * OpenAPI Petstore + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.OpenApiPetstore); + } +}(this, function(expect, OpenApiPetstore) { + 'use strict'; + + var instance; + + beforeEach(function() { + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('OuterEnumIntegerDefaultValue', function() { + it('should create an instance of OuterEnumIntegerDefaultValue', function() { + // uncomment below and update the code to test OuterEnumIntegerDefaultValue + //var instane = new OpenApiPetstore.OuterEnumIntegerDefaultValue(); + //expect(instance).to.be.a(OpenApiPetstore.OuterEnumIntegerDefaultValue); + }); + + }); + +})); diff --git a/samples/openapi3/client/petstore/javascript-es6/.openapi-generator-ignore b/samples/openapi3/client/petstore/javascript-es6/.openapi-generator-ignore index c5fa491b4c55..7484ee590a38 100644 --- a/samples/openapi3/client/petstore/javascript-es6/.openapi-generator-ignore +++ b/samples/openapi3/client/petstore/javascript-es6/.openapi-generator-ignore @@ -1,11 +1,11 @@ -# Swagger Codegen Ignore -# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator # Use this file to prevent files from being overwritten by the generator. # The patterns follow closely to .gitignore or .dockerignore. # As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: #ApiClient.cs # You can match any string of characters against a directory, file or extension with a single asterisk (*): diff --git a/samples/openapi3/client/petstore/javascript-es6/.openapi-generator/VERSION b/samples/openapi3/client/petstore/javascript-es6/.openapi-generator/VERSION index 83a328a9227e..d99e7162d01f 100644 --- a/samples/openapi3/client/petstore/javascript-es6/.openapi-generator/VERSION +++ b/samples/openapi3/client/petstore/javascript-es6/.openapi-generator/VERSION @@ -1 +1 @@ -4.1.0-SNAPSHOT \ No newline at end of file +5.0.0-SNAPSHOT \ No newline at end of file diff --git a/samples/openapi3/client/petstore/javascript-es6/README.md b/samples/openapi3/client/petstore/javascript-es6/README.md index 70e6ac7a2aa2..08b186d8e0ce 100644 --- a/samples/openapi3/client/petstore/javascript-es6/README.md +++ b/samples/openapi3/client/petstore/javascript-es6/README.md @@ -123,6 +123,7 @@ Class | Method | HTTP request | Description *OpenApiPetstore.AnotherFakeApi* | [**call123testSpecialTags**](docs/AnotherFakeApi.md#call123testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags *OpenApiPetstore.DefaultApi* | [**fooGet**](docs/DefaultApi.md#fooGet) | **GET** /foo | *OpenApiPetstore.FakeApi* | [**fakeHealthGet**](docs/FakeApi.md#fakeHealthGet) | **GET** /fake/health | Health check endpoint +*OpenApiPetstore.FakeApi* | [**fakeHttpSignatureTest**](docs/FakeApi.md#fakeHttpSignatureTest) | **GET** /fake/http-signature-test | test http signature authentication *OpenApiPetstore.FakeApi* | [**fakeOuterBooleanSerialize**](docs/FakeApi.md#fakeOuterBooleanSerialize) | **POST** /fake/outer/boolean | *OpenApiPetstore.FakeApi* | [**fakeOuterCompositeSerialize**](docs/FakeApi.md#fakeOuterCompositeSerialize) | **POST** /fake/outer/composite | *OpenApiPetstore.FakeApi* | [**fakeOuterNumberSerialize**](docs/FakeApi.md#fakeOuterNumberSerialize) | **POST** /fake/outer/number | @@ -135,6 +136,7 @@ Class | Method | HTTP request | Description *OpenApiPetstore.FakeApi* | [**testGroupParameters**](docs/FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) *OpenApiPetstore.FakeApi* | [**testInlineAdditionalProperties**](docs/FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties *OpenApiPetstore.FakeApi* | [**testJsonFormData**](docs/FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data +*OpenApiPetstore.FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | *OpenApiPetstore.FakeClassnameTags123Api* | [**testClassname**](docs/FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case *OpenApiPetstore.PetApi* | [**addPet**](docs/PetApi.md#addPet) | **POST** /pet | Add a new pet to the store *OpenApiPetstore.PetApi* | [**deletePet**](docs/PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet @@ -246,6 +248,11 @@ Class | Method | HTTP request | Description +### http_signature_test + + + + ### petstore_auth diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/FakeApi.md b/samples/openapi3/client/petstore/javascript-es6/docs/FakeApi.md index cc6ba6590f02..23f6e3456ba6 100644 --- a/samples/openapi3/client/petstore/javascript-es6/docs/FakeApi.md +++ b/samples/openapi3/client/petstore/javascript-es6/docs/FakeApi.md @@ -5,6 +5,7 @@ All URIs are relative to *http://petstore.swagger.io:80/v2* Method | HTTP request | Description ------------- | ------------- | ------------- [**fakeHealthGet**](FakeApi.md#fakeHealthGet) | **GET** /fake/health | Health check endpoint +[**fakeHttpSignatureTest**](FakeApi.md#fakeHttpSignatureTest) | **GET** /fake/http-signature-test | test http signature authentication [**fakeOuterBooleanSerialize**](FakeApi.md#fakeOuterBooleanSerialize) | **POST** /fake/outer/boolean | [**fakeOuterCompositeSerialize**](FakeApi.md#fakeOuterCompositeSerialize) | **POST** /fake/outer/composite | [**fakeOuterNumberSerialize**](FakeApi.md#fakeOuterNumberSerialize) | **POST** /fake/outer/number | @@ -17,6 +18,7 @@ Method | HTTP request | Description [**testGroupParameters**](FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) [**testInlineAdditionalProperties**](FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties [**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data +[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | @@ -59,6 +61,56 @@ No authorization required - **Accept**: application/json +## fakeHttpSignatureTest + +> fakeHttpSignatureTest(pet, opts) + +test http signature authentication + +### Example + +```javascript +import OpenApiPetstore from 'open_api_petstore'; +let defaultClient = OpenApiPetstore.ApiClient.instance; + +let apiInstance = new OpenApiPetstore.FakeApi(); +let pet = new OpenApiPetstore.Pet(); // Pet | Pet object that needs to be added to the store +let opts = { + 'query1': "query1_example", // String | query parameter + 'header1': "header1_example" // String | header parameter +}; +apiInstance.fakeHttpSignatureTest(pet, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | + **query1** | **String**| query parameter | [optional] + **header1** | **String**| header parameter | [optional] + +### Return type + +null (empty response body) + +### Authorization + +[http_signature_test](../README.md#http_signature_test) + +### HTTP request headers + +- **Content-Type**: application/json, application/xml +- **Accept**: Not defined + + ## fakeOuterBooleanSerialize > Boolean fakeOuterBooleanSerialize(opts) @@ -669,3 +721,56 @@ No authorization required - **Content-Type**: application/x-www-form-urlencoded - **Accept**: Not defined + +## testQueryParameterCollectionFormat + +> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context) + + + +To test the collection format in query parameters + +### Example + +```javascript +import OpenApiPetstore from 'open_api_petstore'; + +let apiInstance = new OpenApiPetstore.FakeApi(); +let pipe = ["null"]; // [String] | +let ioutil = ["null"]; // [String] | +let http = ["null"]; // [String] | +let url = ["null"]; // [String] | +let context = ["null"]; // [String] | +apiInstance.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pipe** | [**[String]**](String.md)| | + **ioutil** | [**[String]**](String.md)| | + **http** | [**[String]**](String.md)| | + **url** | [**[String]**](String.md)| | + **context** | [**[String]**](String.md)| | + +### Return type + +null (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/HasOnlyReadOnly.md b/samples/openapi3/client/petstore/javascript-es6/docs/HasOnlyReadOnly.md index f3d71895b54b..bfe08a1baee2 100644 --- a/samples/openapi3/client/petstore/javascript-es6/docs/HasOnlyReadOnly.md +++ b/samples/openapi3/client/petstore/javascript-es6/docs/HasOnlyReadOnly.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**bar** | **String** | | [optional] -**foo** | **String** | | [optional] +**bar** | **String** | | [optional] [readonly] +**foo** | **String** | | [optional] [readonly] diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/Name.md b/samples/openapi3/client/petstore/javascript-es6/docs/Name.md index be2344179b47..d9f2fbeb68ba 100644 --- a/samples/openapi3/client/petstore/javascript-es6/docs/Name.md +++ b/samples/openapi3/client/petstore/javascript-es6/docs/Name.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **Number** | | -**snakeCase** | **Number** | | [optional] +**snakeCase** | **Number** | | [optional] [readonly] **property** | **String** | | [optional] -**_123number** | **Number** | | [optional] +**_123number** | **Number** | | [optional] [readonly] diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/ReadOnlyFirst.md b/samples/openapi3/client/petstore/javascript-es6/docs/ReadOnlyFirst.md index 01063e61a99f..eee7a321d406 100644 --- a/samples/openapi3/client/petstore/javascript-es6/docs/ReadOnlyFirst.md +++ b/samples/openapi3/client/petstore/javascript-es6/docs/ReadOnlyFirst.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**bar** | **String** | | [optional] +**bar** | **String** | | [optional] [readonly] **baz** | **String** | | [optional] diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/TypeHolderDefault.md b/samples/openapi3/client/petstore/javascript-es6/docs/TypeHolderDefault.md deleted file mode 100644 index e726bb053545..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/TypeHolderDefault.md +++ /dev/null @@ -1,12 +0,0 @@ -# OpenApiPetstore.TypeHolderDefault - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**stringItem** | **String** | | [default to 'what'] -**numberItem** | **Number** | | -**integerItem** | **Number** | | -**boolItem** | **Boolean** | | [default to true] -**arrayItem** | **[Number]** | | - - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/TypeHolderExample.md b/samples/openapi3/client/petstore/javascript-es6/docs/TypeHolderExample.md deleted file mode 100644 index 925271cb6cd1..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/TypeHolderExample.md +++ /dev/null @@ -1,12 +0,0 @@ -# OpenApiPetstore.TypeHolderExample - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**stringItem** | **String** | | -**numberItem** | **Number** | | -**integerItem** | **Number** | | -**boolItem** | **Boolean** | | -**arrayItem** | **[Number]** | | - - diff --git a/samples/openapi3/client/petstore/javascript-es6/git_push.sh b/samples/openapi3/client/petstore/javascript-es6/git_push.sh index 04dd5df38e83..ced3be2b0c7b 100644 --- a/samples/openapi3/client/petstore/javascript-es6/git_push.sh +++ b/samples/openapi3/client/petstore/javascript-es6/git_push.sh @@ -1,11 +1,17 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi if [ "$git_user_id" = "" ]; then git_user_id="GIT_USER_ID" @@ -28,7 +34,7 @@ git init # Adds the files in the local repository and stages them for commit. git add . -# Commits the tracked changes and prepares them to be pushed to a remote repository. +# Commits the tracked changes and prepares them to be pushed to a remote repository. git commit -m "$release_note" # Sets the new remote @@ -36,10 +42,10 @@ git_remote=`git remote` if [ "$git_remote" = "" ]; then # git remote not defined if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the Git credential in your environment." - git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git else - git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git + git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git fi fi @@ -47,6 +53,6 @@ fi git pull origin master # Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git" +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" git push origin master 2>&1 | grep -v 'To https' diff --git a/samples/openapi3/client/petstore/javascript-es6/package-lock.json b/samples/openapi3/client/petstore/javascript-es6/package-lock.json deleted file mode 100644 index 4b9d17d02486..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/package-lock.json +++ /dev/null @@ -1,3511 +0,0 @@ -{ - "name": "open_api_petstore", - "version": "1.0.0", - "lockfileVersion": 1, - "requires": true, - "dependencies": { - "ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=" - }, - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=" - }, - "anymatch": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-1.3.2.tgz", - "integrity": "sha512-0XNayC8lTHQ2OI8aljNCN3sSx6hsr/1+rlcDAotXJR7C1oZZHCNsfpbKwMjRA3Uqb5tF1Rae2oloTr4xpq+WjA==", - "optional": true, - "requires": { - "micromatch": "^2.1.5", - "normalize-path": "^2.0.0" - } - }, - "arr-diff": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-2.0.0.tgz", - "integrity": "sha1-jzuCf5Vai9ZpaX5KQlasPOrjVs8=", - "optional": true, - "requires": { - "arr-flatten": "^1.0.1" - } - }, - "arr-flatten": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", - "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==" - }, - "arr-union": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz", - "integrity": "sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=" - }, - "array-unique": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.2.1.tgz", - "integrity": "sha1-odl8yvy8JiXMcPrc6zalDFiwGlM=", - "optional": true - }, - "assign-symbols": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz", - "integrity": "sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=" - }, - "async-each": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/async-each/-/async-each-1.0.1.tgz", - "integrity": "sha1-GdOGodntxufByF04iu28xW0zYC0=", - "optional": true - }, - "asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" - }, - "atob": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", - "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==" - }, - "babel": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel/-/babel-6.23.0.tgz", - "integrity": "sha1-0NHn2APpdHZb7qMjLU4VPA77kPQ=" - }, - "babel-cli": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-cli/-/babel-cli-6.26.0.tgz", - "integrity": "sha1-UCq1SHTX24itALiHoGODzgPQAvE=", - "requires": { - "babel-core": "^6.26.0", - "babel-polyfill": "^6.26.0", - "babel-register": "^6.26.0", - "babel-runtime": "^6.26.0", - "chokidar": "^1.6.1", - "commander": "^2.11.0", - "convert-source-map": "^1.5.0", - "fs-readdir-recursive": "^1.0.0", - "glob": "^7.1.2", - "lodash": "^4.17.4", - "output-file-sync": "^1.1.2", - "path-is-absolute": "^1.0.1", - "slash": "^1.0.0", - "source-map": "^0.5.6", - "v8flags": "^2.1.1" - }, - "dependencies": { - "babel-core": { - "version": "6.26.3", - "resolved": "https://registry.npmjs.org/babel-core/-/babel-core-6.26.3.tgz", - "integrity": "sha512-6jyFLuDmeidKmUEb3NM+/yawG0M2bDZ9Z1qbZP59cyHLz8kYGKYwpJP0UwUKKUiTRNvxfLesJnTedqczP7cTDA==", - "requires": { - "babel-code-frame": "^6.26.0", - "babel-generator": "^6.26.0", - "babel-helpers": "^6.24.1", - "babel-messages": "^6.23.0", - "babel-register": "^6.26.0", - "babel-runtime": "^6.26.0", - "babel-template": "^6.26.0", - "babel-traverse": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "convert-source-map": "^1.5.1", - "debug": "^2.6.9", - "json5": "^0.5.1", - "lodash": "^4.17.4", - "minimatch": "^3.0.4", - "path-is-absolute": "^1.0.1", - "private": "^0.1.8", - "slash": "^1.0.0", - "source-map": "^0.5.7" - } - } - } - }, - "babel-code-frame": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.26.0.tgz", - "integrity": "sha1-Y/1D99weO7fONZR9uP42mj9Yx0s=", - "requires": { - "chalk": "^1.1.3", - "esutils": "^2.0.2", - "js-tokens": "^3.0.2" - } - }, - "babel-core": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-core/-/babel-core-6.26.0.tgz", - "integrity": "sha1-rzL3izGm/O8RnIew/Y2XU/A6C7g=", - "dev": true, - "requires": { - "babel-code-frame": "^6.26.0", - "babel-generator": "^6.26.0", - "babel-helpers": "^6.24.1", - "babel-messages": "^6.23.0", - "babel-register": "^6.26.0", - "babel-runtime": "^6.26.0", - "babel-template": "^6.26.0", - "babel-traverse": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "convert-source-map": "^1.5.0", - "debug": "^2.6.8", - "json5": "^0.5.1", - "lodash": "^4.17.4", - "minimatch": "^3.0.4", - "path-is-absolute": "^1.0.1", - "private": "^0.1.7", - "slash": "^1.0.0", - "source-map": "^0.5.6" - } - }, - "babel-generator": { - "version": "6.26.1", - "resolved": "https://registry.npmjs.org/babel-generator/-/babel-generator-6.26.1.tgz", - "integrity": "sha512-HyfwY6ApZj7BYTcJURpM5tznulaBvyio7/0d4zFOeMPUmfxkCjHocCuoLa2SAGzBI8AREcH3eP3758F672DppA==", - "requires": { - "babel-messages": "^6.23.0", - "babel-runtime": "^6.26.0", - "babel-types": "^6.26.0", - "detect-indent": "^4.0.0", - "jsesc": "^1.3.0", - "lodash": "^4.17.4", - "source-map": "^0.5.7", - "trim-right": "^1.0.1" - } - }, - "babel-helper-bindify-decorators": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-bindify-decorators/-/babel-helper-bindify-decorators-6.24.1.tgz", - "integrity": "sha1-FMGeXxQte0fxmlJDHlKxzLxAozA=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0", - "babel-traverse": "^6.24.1", - "babel-types": "^6.24.1" - } - }, - "babel-helper-builder-binary-assignment-operator-visitor": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-builder-binary-assignment-operator-visitor/-/babel-helper-builder-binary-assignment-operator-visitor-6.24.1.tgz", - "integrity": "sha1-zORReto1b0IgvK6KAsKzRvmlZmQ=", - "dev": true, - "requires": { - "babel-helper-explode-assignable-expression": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-types": "^6.24.1" - } - }, - "babel-helper-call-delegate": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-call-delegate/-/babel-helper-call-delegate-6.24.1.tgz", - "integrity": "sha1-7Oaqzdx25Bw0YfiL/Fdb0Nqi340=", - "dev": true, - "requires": { - "babel-helper-hoist-variables": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-traverse": "^6.24.1", - "babel-types": "^6.24.1" - } - }, - "babel-helper-define-map": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-helper-define-map/-/babel-helper-define-map-6.26.0.tgz", - "integrity": "sha1-pfVtq0GiX5fstJjH66ypgZ+Vvl8=", - "dev": true, - "requires": { - "babel-helper-function-name": "^6.24.1", - "babel-runtime": "^6.26.0", - "babel-types": "^6.26.0", - "lodash": "^4.17.4" - } - }, - "babel-helper-explode-assignable-expression": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-explode-assignable-expression/-/babel-helper-explode-assignable-expression-6.24.1.tgz", - "integrity": "sha1-8luCz33BBDPFX3BZLVdGQArCLKo=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0", - "babel-traverse": "^6.24.1", - "babel-types": "^6.24.1" - } - }, - "babel-helper-explode-class": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-explode-class/-/babel-helper-explode-class-6.24.1.tgz", - "integrity": "sha1-fcKjkQ3uAHBW4eMdZAztPVTqqes=", - "dev": true, - "requires": { - "babel-helper-bindify-decorators": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-traverse": "^6.24.1", - "babel-types": "^6.24.1" - } - }, - "babel-helper-function-name": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-function-name/-/babel-helper-function-name-6.24.1.tgz", - "integrity": "sha1-00dbjAPtmCQqJbSDUasYOZ01gKk=", - "dev": true, - "requires": { - "babel-helper-get-function-arity": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1", - "babel-traverse": "^6.24.1", - "babel-types": "^6.24.1" - } - }, - "babel-helper-get-function-arity": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-get-function-arity/-/babel-helper-get-function-arity-6.24.1.tgz", - "integrity": "sha1-j3eCqpNAfEHTqlCQj4mwMbG2hT0=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0", - "babel-types": "^6.24.1" - } - }, - "babel-helper-hoist-variables": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-hoist-variables/-/babel-helper-hoist-variables-6.24.1.tgz", - "integrity": "sha1-HssnaJydJVE+rbyZFKc/VAi+enY=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0", - "babel-types": "^6.24.1" - } - }, - "babel-helper-optimise-call-expression": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-optimise-call-expression/-/babel-helper-optimise-call-expression-6.24.1.tgz", - "integrity": "sha1-96E0J7qfc/j0+pk8VKl4gtEkQlc=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0", - "babel-types": "^6.24.1" - } - }, - "babel-helper-regex": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-helper-regex/-/babel-helper-regex-6.26.0.tgz", - "integrity": "sha1-MlxZ+QL4LyS3T6zu0DY5VPZJXnI=", - "dev": true, - "requires": { - "babel-runtime": "^6.26.0", - "babel-types": "^6.26.0", - "lodash": "^4.17.4" - } - }, - "babel-helper-remap-async-to-generator": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-remap-async-to-generator/-/babel-helper-remap-async-to-generator-6.24.1.tgz", - "integrity": "sha1-XsWBgnrXI/7N04HxySg5BnbkVRs=", - "dev": true, - "requires": { - "babel-helper-function-name": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1", - "babel-traverse": "^6.24.1", - "babel-types": "^6.24.1" - } - }, - "babel-helper-replace-supers": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-replace-supers/-/babel-helper-replace-supers-6.24.1.tgz", - "integrity": "sha1-v22/5Dk40XNpohPKiov3S2qQqxo=", - "dev": true, - "requires": { - "babel-helper-optimise-call-expression": "^6.24.1", - "babel-messages": "^6.23.0", - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1", - "babel-traverse": "^6.24.1", - "babel-types": "^6.24.1" - } - }, - "babel-helpers": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helpers/-/babel-helpers-6.24.1.tgz", - "integrity": "sha1-NHHenK7DiOXIUOWX5Yom3fN2ArI=", - "requires": { - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1" - } - }, - "babel-messages": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-messages/-/babel-messages-6.23.0.tgz", - "integrity": "sha1-8830cDhYA1sqKVHG7F7fbGLyYw4=", - "requires": { - "babel-runtime": "^6.22.0" - } - }, - "babel-plugin-check-es2015-constants": { - "version": "6.22.0", - "resolved": "https://registry.npmjs.org/babel-plugin-check-es2015-constants/-/babel-plugin-check-es2015-constants-6.22.0.tgz", - "integrity": "sha1-NRV7EBQm/S/9PaP3XH0ekYNbv4o=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0" - } - }, - "babel-plugin-syntax-async-functions": { - "version": "6.13.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz", - "integrity": "sha1-ytnK0RkbWtY0vzCuCHI5HgZHvpU=", - "dev": true - }, - "babel-plugin-syntax-async-generators": { - "version": "6.13.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-async-generators/-/babel-plugin-syntax-async-generators-6.13.0.tgz", - "integrity": "sha1-a8lj67FuzLrmuStZbrfzXDQqi5o=", - "dev": true - }, - "babel-plugin-syntax-class-constructor-call": { - "version": "6.18.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-class-constructor-call/-/babel-plugin-syntax-class-constructor-call-6.18.0.tgz", - "integrity": "sha1-nLnTn+Q8hgC+yBRkVt3L1OGnZBY=", - "dev": true - }, - "babel-plugin-syntax-class-properties": { - "version": "6.13.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-class-properties/-/babel-plugin-syntax-class-properties-6.13.0.tgz", - "integrity": "sha1-1+sjt5oxf4VDlixQW4J8fWysJ94=", - "dev": true - }, - "babel-plugin-syntax-decorators": { - "version": "6.13.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-decorators/-/babel-plugin-syntax-decorators-6.13.0.tgz", - "integrity": "sha1-MSVjtNvePMgGzuPkFszurd0RrAs=", - "dev": true - }, - "babel-plugin-syntax-do-expressions": { - "version": "6.13.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-do-expressions/-/babel-plugin-syntax-do-expressions-6.13.0.tgz", - "integrity": "sha1-V0d1YTmqJtOQ0JQQsDdEugfkeW0=", - "dev": true - }, - "babel-plugin-syntax-dynamic-import": { - "version": "6.18.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-dynamic-import/-/babel-plugin-syntax-dynamic-import-6.18.0.tgz", - "integrity": "sha1-jWomIpyDdFqZgqRBBRVyyqF5sdo=", - "dev": true - }, - "babel-plugin-syntax-exponentiation-operator": { - "version": "6.13.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-exponentiation-operator/-/babel-plugin-syntax-exponentiation-operator-6.13.0.tgz", - "integrity": "sha1-nufoM3KQ2pUoggGmpX9BcDF4MN4=", - "dev": true - }, - "babel-plugin-syntax-export-extensions": { - "version": "6.13.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-export-extensions/-/babel-plugin-syntax-export-extensions-6.13.0.tgz", - "integrity": "sha1-cKFITw+QiaToStRLrDU8lbmxJyE=", - "dev": true - }, - "babel-plugin-syntax-function-bind": { - "version": "6.13.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-function-bind/-/babel-plugin-syntax-function-bind-6.13.0.tgz", - "integrity": "sha1-SMSV8Xe98xqYHnMvVa3AvdJgH0Y=", - "dev": true - }, - "babel-plugin-syntax-object-rest-spread": { - "version": "6.13.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz", - "integrity": "sha1-/WU28rzhODb/o6VFjEkDpZe7O/U=", - "dev": true - }, - "babel-plugin-syntax-trailing-function-commas": { - "version": "6.22.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-6.22.0.tgz", - "integrity": "sha1-ugNgk3+NBuQBgKQ/4NVhb/9TLPM=", - "dev": true - }, - "babel-plugin-transform-async-generator-functions": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-async-generator-functions/-/babel-plugin-transform-async-generator-functions-6.24.1.tgz", - "integrity": "sha1-8FiQAUX9PpkHpt3yjaWfIVJYpds=", - "dev": true, - "requires": { - "babel-helper-remap-async-to-generator": "^6.24.1", - "babel-plugin-syntax-async-generators": "^6.5.0", - "babel-runtime": "^6.22.0" - } - }, - "babel-plugin-transform-async-to-generator": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-async-to-generator/-/babel-plugin-transform-async-to-generator-6.24.1.tgz", - "integrity": "sha1-ZTbjeK/2yx1VF6wOQOs+n8jQh2E=", - "dev": true, - "requires": { - "babel-helper-remap-async-to-generator": "^6.24.1", - "babel-plugin-syntax-async-functions": "^6.8.0", - "babel-runtime": "^6.22.0" - } - }, - "babel-plugin-transform-class-constructor-call": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-class-constructor-call/-/babel-plugin-transform-class-constructor-call-6.24.1.tgz", - "integrity": "sha1-gNwoVQWsBn3LjWxl4vbxGrd2Xvk=", - "dev": true, - "requires": { - "babel-plugin-syntax-class-constructor-call": "^6.18.0", - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1" - } - }, - "babel-plugin-transform-class-properties": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-class-properties/-/babel-plugin-transform-class-properties-6.24.1.tgz", - "integrity": "sha1-anl2PqYdM9NvN7YRqp3vgagbRqw=", - "dev": true, - "requires": { - "babel-helper-function-name": "^6.24.1", - "babel-plugin-syntax-class-properties": "^6.8.0", - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1" - } - }, - "babel-plugin-transform-decorators": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-decorators/-/babel-plugin-transform-decorators-6.24.1.tgz", - "integrity": "sha1-eIAT2PjGtSIr33s0Q5Df13Vp4k0=", - "dev": true, - "requires": { - "babel-helper-explode-class": "^6.24.1", - "babel-plugin-syntax-decorators": "^6.13.0", - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1", - "babel-types": "^6.24.1" - } - }, - "babel-plugin-transform-do-expressions": { - "version": "6.22.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-do-expressions/-/babel-plugin-transform-do-expressions-6.22.0.tgz", - "integrity": "sha1-KMyvkoEtlJws0SgfaQyP3EaK6bs=", - "dev": true, - "requires": { - "babel-plugin-syntax-do-expressions": "^6.8.0", - "babel-runtime": "^6.22.0" - } - }, - "babel-plugin-transform-es2015-arrow-functions": { - "version": "6.22.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-arrow-functions/-/babel-plugin-transform-es2015-arrow-functions-6.22.0.tgz", - "integrity": "sha1-RSaSy3EdX3ncf4XkQM5BufJE0iE=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0" - } - }, - "babel-plugin-transform-es2015-block-scoped-functions": { - "version": "6.22.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-block-scoped-functions/-/babel-plugin-transform-es2015-block-scoped-functions-6.22.0.tgz", - "integrity": "sha1-u8UbSflk1wy42OC5ToICRs46YUE=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0" - } - }, - "babel-plugin-transform-es2015-block-scoping": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-block-scoping/-/babel-plugin-transform-es2015-block-scoping-6.26.0.tgz", - "integrity": "sha1-1w9SmcEwjQXBL0Y4E7CgnnOxiV8=", - "dev": true, - "requires": { - "babel-runtime": "^6.26.0", - "babel-template": "^6.26.0", - "babel-traverse": "^6.26.0", - "babel-types": "^6.26.0", - "lodash": "^4.17.4" - } - }, - "babel-plugin-transform-es2015-classes": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-classes/-/babel-plugin-transform-es2015-classes-6.24.1.tgz", - "integrity": "sha1-WkxYpQyclGHlZLSyo7+ryXolhNs=", - "dev": true, - "requires": { - "babel-helper-define-map": "^6.24.1", - "babel-helper-function-name": "^6.24.1", - "babel-helper-optimise-call-expression": "^6.24.1", - "babel-helper-replace-supers": "^6.24.1", - "babel-messages": "^6.23.0", - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1", - "babel-traverse": "^6.24.1", - "babel-types": "^6.24.1" - } - }, - "babel-plugin-transform-es2015-computed-properties": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-computed-properties/-/babel-plugin-transform-es2015-computed-properties-6.24.1.tgz", - "integrity": "sha1-b+Ko0WiV1WNPTNmZttNICjCBWbM=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1" - } - }, - "babel-plugin-transform-es2015-destructuring": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-destructuring/-/babel-plugin-transform-es2015-destructuring-6.23.0.tgz", - "integrity": "sha1-mXux8auWf2gtKwh2/jWNYOdlxW0=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0" - } - }, - "babel-plugin-transform-es2015-duplicate-keys": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-duplicate-keys/-/babel-plugin-transform-es2015-duplicate-keys-6.24.1.tgz", - "integrity": "sha1-c+s9MQypaePvnskcU3QabxV2Qj4=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0", - "babel-types": "^6.24.1" - } - }, - "babel-plugin-transform-es2015-for-of": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-for-of/-/babel-plugin-transform-es2015-for-of-6.23.0.tgz", - "integrity": "sha1-9HyVsrYT3x0+zC/bdXNiPHUkhpE=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0" - } - }, - "babel-plugin-transform-es2015-function-name": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-function-name/-/babel-plugin-transform-es2015-function-name-6.24.1.tgz", - "integrity": "sha1-g0yJhTvDaxrw86TF26qU/Y6sqos=", - "dev": true, - "requires": { - "babel-helper-function-name": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-types": "^6.24.1" - } - }, - "babel-plugin-transform-es2015-literals": { - "version": "6.22.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-literals/-/babel-plugin-transform-es2015-literals-6.22.0.tgz", - "integrity": "sha1-T1SgLWzWbPkVKAAZox0xklN3yi4=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0" - } - }, - "babel-plugin-transform-es2015-modules-amd": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-modules-amd/-/babel-plugin-transform-es2015-modules-amd-6.24.1.tgz", - "integrity": "sha1-Oz5UAXI5hC1tGcMBHEvS8AoA0VQ=", - "dev": true, - "requires": { - "babel-plugin-transform-es2015-modules-commonjs": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1" - } - }, - "babel-plugin-transform-es2015-modules-commonjs": { - "version": "6.26.2", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.26.2.tgz", - "integrity": "sha512-CV9ROOHEdrjcwhIaJNBGMBCodN+1cfkwtM1SbUHmvyy35KGT7fohbpOxkE2uLz1o6odKK2Ck/tz47z+VqQfi9Q==", - "dev": true, - "requires": { - "babel-plugin-transform-strict-mode": "^6.24.1", - "babel-runtime": "^6.26.0", - "babel-template": "^6.26.0", - "babel-types": "^6.26.0" - } - }, - "babel-plugin-transform-es2015-modules-systemjs": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-modules-systemjs/-/babel-plugin-transform-es2015-modules-systemjs-6.24.1.tgz", - "integrity": "sha1-/4mhQrkRmpBhlfXxBuzzBdlAfSM=", - "dev": true, - "requires": { - "babel-helper-hoist-variables": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1" - } - }, - "babel-plugin-transform-es2015-modules-umd": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-modules-umd/-/babel-plugin-transform-es2015-modules-umd-6.24.1.tgz", - "integrity": "sha1-rJl+YoXNGO1hdq22B9YCNErThGg=", - "dev": true, - "requires": { - "babel-plugin-transform-es2015-modules-amd": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1" - } - }, - "babel-plugin-transform-es2015-object-super": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-object-super/-/babel-plugin-transform-es2015-object-super-6.24.1.tgz", - "integrity": "sha1-JM72muIcuDp/hgPa0CH1cusnj40=", - "dev": true, - "requires": { - "babel-helper-replace-supers": "^6.24.1", - "babel-runtime": "^6.22.0" - } - }, - "babel-plugin-transform-es2015-parameters": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-parameters/-/babel-plugin-transform-es2015-parameters-6.24.1.tgz", - "integrity": "sha1-V6w1GrScrxSpfNE7CfZv3wpiXys=", - "dev": true, - "requires": { - "babel-helper-call-delegate": "^6.24.1", - "babel-helper-get-function-arity": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1", - "babel-traverse": "^6.24.1", - "babel-types": "^6.24.1" - } - }, - "babel-plugin-transform-es2015-shorthand-properties": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-shorthand-properties/-/babel-plugin-transform-es2015-shorthand-properties-6.24.1.tgz", - "integrity": "sha1-JPh11nIch2YbvZmkYi5R8U3jiqA=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0", - "babel-types": "^6.24.1" - } - }, - "babel-plugin-transform-es2015-spread": { - "version": "6.22.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-spread/-/babel-plugin-transform-es2015-spread-6.22.0.tgz", - "integrity": "sha1-1taKmfia7cRTbIGlQujdnxdG+NE=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0" - } - }, - "babel-plugin-transform-es2015-sticky-regex": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-sticky-regex/-/babel-plugin-transform-es2015-sticky-regex-6.24.1.tgz", - "integrity": "sha1-AMHNsaynERLN8M9hJsLta0V8zbw=", - "dev": true, - "requires": { - "babel-helper-regex": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-types": "^6.24.1" - } - }, - "babel-plugin-transform-es2015-template-literals": { - "version": "6.22.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-template-literals/-/babel-plugin-transform-es2015-template-literals-6.22.0.tgz", - "integrity": "sha1-qEs0UPfp+PH2g51taH2oS7EjbY0=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0" - } - }, - "babel-plugin-transform-es2015-typeof-symbol": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-typeof-symbol/-/babel-plugin-transform-es2015-typeof-symbol-6.23.0.tgz", - "integrity": "sha1-3sCfHN3/lLUqxz1QXITfWdzOs3I=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0" - } - }, - "babel-plugin-transform-es2015-unicode-regex": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-unicode-regex/-/babel-plugin-transform-es2015-unicode-regex-6.24.1.tgz", - "integrity": "sha1-04sS9C6nMj9yk4fxinxa4frrNek=", - "dev": true, - "requires": { - "babel-helper-regex": "^6.24.1", - "babel-runtime": "^6.22.0", - "regexpu-core": "^2.0.0" - } - }, - "babel-plugin-transform-exponentiation-operator": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-exponentiation-operator/-/babel-plugin-transform-exponentiation-operator-6.24.1.tgz", - "integrity": "sha1-KrDJx/MJj6SJB3cruBP+QejeOg4=", - "dev": true, - "requires": { - "babel-helper-builder-binary-assignment-operator-visitor": "^6.24.1", - "babel-plugin-syntax-exponentiation-operator": "^6.8.0", - "babel-runtime": "^6.22.0" - } - }, - "babel-plugin-transform-export-extensions": { - "version": "6.22.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-export-extensions/-/babel-plugin-transform-export-extensions-6.22.0.tgz", - "integrity": "sha1-U3OLR+deghhYnuqUbLvTkQm75lM=", - "dev": true, - "requires": { - "babel-plugin-syntax-export-extensions": "^6.8.0", - "babel-runtime": "^6.22.0" - } - }, - "babel-plugin-transform-function-bind": { - "version": "6.22.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-function-bind/-/babel-plugin-transform-function-bind-6.22.0.tgz", - "integrity": "sha1-xvuOlqwpajELjPjqQBRiQH3fapc=", - "dev": true, - "requires": { - "babel-plugin-syntax-function-bind": "^6.8.0", - "babel-runtime": "^6.22.0" - } - }, - "babel-plugin-transform-object-rest-spread": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-object-rest-spread/-/babel-plugin-transform-object-rest-spread-6.26.0.tgz", - "integrity": "sha1-DzZpLVD+9rfi1LOsFHgTepY7ewY=", - "dev": true, - "requires": { - "babel-plugin-syntax-object-rest-spread": "^6.8.0", - "babel-runtime": "^6.26.0" - } - }, - "babel-plugin-transform-regenerator": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-regenerator/-/babel-plugin-transform-regenerator-6.26.0.tgz", - "integrity": "sha1-4HA2lvveJ/Cj78rPi03KL3s6jy8=", - "dev": true, - "requires": { - "regenerator-transform": "^0.10.0" - } - }, - "babel-plugin-transform-strict-mode": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-strict-mode/-/babel-plugin-transform-strict-mode-6.24.1.tgz", - "integrity": "sha1-1fr3qleKZbvlkc9e2uBKDGcCB1g=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0", - "babel-types": "^6.24.1" - } - }, - "babel-polyfill": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-polyfill/-/babel-polyfill-6.26.0.tgz", - "integrity": "sha1-N5k3q8Z9eJWXCtxiHyhM2WbPIVM=", - "requires": { - "babel-runtime": "^6.26.0", - "core-js": "^2.5.0", - "regenerator-runtime": "^0.10.5" - }, - "dependencies": { - "regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=" - } - } - }, - "babel-preset-env": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/babel-preset-env/-/babel-preset-env-1.7.0.tgz", - "integrity": "sha512-9OR2afuKDneX2/q2EurSftUYM0xGu4O2D9adAhVfADDhrYDaxXV0rBbevVYoY9n6nyX1PmQW/0jtpJvUNr9CHg==", - "dev": true, - "requires": { - "babel-plugin-check-es2015-constants": "^6.22.0", - "babel-plugin-syntax-trailing-function-commas": "^6.22.0", - "babel-plugin-transform-async-to-generator": "^6.22.0", - "babel-plugin-transform-es2015-arrow-functions": "^6.22.0", - "babel-plugin-transform-es2015-block-scoped-functions": "^6.22.0", - "babel-plugin-transform-es2015-block-scoping": "^6.23.0", - "babel-plugin-transform-es2015-classes": "^6.23.0", - "babel-plugin-transform-es2015-computed-properties": "^6.22.0", - "babel-plugin-transform-es2015-destructuring": "^6.23.0", - "babel-plugin-transform-es2015-duplicate-keys": "^6.22.0", - "babel-plugin-transform-es2015-for-of": "^6.23.0", - "babel-plugin-transform-es2015-function-name": "^6.22.0", - "babel-plugin-transform-es2015-literals": "^6.22.0", - "babel-plugin-transform-es2015-modules-amd": "^6.22.0", - "babel-plugin-transform-es2015-modules-commonjs": "^6.23.0", - "babel-plugin-transform-es2015-modules-systemjs": "^6.23.0", - "babel-plugin-transform-es2015-modules-umd": "^6.23.0", - "babel-plugin-transform-es2015-object-super": "^6.22.0", - "babel-plugin-transform-es2015-parameters": "^6.23.0", - "babel-plugin-transform-es2015-shorthand-properties": "^6.22.0", - "babel-plugin-transform-es2015-spread": "^6.22.0", - "babel-plugin-transform-es2015-sticky-regex": "^6.22.0", - "babel-plugin-transform-es2015-template-literals": "^6.22.0", - "babel-plugin-transform-es2015-typeof-symbol": "^6.23.0", - "babel-plugin-transform-es2015-unicode-regex": "^6.22.0", - "babel-plugin-transform-exponentiation-operator": "^6.22.0", - "babel-plugin-transform-regenerator": "^6.22.0", - "browserslist": "^3.2.6", - "invariant": "^2.2.2", - "semver": "^5.3.0" - } - }, - "babel-preset-stage-0": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-preset-stage-0/-/babel-preset-stage-0-6.24.1.tgz", - "integrity": "sha1-VkLRUEL5E4TX5a+LyIsduVsDnmo=", - "dev": true, - "requires": { - "babel-plugin-transform-do-expressions": "^6.22.0", - "babel-plugin-transform-function-bind": "^6.22.0", - "babel-preset-stage-1": "^6.24.1" - } - }, - "babel-preset-stage-1": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-preset-stage-1/-/babel-preset-stage-1-6.24.1.tgz", - "integrity": "sha1-dpLNfc1oSZB+auSgqFWJz7niv7A=", - "dev": true, - "requires": { - "babel-plugin-transform-class-constructor-call": "^6.24.1", - "babel-plugin-transform-export-extensions": "^6.22.0", - "babel-preset-stage-2": "^6.24.1" - } - }, - "babel-preset-stage-2": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-preset-stage-2/-/babel-preset-stage-2-6.24.1.tgz", - "integrity": "sha1-2eKWD7PXEYfw5k7sYrwHdnIZvcE=", - "dev": true, - "requires": { - "babel-plugin-syntax-dynamic-import": "^6.18.0", - "babel-plugin-transform-class-properties": "^6.24.1", - "babel-plugin-transform-decorators": "^6.24.1", - "babel-preset-stage-3": "^6.24.1" - } - }, - "babel-preset-stage-3": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-preset-stage-3/-/babel-preset-stage-3-6.24.1.tgz", - "integrity": "sha1-g2raCp56f6N8sTj7kyb4eTSkg5U=", - "dev": true, - "requires": { - "babel-plugin-syntax-trailing-function-commas": "^6.22.0", - "babel-plugin-transform-async-generator-functions": "^6.24.1", - "babel-plugin-transform-async-to-generator": "^6.24.1", - "babel-plugin-transform-exponentiation-operator": "^6.24.1", - "babel-plugin-transform-object-rest-spread": "^6.22.0" - } - }, - "babel-register": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-register/-/babel-register-6.26.0.tgz", - "integrity": "sha1-btAhFz4vy0htestFxgCahW9kcHE=", - "requires": { - "babel-core": "^6.26.0", - "babel-runtime": "^6.26.0", - "core-js": "^2.5.0", - "home-or-tmp": "^2.0.0", - "lodash": "^4.17.4", - "mkdirp": "^0.5.1", - "source-map-support": "^0.4.15" - }, - "dependencies": { - "babel-core": { - "version": "6.26.3", - "resolved": "https://registry.npmjs.org/babel-core/-/babel-core-6.26.3.tgz", - "integrity": "sha512-6jyFLuDmeidKmUEb3NM+/yawG0M2bDZ9Z1qbZP59cyHLz8kYGKYwpJP0UwUKKUiTRNvxfLesJnTedqczP7cTDA==", - "requires": { - "babel-code-frame": "^6.26.0", - "babel-generator": "^6.26.0", - "babel-helpers": "^6.24.1", - "babel-messages": "^6.23.0", - "babel-register": "^6.26.0", - "babel-runtime": "^6.26.0", - "babel-template": "^6.26.0", - "babel-traverse": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "convert-source-map": "^1.5.1", - "debug": "^2.6.9", - "json5": "^0.5.1", - "lodash": "^4.17.4", - "minimatch": "^3.0.4", - "path-is-absolute": "^1.0.1", - "private": "^0.1.8", - "slash": "^1.0.0", - "source-map": "^0.5.7" - } - } - } - }, - "babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "babel-template": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-template/-/babel-template-6.26.0.tgz", - "integrity": "sha1-3gPi0WOWsGn0bdn/+FIfsaDjXgI=", - "requires": { - "babel-runtime": "^6.26.0", - "babel-traverse": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "lodash": "^4.17.4" - } - }, - "babel-traverse": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-traverse/-/babel-traverse-6.26.0.tgz", - "integrity": "sha1-RqnL1+3MYsjlwGTi0tjQ9ANXZu4=", - "requires": { - "babel-code-frame": "^6.26.0", - "babel-messages": "^6.23.0", - "babel-runtime": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "debug": "^2.6.8", - "globals": "^9.18.0", - "invariant": "^2.2.2", - "lodash": "^4.17.4" - } - }, - "babel-types": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.26.0.tgz", - "integrity": "sha1-o7Bz+Uq0nrb6Vc1lInozQ4BjJJc=", - "requires": { - "babel-runtime": "^6.26.0", - "esutils": "^2.0.2", - "lodash": "^4.17.4", - "to-fast-properties": "^1.0.3" - } - }, - "babylon": { - "version": "6.18.0", - "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz", - "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==" - }, - "balanced-match": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" - }, - "base": { - "version": "0.11.2", - "resolved": "https://registry.npmjs.org/base/-/base-0.11.2.tgz", - "integrity": "sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg==", - "requires": { - "cache-base": "^1.0.1", - "class-utils": "^0.3.5", - "component-emitter": "^1.2.1", - "define-property": "^1.0.0", - "isobject": "^3.0.1", - "mixin-deep": "^1.2.0", - "pascalcase": "^0.1.1" - }, - "dependencies": { - "define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", - "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", - "requires": { - "is-descriptor": "^1.0.0" - } - }, - "is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", - "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" - } - }, - "isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=" - }, - "kind-of": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", - "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==" - } - } - }, - "binary-extensions": { - "version": "1.12.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.12.0.tgz", - "integrity": "sha512-DYWGk01lDcxeS/K9IHPGWfT8PsJmbXRtRd2Sx72Tnb8pcYZQFF1oSDb8hJtS1vhp212q1Rzi5dUf9+nq0o9UIg==", - "optional": true - }, - "brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "braces": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/braces/-/braces-1.8.5.tgz", - "integrity": "sha1-uneWLhLf+WnWt2cR6RS3N4V79qc=", - "optional": true, - "requires": { - "expand-range": "^1.8.1", - "preserve": "^0.2.0", - "repeat-element": "^1.1.2" - } - }, - "browser-stdout": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", - "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", - "dev": true - }, - "browserslist": { - "version": "3.2.8", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-3.2.8.tgz", - "integrity": "sha512-WHVocJYavUwVgVViC0ORikPHQquXwVh939TaelZ4WDqpWgTX/FsGhl/+P4qBUAGcRvtOgDgC+xftNWWp2RUTAQ==", - "dev": true, - "requires": { - "caniuse-lite": "^1.0.30000844", - "electron-to-chromium": "^1.3.47" - } - }, - "cache-base": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/cache-base/-/cache-base-1.0.1.tgz", - "integrity": "sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==", - "requires": { - "collection-visit": "^1.0.0", - "component-emitter": "^1.2.1", - "get-value": "^2.0.6", - "has-value": "^1.0.0", - "isobject": "^3.0.1", - "set-value": "^2.0.0", - "to-object-path": "^0.3.0", - "union-value": "^1.0.0", - "unset-value": "^1.0.0" - }, - "dependencies": { - "isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=" - } - } - }, - "caniuse-lite": { - "version": "1.0.30000930", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30000930.tgz", - "integrity": "sha512-KD+pw9DderBLB8CGqBzYyFWpnrPVOEjsjargU/CvkNyg60od3cxSPTcTeMPhxJhDbkQPWvOz5BAyBzNl/St9vg==", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - } - }, - "chokidar": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-1.7.0.tgz", - "integrity": "sha1-eY5ol3gVHIB2tLNg5e3SjNortGg=", - "optional": true, - "requires": { - "anymatch": "^1.3.0", - "async-each": "^1.0.0", - "fsevents": "^1.0.0", - "glob-parent": "^2.0.0", - "inherits": "^2.0.1", - "is-binary-path": "^1.0.0", - "is-glob": "^2.0.0", - "path-is-absolute": "^1.0.0", - "readdirp": "^2.0.0" - } - }, - "class-utils": { - "version": "0.3.6", - "resolved": "https://registry.npmjs.org/class-utils/-/class-utils-0.3.6.tgz", - "integrity": "sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==", - "requires": { - "arr-union": "^3.1.0", - "define-property": "^0.2.5", - "isobject": "^3.0.0", - "static-extend": "^0.1.1" - }, - "dependencies": { - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "requires": { - "is-descriptor": "^0.1.0" - } - }, - "isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=" - } - } - }, - "collection-visit": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz", - "integrity": "sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA=", - "requires": { - "map-visit": "^1.0.0", - "object-visit": "^1.0.0" - } - }, - "combined-stream": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.7.tgz", - "integrity": "sha512-brWl9y6vOB1xYPZcpZde3N9zDByXTosAeMDo4p1wzo6UMOX4vumB+TP1RZ76sfE6Md68Q0NJSrE/gbezd4Ul+w==", - "requires": { - "delayed-stream": "~1.0.0" - } - }, - "commander": { - "version": "2.19.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.19.0.tgz", - "integrity": "sha512-6tvAOO+D6OENvRAh524Dh9jcfKTYDQAqvqezbCW82xj5X0pSrcpxtvRKHLG0yBY6SD7PSDrJaj+0AiOcKVd1Xg==" - }, - "component-emitter": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.2.1.tgz", - "integrity": "sha1-E3kY1teCg/ffemt8WmPhQOaUJeY=" - }, - "concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" - }, - "convert-source-map": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.6.0.tgz", - "integrity": "sha512-eFu7XigvxdZ1ETfbgPBohgyQ/Z++C0eEhTor0qRwBw9unw+L0/6V8wkSuGgzdThkiS5lSpdptOQPD8Ak40a+7A==", - "requires": { - "safe-buffer": "~5.1.1" - } - }, - "cookiejar": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/cookiejar/-/cookiejar-2.1.2.tgz", - "integrity": "sha512-Mw+adcfzPxcPeI+0WlvRrr/3lGVO0bD75SxX6811cxSh1Wbxx7xZBGK1eVtDf6si8rg2lhnUjsVLMFMfbRIuwA==" - }, - "copy-descriptor": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz", - "integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=" - }, - "core-js": { - "version": "2.6.3", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.3.tgz", - "integrity": "sha512-l00tmFFZOBHtYhN4Cz7k32VM7vTn3rE2ANjQDxdEN6zmXZ/xq1jQuutnmHvMG1ZJ7xd72+TA5YpUK8wz3rWsfQ==" - }, - "core-util-is": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", - "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" - }, - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "requires": { - "ms": "2.0.0" - } - }, - "decode-uri-component": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz", - "integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=" - }, - "define-property": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz", - "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==", - "requires": { - "is-descriptor": "^1.0.2", - "isobject": "^3.0.1" - }, - "dependencies": { - "is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", - "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" - } - }, - "isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=" - }, - "kind-of": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", - "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==" - } - } - }, - "delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=" - }, - "detect-indent": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-4.0.0.tgz", - "integrity": "sha1-920GQ1LN9Docts5hnE7jqUdd4gg=", - "requires": { - "repeating": "^2.0.0" - } - }, - "diff": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", - "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", - "dev": true - }, - "electron-to-chromium": { - "version": "1.3.106", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.106.tgz", - "integrity": "sha512-eXX45p4q9CRxG0G8D3ZBZYSdN3DnrcZfrFvt6VUr1u7aKITEtRY/xwWzJ/UZcWXa7DMqPu/pYwuZ6Nm+bl0GmA==", - "dev": true - }, - "escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" - }, - "esutils": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.2.tgz", - "integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=" - }, - "expand-brackets": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-0.1.5.tgz", - "integrity": "sha1-3wcoTjQqgHzXM6xa9yQR5YHRF3s=", - "optional": true, - "requires": { - "is-posix-bracket": "^0.1.0" - } - }, - "expand-range": { - "version": "1.8.2", - "resolved": "https://registry.npmjs.org/expand-range/-/expand-range-1.8.2.tgz", - "integrity": "sha1-opnv/TNf4nIeuujiV+x5ZE/IUzc=", - "optional": true, - "requires": { - "fill-range": "^2.1.0" - } - }, - "expect.js": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/expect.js/-/expect.js-0.3.1.tgz", - "integrity": "sha1-sKWaDS7/VDdUTr8M6qYBWEHQm1s=", - "dev": true - }, - "extend": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", - "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" - }, - "extend-shallow": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", - "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", - "requires": { - "assign-symbols": "^1.0.0", - "is-extendable": "^1.0.1" - }, - "dependencies": { - "is-extendable": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", - "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", - "requires": { - "is-plain-object": "^2.0.4" - } - } - } - }, - "extglob": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/extglob/-/extglob-0.3.2.tgz", - "integrity": "sha1-Lhj/PS9JqydlzskCPwEdqo2DSaE=", - "optional": true, - "requires": { - "is-extglob": "^1.0.0" - } - }, - "filename-regex": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/filename-regex/-/filename-regex-2.0.1.tgz", - "integrity": "sha1-wcS5vuPglyXdsQa3XB4wH+LxiyY=", - "optional": true - }, - "fill-range": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-2.2.4.tgz", - "integrity": "sha512-cnrcCbj01+j2gTG921VZPnHbjmdAf8oQV/iGeV2kZxGSyfYjjTyY79ErsK1WJWMpw6DaApEX72binqJE+/d+5Q==", - "optional": true, - "requires": { - "is-number": "^2.1.0", - "isobject": "^2.0.0", - "randomatic": "^3.0.0", - "repeat-element": "^1.1.2", - "repeat-string": "^1.5.2" - } - }, - "for-in": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", - "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=" - }, - "for-own": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/for-own/-/for-own-0.1.5.tgz", - "integrity": "sha1-UmXGgaTylNq78XyVCbZ2OqhFEM4=", - "optional": true, - "requires": { - "for-in": "^1.0.1" - } - }, - "form-data": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", - "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", - "requires": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.6", - "mime-types": "^2.1.12" - } - }, - "formatio": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/formatio/-/formatio-1.1.1.tgz", - "integrity": "sha1-XtPM1jZVEJc4NGXZlhmRAOhhYek=", - "dev": true, - "requires": { - "samsam": "~1.1" - } - }, - "formidable": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/formidable/-/formidable-1.2.1.tgz", - "integrity": "sha512-Fs9VRguL0gqGHkXS5GQiMCr1VhZBxz0JnJs4JmMp/2jL18Fmbzvv7vOFRU+U8TBkHEE/CX1qDXzJplVULgsLeg==" - }, - "fragment-cache": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz", - "integrity": "sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk=", - "requires": { - "map-cache": "^0.2.2" - } - }, - "fs-readdir-recursive": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/fs-readdir-recursive/-/fs-readdir-recursive-1.1.0.tgz", - "integrity": "sha512-GNanXlVr2pf02+sPN40XN8HG+ePaNcvM0q5mZBd668Obwb0yD5GiUbZOFgwn8kGMY6I3mdyDJzieUy3PTYyTRA==" - }, - "fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" - }, - "fsevents": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.7.tgz", - "integrity": "sha512-Pxm6sI2MeBD7RdD12RYsqaP0nMiwx8eZBXCa6z2L+mRHm2DYrOYwihmhjpkdjUHwQhslWQjRpEgNq4XvBmaAuw==", - "optional": true, - "requires": { - "nan": "^2.9.2", - "node-pre-gyp": "^0.10.0" - }, - "dependencies": { - "abbrev": { - "version": "1.1.1", - "bundled": true, - "optional": true - }, - "ansi-regex": { - "version": "2.1.1", - "bundled": true - }, - "aproba": { - "version": "1.2.0", - "bundled": true, - "optional": true - }, - "are-we-there-yet": { - "version": "1.1.5", - "bundled": true, - "optional": true, - "requires": { - "delegates": "^1.0.0", - "readable-stream": "^2.0.6" - } - }, - "balanced-match": { - "version": "1.0.0", - "bundled": true - }, - "brace-expansion": { - "version": "1.1.11", - "bundled": true, - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "chownr": { - "version": "1.1.1", - "bundled": true, - "optional": true - }, - "code-point-at": { - "version": "1.1.0", - "bundled": true - }, - "concat-map": { - "version": "0.0.1", - "bundled": true - }, - "console-control-strings": { - "version": "1.1.0", - "bundled": true - }, - "core-util-is": { - "version": "1.0.2", - "bundled": true, - "optional": true - }, - "debug": { - "version": "2.6.9", - "bundled": true, - "optional": true, - "requires": { - "ms": "2.0.0" - } - }, - "deep-extend": { - "version": "0.6.0", - "bundled": true, - "optional": true - }, - "delegates": { - "version": "1.0.0", - "bundled": true, - "optional": true - }, - "detect-libc": { - "version": "1.0.3", - "bundled": true, - "optional": true - }, - "fs-minipass": { - "version": "1.2.5", - "bundled": true, - "optional": true, - "requires": { - "minipass": "^2.2.1" - } - }, - "fs.realpath": { - "version": "1.0.0", - "bundled": true, - "optional": true - }, - "gauge": { - "version": "2.7.4", - "bundled": true, - "optional": true, - "requires": { - "aproba": "^1.0.3", - "console-control-strings": "^1.0.0", - "has-unicode": "^2.0.0", - "object-assign": "^4.1.0", - "signal-exit": "^3.0.0", - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1", - "wide-align": "^1.1.0" - } - }, - "glob": { - "version": "7.1.3", - "bundled": true, - "optional": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "has-unicode": { - "version": "2.0.1", - "bundled": true, - "optional": true - }, - "iconv-lite": { - "version": "0.4.24", - "bundled": true, - "optional": true, - "requires": { - "safer-buffer": ">= 2.1.2 < 3" - } - }, - "ignore-walk": { - "version": "3.0.1", - "bundled": true, - "optional": true, - "requires": { - "minimatch": "^3.0.4" - } - }, - "inflight": { - "version": "1.0.6", - "bundled": true, - "optional": true, - "requires": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "inherits": { - "version": "2.0.3", - "bundled": true - }, - "ini": { - "version": "1.3.5", - "bundled": true, - "optional": true - }, - "is-fullwidth-code-point": { - "version": "1.0.0", - "bundled": true, - "requires": { - "number-is-nan": "^1.0.0" - } - }, - "isarray": { - "version": "1.0.0", - "bundled": true, - "optional": true - }, - "minimatch": { - "version": "3.0.4", - "bundled": true, - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "minimist": { - "version": "0.0.8", - "bundled": true - }, - "minipass": { - "version": "2.3.5", - "bundled": true, - "requires": { - "safe-buffer": "^5.1.2", - "yallist": "^3.0.0" - } - }, - "minizlib": { - "version": "1.2.1", - "bundled": true, - "optional": true, - "requires": { - "minipass": "^2.2.1" - } - }, - "mkdirp": { - "version": "0.5.1", - "bundled": true, - "requires": { - "minimist": "0.0.8" - } - }, - "ms": { - "version": "2.0.0", - "bundled": true, - "optional": true - }, - "needle": { - "version": "2.2.4", - "bundled": true, - "optional": true, - "requires": { - "debug": "^2.1.2", - "iconv-lite": "^0.4.4", - "sax": "^1.2.4" - } - }, - "node-pre-gyp": { - "version": "0.10.3", - "bundled": true, - "optional": true, - "requires": { - "detect-libc": "^1.0.2", - "mkdirp": "^0.5.1", - "needle": "^2.2.1", - "nopt": "^4.0.1", - "npm-packlist": "^1.1.6", - "npmlog": "^4.0.2", - "rc": "^1.2.7", - "rimraf": "^2.6.1", - "semver": "^5.3.0", - "tar": "^4" - } - }, - "nopt": { - "version": "4.0.1", - "bundled": true, - "optional": true, - "requires": { - "abbrev": "1", - "osenv": "^0.1.4" - } - }, - "npm-bundled": { - "version": "1.0.5", - "bundled": true, - "optional": true - }, - "npm-packlist": { - "version": "1.2.0", - "bundled": true, - "optional": true, - "requires": { - "ignore-walk": "^3.0.1", - "npm-bundled": "^1.0.1" - } - }, - "npmlog": { - "version": "4.1.2", - "bundled": true, - "optional": true, - "requires": { - "are-we-there-yet": "~1.1.2", - "console-control-strings": "~1.1.0", - "gauge": "~2.7.3", - "set-blocking": "~2.0.0" - } - }, - "number-is-nan": { - "version": "1.0.1", - "bundled": true - }, - "object-assign": { - "version": "4.1.1", - "bundled": true, - "optional": true - }, - "once": { - "version": "1.4.0", - "bundled": true, - "requires": { - "wrappy": "1" - } - }, - "os-homedir": { - "version": "1.0.2", - "bundled": true, - "optional": true - }, - "os-tmpdir": { - "version": "1.0.2", - "bundled": true, - "optional": true - }, - "osenv": { - "version": "0.1.5", - "bundled": true, - "optional": true, - "requires": { - "os-homedir": "^1.0.0", - "os-tmpdir": "^1.0.0" - } - }, - "path-is-absolute": { - "version": "1.0.1", - "bundled": true, - "optional": true - }, - "process-nextick-args": { - "version": "2.0.0", - "bundled": true, - "optional": true - }, - "rc": { - "version": "1.2.8", - "bundled": true, - "optional": true, - "requires": { - "deep-extend": "^0.6.0", - "ini": "~1.3.0", - "minimist": "^1.2.0", - "strip-json-comments": "~2.0.1" - }, - "dependencies": { - "minimist": { - "version": "1.2.0", - "bundled": true, - "optional": true - } - } - }, - "readable-stream": { - "version": "2.3.6", - "bundled": true, - "optional": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "rimraf": { - "version": "2.6.3", - "bundled": true, - "optional": true, - "requires": { - "glob": "^7.1.3" - } - }, - "safe-buffer": { - "version": "5.1.2", - "bundled": true - }, - "safer-buffer": { - "version": "2.1.2", - "bundled": true, - "optional": true - }, - "sax": { - "version": "1.2.4", - "bundled": true, - "optional": true - }, - "semver": { - "version": "5.6.0", - "bundled": true, - "optional": true - }, - "set-blocking": { - "version": "2.0.0", - "bundled": true, - "optional": true - }, - "signal-exit": { - "version": "3.0.2", - "bundled": true, - "optional": true - }, - "string-width": { - "version": "1.0.2", - "bundled": true, - "requires": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" - } - }, - "string_decoder": { - "version": "1.1.1", - "bundled": true, - "optional": true, - "requires": { - "safe-buffer": "~5.1.0" - } - }, - "strip-ansi": { - "version": "3.0.1", - "bundled": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "strip-json-comments": { - "version": "2.0.1", - "bundled": true, - "optional": true - }, - "tar": { - "version": "4.4.8", - "bundled": true, - "optional": true, - "requires": { - "chownr": "^1.1.1", - "fs-minipass": "^1.2.5", - "minipass": "^2.3.4", - "minizlib": "^1.1.1", - "mkdirp": "^0.5.0", - "safe-buffer": "^5.1.2", - "yallist": "^3.0.2" - } - }, - "util-deprecate": { - "version": "1.0.2", - "bundled": true, - "optional": true - }, - "wide-align": { - "version": "1.1.3", - "bundled": true, - "optional": true, - "requires": { - "string-width": "^1.0.2 || 2" - } - }, - "wrappy": { - "version": "1.0.2", - "bundled": true - }, - "yallist": { - "version": "3.0.3", - "bundled": true - } - } - }, - "get-value": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz", - "integrity": "sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=" - }, - "glob": { - "version": "7.1.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", - "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "glob-base": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/glob-base/-/glob-base-0.3.0.tgz", - "integrity": "sha1-27Fk9iIbHAscz4Kuoyi0l98Oo8Q=", - "optional": true, - "requires": { - "glob-parent": "^2.0.0", - "is-glob": "^2.0.0" - } - }, - "glob-parent": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-2.0.0.tgz", - "integrity": "sha1-gTg9ctsFT8zPUzbaqQLxgvbtuyg=", - "requires": { - "is-glob": "^2.0.0" - } - }, - "globals": { - "version": "9.18.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-9.18.0.tgz", - "integrity": "sha512-S0nG3CLEQiY/ILxqtztTWH/3iRRdyBLw6KMDxnKMchrtbj2OFmehVh0WUCfW3DUrIgx/qFrJPICrq4Z4sTR9UQ==" - }, - "graceful-fs": { - "version": "4.1.15", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.15.tgz", - "integrity": "sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA==" - }, - "growl": { - "version": "1.10.5", - "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz", - "integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==", - "dev": true - }, - "has-ansi": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", - "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true - }, - "has-value": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-value/-/has-value-1.0.0.tgz", - "integrity": "sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc=", - "requires": { - "get-value": "^2.0.6", - "has-values": "^1.0.0", - "isobject": "^3.0.0" - }, - "dependencies": { - "isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=" - } - } - }, - "has-values": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-values/-/has-values-1.0.0.tgz", - "integrity": "sha1-lbC2P+whRmGab+V/51Yo1aOe/k8=", - "requires": { - "is-number": "^3.0.0", - "kind-of": "^4.0.0" - }, - "dependencies": { - "is-number": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", - "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "kind-of": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz", - "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=", - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "he": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/he/-/he-1.1.1.tgz", - "integrity": "sha1-k0EP0hsAlzUVH4howvJx80J+I/0=", - "dev": true - }, - "home-or-tmp": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/home-or-tmp/-/home-or-tmp-2.0.0.tgz", - "integrity": "sha1-42w/LSyufXRqhX440Y1fMqeILbg=", - "requires": { - "os-homedir": "^1.0.0", - "os-tmpdir": "^1.0.1" - } - }, - "inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "requires": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" - }, - "invariant": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", - "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", - "requires": { - "loose-envify": "^1.0.0" - } - }, - "is-accessor-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", - "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", - "requires": { - "kind-of": "^3.0.2" - } - }, - "is-binary-path": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-1.0.1.tgz", - "integrity": "sha1-dfFmQrSA8YenEcgUFh/TpKdlWJg=", - "optional": true, - "requires": { - "binary-extensions": "^1.0.0" - } - }, - "is-buffer": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", - "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==" - }, - "is-data-descriptor": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", - "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", - "requires": { - "kind-of": "^3.0.2" - } - }, - "is-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", - "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", - "requires": { - "is-accessor-descriptor": "^0.1.6", - "is-data-descriptor": "^0.1.4", - "kind-of": "^5.0.0" - }, - "dependencies": { - "kind-of": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", - "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==" - } - } - }, - "is-dotfile": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/is-dotfile/-/is-dotfile-1.0.3.tgz", - "integrity": "sha1-pqLzL/0t+wT1yiXs0Pa4PPeYoeE=", - "optional": true - }, - "is-equal-shallow": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz", - "integrity": "sha1-IjgJj8Ih3gvPpdnqxMRdY4qhxTQ=", - "optional": true, - "requires": { - "is-primitive": "^2.0.0" - } - }, - "is-extendable": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=" - }, - "is-extglob": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", - "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=" - }, - "is-finite": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-finite/-/is-finite-1.0.2.tgz", - "integrity": "sha1-zGZ3aVYCvlUO8R6LSqYwU0K20Ko=", - "requires": { - "number-is-nan": "^1.0.0" - } - }, - "is-glob": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", - "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", - "requires": { - "is-extglob": "^1.0.0" - } - }, - "is-number": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz", - "integrity": "sha1-Afy7s5NGOlSPL0ZszhbezknbkI8=", - "optional": true, - "requires": { - "kind-of": "^3.0.2" - } - }, - "is-plain-object": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", - "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", - "requires": { - "isobject": "^3.0.1" - }, - "dependencies": { - "isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=" - } - } - }, - "is-posix-bracket": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz", - "integrity": "sha1-MzTceXdDaOkvAW5vvAqI9c1ua8Q=", - "optional": true - }, - "is-primitive": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-primitive/-/is-primitive-2.0.0.tgz", - "integrity": "sha1-IHurkWOEmcB7Kt8kCkGochADRXU=", - "optional": true - }, - "is-windows": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", - "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", - "optional": true - }, - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" - }, - "isobject": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", - "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", - "optional": true, - "requires": { - "isarray": "1.0.0" - } - }, - "js-tokens": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz", - "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=" - }, - "jsesc": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-1.3.0.tgz", - "integrity": "sha1-RsP+yMGJKxKwgz25vHYiF226s0s=" - }, - "json5": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-0.5.1.tgz", - "integrity": "sha1-Hq3nrMASA0rYTiOWdn6tn6VJWCE=" - }, - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "requires": { - "is-buffer": "^1.1.5" - } - }, - "lodash": { - "version": "4.17.11", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", - "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==" - }, - "lolex": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/lolex/-/lolex-1.3.2.tgz", - "integrity": "sha1-fD2mL/yzDw9agKJWbKJORdigHzE=", - "dev": true - }, - "loose-envify": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", - "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", - "requires": { - "js-tokens": "^3.0.0 || ^4.0.0" - } - }, - "map-cache": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz", - "integrity": "sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8=" - }, - "map-visit": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/map-visit/-/map-visit-1.0.0.tgz", - "integrity": "sha1-7Nyo8TFE5mDxtb1B8S80edmN+48=", - "requires": { - "object-visit": "^1.0.0" - } - }, - "math-random": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/math-random/-/math-random-1.0.4.tgz", - "integrity": "sha512-rUxjysqif/BZQH2yhd5Aaq7vXMSx9NdEsQcyA07uEzIvxgI7zIr33gGsh+RU0/XjmQpCW7RsVof1vlkvQVCK5A==", - "optional": true - }, - "methods": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", - "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=" - }, - "micromatch": { - "version": "2.3.11", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-2.3.11.tgz", - "integrity": "sha1-hmd8l9FyCzY0MdBNDRUpO9OMFWU=", - "optional": true, - "requires": { - "arr-diff": "^2.0.0", - "array-unique": "^0.2.1", - "braces": "^1.8.2", - "expand-brackets": "^0.1.4", - "extglob": "^0.3.1", - "filename-regex": "^2.0.0", - "is-extglob": "^1.0.0", - "is-glob": "^2.0.1", - "kind-of": "^3.0.2", - "normalize-path": "^2.0.1", - "object.omit": "^2.0.0", - "parse-glob": "^3.0.4", - "regex-cache": "^0.4.2" - } - }, - "mime": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", - "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==" - }, - "mime-db": { - "version": "1.37.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.37.0.tgz", - "integrity": "sha512-R3C4db6bgQhlIhPU48fUtdVmKnflq+hRdad7IyKhtFj06VPNVdk2RhiYL3UjQIlso8L+YxAtFkobT0VK+S/ybg==" - }, - "mime-types": { - "version": "2.1.21", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.21.tgz", - "integrity": "sha512-3iL6DbwpyLzjR3xHSFNFeb9Nz/M8WDkX33t1GFQnFOllWk8pOrh/LSrB5OXlnlW5P9LH73X6loW/eogc+F5lJg==", - "requires": { - "mime-db": "~1.37.0" - } - }, - "minimatch": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "minimist": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=" - }, - "mixin-deep": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.1.tgz", - "integrity": "sha512-8ZItLHeEgaqEvd5lYBXfm4EZSFCX29Jb9K+lAHhDKzReKBQKj3R+7NOF6tjqYi9t4oI8VUfaWITJQm86wnXGNQ==", - "requires": { - "for-in": "^1.0.2", - "is-extendable": "^1.0.1" - }, - "dependencies": { - "is-extendable": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", - "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", - "requires": { - "is-plain-object": "^2.0.4" - } - } - } - }, - "mkdirp": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", - "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", - "requires": { - "minimist": "0.0.8" - } - }, - "mocha": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/mocha/-/mocha-5.2.0.tgz", - "integrity": "sha512-2IUgKDhc3J7Uug+FxMXuqIyYzH7gJjXECKe/w43IGgQHTSj3InJi+yAA7T24L9bQMRKiUEHxEX37G5JpVUGLcQ==", - "dev": true, - "requires": { - "browser-stdout": "1.3.1", - "commander": "2.15.1", - "debug": "3.1.0", - "diff": "3.5.0", - "escape-string-regexp": "1.0.5", - "glob": "7.1.2", - "growl": "1.10.5", - "he": "1.1.1", - "minimatch": "3.0.4", - "mkdirp": "0.5.1", - "supports-color": "5.4.0" - }, - "dependencies": { - "commander": { - "version": "2.15.1", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.15.1.tgz", - "integrity": "sha512-VlfT9F3V0v+jr4yxPc5gg9s62/fIVWsd2Bk2iD435um1NlGMYdVCq+MjcXnhYq2icNOizHr1kK+5TI6H0Hy0ag==", - "dev": true - }, - "debug": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", - "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "glob": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", - "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", - "dev": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "supports-color": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz", - "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" - }, - "nan": { - "version": "2.12.1", - "resolved": "https://registry.npmjs.org/nan/-/nan-2.12.1.tgz", - "integrity": "sha512-JY7V6lRkStKcKTvHO5NVSQRv+RV+FIL5pvDoLiAtSL9pKlC5x9PKQcZDsq7m4FO4d57mkhC6Z+QhAh3Jdk5JFw==", - "optional": true - }, - "nanomatch": { - "version": "1.2.13", - "resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz", - "integrity": "sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA==", - "optional": true, - "requires": { - "arr-diff": "^4.0.0", - "array-unique": "^0.3.2", - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "fragment-cache": "^0.2.1", - "is-windows": "^1.0.2", - "kind-of": "^6.0.2", - "object.pick": "^1.3.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" - }, - "dependencies": { - "arr-diff": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", - "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=", - "optional": true - }, - "array-unique": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", - "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=", - "optional": true - }, - "kind-of": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", - "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", - "optional": true - } - } - }, - "normalize-path": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", - "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", - "requires": { - "remove-trailing-separator": "^1.0.1" - } - }, - "number-is-nan": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", - "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=" - }, - "object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" - }, - "object-copy": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/object-copy/-/object-copy-0.1.0.tgz", - "integrity": "sha1-fn2Fi3gb18mRpBupde04EnVOmYw=", - "requires": { - "copy-descriptor": "^0.1.0", - "define-property": "^0.2.5", - "kind-of": "^3.0.3" - }, - "dependencies": { - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "requires": { - "is-descriptor": "^0.1.0" - } - } - } - }, - "object-visit": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/object-visit/-/object-visit-1.0.1.tgz", - "integrity": "sha1-95xEk68MU3e1n+OdOV5BBC3QRbs=", - "requires": { - "isobject": "^3.0.0" - }, - "dependencies": { - "isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=" - } - } - }, - "object.omit": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/object.omit/-/object.omit-2.0.1.tgz", - "integrity": "sha1-Gpx0SCnznbuFjHbKNXmuKlTr0fo=", - "optional": true, - "requires": { - "for-own": "^0.1.4", - "is-extendable": "^0.1.1" - } - }, - "object.pick": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", - "integrity": "sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c=", - "requires": { - "isobject": "^3.0.1" - }, - "dependencies": { - "isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=" - } - } - }, - "once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "requires": { - "wrappy": "1" - } - }, - "os-homedir": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", - "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=" - }, - "os-tmpdir": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", - "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=" - }, - "output-file-sync": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/output-file-sync/-/output-file-sync-1.1.2.tgz", - "integrity": "sha1-0KM+7+YaIF+suQCS6CZZjVJFznY=", - "requires": { - "graceful-fs": "^4.1.4", - "mkdirp": "^0.5.1", - "object-assign": "^4.1.0" - } - }, - "parse-glob": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/parse-glob/-/parse-glob-3.0.4.tgz", - "integrity": "sha1-ssN2z7EfNVE7rdFz7wu246OIORw=", - "optional": true, - "requires": { - "glob-base": "^0.3.0", - "is-dotfile": "^1.0.0", - "is-extglob": "^1.0.0", - "is-glob": "^2.0.0" - } - }, - "pascalcase": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/pascalcase/-/pascalcase-0.1.1.tgz", - "integrity": "sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ=" - }, - "path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" - }, - "posix-character-classes": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz", - "integrity": "sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=", - "optional": true - }, - "preserve": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/preserve/-/preserve-0.2.0.tgz", - "integrity": "sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks=", - "optional": true - }, - "private": { - "version": "0.1.8", - "resolved": "https://registry.npmjs.org/private/-/private-0.1.8.tgz", - "integrity": "sha512-VvivMrbvd2nKkiG38qjULzlc+4Vx4wm/whI9pQD35YrARNnhxeiRktSOhSukRLFNlzg6Br/cJPet5J/u19r/mg==" - }, - "process-nextick-args": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", - "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==" - }, - "qs": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.6.0.tgz", - "integrity": "sha512-KIJqT9jQJDQx5h5uAVPimw6yVg2SekOKu959OCtktD3FjzbpvaPr8i4zzg07DOMz+igA4W/aNM7OV8H37pFYfA==" - }, - "randomatic": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-3.1.1.tgz", - "integrity": "sha512-TuDE5KxZ0J461RVjrJZCJc+J+zCkTb1MbH9AQUq68sMhOMcy9jLcb3BrZKgp9q9Ncltdg4QVqWrH02W2EFFVYw==", - "optional": true, - "requires": { - "is-number": "^4.0.0", - "kind-of": "^6.0.0", - "math-random": "^1.0.1" - }, - "dependencies": { - "is-number": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-4.0.0.tgz", - "integrity": "sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ==", - "optional": true - }, - "kind-of": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", - "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", - "optional": true - } - } - }, - "readable-stream": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", - "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "readdirp": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-2.2.1.tgz", - "integrity": "sha512-1JU/8q+VgFZyxwrJ+SVIOsh+KywWGpds3NTqikiKpDMZWScmAYyKIgqkO+ARvNWJfXeXR1zxz7aHF4u4CyH6vQ==", - "optional": true, - "requires": { - "graceful-fs": "^4.1.11", - "micromatch": "^3.1.10", - "readable-stream": "^2.0.2" - }, - "dependencies": { - "arr-diff": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", - "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=", - "optional": true - }, - "array-unique": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", - "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=" - }, - "braces": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", - "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", - "optional": true, - "requires": { - "arr-flatten": "^1.1.0", - "array-unique": "^0.3.2", - "extend-shallow": "^2.0.1", - "fill-range": "^4.0.0", - "isobject": "^3.0.1", - "repeat-element": "^1.1.2", - "snapdragon": "^0.8.1", - "snapdragon-node": "^2.0.1", - "split-string": "^3.0.2", - "to-regex": "^3.0.1" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "optional": true, - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "expand-brackets": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", - "integrity": "sha1-t3c14xXOMPa27/D4OwQVGiJEliI=", - "optional": true, - "requires": { - "debug": "^2.3.3", - "define-property": "^0.2.5", - "extend-shallow": "^2.0.1", - "posix-character-classes": "^0.1.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" - }, - "dependencies": { - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "optional": true, - "requires": { - "is-descriptor": "^0.1.0" - } - }, - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "optional": true, - "requires": { - "is-extendable": "^0.1.0" - } - }, - "is-accessor-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", - "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", - "optional": true, - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "optional": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "is-data-descriptor": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", - "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", - "optional": true, - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "optional": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "is-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", - "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", - "optional": true, - "requires": { - "is-accessor-descriptor": "^0.1.6", - "is-data-descriptor": "^0.1.4", - "kind-of": "^5.0.0" - } - }, - "kind-of": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", - "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", - "optional": true - } - } - }, - "extglob": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", - "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==", - "optional": true, - "requires": { - "array-unique": "^0.3.2", - "define-property": "^1.0.0", - "expand-brackets": "^2.1.4", - "extend-shallow": "^2.0.1", - "fragment-cache": "^0.2.1", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" - }, - "dependencies": { - "define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", - "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", - "optional": true, - "requires": { - "is-descriptor": "^1.0.0" - } - }, - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "optional": true, - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "fill-range": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", - "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", - "optional": true, - "requires": { - "extend-shallow": "^2.0.1", - "is-number": "^3.0.0", - "repeat-string": "^1.6.1", - "to-regex-range": "^2.1.0" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "optional": true, - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "optional": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "optional": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", - "optional": true, - "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" - } - }, - "is-number": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", - "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", - "optional": true, - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "optional": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", - "optional": true - }, - "kind-of": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", - "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==" - }, - "micromatch": { - "version": "3.1.10", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", - "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", - "optional": true, - "requires": { - "arr-diff": "^4.0.0", - "array-unique": "^0.3.2", - "braces": "^2.3.1", - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "extglob": "^2.0.4", - "fragment-cache": "^0.2.1", - "kind-of": "^6.0.2", - "nanomatch": "^1.2.9", - "object.pick": "^1.3.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.2" - } - } - } - }, - "regenerate": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.0.tgz", - "integrity": "sha512-1G6jJVDWrt0rK99kBjvEtziZNCICAuvIPkSiUFIQxVP06RCVpq3dmDo2oi6ABpYaDYaTRr67BEhL8r1wgEZZKg==", - "dev": true - }, - "regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==" - }, - "regenerator-transform": { - "version": "0.10.1", - "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.10.1.tgz", - "integrity": "sha512-PJepbvDbuK1xgIgnau7Y90cwaAmO/LCLMI2mPvaXq2heGMR3aWW5/BQvYrhJ8jgmQjXewXvBjzfqKcVOmhjZ6Q==", - "dev": true, - "requires": { - "babel-runtime": "^6.18.0", - "babel-types": "^6.19.0", - "private": "^0.1.6" - } - }, - "regex-cache": { - "version": "0.4.4", - "resolved": "https://registry.npmjs.org/regex-cache/-/regex-cache-0.4.4.tgz", - "integrity": "sha512-nVIZwtCjkC9YgvWkpM55B5rBhBYRZhAaJbgcFYXXsHnbZ9UZI9nnVWYZpBlCqv9ho2eZryPnWrZGsOdPwVWXWQ==", - "optional": true, - "requires": { - "is-equal-shallow": "^0.1.3" - } - }, - "regex-not": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/regex-not/-/regex-not-1.0.2.tgz", - "integrity": "sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A==", - "requires": { - "extend-shallow": "^3.0.2", - "safe-regex": "^1.1.0" - } - }, - "regexpu-core": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-2.0.0.tgz", - "integrity": "sha1-SdA4g3uNz4v6W5pCE5k45uoq4kA=", - "dev": true, - "requires": { - "regenerate": "^1.2.1", - "regjsgen": "^0.2.0", - "regjsparser": "^0.1.4" - } - }, - "regjsgen": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.2.0.tgz", - "integrity": "sha1-bAFq3qxVT3WCP+N6wFuS1aTtsfc=", - "dev": true - }, - "regjsparser": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.1.5.tgz", - "integrity": "sha1-fuj4Tcb6eS0/0K4ijSS9lJ6tIFw=", - "dev": true, - "requires": { - "jsesc": "~0.5.0" - }, - "dependencies": { - "jsesc": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", - "integrity": "sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0=", - "dev": true - } - } - }, - "remove-trailing-separator": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", - "integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=" - }, - "repeat-element": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.3.tgz", - "integrity": "sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g==" - }, - "repeat-string": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", - "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=" - }, - "repeating": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/repeating/-/repeating-2.0.1.tgz", - "integrity": "sha1-UhTFOpJtNVJwdSf7q0FdvAjQbdo=", - "requires": { - "is-finite": "^1.0.0" - } - }, - "resolve-url": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz", - "integrity": "sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=" - }, - "ret": { - "version": "0.1.15", - "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz", - "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==" - }, - "safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" - }, - "safe-regex": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", - "integrity": "sha1-QKNmnzsHfR6UPURinhV91IAjvy4=", - "requires": { - "ret": "~0.1.10" - } - }, - "samsam": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/samsam/-/samsam-1.1.2.tgz", - "integrity": "sha1-vsEf3IOp/aBjQBIQ5AF2wwJNFWc=", - "dev": true - }, - "semver": { - "version": "5.6.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.6.0.tgz", - "integrity": "sha512-RS9R6R35NYgQn++fkDWaOmqGoj4Ek9gGs+DPxNUZKuwE183xjJroKvyo1IzVFeXvUrvmALy6FWD5xrdJT25gMg==", - "dev": true - }, - "set-value": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-value/-/set-value-2.0.0.tgz", - "integrity": "sha512-hw0yxk9GT/Hr5yJEYnHNKYXkIA8mVJgd9ditYZCe16ZczcaELYYcfvaXesNACk2O8O0nTiPQcQhGUQj8JLzeeg==", - "requires": { - "extend-shallow": "^2.0.1", - "is-extendable": "^0.1.1", - "is-plain-object": "^2.0.3", - "split-string": "^3.0.1" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "sinon": { - "version": "1.17.3", - "resolved": "https://registry.npmjs.org/sinon/-/sinon-1.17.3.tgz", - "integrity": "sha1-RNZLx0jQI4gARsFUPO/Oo0xH0X4=", - "dev": true, - "requires": { - "formatio": "1.1.1", - "lolex": "1.3.2", - "samsam": "1.1.2", - "util": ">=0.10.3 <1" - } - }, - "slash": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-1.0.0.tgz", - "integrity": "sha1-xB8vbDn8FtHNF61LXYlhFK5HDVU=" - }, - "snapdragon": { - "version": "0.8.2", - "resolved": "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz", - "integrity": "sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg==", - "requires": { - "base": "^0.11.1", - "debug": "^2.2.0", - "define-property": "^0.2.5", - "extend-shallow": "^2.0.1", - "map-cache": "^0.2.2", - "source-map": "^0.5.6", - "source-map-resolve": "^0.5.0", - "use": "^3.1.0" - }, - "dependencies": { - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "requires": { - "is-descriptor": "^0.1.0" - } - }, - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "snapdragon-node": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/snapdragon-node/-/snapdragon-node-2.1.1.tgz", - "integrity": "sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw==", - "optional": true, - "requires": { - "define-property": "^1.0.0", - "isobject": "^3.0.0", - "snapdragon-util": "^3.0.1" - }, - "dependencies": { - "define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", - "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", - "optional": true, - "requires": { - "is-descriptor": "^1.0.0" - } - }, - "is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "optional": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "optional": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", - "optional": true, - "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" - } - }, - "isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", - "optional": true - }, - "kind-of": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", - "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==" - } - } - }, - "snapdragon-util": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-3.0.1.tgz", - "integrity": "sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ==", - "optional": true, - "requires": { - "kind-of": "^3.2.0" - } - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=" - }, - "source-map-resolve": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.2.tgz", - "integrity": "sha512-MjqsvNwyz1s0k81Goz/9vRBe9SZdB09Bdw+/zYyO+3CuPk6fouTaxscHkgtE8jKvf01kVfl8riHzERQ/kefaSA==", - "requires": { - "atob": "^2.1.1", - "decode-uri-component": "^0.2.0", - "resolve-url": "^0.2.1", - "source-map-url": "^0.4.0", - "urix": "^0.1.0" - } - }, - "source-map-support": { - "version": "0.4.18", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.4.18.tgz", - "integrity": "sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA==", - "requires": { - "source-map": "^0.5.6" - } - }, - "source-map-url": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.0.tgz", - "integrity": "sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM=" - }, - "split-string": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz", - "integrity": "sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==", - "requires": { - "extend-shallow": "^3.0.0" - } - }, - "static-extend": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz", - "integrity": "sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY=", - "requires": { - "define-property": "^0.2.5", - "object-copy": "^0.1.0" - }, - "dependencies": { - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "requires": { - "is-descriptor": "^0.1.0" - } - } - } - }, - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "requires": { - "safe-buffer": "~5.1.0" - } - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "superagent": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/superagent/-/superagent-3.7.0.tgz", - "integrity": "sha512-/8trxO6NbLx4YXb7IeeFTSmsQ35pQBiTBsLNvobZx7qBzBeHYvKCyIIhW2gNcWbLzYxPAjdgFbiepd8ypwC0Gw==", - "requires": { - "component-emitter": "^1.2.0", - "cookiejar": "^2.1.0", - "debug": "^3.1.0", - "extend": "^3.0.0", - "form-data": "^2.3.1", - "formidable": "^1.1.1", - "methods": "^1.1.1", - "mime": "^1.4.1", - "qs": "^6.5.1", - "readable-stream": "^2.0.5" - }, - "dependencies": { - "debug": { - "version": "3.2.6", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", - "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", - "requires": { - "ms": "^2.1.1" - } - }, - "ms": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", - "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==" - } - } - }, - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=" - }, - "to-fast-properties": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.3.tgz", - "integrity": "sha1-uDVx+k2MJbguIxsG46MFXeTKGkc=" - }, - "to-object-path": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", - "integrity": "sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68=", - "requires": { - "kind-of": "^3.0.2" - } - }, - "to-regex": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/to-regex/-/to-regex-3.0.2.tgz", - "integrity": "sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==", - "requires": { - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "regex-not": "^1.0.2", - "safe-regex": "^1.1.0" - } - }, - "to-regex-range": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", - "integrity": "sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg=", - "optional": true, - "requires": { - "is-number": "^3.0.0", - "repeat-string": "^1.6.1" - }, - "dependencies": { - "is-number": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", - "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", - "optional": true, - "requires": { - "kind-of": "^3.0.2" - } - } - } - }, - "trim-right": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/trim-right/-/trim-right-1.0.1.tgz", - "integrity": "sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM=" - }, - "union-value": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.0.tgz", - "integrity": "sha1-XHHDTLW61dzr4+oM0IIHulqhrqQ=", - "requires": { - "arr-union": "^3.1.0", - "get-value": "^2.0.6", - "is-extendable": "^0.1.1", - "set-value": "^0.4.3" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "requires": { - "is-extendable": "^0.1.0" - } - }, - "set-value": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/set-value/-/set-value-0.4.3.tgz", - "integrity": "sha1-fbCPnT0i3H945Trzw79GZuzfzPE=", - "requires": { - "extend-shallow": "^2.0.1", - "is-extendable": "^0.1.1", - "is-plain-object": "^2.0.1", - "to-object-path": "^0.3.0" - } - } - } - }, - "unset-value": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unset-value/-/unset-value-1.0.0.tgz", - "integrity": "sha1-g3aHP30jNRef+x5vw6jtDfyKtVk=", - "requires": { - "has-value": "^0.3.1", - "isobject": "^3.0.0" - }, - "dependencies": { - "has-value": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/has-value/-/has-value-0.3.1.tgz", - "integrity": "sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8=", - "requires": { - "get-value": "^2.0.3", - "has-values": "^0.1.4", - "isobject": "^2.0.0" - }, - "dependencies": { - "isobject": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", - "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", - "requires": { - "isarray": "1.0.0" - } - } - } - }, - "has-values": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/has-values/-/has-values-0.1.4.tgz", - "integrity": "sha1-bWHeldkd/Km5oCCJrThL/49it3E=" - }, - "isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=" - } - } - }, - "urix": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/urix/-/urix-0.1.0.tgz", - "integrity": "sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=" - }, - "use": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz", - "integrity": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==" - }, - "user-home": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/user-home/-/user-home-1.1.1.tgz", - "integrity": "sha1-K1viOjK2Onyd640PKNSFcko98ZA=" - }, - "util": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/util/-/util-0.11.1.tgz", - "integrity": "sha512-HShAsny+zS2TZfaXxD9tYj4HQGlBezXZMZuM/S5PKLLoZkShZiGk9o5CzukI1LVHZvjdvZ2Sj1aW/Ndn2NB/HQ==", - "dev": true, - "requires": { - "inherits": "2.0.3" - } - }, - "util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" - }, - "v8flags": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/v8flags/-/v8flags-2.1.1.tgz", - "integrity": "sha1-qrGh+jDUX4jdMhFIh1rALAtV5bQ=", - "requires": { - "user-home": "^1.1.1" - } - }, - "wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" - } - } -} diff --git a/samples/openapi3/client/petstore/javascript-es6/pom.xml b/samples/openapi3/client/petstore/javascript-es6/pom.xml deleted file mode 100644 index dc2e0fa9a9e8..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/pom.xml +++ /dev/null @@ -1,45 +0,0 @@ - - 4.0.0 - org.openapitools - openapi-v3-petstore-javascript-es6 - pom - 1.0-SNAPSHOT - OpenAPI v3 Petstore JS Client (ES6) - - - - org.codehaus.mojo - exec-maven-plugin - 1.2.1 - - - npm-install - pre-integration-test - - exec - - - npm - - install - - - - - mocha - integration-test - - exec - - - npm - - test - - - - - - - - diff --git a/samples/openapi3/client/petstore/javascript-es6/src/ApiClient.js b/samples/openapi3/client/petstore/javascript-es6/src/ApiClient.js index 83cba1cae1a3..91fef65f79b8 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/ApiClient.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/ApiClient.js @@ -363,7 +363,7 @@ class ApiClient { * @param {Array.} accepts An array of acceptable response MIME types. * @param {(String|Array|ObjectFunction)} returnType The required type to return; can be a string for simple types or the * constructor for a complex type. - * @param {String} apiBasePath base path defined in the operation/path level to override the default one + * @param {String} apiBasePath base path defined in the operation/path level to override the default one * @param {module:ApiClient~callApiCallback} callback The callback function. * @returns {Object} The SuperAgent request object. */ diff --git a/samples/openapi3/client/petstore/javascript-es6/src/api/FakeApi.js b/samples/openapi3/client/petstore/javascript-es6/src/api/FakeApi.js index b779413c5a33..83c4437a592e 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/api/FakeApi.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/api/FakeApi.js @@ -17,6 +17,7 @@ import Client from '../model/Client'; import FileSchemaTestClass from '../model/FileSchemaTestClass'; import HealthCheckResult from '../model/HealthCheckResult'; import OuterComposite from '../model/OuterComposite'; +import Pet from '../model/Pet'; import User from '../model/User'; /** @@ -74,6 +75,52 @@ export default class FakeApi { ); } + /** + * Callback function to receive the result of the fakeHttpSignatureTest operation. + * @callback module:api/FakeApi~fakeHttpSignatureTestCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * test http signature authentication + * @param {module:model/Pet} pet Pet object that needs to be added to the store + * @param {Object} opts Optional parameters + * @param {String} opts.query1 query parameter + * @param {String} opts.header1 header parameter + * @param {module:api/FakeApi~fakeHttpSignatureTestCallback} callback The callback function, accepting three arguments: error, data, response + */ + fakeHttpSignatureTest(pet, opts, callback) { + opts = opts || {}; + let postBody = pet; + // verify the required parameter 'pet' is set + if (pet === undefined || pet === null) { + throw new Error("Missing the required parameter 'pet' when calling fakeHttpSignatureTest"); + } + + let pathParams = { + }; + let queryParams = { + 'query_1': opts['query1'] + }; + let headerParams = { + 'header_1': opts['header1'] + }; + let formParams = { + }; + + let authNames = ['http_signature_test']; + let contentTypes = ['application/json', 'application/xml']; + let accepts = []; + let returnType = null; + return this.apiClient.callApi( + '/fake/http-signature-test', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + /** * Callback function to receive the result of the fakeOuterBooleanSerialize operation. * @callback module:api/FakeApi~fakeOuterBooleanSerializeCallback @@ -642,5 +689,70 @@ export default class FakeApi { ); } + /** + * Callback function to receive the result of the testQueryParameterCollectionFormat operation. + * @callback module:api/FakeApi~testQueryParameterCollectionFormatCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * To test the collection format in query parameters + * @param {Array.} pipe + * @param {Array.} ioutil + * @param {Array.} http + * @param {Array.} url + * @param {Array.} context + * @param {module:api/FakeApi~testQueryParameterCollectionFormatCallback} callback The callback function, accepting three arguments: error, data, response + */ + testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, callback) { + let postBody = null; + // verify the required parameter 'pipe' is set + if (pipe === undefined || pipe === null) { + throw new Error("Missing the required parameter 'pipe' when calling testQueryParameterCollectionFormat"); + } + // verify the required parameter 'ioutil' is set + if (ioutil === undefined || ioutil === null) { + throw new Error("Missing the required parameter 'ioutil' when calling testQueryParameterCollectionFormat"); + } + // verify the required parameter 'http' is set + if (http === undefined || http === null) { + throw new Error("Missing the required parameter 'http' when calling testQueryParameterCollectionFormat"); + } + // verify the required parameter 'url' is set + if (url === undefined || url === null) { + throw new Error("Missing the required parameter 'url' when calling testQueryParameterCollectionFormat"); + } + // verify the required parameter 'context' is set + if (context === undefined || context === null) { + throw new Error("Missing the required parameter 'context' when calling testQueryParameterCollectionFormat"); + } + + let pathParams = { + }; + let queryParams = { + 'pipe': this.apiClient.buildCollectionParam(pipe, 'multi'), + 'ioutil': this.apiClient.buildCollectionParam(ioutil, 'csv'), + 'http': this.apiClient.buildCollectionParam(http, 'space'), + 'url': this.apiClient.buildCollectionParam(url, 'csv'), + 'context': this.apiClient.buildCollectionParam(context, 'multi') + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = []; + let contentTypes = []; + let accepts = []; + let returnType = null; + return this.apiClient.callApi( + '/fake/test-query-paramters', 'PUT', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + } diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/TypeHolderDefault.js b/samples/openapi3/client/petstore/javascript-es6/src/model/TypeHolderDefault.js deleted file mode 100644 index 819ef864a5c6..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/TypeHolderDefault.js +++ /dev/null @@ -1,115 +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 TypeHolderDefault model module. - * @module model/TypeHolderDefault - * @version 1.0.0 - */ -class TypeHolderDefault { - /** - * Constructs a new TypeHolderDefault. - * @alias module:model/TypeHolderDefault - * @param stringItem {String} - * @param numberItem {Number} - * @param integerItem {Number} - * @param boolItem {Boolean} - * @param arrayItem {Array.} - */ - constructor(stringItem, numberItem, integerItem, boolItem, arrayItem) { - - TypeHolderDefault.initialize(this, stringItem, numberItem, integerItem, boolItem, arrayItem); - } - - /** - * 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, stringItem, numberItem, integerItem, boolItem, arrayItem) { - obj['string_item'] = stringItem; - obj['number_item'] = numberItem; - obj['integer_item'] = integerItem; - obj['bool_item'] = boolItem; - obj['array_item'] = arrayItem; - } - - /** - * Constructs a TypeHolderDefault 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/TypeHolderDefault} obj Optional instance to populate. - * @return {module:model/TypeHolderDefault} The populated TypeHolderDefault instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new TypeHolderDefault(); - - if (data.hasOwnProperty('string_item')) { - obj['string_item'] = ApiClient.convertToType(data['string_item'], 'String'); - } - if (data.hasOwnProperty('number_item')) { - obj['number_item'] = ApiClient.convertToType(data['number_item'], 'Number'); - } - if (data.hasOwnProperty('integer_item')) { - obj['integer_item'] = ApiClient.convertToType(data['integer_item'], 'Number'); - } - if (data.hasOwnProperty('bool_item')) { - obj['bool_item'] = ApiClient.convertToType(data['bool_item'], 'Boolean'); - } - if (data.hasOwnProperty('array_item')) { - obj['array_item'] = ApiClient.convertToType(data['array_item'], ['Number']); - } - } - return obj; - } - - -} - -/** - * @member {String} string_item - * @default 'what' - */ -TypeHolderDefault.prototype['string_item'] = 'what'; - -/** - * @member {Number} number_item - */ -TypeHolderDefault.prototype['number_item'] = undefined; - -/** - * @member {Number} integer_item - */ -TypeHolderDefault.prototype['integer_item'] = undefined; - -/** - * @member {Boolean} bool_item - * @default true - */ -TypeHolderDefault.prototype['bool_item'] = true; - -/** - * @member {Array.} array_item - */ -TypeHolderDefault.prototype['array_item'] = undefined; - - - - - - -export default TypeHolderDefault; - diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/TypeHolderExample.js b/samples/openapi3/client/petstore/javascript-es6/src/model/TypeHolderExample.js deleted file mode 100644 index 3eeced56961a..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/TypeHolderExample.js +++ /dev/null @@ -1,113 +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 TypeHolderExample model module. - * @module model/TypeHolderExample - * @version 1.0.0 - */ -class TypeHolderExample { - /** - * Constructs a new TypeHolderExample. - * @alias module:model/TypeHolderExample - * @param stringItem {String} - * @param numberItem {Number} - * @param integerItem {Number} - * @param boolItem {Boolean} - * @param arrayItem {Array.} - */ - constructor(stringItem, numberItem, integerItem, boolItem, arrayItem) { - - TypeHolderExample.initialize(this, stringItem, numberItem, integerItem, boolItem, arrayItem); - } - - /** - * 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, stringItem, numberItem, integerItem, boolItem, arrayItem) { - obj['string_item'] = stringItem; - obj['number_item'] = numberItem; - obj['integer_item'] = integerItem; - obj['bool_item'] = boolItem; - obj['array_item'] = arrayItem; - } - - /** - * Constructs a TypeHolderExample 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/TypeHolderExample} obj Optional instance to populate. - * @return {module:model/TypeHolderExample} The populated TypeHolderExample instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new TypeHolderExample(); - - if (data.hasOwnProperty('string_item')) { - obj['string_item'] = ApiClient.convertToType(data['string_item'], 'String'); - } - if (data.hasOwnProperty('number_item')) { - obj['number_item'] = ApiClient.convertToType(data['number_item'], 'Number'); - } - if (data.hasOwnProperty('integer_item')) { - obj['integer_item'] = ApiClient.convertToType(data['integer_item'], 'Number'); - } - if (data.hasOwnProperty('bool_item')) { - obj['bool_item'] = ApiClient.convertToType(data['bool_item'], 'Boolean'); - } - if (data.hasOwnProperty('array_item')) { - obj['array_item'] = ApiClient.convertToType(data['array_item'], ['Number']); - } - } - return obj; - } - - -} - -/** - * @member {String} string_item - */ -TypeHolderExample.prototype['string_item'] = undefined; - -/** - * @member {Number} number_item - */ -TypeHolderExample.prototype['number_item'] = undefined; - -/** - * @member {Number} integer_item - */ -TypeHolderExample.prototype['integer_item'] = undefined; - -/** - * @member {Boolean} bool_item - */ -TypeHolderExample.prototype['bool_item'] = undefined; - -/** - * @member {Array.} array_item - */ -TypeHolderExample.prototype['array_item'] = undefined; - - - - - - -export default TypeHolderExample; - diff --git a/samples/openapi3/client/petstore/javascript-es6/test/ApiClientTest.js b/samples/openapi3/client/petstore/javascript-es6/test/ApiClientTest.js deleted file mode 100644 index 00629d52d2b5..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/ApiClientTest.js +++ /dev/null @@ -1,423 +0,0 @@ -if (typeof module === 'object' && module.exports) { - var expect = require('expect.js'); - var OpenAPIPetstore = require('../src/index'); - var sinon = require('sinon'); -} - -var apiClient = OpenAPIPetstore.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'}, - bearer_test: {type: 'bearer'}, - 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 OpenAPIPetstore.ApiClient; - expect(newClient.basePath).to.be('http://petstore.swagger.io:80/v2'); - expect(newClient.buildUrl('/abc', {})).to.be('http://petstore.swagger.io:80/v2/abc'); - - 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('multipleServers', function() { - describe('host settings', function() { - var hosts = apiClient.hostSettings(); - it('should have proper 1st URL', function() { - expect(hosts[0]['url']).to.be('http://{server}.swagger.io:{port}/v2'); - expect(hosts[0]['variables']['server']['default_value']).to.be('petstore'); - }); - - it('should have proper 2nd URL', function() { - expect(hosts[1]['url']).to.be('https://localhost:8080/{version}'); - expect(hosts[1]['variables']['version']['default_value']).to.be('v2'); - }); - }); - - describe('get host from settings', function() { - it('should have correct default URL', function() { - expect(apiClient.getBasePathFromSettings(0)).to.be('http://petstore.swagger.io:80/v2'); - }); - - it('should have correct URL with port 8080', function() { - expect(apiClient.getBasePathFromSettings(0, {'port': '8080'})).to.be('http://petstore.swagger.io:8080/v2'); - }); - - it('should have correct URL with port 8080 and dev-petstore', function() { - expect(apiClient.getBasePathFromSettings(0, {'server': 'dev-petstore', 'port': '8080'})).to.be('http://dev-petstore.swagger.io:8080/v2'); - }); - }); - }); - - 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 OpenAPIPetstore.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 OpenAPIPetstore.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 OpenAPIPetstore.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/openapi3/client/petstore/javascript-es6/test/api/AnotherFakeApi.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/api/AnotherFakeApi.spec.js index 750840784236..3212de66056c 100644 --- a/samples/openapi3/client/petstore/javascript-es6/test/api/AnotherFakeApi.spec.js +++ b/samples/openapi3/client/petstore/javascript-es6/test/api/AnotherFakeApi.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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/openapi3/client/petstore/javascript-es6/test/api/DefaultApi.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/api/DefaultApi.spec.js index 5d37f0a2e1f8..34ef8d5c2e0c 100644 --- a/samples/openapi3/client/petstore/javascript-es6/test/api/DefaultApi.spec.js +++ b/samples/openapi3/client/petstore/javascript-es6/test/api/DefaultApi.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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/openapi3/client/petstore/javascript-es6/test/api/FakeApi.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/api/FakeApi.spec.js index 7931dbdd6c8d..7c9f5a71e55e 100644 --- a/samples/openapi3/client/petstore/javascript-es6/test/api/FakeApi.spec.js +++ b/samples/openapi3/client/petstore/javascript-es6/test/api/FakeApi.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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,26 @@ } describe('FakeApi', function() { + describe('fakeHealthGet', function() { + it('should call fakeHealthGet successfully', function(done) { + //uncomment below and update the code to test fakeHealthGet + //instance.fakeHealthGet(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('fakeHttpSignatureTest', function() { + it('should call fakeHttpSignatureTest successfully', function(done) { + //uncomment below and update the code to test fakeHttpSignatureTest + //instance.fakeHttpSignatureTest(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 +108,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 +158,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 @@ -148,6 +188,16 @@ done(); }); }); + describe('testQueryParameterCollectionFormat', function() { + it('should call testQueryParameterCollectionFormat successfully', function(done) { + //uncomment below and update the code to test testQueryParameterCollectionFormat + //instance.testQueryParameterCollectionFormat(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); }); })); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/api/FakeClassnameTags123Api.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/api/FakeClassnameTags123Api.spec.js index a9f0780a18fd..ebe401b08d9a 100644 --- a/samples/openapi3/client/petstore/javascript-es6/test/api/FakeClassnameTags123Api.spec.js +++ b/samples/openapi3/client/petstore/javascript-es6/test/api/FakeClassnameTags123Api.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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/openapi3/client/petstore/javascript-es6/test/api/PetApi.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/api/PetApi.spec.js index 49dcc0605816..16591a407d97 100644 --- a/samples/openapi3/client/petstore/javascript-es6/test/api/PetApi.spec.js +++ b/samples/openapi3/client/petstore/javascript-es6/test/api/PetApi.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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); @@ -25,10 +25,10 @@ }(this, function(expect, OpenApiPetstore) { 'use strict'; - var api_instance; + var instance; beforeEach(function() { - api_instance = new OpenApiPetstore.PetApi(); + instance = new OpenApiPetstore.PetApi(); }); var getProperty = function(object, getter, property) { @@ -47,56 +47,7 @@ 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) { - this.timeout(15000); - var pet = createRandomPet(); - try { - //api_instance.addPet(pet, {_base_path_index: 1}, function(error) { - api_instance.addPet(pet, null, function(error) { - if (error) throw error; - - api_instance.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_instance.deletePet(pet.id); - done(); - }); - }); - } catch (error) { - done(error); - } - }); describe('addPet', function() { it('should call addPet successfully', function(done) { //uncomment below and update the code to test addPet @@ -177,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/openapi3/client/petstore/javascript-es6/test/api/StoreApi.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/api/StoreApi.spec.js index cd542e15f5d1..2ad9823032b7 100644 --- a/samples/openapi3/client/petstore/javascript-es6/test/api/StoreApi.spec.js +++ b/samples/openapi3/client/petstore/javascript-es6/test/api/StoreApi.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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/openapi3/client/petstore/javascript-es6/test/api/UserApi.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/api/UserApi.spec.js index c5ba7e4e4bc0..feab9370b16f 100644 --- a/samples/openapi3/client/petstore/javascript-es6/test/api/UserApi.spec.js +++ b/samples/openapi3/client/petstore/javascript-es6/test/api/UserApi.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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/openapi3/client/petstore/javascript-es6/test/model/AdditionalPropertiesClass.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/AdditionalPropertiesClass.spec.js index 4c472d5ac5f3..d316c448dd51 100644 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/AdditionalPropertiesClass.spec.js +++ b/samples/openapi3/client/petstore/javascript-es6/test/model/AdditionalPropertiesClass.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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/openapi3/client/petstore/javascript-es6/test/model/Animal.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/Animal.spec.js index dbe9ef41d144..cc729e13ba08 100644 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/Animal.spec.js +++ b/samples/openapi3/client/petstore/javascript-es6/test/model/Animal.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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/openapi3/client/petstore/javascript-es6/test/model/ApiResponse.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/ApiResponse.spec.js index 1165094a73c0..e9da1c397490 100644 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/ApiResponse.spec.js +++ b/samples/openapi3/client/petstore/javascript-es6/test/model/ApiResponse.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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/openapi3/client/petstore/javascript-es6/test/model/ArrayOfArrayOfNumberOnly.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/ArrayOfArrayOfNumberOnly.spec.js index f30c53f5ed65..8c1cdf356fc6 100644 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/ArrayOfArrayOfNumberOnly.spec.js +++ b/samples/openapi3/client/petstore/javascript-es6/test/model/ArrayOfArrayOfNumberOnly.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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/openapi3/client/petstore/javascript-es6/test/model/ArrayOfNumberOnly.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/ArrayOfNumberOnly.spec.js index 6c2bc8807d93..70dc490e4584 100644 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/ArrayOfNumberOnly.spec.js +++ b/samples/openapi3/client/petstore/javascript-es6/test/model/ArrayOfNumberOnly.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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/openapi3/client/petstore/javascript-es6/test/model/ArrayTest.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/ArrayTest.spec.js index ab9294b159cd..3df2ea0d575a 100644 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/ArrayTest.spec.js +++ b/samples/openapi3/client/petstore/javascript-es6/test/model/ArrayTest.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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/openapi3/client/petstore/javascript-es6/test/model/Capitalization.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/Capitalization.spec.js index 8be47e3e132d..dcb9d6d182e0 100644 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/Capitalization.spec.js +++ b/samples/openapi3/client/petstore/javascript-es6/test/model/Capitalization.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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/openapi3/client/petstore/javascript-es6/test/model/Cat.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/Cat.spec.js index 99b7496450db..1b7182a13022 100644 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/Cat.spec.js +++ b/samples/openapi3/client/petstore/javascript-es6/test/model/Cat.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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/openapi3/client/petstore/javascript-es6/test/model/Category.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/Category.spec.js index 2a02a9e4708b..e0a992aa512a 100644 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/Category.spec.js +++ b/samples/openapi3/client/petstore/javascript-es6/test/model/Category.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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/openapi3/client/petstore/javascript-es6/test/model/ClassModel.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/ClassModel.spec.js index d87a995d19b6..0f2d200d0ba2 100644 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/ClassModel.spec.js +++ b/samples/openapi3/client/petstore/javascript-es6/test/model/ClassModel.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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/openapi3/client/petstore/javascript-es6/test/model/Client.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/Client.spec.js index 182ad6244341..49a4400987bc 100644 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/Client.spec.js +++ b/samples/openapi3/client/petstore/javascript-es6/test/model/Client.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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/openapi3/client/petstore/javascript-es6/test/model/Dog.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/Dog.spec.js index 13d1584d01a0..eb919428d2fa 100644 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/Dog.spec.js +++ b/samples/openapi3/client/petstore/javascript-es6/test/model/Dog.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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/openapi3/client/petstore/javascript-es6/test/model/EnumArrays.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/EnumArrays.spec.js index dae8d83d7f2a..d176bddbafd1 100644 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/EnumArrays.spec.js +++ b/samples/openapi3/client/petstore/javascript-es6/test/model/EnumArrays.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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/openapi3/client/petstore/javascript-es6/test/model/EnumClass.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/EnumClass.spec.js index eb5a1117918f..92ceee37ad30 100644 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/EnumClass.spec.js +++ b/samples/openapi3/client/petstore/javascript-es6/test/model/EnumClass.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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/openapi3/client/petstore/javascript-es6/test/model/EnumTest.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/EnumTest.spec.js index 6d7c2519e684..fdfd70a772ee 100644 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/EnumTest.spec.js +++ b/samples/openapi3/client/petstore/javascript-es6/test/model/EnumTest.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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); @@ -84,6 +84,24 @@ //expect(instance).to.be(); }); + it('should have the property outerEnumInteger (base name: "outerEnumInteger")', function() { + // uncomment below and update the code to test the property outerEnumInteger + //var instane = new OpenApiPetstore.EnumTest(); + //expect(instance).to.be(); + }); + + it('should have the property outerEnumDefaultValue (base name: "outerEnumDefaultValue")', function() { + // uncomment below and update the code to test the property outerEnumDefaultValue + //var instane = new OpenApiPetstore.EnumTest(); + //expect(instance).to.be(); + }); + + it('should have the property outerEnumIntegerDefaultValue (base name: "outerEnumIntegerDefaultValue")', function() { + // uncomment below and update the code to test the property outerEnumIntegerDefaultValue + //var instane = new OpenApiPetstore.EnumTest(); + //expect(instance).to.be(); + }); + }); })); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/File.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/File.spec.js index 10666dc53c7c..4be82b5b488d 100644 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/File.spec.js +++ b/samples/openapi3/client/petstore/javascript-es6/test/model/File.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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/openapi3/client/petstore/javascript-es6/test/model/FileSchemaTestClass.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/FileSchemaTestClass.spec.js index d6e49689d232..31c80909bff9 100644 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/FileSchemaTestClass.spec.js +++ b/samples/openapi3/client/petstore/javascript-es6/test/model/FileSchemaTestClass.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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/openapi3/client/petstore/javascript-es6/test/model/Foo.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/Foo.spec.js index 19023af6f106..7460803792c8 100644 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/Foo.spec.js +++ b/samples/openapi3/client/petstore/javascript-es6/test/model/Foo.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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/openapi3/client/petstore/javascript-es6/test/model/FormatTest.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/FormatTest.spec.js index 2e61e4f8ed94..cdff66632dc7 100644 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/FormatTest.spec.js +++ b/samples/openapi3/client/petstore/javascript-es6/test/model/FormatTest.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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); @@ -132,6 +132,18 @@ //expect(instance).to.be(); }); + it('should have the property patternWithDigits (base name: "pattern_with_digits")', function() { + // uncomment below and update the code to test the property patternWithDigits + //var instane = new OpenApiPetstore.FormatTest(); + //expect(instance).to.be(); + }); + + it('should have the property patternWithDigitsAndDelimiter (base name: "pattern_with_digits_and_delimiter")', function() { + // uncomment below and update the code to test the property patternWithDigitsAndDelimiter + //var instane = new OpenApiPetstore.FormatTest(); + //expect(instance).to.be(); + }); + }); })); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/HasOnlyReadOnly.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/HasOnlyReadOnly.spec.js index 409e06ad823c..05235ef7b594 100644 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/HasOnlyReadOnly.spec.js +++ b/samples/openapi3/client/petstore/javascript-es6/test/model/HasOnlyReadOnly.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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/openapi3/client/petstore/javascript-es6/test/model/HealthCheckResult.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/HealthCheckResult.spec.js index fec4b172d816..7399370b1461 100644 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/HealthCheckResult.spec.js +++ b/samples/openapi3/client/petstore/javascript-es6/test/model/HealthCheckResult.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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/openapi3/client/petstore/javascript-es6/test/model/InlineObject.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/InlineObject.spec.js index 2f3c1707a2b8..9dd0a26e7607 100644 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/InlineObject.spec.js +++ b/samples/openapi3/client/petstore/javascript-es6/test/model/InlineObject.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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/openapi3/client/petstore/javascript-es6/test/model/InlineObject1.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/InlineObject1.spec.js index b83a0204f8fa..6a31acb18fb6 100644 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/InlineObject1.spec.js +++ b/samples/openapi3/client/petstore/javascript-es6/test/model/InlineObject1.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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/openapi3/client/petstore/javascript-es6/test/model/InlineObject2.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/InlineObject2.spec.js index db91d138c39c..1d7da6eb6b36 100644 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/InlineObject2.spec.js +++ b/samples/openapi3/client/petstore/javascript-es6/test/model/InlineObject2.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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/openapi3/client/petstore/javascript-es6/test/model/InlineObject3.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/InlineObject3.spec.js index 5e2647ed2c44..5265e4462902 100644 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/InlineObject3.spec.js +++ b/samples/openapi3/client/petstore/javascript-es6/test/model/InlineObject3.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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/openapi3/client/petstore/javascript-es6/test/model/InlineObject4.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/InlineObject4.spec.js index 10e6acf7e7c6..0324721e117b 100644 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/InlineObject4.spec.js +++ b/samples/openapi3/client/petstore/javascript-es6/test/model/InlineObject4.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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/openapi3/client/petstore/javascript-es6/test/model/InlineObject5.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/InlineObject5.spec.js index 13f4fa6bc8df..cabcbb1404c3 100644 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/InlineObject5.spec.js +++ b/samples/openapi3/client/petstore/javascript-es6/test/model/InlineObject5.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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/openapi3/client/petstore/javascript-es6/test/model/InlineResponseDefault.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/InlineResponseDefault.spec.js index eb5491bf8a88..bec91c162342 100644 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/InlineResponseDefault.spec.js +++ b/samples/openapi3/client/petstore/javascript-es6/test/model/InlineResponseDefault.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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/openapi3/client/petstore/javascript-es6/test/model/List.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/List.spec.js index e3a8574d9aef..7609a9420d1a 100644 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/List.spec.js +++ b/samples/openapi3/client/petstore/javascript-es6/test/model/List.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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/openapi3/client/petstore/javascript-es6/test/model/MapTest.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/MapTest.spec.js index da009beec4eb..9b1016b7cc69 100644 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/MapTest.spec.js +++ b/samples/openapi3/client/petstore/javascript-es6/test/model/MapTest.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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/openapi3/client/petstore/javascript-es6/test/model/MixedPropertiesAndAdditionalPropertiesClass.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/MixedPropertiesAndAdditionalPropertiesClass.spec.js index c9174f561547..60243bf3892a 100644 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/MixedPropertiesAndAdditionalPropertiesClass.spec.js +++ b/samples/openapi3/client/petstore/javascript-es6/test/model/MixedPropertiesAndAdditionalPropertiesClass.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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/openapi3/client/petstore/javascript-es6/test/model/Model200Response.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/Model200Response.spec.js index 13f768e97307..f966a55a5b26 100644 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/Model200Response.spec.js +++ b/samples/openapi3/client/petstore/javascript-es6/test/model/Model200Response.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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/openapi3/client/petstore/javascript-es6/test/model/ModelReturn.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/ModelReturn.spec.js index bda09c52366d..5c995def36fb 100644 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/ModelReturn.spec.js +++ b/samples/openapi3/client/petstore/javascript-es6/test/model/ModelReturn.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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/openapi3/client/petstore/javascript-es6/test/model/Name.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/Name.spec.js index 3726b8867b4c..feed4e8f2906 100644 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/Name.spec.js +++ b/samples/openapi3/client/petstore/javascript-es6/test/model/Name.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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/openapi3/client/petstore/javascript-es6/test/model/NumberOnly.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/NumberOnly.spec.js index 2261973c9af1..cbbd3d6124c5 100644 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/NumberOnly.spec.js +++ b/samples/openapi3/client/petstore/javascript-es6/test/model/NumberOnly.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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/openapi3/client/petstore/javascript-es6/test/model/Order.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/Order.spec.js index 536d217cc5be..b3e2b5a47167 100644 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/Order.spec.js +++ b/samples/openapi3/client/petstore/javascript-es6/test/model/Order.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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/openapi3/client/petstore/javascript-es6/test/model/OuterComposite.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/OuterComposite.spec.js index 3309d6194223..7f772d8c3745 100644 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/OuterComposite.spec.js +++ b/samples/openapi3/client/petstore/javascript-es6/test/model/OuterComposite.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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/openapi3/client/petstore/javascript-es6/test/model/OuterEnum.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/OuterEnum.spec.js index fa51fa90cb45..f5ec4089cc1f 100644 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/OuterEnum.spec.js +++ b/samples/openapi3/client/petstore/javascript-es6/test/model/OuterEnum.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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/openapi3/client/petstore/javascript-es6/test/model/OuterEnumDefaultValue.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/OuterEnumDefaultValue.spec.js index 7358f731e757..9da972203e12 100644 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/OuterEnumDefaultValue.spec.js +++ b/samples/openapi3/client/petstore/javascript-es6/test/model/OuterEnumDefaultValue.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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/openapi3/client/petstore/javascript-es6/test/model/OuterEnumInteger.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/OuterEnumInteger.spec.js index d7d09b16ea76..196da96a8da8 100644 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/OuterEnumInteger.spec.js +++ b/samples/openapi3/client/petstore/javascript-es6/test/model/OuterEnumInteger.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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/openapi3/client/petstore/javascript-es6/test/model/OuterEnumIntegerDefaultValue.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/OuterEnumIntegerDefaultValue.spec.js index 0b9e2f7933d3..24829ac61213 100644 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/OuterEnumIntegerDefaultValue.spec.js +++ b/samples/openapi3/client/petstore/javascript-es6/test/model/OuterEnumIntegerDefaultValue.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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/openapi3/client/petstore/javascript-es6/test/model/Pet.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/Pet.spec.js index f8ce9b93a3cd..f33470481f10 100644 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/Pet.spec.js +++ b/samples/openapi3/client/petstore/javascript-es6/test/model/Pet.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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/openapi3/client/petstore/javascript-es6/test/model/ReadOnlyFirst.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/ReadOnlyFirst.spec.js index 5bc5cb3a7005..7584840104a6 100644 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/ReadOnlyFirst.spec.js +++ b/samples/openapi3/client/petstore/javascript-es6/test/model/ReadOnlyFirst.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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/openapi3/client/petstore/javascript-es6/test/model/SpecialModelName.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/SpecialModelName.spec.js index f459d2e0cd6f..7cd283fa5423 100644 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/SpecialModelName.spec.js +++ b/samples/openapi3/client/petstore/javascript-es6/test/model/SpecialModelName.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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/openapi3/client/petstore/javascript-es6/test/model/Tag.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/Tag.spec.js index 2213b06d5090..749022dc3854 100644 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/Tag.spec.js +++ b/samples/openapi3/client/petstore/javascript-es6/test/model/Tag.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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/openapi3/client/petstore/javascript-es6/test/model/User.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/User.spec.js index f0cd8819ec88..fb24f42d1a2a 100644 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/User.spec.js +++ b/samples/openapi3/client/petstore/javascript-es6/test/model/User.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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); From 47e6c2a862c7226997cc77c0ddbe8b83bf9b9eb9 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Sat, 23 May 2020 23:31:24 +0800 Subject: [PATCH 02/10] update test in pom.xml --- pom.xml | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/pom.xml b/pom.xml index 71ab5328fc05..198de8ade54a 100644 --- a/pom.xml +++ b/pom.xml @@ -786,18 +786,6 @@ samples/client/petstore/java/feign - - javascript-client - - - env - javascript - - - - samples/client/petstore/javascript - - javascript-client-es6 @@ -810,18 +798,6 @@ samples/client/petstore/javascript-es6 - - javascript-client-promise - - - env - javascript - - - - samples/client/petstore/javascript-promise - - javascript-client-promise-es6 @@ -1246,11 +1222,8 @@ samples/client/petstore/php/OpenAPIClient-php samples/openapi3/client/petstore/php/OpenAPIClient-php - samples/client/petstore/javascript samples/client/petstore/javascript-es6 - samples/openapi3/client/petstore/javascript-es6 - samples/client/petstore/javascript-promise samples/client/petstore/javascript-promise-es6 samples/client/petstore/javascript-flowtyped samples/client/petstore/python From 2ef5b67dbaf5623a07c1bc368cb9e94e1861c6da Mon Sep 17 00:00:00 2001 From: William Cheng Date: Sun, 24 May 2020 14:37:45 +0800 Subject: [PATCH 03/10] update js samples --- .../.openapi-generator/FILES | 52 ++++---- .../javascript-es6/.openapi-generator/FILES | 120 ++++++++++++++++++ 2 files changed, 148 insertions(+), 24 deletions(-) create mode 100644 samples/openapi3/client/petstore/javascript-es6/.openapi-generator/FILES diff --git a/samples/client/petstore/javascript-promise-es6/.openapi-generator/FILES b/samples/client/petstore/javascript-promise-es6/.openapi-generator/FILES index 9ac7cfd193cd..6c9983e3cca1 100644 --- a/samples/client/petstore/javascript-promise-es6/.openapi-generator/FILES +++ b/samples/client/petstore/javascript-promise-es6/.openapi-generator/FILES @@ -1,28 +1,20 @@ .babelrc .travis.yml README.md -docs/AdditionalPropertiesAnyType.md -docs/AdditionalPropertiesArray.md -docs/AdditionalPropertiesBoolean.md docs/AdditionalPropertiesClass.md -docs/AdditionalPropertiesInteger.md -docs/AdditionalPropertiesNumber.md -docs/AdditionalPropertiesObject.md -docs/AdditionalPropertiesString.md docs/Animal.md docs/AnotherFakeApi.md docs/ApiResponse.md docs/ArrayOfArrayOfNumberOnly.md docs/ArrayOfNumberOnly.md docs/ArrayTest.md -docs/BigCat.md -docs/BigCatAllOf.md docs/Capitalization.md docs/Cat.md docs/CatAllOf.md docs/Category.md docs/ClassModel.md docs/Client.md +docs/DefaultApi.md docs/Dog.md docs/DogAllOf.md docs/EnumArrays.md @@ -32,55 +24,57 @@ docs/FakeApi.md docs/FakeClassnameTags123Api.md docs/File.md docs/FileSchemaTestClass.md +docs/Foo.md docs/FormatTest.md docs/HasOnlyReadOnly.md +docs/HealthCheckResult.md +docs/InlineObject.md +docs/InlineObject1.md +docs/InlineObject2.md +docs/InlineObject3.md +docs/InlineObject4.md +docs/InlineObject5.md +docs/InlineResponseDefault.md docs/List.md docs/MapTest.md docs/MixedPropertiesAndAdditionalPropertiesClass.md docs/Model200Response.md docs/ModelReturn.md docs/Name.md +docs/NullableClass.md docs/NumberOnly.md docs/Order.md docs/OuterComposite.md docs/OuterEnum.md +docs/OuterEnumDefaultValue.md +docs/OuterEnumInteger.md +docs/OuterEnumIntegerDefaultValue.md docs/Pet.md docs/PetApi.md docs/ReadOnlyFirst.md docs/SpecialModelName.md docs/StoreApi.md docs/Tag.md -docs/TypeHolderDefault.md -docs/TypeHolderExample.md docs/User.md docs/UserApi.md -docs/XmlItem.md git_push.sh mocha.opts package.json src/ApiClient.js src/api/AnotherFakeApi.js +src/api/DefaultApi.js src/api/FakeApi.js src/api/FakeClassnameTags123Api.js src/api/PetApi.js src/api/StoreApi.js src/api/UserApi.js src/index.js -src/model/AdditionalPropertiesAnyType.js -src/model/AdditionalPropertiesArray.js -src/model/AdditionalPropertiesBoolean.js src/model/AdditionalPropertiesClass.js -src/model/AdditionalPropertiesInteger.js -src/model/AdditionalPropertiesNumber.js -src/model/AdditionalPropertiesObject.js -src/model/AdditionalPropertiesString.js src/model/Animal.js src/model/ApiResponse.js src/model/ArrayOfArrayOfNumberOnly.js src/model/ArrayOfNumberOnly.js src/model/ArrayTest.js -src/model/BigCat.js -src/model/BigCatAllOf.js src/model/Capitalization.js src/model/Cat.js src/model/CatAllOf.js @@ -94,23 +88,33 @@ src/model/EnumClass.js src/model/EnumTest.js src/model/File.js src/model/FileSchemaTestClass.js +src/model/Foo.js src/model/FormatTest.js src/model/HasOnlyReadOnly.js +src/model/HealthCheckResult.js +src/model/InlineObject.js +src/model/InlineObject1.js +src/model/InlineObject2.js +src/model/InlineObject3.js +src/model/InlineObject4.js +src/model/InlineObject5.js +src/model/InlineResponseDefault.js src/model/List.js src/model/MapTest.js src/model/MixedPropertiesAndAdditionalPropertiesClass.js src/model/Model200Response.js src/model/ModelReturn.js src/model/Name.js +src/model/NullableClass.js src/model/NumberOnly.js src/model/Order.js src/model/OuterComposite.js src/model/OuterEnum.js +src/model/OuterEnumDefaultValue.js +src/model/OuterEnumInteger.js +src/model/OuterEnumIntegerDefaultValue.js src/model/Pet.js src/model/ReadOnlyFirst.js src/model/SpecialModelName.js src/model/Tag.js -src/model/TypeHolderDefault.js -src/model/TypeHolderExample.js src/model/User.js -src/model/XmlItem.js diff --git a/samples/openapi3/client/petstore/javascript-es6/.openapi-generator/FILES b/samples/openapi3/client/petstore/javascript-es6/.openapi-generator/FILES new file mode 100644 index 000000000000..6c9983e3cca1 --- /dev/null +++ b/samples/openapi3/client/petstore/javascript-es6/.openapi-generator/FILES @@ -0,0 +1,120 @@ +.babelrc +.travis.yml +README.md +docs/AdditionalPropertiesClass.md +docs/Animal.md +docs/AnotherFakeApi.md +docs/ApiResponse.md +docs/ArrayOfArrayOfNumberOnly.md +docs/ArrayOfNumberOnly.md +docs/ArrayTest.md +docs/Capitalization.md +docs/Cat.md +docs/CatAllOf.md +docs/Category.md +docs/ClassModel.md +docs/Client.md +docs/DefaultApi.md +docs/Dog.md +docs/DogAllOf.md +docs/EnumArrays.md +docs/EnumClass.md +docs/EnumTest.md +docs/FakeApi.md +docs/FakeClassnameTags123Api.md +docs/File.md +docs/FileSchemaTestClass.md +docs/Foo.md +docs/FormatTest.md +docs/HasOnlyReadOnly.md +docs/HealthCheckResult.md +docs/InlineObject.md +docs/InlineObject1.md +docs/InlineObject2.md +docs/InlineObject3.md +docs/InlineObject4.md +docs/InlineObject5.md +docs/InlineResponseDefault.md +docs/List.md +docs/MapTest.md +docs/MixedPropertiesAndAdditionalPropertiesClass.md +docs/Model200Response.md +docs/ModelReturn.md +docs/Name.md +docs/NullableClass.md +docs/NumberOnly.md +docs/Order.md +docs/OuterComposite.md +docs/OuterEnum.md +docs/OuterEnumDefaultValue.md +docs/OuterEnumInteger.md +docs/OuterEnumIntegerDefaultValue.md +docs/Pet.md +docs/PetApi.md +docs/ReadOnlyFirst.md +docs/SpecialModelName.md +docs/StoreApi.md +docs/Tag.md +docs/User.md +docs/UserApi.md +git_push.sh +mocha.opts +package.json +src/ApiClient.js +src/api/AnotherFakeApi.js +src/api/DefaultApi.js +src/api/FakeApi.js +src/api/FakeClassnameTags123Api.js +src/api/PetApi.js +src/api/StoreApi.js +src/api/UserApi.js +src/index.js +src/model/AdditionalPropertiesClass.js +src/model/Animal.js +src/model/ApiResponse.js +src/model/ArrayOfArrayOfNumberOnly.js +src/model/ArrayOfNumberOnly.js +src/model/ArrayTest.js +src/model/Capitalization.js +src/model/Cat.js +src/model/CatAllOf.js +src/model/Category.js +src/model/ClassModel.js +src/model/Client.js +src/model/Dog.js +src/model/DogAllOf.js +src/model/EnumArrays.js +src/model/EnumClass.js +src/model/EnumTest.js +src/model/File.js +src/model/FileSchemaTestClass.js +src/model/Foo.js +src/model/FormatTest.js +src/model/HasOnlyReadOnly.js +src/model/HealthCheckResult.js +src/model/InlineObject.js +src/model/InlineObject1.js +src/model/InlineObject2.js +src/model/InlineObject3.js +src/model/InlineObject4.js +src/model/InlineObject5.js +src/model/InlineResponseDefault.js +src/model/List.js +src/model/MapTest.js +src/model/MixedPropertiesAndAdditionalPropertiesClass.js +src/model/Model200Response.js +src/model/ModelReturn.js +src/model/Name.js +src/model/NullableClass.js +src/model/NumberOnly.js +src/model/Order.js +src/model/OuterComposite.js +src/model/OuterEnum.js +src/model/OuterEnumDefaultValue.js +src/model/OuterEnumInteger.js +src/model/OuterEnumIntegerDefaultValue.js +src/model/Pet.js +src/model/ReadOnlyFirst.js +src/model/SpecialModelName.js +src/model/Tag.js +src/model/User.js From d3d35fe2b157f4126dc7849e368518bb8915a700 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Sun, 24 May 2020 16:56:09 +0800 Subject: [PATCH 04/10] delete js es5 samples --- .../petstore/javascript-promise/.gitignore | 1 - .../.openapi-generator-ignore | 23 - .../.openapi-generator/FILES | 115 --- .../.openapi-generator/VERSION | 1 - .../petstore/javascript-promise/.travis.yml | 5 - .../petstore/javascript-promise/README.md | 238 ----- .../docs/AdditionalPropertiesAnyType.md | 9 - .../docs/AdditionalPropertiesArray.md | 9 - .../docs/AdditionalPropertiesBoolean.md | 9 - .../docs/AdditionalPropertiesClass.md | 19 - .../docs/AdditionalPropertiesInteger.md | 9 - .../docs/AdditionalPropertiesNumber.md | 9 - .../docs/AdditionalPropertiesObject.md | 9 - .../docs/AdditionalPropertiesString.md | 9 - .../javascript-promise/docs/Animal.md | 10 - .../javascript-promise/docs/AnotherFakeApi.md | 54 -- .../javascript-promise/docs/ApiResponse.md | 11 - .../docs/ArrayOfArrayOfNumberOnly.md | 9 - .../docs/ArrayOfNumberOnly.md | 9 - .../javascript-promise/docs/ArrayTest.md | 11 - .../javascript-promise/docs/BigCat.md | 24 - .../javascript-promise/docs/BigCatAllOf.md | 24 - .../javascript-promise/docs/Capitalization.md | 14 - .../petstore/javascript-promise/docs/Cat.md | 9 - .../javascript-promise/docs/CatAllOf.md | 9 - .../javascript-promise/docs/Category.md | 10 - .../javascript-promise/docs/ClassModel.md | 9 - .../javascript-promise/docs/Client.md | 9 - .../petstore/javascript-promise/docs/Dog.md | 9 - .../javascript-promise/docs/DogAllOf.md | 9 - .../javascript-promise/docs/EnumArrays.md | 32 - .../javascript-promise/docs/EnumClass.md | 12 - .../javascript-promise/docs/EnumTest.md | 61 -- .../javascript-promise/docs/FakeApi.md | 727 --------------- .../docs/FakeClassnameTags123Api.md | 60 -- .../petstore/javascript-promise/docs/File.md | 9 - .../docs/FileSchemaTestClass.md | 10 - .../javascript-promise/docs/FormatTest.md | 22 - .../docs/HasOnlyReadOnly.md | 10 - .../petstore/javascript-promise/docs/List.md | 9 - .../javascript-promise/docs/MapTest.md | 23 - ...dPropertiesAndAdditionalPropertiesClass.md | 11 - .../docs/Model200Response.md | 10 - .../javascript-promise/docs/ModelReturn.md | 9 - .../petstore/javascript-promise/docs/Name.md | 12 - .../javascript-promise/docs/NumberOnly.md | 9 - .../petstore/javascript-promise/docs/Order.md | 27 - .../javascript-promise/docs/OuterComposite.md | 11 - .../javascript-promise/docs/OuterEnum.md | 12 - .../petstore/javascript-promise/docs/Pet.md | 27 - .../javascript-promise/docs/PetApi.md | 470 ---------- .../javascript-promise/docs/ReadOnlyFirst.md | 10 - .../docs/SpecialModelName.md | 9 - .../javascript-promise/docs/StoreApi.md | 191 ---- .../petstore/javascript-promise/docs/Tag.md | 10 - .../docs/TypeHolderDefault.md | 13 - .../docs/TypeHolderExample.md | 14 - .../petstore/javascript-promise/docs/User.md | 16 - .../javascript-promise/docs/UserApi.md | 365 -------- .../javascript-promise/docs/XmlItem.md | 37 - .../petstore/javascript-promise/git_push.sh | 58 -- .../petstore/javascript-promise/mocha.opts | 1 - .../petstore/javascript-promise/package.json | 21 - .../petstore/javascript-promise/pom.xml | 45 - .../javascript-promise/src/ApiClient.js | 657 ------------- .../src/api/AnotherFakeApi.js | 101 -- .../javascript-promise/src/api/FakeApi.js | 879 ------------------ .../src/api/FakeClassnameTags123Api.js | 101 -- .../javascript-promise/src/api/PetApi.js | 531 ----------- .../javascript-promise/src/api/StoreApi.js | 242 ----- .../javascript-promise/src/api/UserApi.js | 445 --------- .../petstore/javascript-promise/src/index.js | 337 ------- .../src/model/AdditionalPropertiesAnyType.js | 81 -- .../src/model/AdditionalPropertiesArray.js | 81 -- .../src/model/AdditionalPropertiesBoolean.js | 81 -- .../src/model/AdditionalPropertiesClass.js | 148 --- .../src/model/AdditionalPropertiesInteger.js | 81 -- .../src/model/AdditionalPropertiesNumber.js | 81 -- .../src/model/AdditionalPropertiesObject.js | 81 -- .../src/model/AdditionalPropertiesString.js | 81 -- .../javascript-promise/src/model/Animal.js | 88 -- .../src/model/ApiResponse.js | 92 -- .../src/model/ArrayOfArrayOfNumberOnly.js | 78 -- .../src/model/ArrayOfNumberOnly.js | 78 -- .../javascript-promise/src/model/ArrayTest.js | 92 -- .../javascript-promise/src/model/BigCat.js | 137 --- .../src/model/BigCatAllOf.js | 105 --- .../src/model/Capitalization.js | 114 --- .../javascript-promise/src/model/Cat.js | 105 --- .../javascript-promise/src/model/CatAllOf.js | 78 -- .../javascript-promise/src/model/Category.js | 88 -- .../src/model/ClassModel.js | 79 -- .../javascript-promise/src/model/Client.js | 78 -- .../javascript-promise/src/model/Dog.js | 105 --- .../javascript-promise/src/model/DogAllOf.js | 78 -- .../src/model/EnumArrays.js | 119 --- .../javascript-promise/src/model/EnumClass.js | 68 -- .../javascript-promise/src/model/EnumTest.js | 186 ---- .../javascript-promise/src/model/File.js | 80 -- .../src/model/FileSchemaTestClass.js | 85 -- .../src/model/FormatTest.js | 177 ---- .../src/model/HasOnlyReadOnly.js | 85 -- .../javascript-promise/src/model/List.js | 78 -- .../javascript-promise/src/model/MapTest.js | 116 --- ...dPropertiesAndAdditionalPropertiesClass.js | 92 -- .../src/model/Model200Response.js | 86 -- .../src/model/ModelReturn.js | 79 -- .../javascript-promise/src/model/Name.js | 102 -- .../src/model/NumberOnly.js | 78 -- .../javascript-promise/src/model/Order.js | 137 --- .../src/model/OuterComposite.js | 92 -- .../javascript-promise/src/model/OuterEnum.js | 68 -- .../javascript-promise/src/model/Pet.js | 140 --- .../src/model/ReadOnlyFirst.js | 85 -- .../src/model/SpecialModelName.js | 78 -- .../javascript-promise/src/model/Tag.js | 85 -- .../src/model/TypeHolderDefault.js | 118 --- .../src/model/TypeHolderExample.js | 125 --- .../javascript-promise/src/model/User.js | 128 --- .../javascript-promise/src/model/XmlItem.js | 274 ------ .../javascript-promise/test/ApiClientTest.js | 393 -------- .../test/api/AnotherFakeApi.spec.js | 65 -- .../test/api/FakeApi.spec.js | 185 ---- .../test/api/FakeClassnameTags123Api.spec.js | 65 -- .../test/api/PetApi.spec.js | 145 --- .../test/api/StoreApi.spec.js | 95 -- .../test/api/UserApi.spec.js | 135 --- .../javascript-promise/test/mocha.opts | 1 - .../model/AdditionalPropertiesAnyType.spec.js | 67 -- .../model/AdditionalPropertiesArray.spec.js | 67 -- .../model/AdditionalPropertiesBoolean.spec.js | 67 -- .../model/AdditionalPropertiesClass.spec.js | 127 --- .../model/AdditionalPropertiesInteger.spec.js | 67 -- .../model/AdditionalPropertiesNumber.spec.js | 67 -- .../model/AdditionalPropertiesObject.spec.js | 67 -- .../model/AdditionalPropertiesString.spec.js | 67 -- .../test/model/Animal.spec.js | 73 -- .../test/model/ApiResponse.spec.js | 79 -- .../model/ArrayOfArrayOfNumberOnly.spec.js | 67 -- .../test/model/ArrayOfNumberOnly.spec.js | 67 -- .../test/model/ArrayTest.spec.js | 79 -- .../test/model/BigCat.spec.js | 67 -- .../test/model/BigCatAllOf.spec.js | 67 -- .../test/model/Capitalization.spec.js | 97 -- .../javascript-promise/test/model/Cat.spec.js | 67 -- .../test/model/CatAllOf.spec.js | 67 -- .../test/model/Category.spec.js | 73 -- .../test/model/ClassModel.spec.js | 67 -- .../test/model/Client.spec.js | 67 -- .../javascript-promise/test/model/Dog.spec.js | 67 -- .../test/model/DogAllOf.spec.js | 67 -- .../test/model/EnumArrays.spec.js | 73 -- .../test/model/EnumClass.spec.js | 60 -- .../test/model/EnumTest.spec.js | 91 -- .../test/model/File.spec.js | 67 -- .../test/model/FileSchemaTestClass.spec.js | 73 -- .../test/model/FormatTest.spec.js | 139 --- .../test/model/HasOnlyReadOnly.spec.js | 73 -- .../test/model/List.spec.js | 67 -- .../test/model/MapTest.spec.js | 85 -- ...ertiesAndAdditionalPropertiesClass.spec.js | 79 -- .../test/model/Model200Response.spec.js | 73 -- .../test/model/ModelReturn.spec.js | 67 -- .../test/model/Name.spec.js | 85 -- .../test/model/NumberOnly.spec.js | 67 -- .../test/model/Order.spec.js | 97 -- .../test/model/OuterComposite.spec.js | 79 -- .../test/model/OuterEnum.spec.js | 60 -- .../javascript-promise/test/model/Pet.spec.js | 97 -- .../test/model/ReadOnlyFirst.spec.js | 73 -- .../test/model/SpecialModelName.spec.js | 67 -- .../javascript-promise/test/model/Tag.spec.js | 73 -- .../test/model/TypeHolderDefault.spec.js | 91 -- .../test/model/TypeHolderExample.spec.js | 91 -- .../test/model/User.spec.js | 109 --- .../test/model/XmlItem.spec.js | 235 ----- .../javascript-promise/test/run_tests.html | 41 - samples/client/petstore/javascript/.gitignore | 1 - .../javascript/.openapi-generator-ignore | 23 - .../javascript/.openapi-generator/FILES | 115 --- .../javascript/.openapi-generator/VERSION | 1 - .../client/petstore/javascript/.travis.yml | 5 - samples/client/petstore/javascript/README.md | 241 ----- .../docs/AdditionalPropertiesAnyType.md | 9 - .../docs/AdditionalPropertiesArray.md | 9 - .../docs/AdditionalPropertiesBoolean.md | 9 - .../docs/AdditionalPropertiesClass.md | 19 - .../docs/AdditionalPropertiesInteger.md | 9 - .../docs/AdditionalPropertiesNumber.md | 9 - .../docs/AdditionalPropertiesObject.md | 9 - .../docs/AdditionalPropertiesString.md | 9 - .../client/petstore/javascript/docs/Animal.md | 10 - .../javascript/docs/AnotherFakeApi.md | 56 -- .../petstore/javascript/docs/ApiResponse.md | 11 - .../docs/ArrayOfArrayOfNumberOnly.md | 9 - .../javascript/docs/ArrayOfNumberOnly.md | 9 - .../petstore/javascript/docs/ArrayTest.md | 11 - .../client/petstore/javascript/docs/BigCat.md | 24 - .../petstore/javascript/docs/BigCatAllOf.md | 24 - .../javascript/docs/Capitalization.md | 14 - .../client/petstore/javascript/docs/Cat.md | 9 - .../petstore/javascript/docs/CatAllOf.md | 9 - .../petstore/javascript/docs/Category.md | 10 - .../petstore/javascript/docs/ClassModel.md | 9 - .../client/petstore/javascript/docs/Client.md | 9 - .../client/petstore/javascript/docs/Dog.md | 9 - .../petstore/javascript/docs/DogAllOf.md | 9 - .../petstore/javascript/docs/EnumArrays.md | 32 - .../petstore/javascript/docs/EnumClass.md | 12 - .../petstore/javascript/docs/EnumTest.md | 61 -- .../petstore/javascript/docs/FakeApi.md | 755 --------------- .../docs/FakeClassnameTags123Api.md | 62 -- .../client/petstore/javascript/docs/File.md | 9 - .../javascript/docs/FileSchemaTestClass.md | 10 - .../petstore/javascript/docs/FormatTest.md | 22 - .../javascript/docs/HasOnlyReadOnly.md | 10 - .../client/petstore/javascript/docs/List.md | 9 - .../petstore/javascript/docs/MapTest.md | 23 - ...dPropertiesAndAdditionalPropertiesClass.md | 11 - .../javascript/docs/Model200Response.md | 10 - .../petstore/javascript/docs/ModelReturn.md | 9 - .../client/petstore/javascript/docs/Name.md | 12 - .../petstore/javascript/docs/NumberOnly.md | 9 - .../client/petstore/javascript/docs/Order.md | 27 - .../javascript/docs/OuterComposite.md | 11 - .../petstore/javascript/docs/OuterEnum.md | 12 - .../client/petstore/javascript/docs/Pet.md | 27 - .../client/petstore/javascript/docs/PetApi.md | 488 ---------- .../petstore/javascript/docs/ReadOnlyFirst.md | 10 - .../javascript/docs/SpecialModelName.md | 9 - .../petstore/javascript/docs/StoreApi.md | 199 ---- .../client/petstore/javascript/docs/Tag.md | 10 - .../javascript/docs/TypeHolderDefault.md | 13 - .../javascript/docs/TypeHolderExample.md | 14 - .../client/petstore/javascript/docs/User.md | 16 - .../petstore/javascript/docs/UserApi.md | 381 -------- .../petstore/javascript/docs/XmlItem.md | 37 - .../client/petstore/javascript/git_push.sh | 58 -- samples/client/petstore/javascript/mocha.opts | 1 - .../client/petstore/javascript/package.json | 21 - samples/client/petstore/javascript/pom.xml | 45 - .../petstore/javascript/src/ApiClient.js | 668 ------------- .../javascript/src/api/AnotherFakeApi.js | 96 -- .../petstore/javascript/src/api/FakeApi.js | 772 --------------- .../src/api/FakeClassnameTags123Api.js | 96 -- .../petstore/javascript/src/api/PetApi.js | 477 ---------- .../petstore/javascript/src/api/StoreApi.js | 223 ----- .../petstore/javascript/src/api/UserApi.js | 403 -------- .../client/petstore/javascript/src/index.js | 337 ------- .../src/model/AdditionalPropertiesAnyType.js | 81 -- .../src/model/AdditionalPropertiesArray.js | 81 -- .../src/model/AdditionalPropertiesBoolean.js | 81 -- .../src/model/AdditionalPropertiesClass.js | 148 --- .../src/model/AdditionalPropertiesInteger.js | 81 -- .../src/model/AdditionalPropertiesNumber.js | 81 -- .../src/model/AdditionalPropertiesObject.js | 81 -- .../src/model/AdditionalPropertiesString.js | 81 -- .../petstore/javascript/src/model/Animal.js | 88 -- .../javascript/src/model/ApiResponse.js | 92 -- .../src/model/ArrayOfArrayOfNumberOnly.js | 78 -- .../javascript/src/model/ArrayOfNumberOnly.js | 78 -- .../javascript/src/model/ArrayTest.js | 92 -- .../petstore/javascript/src/model/BigCat.js | 137 --- .../javascript/src/model/BigCatAllOf.js | 105 --- .../javascript/src/model/Capitalization.js | 114 --- .../petstore/javascript/src/model/Cat.js | 105 --- .../petstore/javascript/src/model/CatAllOf.js | 78 -- .../petstore/javascript/src/model/Category.js | 88 -- .../javascript/src/model/ClassModel.js | 79 -- .../petstore/javascript/src/model/Client.js | 78 -- .../petstore/javascript/src/model/Dog.js | 105 --- .../petstore/javascript/src/model/DogAllOf.js | 78 -- .../javascript/src/model/EnumArrays.js | 119 --- .../javascript/src/model/EnumClass.js | 68 -- .../petstore/javascript/src/model/EnumTest.js | 186 ---- .../petstore/javascript/src/model/File.js | 80 -- .../src/model/FileSchemaTestClass.js | 85 -- .../javascript/src/model/FormatTest.js | 177 ---- .../javascript/src/model/HasOnlyReadOnly.js | 85 -- .../petstore/javascript/src/model/List.js | 78 -- .../petstore/javascript/src/model/MapTest.js | 116 --- ...dPropertiesAndAdditionalPropertiesClass.js | 92 -- .../javascript/src/model/Model200Response.js | 86 -- .../javascript/src/model/ModelReturn.js | 79 -- .../petstore/javascript/src/model/Name.js | 102 -- .../javascript/src/model/NumberOnly.js | 78 -- .../petstore/javascript/src/model/Order.js | 137 --- .../javascript/src/model/OuterComposite.js | 92 -- .../javascript/src/model/OuterEnum.js | 68 -- .../petstore/javascript/src/model/Pet.js | 140 --- .../javascript/src/model/ReadOnlyFirst.js | 85 -- .../javascript/src/model/SpecialModelName.js | 78 -- .../petstore/javascript/src/model/Tag.js | 85 -- .../javascript/src/model/TypeHolderDefault.js | 118 --- .../javascript/src/model/TypeHolderExample.js | 125 --- .../petstore/javascript/src/model/User.js | 128 --- .../petstore/javascript/src/model/XmlItem.js | 274 ------ .../petstore/javascript/test/ApiClientTest.js | 393 -------- .../test/api/AnotherFakeApi.spec.js | 65 -- .../javascript/test/api/FakeApi.spec.js | 185 ---- .../test/api/FakeClassnameTags123Api.spec.js | 65 -- .../javascript/test/api/PetApi.spec.js | 145 --- .../javascript/test/api/StoreApi.spec.js | 95 -- .../javascript/test/api/UserApi.spec.js | 135 --- .../petstore/javascript/test/mocha.opts | 1 - .../model/AdditionalPropertiesAnyType.spec.js | 67 -- .../model/AdditionalPropertiesArray.spec.js | 67 -- .../model/AdditionalPropertiesBoolean.spec.js | 67 -- .../model/AdditionalPropertiesClass.spec.js | 127 --- .../model/AdditionalPropertiesInteger.spec.js | 67 -- .../model/AdditionalPropertiesNumber.spec.js | 67 -- .../model/AdditionalPropertiesObject.spec.js | 67 -- .../model/AdditionalPropertiesString.spec.js | 67 -- .../javascript/test/model/Animal.spec.js | 73 -- .../javascript/test/model/ApiResponse.spec.js | 79 -- .../model/ArrayOfArrayOfNumberOnly.spec.js | 67 -- .../test/model/ArrayOfNumberOnly.spec.js | 67 -- .../javascript/test/model/ArrayTest.spec.js | 79 -- .../javascript/test/model/BigCat.spec.js | 67 -- .../javascript/test/model/BigCatAllOf.spec.js | 67 -- .../test/model/Capitalization.spec.js | 97 -- .../javascript/test/model/Cat.spec.js | 67 -- .../javascript/test/model/CatAllOf.spec.js | 67 -- .../javascript/test/model/Category.spec.js | 73 -- .../javascript/test/model/ClassModel.spec.js | 67 -- .../javascript/test/model/Client.spec.js | 67 -- .../javascript/test/model/Dog.spec.js | 67 -- .../javascript/test/model/DogAllOf.spec.js | 67 -- .../javascript/test/model/EnumArrays.spec.js | 73 -- .../javascript/test/model/EnumClass.spec.js | 60 -- .../javascript/test/model/EnumTest.spec.js | 91 -- .../javascript/test/model/File.spec.js | 67 -- .../test/model/FileSchemaTestClass.spec.js | 73 -- .../javascript/test/model/FormatTest.spec.js | 139 --- .../test/model/HasOnlyReadOnly.spec.js | 73 -- .../javascript/test/model/List.spec.js | 67 -- .../javascript/test/model/MapTest.spec.js | 85 -- ...ertiesAndAdditionalPropertiesClass.spec.js | 79 -- .../test/model/Model200Response.spec.js | 73 -- .../javascript/test/model/ModelReturn.spec.js | 67 -- .../javascript/test/model/Name.spec.js | 85 -- .../javascript/test/model/NumberOnly.spec.js | 67 -- .../javascript/test/model/Order.spec.js | 97 -- .../test/model/OuterComposite.spec.js | 79 -- .../javascript/test/model/OuterEnum.spec.js | 60 -- .../javascript/test/model/Pet.spec.js | 97 -- .../test/model/ReadOnlyFirst.spec.js | 73 -- .../test/model/SpecialModelName.spec.js | 67 -- .../javascript/test/model/Tag.spec.js | 73 -- .../test/model/TypeHolderDefault.spec.js | 91 -- .../test/model/TypeHolderExample.spec.js | 91 -- .../javascript/test/model/User.spec.js | 109 --- .../javascript/test/model/XmlItem.spec.js | 235 ----- .../petstore/javascript/test/run_tests.html | 45 - 354 files changed, 32230 deletions(-) delete mode 100644 samples/client/petstore/javascript-promise/.gitignore delete mode 100644 samples/client/petstore/javascript-promise/.openapi-generator-ignore delete mode 100644 samples/client/petstore/javascript-promise/.openapi-generator/FILES delete mode 100644 samples/client/petstore/javascript-promise/.openapi-generator/VERSION delete mode 100644 samples/client/petstore/javascript-promise/.travis.yml delete mode 100644 samples/client/petstore/javascript-promise/README.md delete mode 100644 samples/client/petstore/javascript-promise/docs/AdditionalPropertiesAnyType.md delete mode 100644 samples/client/petstore/javascript-promise/docs/AdditionalPropertiesArray.md delete mode 100644 samples/client/petstore/javascript-promise/docs/AdditionalPropertiesBoolean.md delete mode 100644 samples/client/petstore/javascript-promise/docs/AdditionalPropertiesClass.md delete mode 100644 samples/client/petstore/javascript-promise/docs/AdditionalPropertiesInteger.md delete mode 100644 samples/client/petstore/javascript-promise/docs/AdditionalPropertiesNumber.md delete mode 100644 samples/client/petstore/javascript-promise/docs/AdditionalPropertiesObject.md delete mode 100644 samples/client/petstore/javascript-promise/docs/AdditionalPropertiesString.md delete mode 100644 samples/client/petstore/javascript-promise/docs/Animal.md delete mode 100644 samples/client/petstore/javascript-promise/docs/AnotherFakeApi.md delete mode 100644 samples/client/petstore/javascript-promise/docs/ApiResponse.md delete mode 100644 samples/client/petstore/javascript-promise/docs/ArrayOfArrayOfNumberOnly.md delete mode 100644 samples/client/petstore/javascript-promise/docs/ArrayOfNumberOnly.md delete mode 100644 samples/client/petstore/javascript-promise/docs/ArrayTest.md delete mode 100644 samples/client/petstore/javascript-promise/docs/BigCat.md delete mode 100644 samples/client/petstore/javascript-promise/docs/BigCatAllOf.md delete mode 100644 samples/client/petstore/javascript-promise/docs/Capitalization.md delete mode 100644 samples/client/petstore/javascript-promise/docs/Cat.md delete mode 100644 samples/client/petstore/javascript-promise/docs/CatAllOf.md delete mode 100644 samples/client/petstore/javascript-promise/docs/Category.md delete mode 100644 samples/client/petstore/javascript-promise/docs/ClassModel.md delete mode 100644 samples/client/petstore/javascript-promise/docs/Client.md delete mode 100644 samples/client/petstore/javascript-promise/docs/Dog.md delete mode 100644 samples/client/petstore/javascript-promise/docs/DogAllOf.md delete mode 100644 samples/client/petstore/javascript-promise/docs/EnumArrays.md delete mode 100644 samples/client/petstore/javascript-promise/docs/EnumClass.md delete mode 100644 samples/client/petstore/javascript-promise/docs/EnumTest.md delete mode 100644 samples/client/petstore/javascript-promise/docs/FakeApi.md delete mode 100644 samples/client/petstore/javascript-promise/docs/FakeClassnameTags123Api.md delete mode 100644 samples/client/petstore/javascript-promise/docs/File.md delete mode 100644 samples/client/petstore/javascript-promise/docs/FileSchemaTestClass.md delete mode 100644 samples/client/petstore/javascript-promise/docs/FormatTest.md delete mode 100644 samples/client/petstore/javascript-promise/docs/HasOnlyReadOnly.md delete mode 100644 samples/client/petstore/javascript-promise/docs/List.md delete mode 100644 samples/client/petstore/javascript-promise/docs/MapTest.md delete mode 100644 samples/client/petstore/javascript-promise/docs/MixedPropertiesAndAdditionalPropertiesClass.md delete mode 100644 samples/client/petstore/javascript-promise/docs/Model200Response.md delete mode 100644 samples/client/petstore/javascript-promise/docs/ModelReturn.md delete mode 100644 samples/client/petstore/javascript-promise/docs/Name.md delete mode 100644 samples/client/petstore/javascript-promise/docs/NumberOnly.md delete mode 100644 samples/client/petstore/javascript-promise/docs/Order.md delete mode 100644 samples/client/petstore/javascript-promise/docs/OuterComposite.md delete mode 100644 samples/client/petstore/javascript-promise/docs/OuterEnum.md delete mode 100644 samples/client/petstore/javascript-promise/docs/Pet.md delete mode 100644 samples/client/petstore/javascript-promise/docs/PetApi.md delete mode 100644 samples/client/petstore/javascript-promise/docs/ReadOnlyFirst.md delete mode 100644 samples/client/petstore/javascript-promise/docs/SpecialModelName.md delete mode 100644 samples/client/petstore/javascript-promise/docs/StoreApi.md delete mode 100644 samples/client/petstore/javascript-promise/docs/Tag.md delete mode 100644 samples/client/petstore/javascript-promise/docs/TypeHolderDefault.md delete mode 100644 samples/client/petstore/javascript-promise/docs/TypeHolderExample.md delete mode 100644 samples/client/petstore/javascript-promise/docs/User.md delete mode 100644 samples/client/petstore/javascript-promise/docs/UserApi.md delete mode 100644 samples/client/petstore/javascript-promise/docs/XmlItem.md delete mode 100644 samples/client/petstore/javascript-promise/git_push.sh delete mode 100644 samples/client/petstore/javascript-promise/mocha.opts delete mode 100644 samples/client/petstore/javascript-promise/package.json delete mode 100644 samples/client/petstore/javascript-promise/pom.xml delete mode 100644 samples/client/petstore/javascript-promise/src/ApiClient.js delete mode 100644 samples/client/petstore/javascript-promise/src/api/AnotherFakeApi.js delete mode 100644 samples/client/petstore/javascript-promise/src/api/FakeApi.js delete mode 100644 samples/client/petstore/javascript-promise/src/api/FakeClassnameTags123Api.js delete mode 100644 samples/client/petstore/javascript-promise/src/api/PetApi.js delete mode 100644 samples/client/petstore/javascript-promise/src/api/StoreApi.js delete mode 100644 samples/client/petstore/javascript-promise/src/api/UserApi.js delete mode 100644 samples/client/petstore/javascript-promise/src/index.js delete mode 100644 samples/client/petstore/javascript-promise/src/model/AdditionalPropertiesAnyType.js delete mode 100644 samples/client/petstore/javascript-promise/src/model/AdditionalPropertiesArray.js delete mode 100644 samples/client/petstore/javascript-promise/src/model/AdditionalPropertiesBoolean.js delete mode 100644 samples/client/petstore/javascript-promise/src/model/AdditionalPropertiesClass.js delete mode 100644 samples/client/petstore/javascript-promise/src/model/AdditionalPropertiesInteger.js delete mode 100644 samples/client/petstore/javascript-promise/src/model/AdditionalPropertiesNumber.js delete mode 100644 samples/client/petstore/javascript-promise/src/model/AdditionalPropertiesObject.js delete mode 100644 samples/client/petstore/javascript-promise/src/model/AdditionalPropertiesString.js delete mode 100644 samples/client/petstore/javascript-promise/src/model/Animal.js delete mode 100644 samples/client/petstore/javascript-promise/src/model/ApiResponse.js delete mode 100644 samples/client/petstore/javascript-promise/src/model/ArrayOfArrayOfNumberOnly.js delete mode 100644 samples/client/petstore/javascript-promise/src/model/ArrayOfNumberOnly.js delete mode 100644 samples/client/petstore/javascript-promise/src/model/ArrayTest.js delete mode 100644 samples/client/petstore/javascript-promise/src/model/BigCat.js delete mode 100644 samples/client/petstore/javascript-promise/src/model/BigCatAllOf.js delete mode 100644 samples/client/petstore/javascript-promise/src/model/Capitalization.js delete mode 100644 samples/client/petstore/javascript-promise/src/model/Cat.js delete mode 100644 samples/client/petstore/javascript-promise/src/model/CatAllOf.js delete mode 100644 samples/client/petstore/javascript-promise/src/model/Category.js delete mode 100644 samples/client/petstore/javascript-promise/src/model/ClassModel.js delete mode 100644 samples/client/petstore/javascript-promise/src/model/Client.js delete mode 100644 samples/client/petstore/javascript-promise/src/model/Dog.js delete mode 100644 samples/client/petstore/javascript-promise/src/model/DogAllOf.js delete mode 100644 samples/client/petstore/javascript-promise/src/model/EnumArrays.js delete mode 100644 samples/client/petstore/javascript-promise/src/model/EnumClass.js delete mode 100644 samples/client/petstore/javascript-promise/src/model/EnumTest.js delete mode 100644 samples/client/petstore/javascript-promise/src/model/File.js delete mode 100644 samples/client/petstore/javascript-promise/src/model/FileSchemaTestClass.js delete mode 100644 samples/client/petstore/javascript-promise/src/model/FormatTest.js delete mode 100644 samples/client/petstore/javascript-promise/src/model/HasOnlyReadOnly.js delete mode 100644 samples/client/petstore/javascript-promise/src/model/List.js delete mode 100644 samples/client/petstore/javascript-promise/src/model/MapTest.js delete mode 100644 samples/client/petstore/javascript-promise/src/model/MixedPropertiesAndAdditionalPropertiesClass.js delete mode 100644 samples/client/petstore/javascript-promise/src/model/Model200Response.js delete mode 100644 samples/client/petstore/javascript-promise/src/model/ModelReturn.js delete mode 100644 samples/client/petstore/javascript-promise/src/model/Name.js delete mode 100644 samples/client/petstore/javascript-promise/src/model/NumberOnly.js delete mode 100644 samples/client/petstore/javascript-promise/src/model/Order.js delete mode 100644 samples/client/petstore/javascript-promise/src/model/OuterComposite.js delete mode 100644 samples/client/petstore/javascript-promise/src/model/OuterEnum.js delete mode 100644 samples/client/petstore/javascript-promise/src/model/Pet.js delete mode 100644 samples/client/petstore/javascript-promise/src/model/ReadOnlyFirst.js delete mode 100644 samples/client/petstore/javascript-promise/src/model/SpecialModelName.js delete mode 100644 samples/client/petstore/javascript-promise/src/model/Tag.js delete mode 100644 samples/client/petstore/javascript-promise/src/model/TypeHolderDefault.js delete mode 100644 samples/client/petstore/javascript-promise/src/model/TypeHolderExample.js delete mode 100644 samples/client/petstore/javascript-promise/src/model/User.js delete mode 100644 samples/client/petstore/javascript-promise/src/model/XmlItem.js delete mode 100644 samples/client/petstore/javascript-promise/test/ApiClientTest.js delete mode 100644 samples/client/petstore/javascript-promise/test/api/AnotherFakeApi.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/api/FakeApi.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/api/FakeClassnameTags123Api.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/api/PetApi.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/api/StoreApi.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/api/UserApi.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/mocha.opts delete mode 100644 samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesAnyType.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesArray.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesBoolean.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesClass.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesInteger.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesNumber.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesObject.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesString.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/model/Animal.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/model/ApiResponse.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/model/ArrayOfArrayOfNumberOnly.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/model/ArrayOfNumberOnly.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/model/ArrayTest.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/model/BigCat.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/model/BigCatAllOf.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/model/Capitalization.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/model/Cat.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/model/CatAllOf.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/model/Category.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/model/ClassModel.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/model/Client.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/model/Dog.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/model/DogAllOf.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/model/EnumArrays.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/model/EnumClass.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/model/EnumTest.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/model/File.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/model/FileSchemaTestClass.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/model/FormatTest.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/model/HasOnlyReadOnly.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/model/List.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/model/MapTest.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/model/MixedPropertiesAndAdditionalPropertiesClass.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/model/Model200Response.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/model/ModelReturn.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/model/Name.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/model/NumberOnly.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/model/Order.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/model/OuterComposite.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/model/OuterEnum.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/model/Pet.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/model/ReadOnlyFirst.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/model/SpecialModelName.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/model/Tag.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/model/TypeHolderDefault.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/model/TypeHolderExample.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/model/User.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/model/XmlItem.spec.js delete mode 100644 samples/client/petstore/javascript-promise/test/run_tests.html delete mode 100644 samples/client/petstore/javascript/.gitignore delete mode 100644 samples/client/petstore/javascript/.openapi-generator-ignore delete mode 100644 samples/client/petstore/javascript/.openapi-generator/FILES delete mode 100644 samples/client/petstore/javascript/.openapi-generator/VERSION delete mode 100644 samples/client/petstore/javascript/.travis.yml delete mode 100644 samples/client/petstore/javascript/README.md delete mode 100644 samples/client/petstore/javascript/docs/AdditionalPropertiesAnyType.md delete mode 100644 samples/client/petstore/javascript/docs/AdditionalPropertiesArray.md delete mode 100644 samples/client/petstore/javascript/docs/AdditionalPropertiesBoolean.md delete mode 100644 samples/client/petstore/javascript/docs/AdditionalPropertiesClass.md delete mode 100644 samples/client/petstore/javascript/docs/AdditionalPropertiesInteger.md delete mode 100644 samples/client/petstore/javascript/docs/AdditionalPropertiesNumber.md delete mode 100644 samples/client/petstore/javascript/docs/AdditionalPropertiesObject.md delete mode 100644 samples/client/petstore/javascript/docs/AdditionalPropertiesString.md delete mode 100644 samples/client/petstore/javascript/docs/Animal.md delete mode 100644 samples/client/petstore/javascript/docs/AnotherFakeApi.md delete mode 100644 samples/client/petstore/javascript/docs/ApiResponse.md delete mode 100644 samples/client/petstore/javascript/docs/ArrayOfArrayOfNumberOnly.md delete mode 100644 samples/client/petstore/javascript/docs/ArrayOfNumberOnly.md delete mode 100644 samples/client/petstore/javascript/docs/ArrayTest.md delete mode 100644 samples/client/petstore/javascript/docs/BigCat.md delete mode 100644 samples/client/petstore/javascript/docs/BigCatAllOf.md delete mode 100644 samples/client/petstore/javascript/docs/Capitalization.md delete mode 100644 samples/client/petstore/javascript/docs/Cat.md delete mode 100644 samples/client/petstore/javascript/docs/CatAllOf.md delete mode 100644 samples/client/petstore/javascript/docs/Category.md delete mode 100644 samples/client/petstore/javascript/docs/ClassModel.md delete mode 100644 samples/client/petstore/javascript/docs/Client.md delete mode 100644 samples/client/petstore/javascript/docs/Dog.md delete mode 100644 samples/client/petstore/javascript/docs/DogAllOf.md delete mode 100644 samples/client/petstore/javascript/docs/EnumArrays.md delete mode 100644 samples/client/petstore/javascript/docs/EnumClass.md delete mode 100644 samples/client/petstore/javascript/docs/EnumTest.md delete mode 100644 samples/client/petstore/javascript/docs/FakeApi.md delete mode 100644 samples/client/petstore/javascript/docs/FakeClassnameTags123Api.md delete mode 100644 samples/client/petstore/javascript/docs/File.md delete mode 100644 samples/client/petstore/javascript/docs/FileSchemaTestClass.md delete mode 100644 samples/client/petstore/javascript/docs/FormatTest.md delete mode 100644 samples/client/petstore/javascript/docs/HasOnlyReadOnly.md delete mode 100644 samples/client/petstore/javascript/docs/List.md delete mode 100644 samples/client/petstore/javascript/docs/MapTest.md delete mode 100644 samples/client/petstore/javascript/docs/MixedPropertiesAndAdditionalPropertiesClass.md delete mode 100644 samples/client/petstore/javascript/docs/Model200Response.md delete mode 100644 samples/client/petstore/javascript/docs/ModelReturn.md delete mode 100644 samples/client/petstore/javascript/docs/Name.md delete mode 100644 samples/client/petstore/javascript/docs/NumberOnly.md delete mode 100644 samples/client/petstore/javascript/docs/Order.md delete mode 100644 samples/client/petstore/javascript/docs/OuterComposite.md delete mode 100644 samples/client/petstore/javascript/docs/OuterEnum.md delete mode 100644 samples/client/petstore/javascript/docs/Pet.md delete mode 100644 samples/client/petstore/javascript/docs/PetApi.md delete mode 100644 samples/client/petstore/javascript/docs/ReadOnlyFirst.md delete mode 100644 samples/client/petstore/javascript/docs/SpecialModelName.md delete mode 100644 samples/client/petstore/javascript/docs/StoreApi.md delete mode 100644 samples/client/petstore/javascript/docs/Tag.md delete mode 100644 samples/client/petstore/javascript/docs/TypeHolderDefault.md delete mode 100644 samples/client/petstore/javascript/docs/TypeHolderExample.md delete mode 100644 samples/client/petstore/javascript/docs/User.md delete mode 100644 samples/client/petstore/javascript/docs/UserApi.md delete mode 100644 samples/client/petstore/javascript/docs/XmlItem.md delete mode 100644 samples/client/petstore/javascript/git_push.sh delete mode 100644 samples/client/petstore/javascript/mocha.opts delete mode 100644 samples/client/petstore/javascript/package.json delete mode 100644 samples/client/petstore/javascript/pom.xml delete mode 100644 samples/client/petstore/javascript/src/ApiClient.js delete mode 100644 samples/client/petstore/javascript/src/api/AnotherFakeApi.js delete mode 100644 samples/client/petstore/javascript/src/api/FakeApi.js delete mode 100644 samples/client/petstore/javascript/src/api/FakeClassnameTags123Api.js delete mode 100644 samples/client/petstore/javascript/src/api/PetApi.js delete mode 100644 samples/client/petstore/javascript/src/api/StoreApi.js delete mode 100644 samples/client/petstore/javascript/src/api/UserApi.js delete mode 100644 samples/client/petstore/javascript/src/index.js delete mode 100644 samples/client/petstore/javascript/src/model/AdditionalPropertiesAnyType.js delete mode 100644 samples/client/petstore/javascript/src/model/AdditionalPropertiesArray.js delete mode 100644 samples/client/petstore/javascript/src/model/AdditionalPropertiesBoolean.js delete mode 100644 samples/client/petstore/javascript/src/model/AdditionalPropertiesClass.js delete mode 100644 samples/client/petstore/javascript/src/model/AdditionalPropertiesInteger.js delete mode 100644 samples/client/petstore/javascript/src/model/AdditionalPropertiesNumber.js delete mode 100644 samples/client/petstore/javascript/src/model/AdditionalPropertiesObject.js delete mode 100644 samples/client/petstore/javascript/src/model/AdditionalPropertiesString.js delete mode 100644 samples/client/petstore/javascript/src/model/Animal.js delete mode 100644 samples/client/petstore/javascript/src/model/ApiResponse.js delete mode 100644 samples/client/petstore/javascript/src/model/ArrayOfArrayOfNumberOnly.js delete mode 100644 samples/client/petstore/javascript/src/model/ArrayOfNumberOnly.js delete mode 100644 samples/client/petstore/javascript/src/model/ArrayTest.js delete mode 100644 samples/client/petstore/javascript/src/model/BigCat.js delete mode 100644 samples/client/petstore/javascript/src/model/BigCatAllOf.js delete mode 100644 samples/client/petstore/javascript/src/model/Capitalization.js delete mode 100644 samples/client/petstore/javascript/src/model/Cat.js delete mode 100644 samples/client/petstore/javascript/src/model/CatAllOf.js delete mode 100644 samples/client/petstore/javascript/src/model/Category.js delete mode 100644 samples/client/petstore/javascript/src/model/ClassModel.js delete mode 100644 samples/client/petstore/javascript/src/model/Client.js delete mode 100644 samples/client/petstore/javascript/src/model/Dog.js delete mode 100644 samples/client/petstore/javascript/src/model/DogAllOf.js delete mode 100644 samples/client/petstore/javascript/src/model/EnumArrays.js delete mode 100644 samples/client/petstore/javascript/src/model/EnumClass.js delete mode 100644 samples/client/petstore/javascript/src/model/EnumTest.js delete mode 100644 samples/client/petstore/javascript/src/model/File.js delete mode 100644 samples/client/petstore/javascript/src/model/FileSchemaTestClass.js delete mode 100644 samples/client/petstore/javascript/src/model/FormatTest.js delete mode 100644 samples/client/petstore/javascript/src/model/HasOnlyReadOnly.js delete mode 100644 samples/client/petstore/javascript/src/model/List.js delete mode 100644 samples/client/petstore/javascript/src/model/MapTest.js delete mode 100644 samples/client/petstore/javascript/src/model/MixedPropertiesAndAdditionalPropertiesClass.js delete mode 100644 samples/client/petstore/javascript/src/model/Model200Response.js delete mode 100644 samples/client/petstore/javascript/src/model/ModelReturn.js delete mode 100644 samples/client/petstore/javascript/src/model/Name.js delete mode 100644 samples/client/petstore/javascript/src/model/NumberOnly.js delete mode 100644 samples/client/petstore/javascript/src/model/Order.js delete mode 100644 samples/client/petstore/javascript/src/model/OuterComposite.js delete mode 100644 samples/client/petstore/javascript/src/model/OuterEnum.js delete mode 100644 samples/client/petstore/javascript/src/model/Pet.js delete mode 100644 samples/client/petstore/javascript/src/model/ReadOnlyFirst.js delete mode 100644 samples/client/petstore/javascript/src/model/SpecialModelName.js delete mode 100644 samples/client/petstore/javascript/src/model/Tag.js delete mode 100644 samples/client/petstore/javascript/src/model/TypeHolderDefault.js delete mode 100644 samples/client/petstore/javascript/src/model/TypeHolderExample.js delete mode 100644 samples/client/petstore/javascript/src/model/User.js delete mode 100644 samples/client/petstore/javascript/src/model/XmlItem.js delete mode 100755 samples/client/petstore/javascript/test/ApiClientTest.js delete mode 100644 samples/client/petstore/javascript/test/api/AnotherFakeApi.spec.js delete mode 100644 samples/client/petstore/javascript/test/api/FakeApi.spec.js delete mode 100644 samples/client/petstore/javascript/test/api/FakeClassnameTags123Api.spec.js delete mode 100644 samples/client/petstore/javascript/test/api/PetApi.spec.js delete mode 100644 samples/client/petstore/javascript/test/api/StoreApi.spec.js delete mode 100644 samples/client/petstore/javascript/test/api/UserApi.spec.js delete mode 100644 samples/client/petstore/javascript/test/mocha.opts delete mode 100644 samples/client/petstore/javascript/test/model/AdditionalPropertiesAnyType.spec.js delete mode 100644 samples/client/petstore/javascript/test/model/AdditionalPropertiesArray.spec.js delete mode 100644 samples/client/petstore/javascript/test/model/AdditionalPropertiesBoolean.spec.js delete mode 100644 samples/client/petstore/javascript/test/model/AdditionalPropertiesClass.spec.js delete mode 100644 samples/client/petstore/javascript/test/model/AdditionalPropertiesInteger.spec.js delete mode 100644 samples/client/petstore/javascript/test/model/AdditionalPropertiesNumber.spec.js delete mode 100644 samples/client/petstore/javascript/test/model/AdditionalPropertiesObject.spec.js delete mode 100644 samples/client/petstore/javascript/test/model/AdditionalPropertiesString.spec.js delete mode 100644 samples/client/petstore/javascript/test/model/Animal.spec.js delete mode 100644 samples/client/petstore/javascript/test/model/ApiResponse.spec.js delete mode 100644 samples/client/petstore/javascript/test/model/ArrayOfArrayOfNumberOnly.spec.js delete mode 100644 samples/client/petstore/javascript/test/model/ArrayOfNumberOnly.spec.js delete mode 100644 samples/client/petstore/javascript/test/model/ArrayTest.spec.js delete mode 100644 samples/client/petstore/javascript/test/model/BigCat.spec.js delete mode 100644 samples/client/petstore/javascript/test/model/BigCatAllOf.spec.js delete mode 100644 samples/client/petstore/javascript/test/model/Capitalization.spec.js delete mode 100644 samples/client/petstore/javascript/test/model/Cat.spec.js delete mode 100644 samples/client/petstore/javascript/test/model/CatAllOf.spec.js delete mode 100644 samples/client/petstore/javascript/test/model/Category.spec.js delete mode 100644 samples/client/petstore/javascript/test/model/ClassModel.spec.js delete mode 100644 samples/client/petstore/javascript/test/model/Client.spec.js delete mode 100644 samples/client/petstore/javascript/test/model/Dog.spec.js delete mode 100644 samples/client/petstore/javascript/test/model/DogAllOf.spec.js delete mode 100644 samples/client/petstore/javascript/test/model/EnumArrays.spec.js delete mode 100644 samples/client/petstore/javascript/test/model/EnumClass.spec.js delete mode 100644 samples/client/petstore/javascript/test/model/EnumTest.spec.js delete mode 100644 samples/client/petstore/javascript/test/model/File.spec.js delete mode 100644 samples/client/petstore/javascript/test/model/FileSchemaTestClass.spec.js delete mode 100644 samples/client/petstore/javascript/test/model/FormatTest.spec.js delete mode 100644 samples/client/petstore/javascript/test/model/HasOnlyReadOnly.spec.js delete mode 100644 samples/client/petstore/javascript/test/model/List.spec.js delete mode 100644 samples/client/petstore/javascript/test/model/MapTest.spec.js delete mode 100644 samples/client/petstore/javascript/test/model/MixedPropertiesAndAdditionalPropertiesClass.spec.js delete mode 100644 samples/client/petstore/javascript/test/model/Model200Response.spec.js delete mode 100644 samples/client/petstore/javascript/test/model/ModelReturn.spec.js delete mode 100644 samples/client/petstore/javascript/test/model/Name.spec.js delete mode 100644 samples/client/petstore/javascript/test/model/NumberOnly.spec.js delete mode 100644 samples/client/petstore/javascript/test/model/Order.spec.js delete mode 100644 samples/client/petstore/javascript/test/model/OuterComposite.spec.js delete mode 100644 samples/client/petstore/javascript/test/model/OuterEnum.spec.js delete mode 100644 samples/client/petstore/javascript/test/model/Pet.spec.js delete mode 100644 samples/client/petstore/javascript/test/model/ReadOnlyFirst.spec.js delete mode 100644 samples/client/petstore/javascript/test/model/SpecialModelName.spec.js delete mode 100644 samples/client/petstore/javascript/test/model/Tag.spec.js delete mode 100644 samples/client/petstore/javascript/test/model/TypeHolderDefault.spec.js delete mode 100644 samples/client/petstore/javascript/test/model/TypeHolderExample.spec.js delete mode 100644 samples/client/petstore/javascript/test/model/User.spec.js delete mode 100644 samples/client/petstore/javascript/test/model/XmlItem.spec.js delete mode 100644 samples/client/petstore/javascript/test/run_tests.html diff --git a/samples/client/petstore/javascript-promise/.gitignore b/samples/client/petstore/javascript-promise/.gitignore deleted file mode 100644 index 2ccbe4656c60..000000000000 --- a/samples/client/petstore/javascript-promise/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/node_modules/ diff --git a/samples/client/petstore/javascript-promise/.openapi-generator-ignore b/samples/client/petstore/javascript-promise/.openapi-generator-ignore deleted file mode 100644 index c5fa491b4c55..000000000000 --- a/samples/client/petstore/javascript-promise/.openapi-generator-ignore +++ /dev/null @@ -1,23 +0,0 @@ -# Swagger Codegen Ignore -# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen - -# Use this file to prevent files from being overwritten by the generator. -# The patterns follow closely to .gitignore or .dockerignore. - -# As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: -#ApiClient.cs - -# You can match any string of characters against a directory, file or extension with a single asterisk (*): -#foo/*/qux -# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux - -# You can recursively match patterns against a directory, file or extension with a double asterisk (**): -#foo/**/qux -# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux - -# You can also negate patterns with an exclamation (!). -# For example, you can ignore all files in a docs folder with the file extension .md: -#docs/*.md -# Then explicitly reverse the ignore rule for a single file: -#!docs/README.md diff --git a/samples/client/petstore/javascript-promise/.openapi-generator/FILES b/samples/client/petstore/javascript-promise/.openapi-generator/FILES deleted file mode 100644 index 2a3e1d4d81ea..000000000000 --- a/samples/client/petstore/javascript-promise/.openapi-generator/FILES +++ /dev/null @@ -1,115 +0,0 @@ -.travis.yml -README.md -docs/AdditionalPropertiesAnyType.md -docs/AdditionalPropertiesArray.md -docs/AdditionalPropertiesBoolean.md -docs/AdditionalPropertiesClass.md -docs/AdditionalPropertiesInteger.md -docs/AdditionalPropertiesNumber.md -docs/AdditionalPropertiesObject.md -docs/AdditionalPropertiesString.md -docs/Animal.md -docs/AnotherFakeApi.md -docs/ApiResponse.md -docs/ArrayOfArrayOfNumberOnly.md -docs/ArrayOfNumberOnly.md -docs/ArrayTest.md -docs/BigCat.md -docs/BigCatAllOf.md -docs/Capitalization.md -docs/Cat.md -docs/CatAllOf.md -docs/Category.md -docs/ClassModel.md -docs/Client.md -docs/Dog.md -docs/DogAllOf.md -docs/EnumArrays.md -docs/EnumClass.md -docs/EnumTest.md -docs/FakeApi.md -docs/FakeClassnameTags123Api.md -docs/File.md -docs/FileSchemaTestClass.md -docs/FormatTest.md -docs/HasOnlyReadOnly.md -docs/List.md -docs/MapTest.md -docs/MixedPropertiesAndAdditionalPropertiesClass.md -docs/Model200Response.md -docs/ModelReturn.md -docs/Name.md -docs/NumberOnly.md -docs/Order.md -docs/OuterComposite.md -docs/OuterEnum.md -docs/Pet.md -docs/PetApi.md -docs/ReadOnlyFirst.md -docs/SpecialModelName.md -docs/StoreApi.md -docs/Tag.md -docs/TypeHolderDefault.md -docs/TypeHolderExample.md -docs/User.md -docs/UserApi.md -docs/XmlItem.md -git_push.sh -mocha.opts -package.json -src/ApiClient.js -src/api/AnotherFakeApi.js -src/api/FakeApi.js -src/api/FakeClassnameTags123Api.js -src/api/PetApi.js -src/api/StoreApi.js -src/api/UserApi.js -src/index.js -src/model/AdditionalPropertiesAnyType.js -src/model/AdditionalPropertiesArray.js -src/model/AdditionalPropertiesBoolean.js -src/model/AdditionalPropertiesClass.js -src/model/AdditionalPropertiesInteger.js -src/model/AdditionalPropertiesNumber.js -src/model/AdditionalPropertiesObject.js -src/model/AdditionalPropertiesString.js -src/model/Animal.js -src/model/ApiResponse.js -src/model/ArrayOfArrayOfNumberOnly.js -src/model/ArrayOfNumberOnly.js -src/model/ArrayTest.js -src/model/BigCat.js -src/model/BigCatAllOf.js -src/model/Capitalization.js -src/model/Cat.js -src/model/CatAllOf.js -src/model/Category.js -src/model/ClassModel.js -src/model/Client.js -src/model/Dog.js -src/model/DogAllOf.js -src/model/EnumArrays.js -src/model/EnumClass.js -src/model/EnumTest.js -src/model/File.js -src/model/FileSchemaTestClass.js -src/model/FormatTest.js -src/model/HasOnlyReadOnly.js -src/model/List.js -src/model/MapTest.js -src/model/MixedPropertiesAndAdditionalPropertiesClass.js -src/model/Model200Response.js -src/model/ModelReturn.js -src/model/Name.js -src/model/NumberOnly.js -src/model/Order.js -src/model/OuterComposite.js -src/model/OuterEnum.js -src/model/Pet.js -src/model/ReadOnlyFirst.js -src/model/SpecialModelName.js -src/model/Tag.js -src/model/TypeHolderDefault.js -src/model/TypeHolderExample.js -src/model/User.js -src/model/XmlItem.js diff --git a/samples/client/petstore/javascript-promise/.openapi-generator/VERSION b/samples/client/petstore/javascript-promise/.openapi-generator/VERSION deleted file mode 100644 index d99e7162d01f..000000000000 --- a/samples/client/petstore/javascript-promise/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -5.0.0-SNAPSHOT \ No newline at end of file diff --git a/samples/client/petstore/javascript-promise/.travis.yml b/samples/client/petstore/javascript-promise/.travis.yml deleted file mode 100644 index 1b1103e7bd1b..000000000000 --- a/samples/client/petstore/javascript-promise/.travis.yml +++ /dev/null @@ -1,5 +0,0 @@ -language: node_js -cache: npm -node_js: - - "5" - - "5.11" diff --git a/samples/client/petstore/javascript-promise/README.md b/samples/client/petstore/javascript-promise/README.md deleted file mode 100644 index 40ff6714acae..000000000000 --- a/samples/client/petstore/javascript-promise/README.md +++ /dev/null @@ -1,238 +0,0 @@ -# open_api_petstore - -OpenApiPetstore - JavaScript client for open_api_petstore -This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - -- API version: 1.0.0 -- Package version: 1.0.0 -- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen - -## Installation - -### For [Node.js](https://nodejs.org/) - -#### npm - -To publish the library as a [npm](https://www.npmjs.com/), please follow the procedure in ["Publishing npm packages"](https://docs.npmjs.com/getting-started/publishing-npm-packages). - -Then install it via: - -```shell -npm install open_api_petstore --save -``` - -##### Local development - -To use the library locally without publishing to a remote npm registry, first install the dependencies by changing into the directory containing `package.json` (and this README). Let's call this `JAVASCRIPT_CLIENT_DIR`. Then run: - -```shell -npm install -``` - -Next, [link](https://docs.npmjs.com/cli/link) it globally in npm with the following, also from `JAVASCRIPT_CLIENT_DIR`: - -```shell -npm link -``` - -Finally, switch to the directory you want to use your open_api_petstore from, and run: - -```shell -npm link /path/to/ -``` - -You should now be able to `require('open_api_petstore')` in javascript files from the directory you ran the last command above from. - -### git - -If the library is hosted at a git repository, e.g. https://github.com/GIT_USER_ID/GIT_REPO_ID -then install it via: - -```shell - npm install GIT_USER_ID/GIT_REPO_ID --save -``` - -### For browser - -The library also works in the browser environment via npm and [browserify](http://browserify.org/). After following the above steps with Node.js and installing browserify with `npm install -g browserify`, perform the following (assuming *main.js* is your entry file, that's to say your javascript file where you actually use this library): - -```shell -browserify main.js > bundle.js -``` - -Then include *bundle.js* in the HTML pages. - -### Webpack Configuration - -Using Webpack you may encounter the following error: "Module not found: Error: -Cannot resolve module", most certainly you should disable AMD loader. Add/merge -the following section to your webpack config: - -```javascript -module: { - rules: [ - { - parser: { - amd: false - } - } - ] -} -``` - -## Getting Started - -Please follow the [installation](#installation) instruction and execute the following JS code: - -```javascript -var OpenApiPetstore = require('open_api_petstore'); - - -var api = new OpenApiPetstore.AnotherFakeApi() -var body = new OpenApiPetstore.Client(); // {Client} client model -api.call123testSpecialTags(body).then(function(data) { - console.log('API called successfully. Returned data: ' + data); -}, function(error) { - console.error(error); -}); - - -``` - -## Documentation for API Endpoints - -All URIs are relative to *http://petstore.swagger.io:80/v2* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*OpenApiPetstore.AnotherFakeApi* | [**call123testSpecialTags**](docs/AnotherFakeApi.md#call123testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags -*OpenApiPetstore.FakeApi* | [**createXmlItem**](docs/FakeApi.md#createXmlItem) | **POST** /fake/create_xml_item | creates an XmlItem -*OpenApiPetstore.FakeApi* | [**fakeOuterBooleanSerialize**](docs/FakeApi.md#fakeOuterBooleanSerialize) | **POST** /fake/outer/boolean | -*OpenApiPetstore.FakeApi* | [**fakeOuterCompositeSerialize**](docs/FakeApi.md#fakeOuterCompositeSerialize) | **POST** /fake/outer/composite | -*OpenApiPetstore.FakeApi* | [**fakeOuterNumberSerialize**](docs/FakeApi.md#fakeOuterNumberSerialize) | **POST** /fake/outer/number | -*OpenApiPetstore.FakeApi* | [**fakeOuterStringSerialize**](docs/FakeApi.md#fakeOuterStringSerialize) | **POST** /fake/outer/string | -*OpenApiPetstore.FakeApi* | [**testBodyWithFileSchema**](docs/FakeApi.md#testBodyWithFileSchema) | **PUT** /fake/body-with-file-schema | -*OpenApiPetstore.FakeApi* | [**testBodyWithQueryParams**](docs/FakeApi.md#testBodyWithQueryParams) | **PUT** /fake/body-with-query-params | -*OpenApiPetstore.FakeApi* | [**testClientModel**](docs/FakeApi.md#testClientModel) | **PATCH** /fake | To test \"client\" model -*OpenApiPetstore.FakeApi* | [**testEndpointParameters**](docs/FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 -*OpenApiPetstore.FakeApi* | [**testEnumParameters**](docs/FakeApi.md#testEnumParameters) | **GET** /fake | To test enum parameters -*OpenApiPetstore.FakeApi* | [**testGroupParameters**](docs/FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) -*OpenApiPetstore.FakeApi* | [**testInlineAdditionalProperties**](docs/FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties -*OpenApiPetstore.FakeApi* | [**testJsonFormData**](docs/FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data -*OpenApiPetstore.FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | -*OpenApiPetstore.FakeClassnameTags123Api* | [**testClassname**](docs/FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case -*OpenApiPetstore.PetApi* | [**addPet**](docs/PetApi.md#addPet) | **POST** /pet | Add a new pet to the store -*OpenApiPetstore.PetApi* | [**deletePet**](docs/PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet -*OpenApiPetstore.PetApi* | [**findPetsByStatus**](docs/PetApi.md#findPetsByStatus) | **GET** /pet/findByStatus | Finds Pets by status -*OpenApiPetstore.PetApi* | [**findPetsByTags**](docs/PetApi.md#findPetsByTags) | **GET** /pet/findByTags | Finds Pets by tags -*OpenApiPetstore.PetApi* | [**getPetById**](docs/PetApi.md#getPetById) | **GET** /pet/{petId} | Find pet by ID -*OpenApiPetstore.PetApi* | [**updatePet**](docs/PetApi.md#updatePet) | **PUT** /pet | Update an existing pet -*OpenApiPetstore.PetApi* | [**updatePetWithForm**](docs/PetApi.md#updatePetWithForm) | **POST** /pet/{petId} | Updates a pet in the store with form data -*OpenApiPetstore.PetApi* | [**uploadFile**](docs/PetApi.md#uploadFile) | **POST** /pet/{petId}/uploadImage | uploads an image -*OpenApiPetstore.PetApi* | [**uploadFileWithRequiredFile**](docs/PetApi.md#uploadFileWithRequiredFile) | **POST** /fake/{petId}/uploadImageWithRequiredFile | uploads an image (required) -*OpenApiPetstore.StoreApi* | [**deleteOrder**](docs/StoreApi.md#deleteOrder) | **DELETE** /store/order/{order_id} | Delete purchase order by ID -*OpenApiPetstore.StoreApi* | [**getInventory**](docs/StoreApi.md#getInventory) | **GET** /store/inventory | Returns pet inventories by status -*OpenApiPetstore.StoreApi* | [**getOrderById**](docs/StoreApi.md#getOrderById) | **GET** /store/order/{order_id} | Find purchase order by ID -*OpenApiPetstore.StoreApi* | [**placeOrder**](docs/StoreApi.md#placeOrder) | **POST** /store/order | Place an order for a pet -*OpenApiPetstore.UserApi* | [**createUser**](docs/UserApi.md#createUser) | **POST** /user | Create user -*OpenApiPetstore.UserApi* | [**createUsersWithArrayInput**](docs/UserApi.md#createUsersWithArrayInput) | **POST** /user/createWithArray | Creates list of users with given input array -*OpenApiPetstore.UserApi* | [**createUsersWithListInput**](docs/UserApi.md#createUsersWithListInput) | **POST** /user/createWithList | Creates list of users with given input array -*OpenApiPetstore.UserApi* | [**deleteUser**](docs/UserApi.md#deleteUser) | **DELETE** /user/{username} | Delete user -*OpenApiPetstore.UserApi* | [**getUserByName**](docs/UserApi.md#getUserByName) | **GET** /user/{username} | Get user by user name -*OpenApiPetstore.UserApi* | [**loginUser**](docs/UserApi.md#loginUser) | **GET** /user/login | Logs user into the system -*OpenApiPetstore.UserApi* | [**logoutUser**](docs/UserApi.md#logoutUser) | **GET** /user/logout | Logs out current logged in user session -*OpenApiPetstore.UserApi* | [**updateUser**](docs/UserApi.md#updateUser) | **PUT** /user/{username} | Updated user - - -## Documentation for Models - - - [OpenApiPetstore.AdditionalPropertiesAnyType](docs/AdditionalPropertiesAnyType.md) - - [OpenApiPetstore.AdditionalPropertiesArray](docs/AdditionalPropertiesArray.md) - - [OpenApiPetstore.AdditionalPropertiesBoolean](docs/AdditionalPropertiesBoolean.md) - - [OpenApiPetstore.AdditionalPropertiesClass](docs/AdditionalPropertiesClass.md) - - [OpenApiPetstore.AdditionalPropertiesInteger](docs/AdditionalPropertiesInteger.md) - - [OpenApiPetstore.AdditionalPropertiesNumber](docs/AdditionalPropertiesNumber.md) - - [OpenApiPetstore.AdditionalPropertiesObject](docs/AdditionalPropertiesObject.md) - - [OpenApiPetstore.AdditionalPropertiesString](docs/AdditionalPropertiesString.md) - - [OpenApiPetstore.Animal](docs/Animal.md) - - [OpenApiPetstore.ApiResponse](docs/ApiResponse.md) - - [OpenApiPetstore.ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md) - - [OpenApiPetstore.ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md) - - [OpenApiPetstore.ArrayTest](docs/ArrayTest.md) - - [OpenApiPetstore.BigCat](docs/BigCat.md) - - [OpenApiPetstore.BigCatAllOf](docs/BigCatAllOf.md) - - [OpenApiPetstore.Capitalization](docs/Capitalization.md) - - [OpenApiPetstore.Cat](docs/Cat.md) - - [OpenApiPetstore.CatAllOf](docs/CatAllOf.md) - - [OpenApiPetstore.Category](docs/Category.md) - - [OpenApiPetstore.ClassModel](docs/ClassModel.md) - - [OpenApiPetstore.Client](docs/Client.md) - - [OpenApiPetstore.Dog](docs/Dog.md) - - [OpenApiPetstore.DogAllOf](docs/DogAllOf.md) - - [OpenApiPetstore.EnumArrays](docs/EnumArrays.md) - - [OpenApiPetstore.EnumClass](docs/EnumClass.md) - - [OpenApiPetstore.EnumTest](docs/EnumTest.md) - - [OpenApiPetstore.File](docs/File.md) - - [OpenApiPetstore.FileSchemaTestClass](docs/FileSchemaTestClass.md) - - [OpenApiPetstore.FormatTest](docs/FormatTest.md) - - [OpenApiPetstore.HasOnlyReadOnly](docs/HasOnlyReadOnly.md) - - [OpenApiPetstore.List](docs/List.md) - - [OpenApiPetstore.MapTest](docs/MapTest.md) - - [OpenApiPetstore.MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md) - - [OpenApiPetstore.Model200Response](docs/Model200Response.md) - - [OpenApiPetstore.ModelReturn](docs/ModelReturn.md) - - [OpenApiPetstore.Name](docs/Name.md) - - [OpenApiPetstore.NumberOnly](docs/NumberOnly.md) - - [OpenApiPetstore.Order](docs/Order.md) - - [OpenApiPetstore.OuterComposite](docs/OuterComposite.md) - - [OpenApiPetstore.OuterEnum](docs/OuterEnum.md) - - [OpenApiPetstore.Pet](docs/Pet.md) - - [OpenApiPetstore.ReadOnlyFirst](docs/ReadOnlyFirst.md) - - [OpenApiPetstore.SpecialModelName](docs/SpecialModelName.md) - - [OpenApiPetstore.Tag](docs/Tag.md) - - [OpenApiPetstore.TypeHolderDefault](docs/TypeHolderDefault.md) - - [OpenApiPetstore.TypeHolderExample](docs/TypeHolderExample.md) - - [OpenApiPetstore.User](docs/User.md) - - [OpenApiPetstore.XmlItem](docs/XmlItem.md) - - -## Documentation for Authorization - - - -### api_key - - -- **Type**: API key -- **API key parameter name**: api_key -- **Location**: HTTP header - - - -### api_key_query - - -- **Type**: API key -- **API key parameter name**: api_key_query -- **Location**: URL query string - - - -### http_basic_test - - -- **Type**: HTTP basic authentication - - - -### petstore_auth - - -- **Type**: OAuth -- **Flow**: implicit -- **Authorization URL**: http://petstore.swagger.io/api/oauth/dialog -- **Scopes**: - - write:pets: modify pets in your account - - read:pets: read your pets - diff --git a/samples/client/petstore/javascript-promise/docs/AdditionalPropertiesAnyType.md b/samples/client/petstore/javascript-promise/docs/AdditionalPropertiesAnyType.md deleted file mode 100644 index 4b14f26ad125..000000000000 --- a/samples/client/petstore/javascript-promise/docs/AdditionalPropertiesAnyType.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.AdditionalPropertiesAnyType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | | [optional] - - diff --git a/samples/client/petstore/javascript-promise/docs/AdditionalPropertiesArray.md b/samples/client/petstore/javascript-promise/docs/AdditionalPropertiesArray.md deleted file mode 100644 index b99e8820d27a..000000000000 --- a/samples/client/petstore/javascript-promise/docs/AdditionalPropertiesArray.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.AdditionalPropertiesArray - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | | [optional] - - diff --git a/samples/client/petstore/javascript-promise/docs/AdditionalPropertiesBoolean.md b/samples/client/petstore/javascript-promise/docs/AdditionalPropertiesBoolean.md deleted file mode 100644 index db3f089ce98e..000000000000 --- a/samples/client/petstore/javascript-promise/docs/AdditionalPropertiesBoolean.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.AdditionalPropertiesBoolean - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | | [optional] - - diff --git a/samples/client/petstore/javascript-promise/docs/AdditionalPropertiesClass.md b/samples/client/petstore/javascript-promise/docs/AdditionalPropertiesClass.md deleted file mode 100644 index 9f8a26bcc612..000000000000 --- a/samples/client/petstore/javascript-promise/docs/AdditionalPropertiesClass.md +++ /dev/null @@ -1,19 +0,0 @@ -# OpenApiPetstore.AdditionalPropertiesClass - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**mapString** | **{String: String}** | | [optional] -**mapNumber** | **{String: Number}** | | [optional] -**mapInteger** | **{String: Number}** | | [optional] -**mapBoolean** | **{String: Boolean}** | | [optional] -**mapArrayInteger** | **{String: [Number]}** | | [optional] -**mapArrayAnytype** | **{String: [Object]}** | | [optional] -**mapMapString** | **{String: {String: String}}** | | [optional] -**mapMapAnytype** | **{String: {String: Object}}** | | [optional] -**anytype1** | **Object** | | [optional] -**anytype2** | **Object** | | [optional] -**anytype3** | **Object** | | [optional] - - diff --git a/samples/client/petstore/javascript-promise/docs/AdditionalPropertiesInteger.md b/samples/client/petstore/javascript-promise/docs/AdditionalPropertiesInteger.md deleted file mode 100644 index be98887371ae..000000000000 --- a/samples/client/petstore/javascript-promise/docs/AdditionalPropertiesInteger.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.AdditionalPropertiesInteger - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | | [optional] - - diff --git a/samples/client/petstore/javascript-promise/docs/AdditionalPropertiesNumber.md b/samples/client/petstore/javascript-promise/docs/AdditionalPropertiesNumber.md deleted file mode 100644 index 6f4273d6eb36..000000000000 --- a/samples/client/petstore/javascript-promise/docs/AdditionalPropertiesNumber.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.AdditionalPropertiesNumber - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | | [optional] - - diff --git a/samples/client/petstore/javascript-promise/docs/AdditionalPropertiesObject.md b/samples/client/petstore/javascript-promise/docs/AdditionalPropertiesObject.md deleted file mode 100644 index 58a92784180d..000000000000 --- a/samples/client/petstore/javascript-promise/docs/AdditionalPropertiesObject.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.AdditionalPropertiesObject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | | [optional] - - diff --git a/samples/client/petstore/javascript-promise/docs/AdditionalPropertiesString.md b/samples/client/petstore/javascript-promise/docs/AdditionalPropertiesString.md deleted file mode 100644 index ee6ad171eef5..000000000000 --- a/samples/client/petstore/javascript-promise/docs/AdditionalPropertiesString.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.AdditionalPropertiesString - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | | [optional] - - diff --git a/samples/client/petstore/javascript-promise/docs/Animal.md b/samples/client/petstore/javascript-promise/docs/Animal.md deleted file mode 100644 index 483c89a1ab30..000000000000 --- a/samples/client/petstore/javascript-promise/docs/Animal.md +++ /dev/null @@ -1,10 +0,0 @@ -# OpenApiPetstore.Animal - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**className** | **String** | | -**color** | **String** | | [optional] [default to 'red'] - - diff --git a/samples/client/petstore/javascript-promise/docs/AnotherFakeApi.md b/samples/client/petstore/javascript-promise/docs/AnotherFakeApi.md deleted file mode 100644 index 9f8811f430d6..000000000000 --- a/samples/client/petstore/javascript-promise/docs/AnotherFakeApi.md +++ /dev/null @@ -1,54 +0,0 @@ -# OpenApiPetstore.AnotherFakeApi - -All URIs are relative to *http://petstore.swagger.io:80/v2* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**call123testSpecialTags**](AnotherFakeApi.md#call123testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags - - - -## call123testSpecialTags - -> Client call123testSpecialTags(body) - -To test special tags - -To test special tags and operation ID starting with number - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); - -var apiInstance = new OpenApiPetstore.AnotherFakeApi(); -var body = new OpenApiPetstore.Client(); // Client | client model -apiInstance.call123testSpecialTags(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 - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - diff --git a/samples/client/petstore/javascript-promise/docs/ApiResponse.md b/samples/client/petstore/javascript-promise/docs/ApiResponse.md deleted file mode 100644 index 0dc945d60766..000000000000 --- a/samples/client/petstore/javascript-promise/docs/ApiResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# OpenApiPetstore.ApiResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **Number** | | [optional] -**type** | **String** | | [optional] -**message** | **String** | | [optional] - - diff --git a/samples/client/petstore/javascript-promise/docs/ArrayOfArrayOfNumberOnly.md b/samples/client/petstore/javascript-promise/docs/ArrayOfArrayOfNumberOnly.md deleted file mode 100644 index c321c0985f3a..000000000000 --- a/samples/client/petstore/javascript-promise/docs/ArrayOfArrayOfNumberOnly.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.ArrayOfArrayOfNumberOnly - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**arrayArrayNumber** | **[[Number]]** | | [optional] - - diff --git a/samples/client/petstore/javascript-promise/docs/ArrayOfNumberOnly.md b/samples/client/petstore/javascript-promise/docs/ArrayOfNumberOnly.md deleted file mode 100644 index b83e136d978f..000000000000 --- a/samples/client/petstore/javascript-promise/docs/ArrayOfNumberOnly.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.ArrayOfNumberOnly - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**arrayNumber** | **[Number]** | | [optional] - - diff --git a/samples/client/petstore/javascript-promise/docs/ArrayTest.md b/samples/client/petstore/javascript-promise/docs/ArrayTest.md deleted file mode 100644 index 711b53a520f5..000000000000 --- a/samples/client/petstore/javascript-promise/docs/ArrayTest.md +++ /dev/null @@ -1,11 +0,0 @@ -# OpenApiPetstore.ArrayTest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**arrayOfString** | **[String]** | | [optional] -**arrayArrayOfInteger** | **[[Number]]** | | [optional] -**arrayArrayOfModel** | **[[ReadOnlyFirst]]** | | [optional] - - diff --git a/samples/client/petstore/javascript-promise/docs/BigCat.md b/samples/client/petstore/javascript-promise/docs/BigCat.md deleted file mode 100644 index bbd79b2ba1bb..000000000000 --- a/samples/client/petstore/javascript-promise/docs/BigCat.md +++ /dev/null @@ -1,24 +0,0 @@ -# OpenApiPetstore.BigCat - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**kind** | **String** | | [optional] - - - -## Enum: KindEnum - - -* `lions` (value: `"lions"`) - -* `tigers` (value: `"tigers"`) - -* `leopards` (value: `"leopards"`) - -* `jaguars` (value: `"jaguars"`) - - - - diff --git a/samples/client/petstore/javascript-promise/docs/BigCatAllOf.md b/samples/client/petstore/javascript-promise/docs/BigCatAllOf.md deleted file mode 100644 index c5e83bfdaebb..000000000000 --- a/samples/client/petstore/javascript-promise/docs/BigCatAllOf.md +++ /dev/null @@ -1,24 +0,0 @@ -# OpenApiPetstore.BigCatAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**kind** | **String** | | [optional] - - - -## Enum: KindEnum - - -* `lions` (value: `"lions"`) - -* `tigers` (value: `"tigers"`) - -* `leopards` (value: `"leopards"`) - -* `jaguars` (value: `"jaguars"`) - - - - diff --git a/samples/client/petstore/javascript-promise/docs/Capitalization.md b/samples/client/petstore/javascript-promise/docs/Capitalization.md deleted file mode 100644 index 3bbc5d491fc1..000000000000 --- a/samples/client/petstore/javascript-promise/docs/Capitalization.md +++ /dev/null @@ -1,14 +0,0 @@ -# OpenApiPetstore.Capitalization - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**smallCamel** | **String** | | [optional] -**capitalCamel** | **String** | | [optional] -**smallSnake** | **String** | | [optional] -**capitalSnake** | **String** | | [optional] -**sCAETHFlowPoints** | **String** | | [optional] -**ATT_NAME** | **String** | Name of the pet | [optional] - - diff --git a/samples/client/petstore/javascript-promise/docs/Cat.md b/samples/client/petstore/javascript-promise/docs/Cat.md deleted file mode 100644 index 652bca4ed073..000000000000 --- a/samples/client/petstore/javascript-promise/docs/Cat.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.Cat - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**declawed** | **Boolean** | | [optional] - - diff --git a/samples/client/petstore/javascript-promise/docs/CatAllOf.md b/samples/client/petstore/javascript-promise/docs/CatAllOf.md deleted file mode 100644 index 3b8274c01202..000000000000 --- a/samples/client/petstore/javascript-promise/docs/CatAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.CatAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**declawed** | **Boolean** | | [optional] - - diff --git a/samples/client/petstore/javascript-promise/docs/Category.md b/samples/client/petstore/javascript-promise/docs/Category.md deleted file mode 100644 index 2de44aa03ddc..000000000000 --- a/samples/client/petstore/javascript-promise/docs/Category.md +++ /dev/null @@ -1,10 +0,0 @@ -# OpenApiPetstore.Category - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | | [optional] -**name** | **String** | | [default to 'default-name'] - - diff --git a/samples/client/petstore/javascript-promise/docs/ClassModel.md b/samples/client/petstore/javascript-promise/docs/ClassModel.md deleted file mode 100644 index dd90930dade3..000000000000 --- a/samples/client/petstore/javascript-promise/docs/ClassModel.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.ClassModel - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**_class** | **String** | | [optional] - - diff --git a/samples/client/petstore/javascript-promise/docs/Client.md b/samples/client/petstore/javascript-promise/docs/Client.md deleted file mode 100644 index 1164b7043191..000000000000 --- a/samples/client/petstore/javascript-promise/docs/Client.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.Client - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**client** | **String** | | [optional] - - diff --git a/samples/client/petstore/javascript-promise/docs/Dog.md b/samples/client/petstore/javascript-promise/docs/Dog.md deleted file mode 100644 index fd3b9f7c77ce..000000000000 --- a/samples/client/petstore/javascript-promise/docs/Dog.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.Dog - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**breed** | **String** | | [optional] - - diff --git a/samples/client/petstore/javascript-promise/docs/DogAllOf.md b/samples/client/petstore/javascript-promise/docs/DogAllOf.md deleted file mode 100644 index 8a6402940735..000000000000 --- a/samples/client/petstore/javascript-promise/docs/DogAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.DogAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**breed** | **String** | | [optional] - - diff --git a/samples/client/petstore/javascript-promise/docs/EnumArrays.md b/samples/client/petstore/javascript-promise/docs/EnumArrays.md deleted file mode 100644 index 4926385b3ff8..000000000000 --- a/samples/client/petstore/javascript-promise/docs/EnumArrays.md +++ /dev/null @@ -1,32 +0,0 @@ -# OpenApiPetstore.EnumArrays - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**justSymbol** | **String** | | [optional] -**arrayEnum** | **[String]** | | [optional] - - - -## Enum: JustSymbolEnum - - -* `GREATER_THAN_OR_EQUAL_TO` (value: `">="`) - -* `DOLLAR` (value: `"$"`) - - - - - -## Enum: [ArrayEnumEnum] - - -* `fish` (value: `"fish"`) - -* `crab` (value: `"crab"`) - - - - diff --git a/samples/client/petstore/javascript-promise/docs/EnumClass.md b/samples/client/petstore/javascript-promise/docs/EnumClass.md deleted file mode 100644 index cef9bb57a56c..000000000000 --- a/samples/client/petstore/javascript-promise/docs/EnumClass.md +++ /dev/null @@ -1,12 +0,0 @@ -# OpenApiPetstore.EnumClass - -## Enum - - -* `_abc` (value: `"_abc"`) - -* `-efg` (value: `"-efg"`) - -* `(xyz)` (value: `"(xyz)"`) - - diff --git a/samples/client/petstore/javascript-promise/docs/EnumTest.md b/samples/client/petstore/javascript-promise/docs/EnumTest.md deleted file mode 100644 index c1504aeb4f72..000000000000 --- a/samples/client/petstore/javascript-promise/docs/EnumTest.md +++ /dev/null @@ -1,61 +0,0 @@ -# OpenApiPetstore.EnumTest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**enumString** | **String** | | [optional] -**enumStringRequired** | **String** | | -**enumInteger** | **Number** | | [optional] -**enumNumber** | **Number** | | [optional] -**outerEnum** | [**OuterEnum**](OuterEnum.md) | | [optional] - - - -## Enum: EnumStringEnum - - -* `UPPER` (value: `"UPPER"`) - -* `lower` (value: `"lower"`) - -* `empty` (value: `""`) - - - - - -## Enum: EnumStringRequiredEnum - - -* `UPPER` (value: `"UPPER"`) - -* `lower` (value: `"lower"`) - -* `empty` (value: `""`) - - - - - -## Enum: EnumIntegerEnum - - -* `1` (value: `1`) - -* `-1` (value: `-1`) - - - - - -## Enum: EnumNumberEnum - - -* `1.1` (value: `1.1`) - -* `-1.2` (value: `-1.2`) - - - - diff --git a/samples/client/petstore/javascript-promise/docs/FakeApi.md b/samples/client/petstore/javascript-promise/docs/FakeApi.md deleted file mode 100644 index 091f13eb5db8..000000000000 --- a/samples/client/petstore/javascript-promise/docs/FakeApi.md +++ /dev/null @@ -1,727 +0,0 @@ -# OpenApiPetstore.FakeApi - -All URIs are relative to *http://petstore.swagger.io:80/v2* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createXmlItem**](FakeApi.md#createXmlItem) | **POST** /fake/create_xml_item | creates an XmlItem -[**fakeOuterBooleanSerialize**](FakeApi.md#fakeOuterBooleanSerialize) | **POST** /fake/outer/boolean | -[**fakeOuterCompositeSerialize**](FakeApi.md#fakeOuterCompositeSerialize) | **POST** /fake/outer/composite | -[**fakeOuterNumberSerialize**](FakeApi.md#fakeOuterNumberSerialize) | **POST** /fake/outer/number | -[**fakeOuterStringSerialize**](FakeApi.md#fakeOuterStringSerialize) | **POST** /fake/outer/string | -[**testBodyWithFileSchema**](FakeApi.md#testBodyWithFileSchema) | **PUT** /fake/body-with-file-schema | -[**testBodyWithQueryParams**](FakeApi.md#testBodyWithQueryParams) | **PUT** /fake/body-with-query-params | -[**testClientModel**](FakeApi.md#testClientModel) | **PATCH** /fake | To test \"client\" model -[**testEndpointParameters**](FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 -[**testEnumParameters**](FakeApi.md#testEnumParameters) | **GET** /fake | To test enum parameters -[**testGroupParameters**](FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) -[**testInlineAdditionalProperties**](FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties -[**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data -[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | - - - -## createXmlItem - -> createXmlItem(xmlItem) - -creates an XmlItem - -this route creates an XmlItem - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); - -var apiInstance = new OpenApiPetstore.FakeApi(); -var xmlItem = new OpenApiPetstore.XmlItem(); // XmlItem | XmlItem Body -apiInstance.createXmlItem(xmlItem).then(function() { - console.log('API called successfully.'); -}, function(error) { - console.error(error); -}); - -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **xmlItem** | [**XmlItem**](XmlItem.md)| XmlItem Body | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/xml, application/xml; charset=utf-8, application/xml; charset=utf-16, text/xml, text/xml; charset=utf-8, text/xml; charset=utf-16 -- **Accept**: Not defined - - -## fakeOuterBooleanSerialize - -> Boolean fakeOuterBooleanSerialize(opts) - - - -Test serialization of outer boolean types - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); - -var apiInstance = new OpenApiPetstore.FakeApi(); -var opts = { - 'body': true // Boolean | Input boolean as post body -}; -apiInstance.fakeOuterBooleanSerialize(opts).then(function(data) { - console.log('API called successfully. Returned data: ' + data); -}, function(error) { - console.error(error); -}); - -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **Boolean**| Input boolean as post body | [optional] - -### Return type - -**Boolean** - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: */* - - -## fakeOuterCompositeSerialize - -> OuterComposite fakeOuterCompositeSerialize(opts) - - - -Test serialization of object with outer number type - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); - -var apiInstance = new OpenApiPetstore.FakeApi(); -var opts = { - 'body': new OpenApiPetstore.OuterComposite() // OuterComposite | Input composite as post body -}; -apiInstance.fakeOuterCompositeSerialize(opts).then(function(data) { - console.log('API called successfully. Returned data: ' + data); -}, function(error) { - console.error(error); -}); - -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional] - -### Return type - -[**OuterComposite**](OuterComposite.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: */* - - -## fakeOuterNumberSerialize - -> Number fakeOuterNumberSerialize(opts) - - - -Test serialization of outer number types - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); - -var apiInstance = new OpenApiPetstore.FakeApi(); -var opts = { - 'body': 3.4 // Number | Input number as post body -}; -apiInstance.fakeOuterNumberSerialize(opts).then(function(data) { - console.log('API called successfully. Returned data: ' + data); -}, function(error) { - console.error(error); -}); - -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **Number**| Input number as post body | [optional] - -### Return type - -**Number** - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: */* - - -## fakeOuterStringSerialize - -> String fakeOuterStringSerialize(opts) - - - -Test serialization of outer string types - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); - -var apiInstance = new OpenApiPetstore.FakeApi(); -var opts = { - 'body': "body_example" // String | Input string as post body -}; -apiInstance.fakeOuterStringSerialize(opts).then(function(data) { - console.log('API called successfully. Returned data: ' + data); -}, function(error) { - console.error(error); -}); - -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **String**| Input string as post body | [optional] - -### Return type - -**String** - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: */* - - -## testBodyWithFileSchema - -> testBodyWithFileSchema(body) - - - -For this test, the body for this request much reference a schema named `File`. - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); - -var apiInstance = new OpenApiPetstore.FakeApi(); -var body = new OpenApiPetstore.FileSchemaTestClass(); // FileSchemaTestClass | -apiInstance.testBodyWithFileSchema(body).then(function() { - console.log('API called successfully.'); -}, function(error) { - console.error(error); -}); - -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: Not defined - - -## testBodyWithQueryParams - -> testBodyWithQueryParams(query, body) - - - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); - -var apiInstance = new OpenApiPetstore.FakeApi(); -var query = "query_example"; // String | -var body = new OpenApiPetstore.User(); // User | -apiInstance.testBodyWithQueryParams(query, body).then(function() { - console.log('API called successfully.'); -}, function(error) { - console.error(error); -}); - -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **query** | **String**| | - **body** | [**User**](User.md)| | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: Not defined - - -## testClientModel - -> Client testClientModel(body) - -To test \"client\" model - -To test \"client\" model - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); - -var apiInstance = new OpenApiPetstore.FakeApi(); -var body = new OpenApiPetstore.Client(); // Client | client model -apiInstance.testClientModel(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 - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## testEndpointParameters - -> testEndpointParameters(_number, _double, patternWithoutDelimiter, _byte, opts) - -Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - -Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); -var defaultClient = OpenApiPetstore.ApiClient.instance; -// Configure HTTP basic authorization: http_basic_test -var http_basic_test = defaultClient.authentications['http_basic_test']; -http_basic_test.username = 'YOUR USERNAME'; -http_basic_test.password = 'YOUR PASSWORD'; - -var apiInstance = new OpenApiPetstore.FakeApi(); -var _number = 3.4; // Number | None -var _double = 3.4; // Number | None -var patternWithoutDelimiter = "patternWithoutDelimiter_example"; // String | None -var _byte = null; // Blob | None -var opts = { - 'integer': 56, // Number | None - 'int32': 56, // Number | None - 'int64': 789, // Number | None - '_float': 3.4, // Number | None - '_string': "_string_example", // String | None - 'binary': "/path/to/file", // File | None - '_date': new Date("2013-10-20"), // Date | None - 'dateTime': new Date("2013-10-20T19:20:30+01:00"), // Date | None - 'password': "password_example", // String | None - 'callback': "callback_example" // String | None -}; -apiInstance.testEndpointParameters(_number, _double, patternWithoutDelimiter, _byte, opts).then(function() { - console.log('API called successfully.'); -}, function(error) { - console.error(error); -}); - -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **_number** | **Number**| None | - **_double** | **Number**| None | - **patternWithoutDelimiter** | **String**| None | - **_byte** | **Blob**| None | - **integer** | **Number**| None | [optional] - **int32** | **Number**| None | [optional] - **int64** | **Number**| None | [optional] - **_float** | **Number**| None | [optional] - **_string** | **String**| None | [optional] - **binary** | **File**| None | [optional] - **_date** | **Date**| None | [optional] - **dateTime** | **Date**| None | [optional] - **password** | **String**| None | [optional] - **callback** | **String**| None | [optional] - -### Return type - -null (empty response body) - -### Authorization - -[http_basic_test](../README.md#http_basic_test) - -### HTTP request headers - -- **Content-Type**: application/x-www-form-urlencoded -- **Accept**: Not defined - - -## testEnumParameters - -> testEnumParameters(opts) - -To test enum parameters - -To test enum parameters - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); - -var apiInstance = new OpenApiPetstore.FakeApi(); -var opts = { - 'enumHeaderStringArray': ["'$'"], // [String] | Header parameter enum test (string array) - 'enumHeaderString': "'-efg'", // String | Header parameter enum test (string) - 'enumQueryStringArray': ["'$'"], // [String] | Query parameter enum test (string array) - 'enumQueryString': "'-efg'", // String | Query parameter enum test (string) - 'enumQueryInteger': 56, // Number | Query parameter enum test (double) - 'enumQueryDouble': 3.4, // Number | Query parameter enum test (double) - 'enumFormStringArray': "'$'", // [String] | Form parameter enum test (string array) - 'enumFormString': "'-efg'" // String | Form parameter enum test (string) -}; -apiInstance.testEnumParameters(opts).then(function() { - console.log('API called successfully.'); -}, function(error) { - console.error(error); -}); - -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **enumHeaderStringArray** | [**[String]**](String.md)| Header parameter enum test (string array) | [optional] - **enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to '-efg'] - **enumQueryStringArray** | [**[String]**](String.md)| Query parameter enum test (string array) | [optional] - **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to '-efg'] - **enumQueryInteger** | **Number**| Query parameter enum test (double) | [optional] - **enumQueryDouble** | **Number**| Query parameter enum test (double) | [optional] - **enumFormStringArray** | [**[String]**](String.md)| Form parameter enum test (string array) | [optional] [default to '$'] - **enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to '-efg'] - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/x-www-form-urlencoded -- **Accept**: Not defined - - -## testGroupParameters - -> testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, opts) - -Fake endpoint to test group parameters (optional) - -Fake endpoint to test group parameters (optional) - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); - -var apiInstance = new OpenApiPetstore.FakeApi(); -var requiredStringGroup = 56; // Number | Required String in group parameters -var requiredBooleanGroup = true; // Boolean | Required Boolean in group parameters -var requiredInt64Group = 789; // Number | Required Integer in group parameters -var opts = { - 'stringGroup': 56, // Number | String in group parameters - 'booleanGroup': true, // Boolean | Boolean in group parameters - 'int64Group': 789 // Number | Integer in group parameters -}; -apiInstance.testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, opts).then(function() { - console.log('API called successfully.'); -}, function(error) { - console.error(error); -}); - -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **requiredStringGroup** | **Number**| Required String in group parameters | - **requiredBooleanGroup** | **Boolean**| Required Boolean in group parameters | - **requiredInt64Group** | **Number**| Required Integer in group parameters | - **stringGroup** | **Number**| String in group parameters | [optional] - **booleanGroup** | **Boolean**| Boolean in group parameters | [optional] - **int64Group** | **Number**| Integer in group parameters | [optional] - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - - -## testInlineAdditionalProperties - -> testInlineAdditionalProperties(param) - -test inline additionalProperties - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); - -var apiInstance = new OpenApiPetstore.FakeApi(); -var param = {key: "null"}; // {String: String} | request body -apiInstance.testInlineAdditionalProperties(param).then(function() { - console.log('API called successfully.'); -}, function(error) { - console.error(error); -}); - -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **param** | [**{String: String}**](String.md)| request body | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: Not defined - - -## testJsonFormData - -> testJsonFormData(param, param2) - -test json serialization of form data - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); - -var apiInstance = new OpenApiPetstore.FakeApi(); -var param = "param_example"; // String | field1 -var param2 = "param2_example"; // String | field2 -apiInstance.testJsonFormData(param, param2).then(function() { - console.log('API called successfully.'); -}, function(error) { - console.error(error); -}); - -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **param** | **String**| field1 | - **param2** | **String**| field2 | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/x-www-form-urlencoded -- **Accept**: Not defined - - -## testQueryParameterCollectionFormat - -> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context) - - - -To test the collection format in query parameters - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); - -var apiInstance = new OpenApiPetstore.FakeApi(); -var pipe = ["null"]; // [String] | -var ioutil = ["null"]; // [String] | -var http = ["null"]; // [String] | -var url = ["null"]; // [String] | -var context = ["null"]; // [String] | -apiInstance.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context).then(function() { - console.log('API called successfully.'); -}, function(error) { - console.error(error); -}); - -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pipe** | [**[String]**](String.md)| | - **ioutil** | [**[String]**](String.md)| | - **http** | [**[String]**](String.md)| | - **url** | [**[String]**](String.md)| | - **context** | [**[String]**](String.md)| | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - diff --git a/samples/client/petstore/javascript-promise/docs/FakeClassnameTags123Api.md b/samples/client/petstore/javascript-promise/docs/FakeClassnameTags123Api.md deleted file mode 100644 index 37319dd14323..000000000000 --- a/samples/client/petstore/javascript-promise/docs/FakeClassnameTags123Api.md +++ /dev/null @@ -1,60 +0,0 @@ -# OpenApiPetstore.FakeClassnameTags123Api - -All URIs are relative to *http://petstore.swagger.io:80/v2* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**testClassname**](FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case - - - -## testClassname - -> Client testClassname(body) - -To test class name in snake case - -To test class name in snake case - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); -var defaultClient = OpenApiPetstore.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 OpenApiPetstore.FakeClassnameTags123Api(); -var body = new OpenApiPetstore.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/File.md b/samples/client/petstore/javascript-promise/docs/File.md deleted file mode 100644 index 51162c3e0da3..000000000000 --- a/samples/client/petstore/javascript-promise/docs/File.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.File - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**sourceURI** | **String** | Test capitalization | [optional] - - diff --git a/samples/client/petstore/javascript-promise/docs/FileSchemaTestClass.md b/samples/client/petstore/javascript-promise/docs/FileSchemaTestClass.md deleted file mode 100644 index 6f28c4976f10..000000000000 --- a/samples/client/petstore/javascript-promise/docs/FileSchemaTestClass.md +++ /dev/null @@ -1,10 +0,0 @@ -# OpenApiPetstore.FileSchemaTestClass - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**file** | **File** | | [optional] -**files** | **[File]** | | [optional] - - diff --git a/samples/client/petstore/javascript-promise/docs/FormatTest.md b/samples/client/petstore/javascript-promise/docs/FormatTest.md deleted file mode 100644 index d0df4b552e5a..000000000000 --- a/samples/client/petstore/javascript-promise/docs/FormatTest.md +++ /dev/null @@ -1,22 +0,0 @@ -# OpenApiPetstore.FormatTest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**integer** | **Number** | | [optional] -**int32** | **Number** | | [optional] -**int64** | **Number** | | [optional] -**_number** | **Number** | | -**_float** | **Number** | | [optional] -**_double** | **Number** | | [optional] -**_string** | **String** | | [optional] -**_byte** | **Blob** | | -**binary** | **File** | | [optional] -**_date** | **Date** | | -**dateTime** | **Date** | | [optional] -**uuid** | **String** | | [optional] -**password** | **String** | | -**bigDecimal** | **Number** | | [optional] - - diff --git a/samples/client/petstore/javascript-promise/docs/HasOnlyReadOnly.md b/samples/client/petstore/javascript-promise/docs/HasOnlyReadOnly.md deleted file mode 100644 index bfe08a1baee2..000000000000 --- a/samples/client/petstore/javascript-promise/docs/HasOnlyReadOnly.md +++ /dev/null @@ -1,10 +0,0 @@ -# OpenApiPetstore.HasOnlyReadOnly - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**bar** | **String** | | [optional] [readonly] -**foo** | **String** | | [optional] [readonly] - - diff --git a/samples/client/petstore/javascript-promise/docs/List.md b/samples/client/petstore/javascript-promise/docs/List.md deleted file mode 100644 index aaaa082e6a5b..000000000000 --- a/samples/client/petstore/javascript-promise/docs/List.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.List - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**_123list** | **String** | | [optional] - - diff --git a/samples/client/petstore/javascript-promise/docs/MapTest.md b/samples/client/petstore/javascript-promise/docs/MapTest.md deleted file mode 100644 index 9399adf75329..000000000000 --- a/samples/client/petstore/javascript-promise/docs/MapTest.md +++ /dev/null @@ -1,23 +0,0 @@ -# OpenApiPetstore.MapTest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**mapMapOfString** | **{String: {String: String}}** | | [optional] -**mapOfEnumString** | **{String: String}** | | [optional] -**directMap** | **{String: Boolean}** | | [optional] -**indirectMap** | **{String: Boolean}** | | [optional] - - - -## Enum: {String: String} - - -* `UPPER` (value: `"UPPER"`) - -* `lower` (value: `"lower"`) - - - - diff --git a/samples/client/petstore/javascript-promise/docs/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/client/petstore/javascript-promise/docs/MixedPropertiesAndAdditionalPropertiesClass.md deleted file mode 100644 index 776d4b3ae052..000000000000 --- a/samples/client/petstore/javascript-promise/docs/MixedPropertiesAndAdditionalPropertiesClass.md +++ /dev/null @@ -1,11 +0,0 @@ -# OpenApiPetstore.MixedPropertiesAndAdditionalPropertiesClass - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**uuid** | **String** | | [optional] -**dateTime** | **Date** | | [optional] -**map** | [**{String: Animal}**](Animal.md) | | [optional] - - diff --git a/samples/client/petstore/javascript-promise/docs/Model200Response.md b/samples/client/petstore/javascript-promise/docs/Model200Response.md deleted file mode 100644 index 45f7932a1be7..000000000000 --- a/samples/client/petstore/javascript-promise/docs/Model200Response.md +++ /dev/null @@ -1,10 +0,0 @@ -# OpenApiPetstore.Model200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **Number** | | [optional] -**_class** | **String** | | [optional] - - diff --git a/samples/client/petstore/javascript-promise/docs/ModelReturn.md b/samples/client/petstore/javascript-promise/docs/ModelReturn.md deleted file mode 100644 index c93601692f60..000000000000 --- a/samples/client/petstore/javascript-promise/docs/ModelReturn.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.ModelReturn - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**_return** | **Number** | | [optional] - - diff --git a/samples/client/petstore/javascript-promise/docs/Name.md b/samples/client/petstore/javascript-promise/docs/Name.md deleted file mode 100644 index d9f2fbeb68ba..000000000000 --- a/samples/client/petstore/javascript-promise/docs/Name.md +++ /dev/null @@ -1,12 +0,0 @@ -# OpenApiPetstore.Name - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **Number** | | -**snakeCase** | **Number** | | [optional] [readonly] -**property** | **String** | | [optional] -**_123number** | **Number** | | [optional] [readonly] - - diff --git a/samples/client/petstore/javascript-promise/docs/NumberOnly.md b/samples/client/petstore/javascript-promise/docs/NumberOnly.md deleted file mode 100644 index 65243600759d..000000000000 --- a/samples/client/petstore/javascript-promise/docs/NumberOnly.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.NumberOnly - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**justNumber** | **Number** | | [optional] - - diff --git a/samples/client/petstore/javascript-promise/docs/Order.md b/samples/client/petstore/javascript-promise/docs/Order.md deleted file mode 100644 index 3f63473a2394..000000000000 --- a/samples/client/petstore/javascript-promise/docs/Order.md +++ /dev/null @@ -1,27 +0,0 @@ -# OpenApiPetstore.Order - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | | [optional] -**petId** | **Number** | | [optional] -**quantity** | **Number** | | [optional] -**shipDate** | **Date** | | [optional] -**status** | **String** | Order Status | [optional] -**complete** | **Boolean** | | [optional] [default to false] - - - -## Enum: StatusEnum - - -* `placed` (value: `"placed"`) - -* `approved` (value: `"approved"`) - -* `delivered` (value: `"delivered"`) - - - - diff --git a/samples/client/petstore/javascript-promise/docs/OuterComposite.md b/samples/client/petstore/javascript-promise/docs/OuterComposite.md deleted file mode 100644 index aea253a0dfe0..000000000000 --- a/samples/client/petstore/javascript-promise/docs/OuterComposite.md +++ /dev/null @@ -1,11 +0,0 @@ -# OpenApiPetstore.OuterComposite - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**myNumber** | **Number** | | [optional] -**myString** | **String** | | [optional] -**myBoolean** | **Boolean** | | [optional] - - diff --git a/samples/client/petstore/javascript-promise/docs/OuterEnum.md b/samples/client/petstore/javascript-promise/docs/OuterEnum.md deleted file mode 100644 index 445d3f4074c8..000000000000 --- a/samples/client/petstore/javascript-promise/docs/OuterEnum.md +++ /dev/null @@ -1,12 +0,0 @@ -# OpenApiPetstore.OuterEnum - -## Enum - - -* `placed` (value: `"placed"`) - -* `approved` (value: `"approved"`) - -* `delivered` (value: `"delivered"`) - - diff --git a/samples/client/petstore/javascript-promise/docs/Pet.md b/samples/client/petstore/javascript-promise/docs/Pet.md deleted file mode 100644 index 68bb1eb7a048..000000000000 --- a/samples/client/petstore/javascript-promise/docs/Pet.md +++ /dev/null @@ -1,27 +0,0 @@ -# OpenApiPetstore.Pet - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | | [optional] -**category** | [**Category**](Category.md) | | [optional] -**name** | **String** | | -**photoUrls** | **[String]** | | -**tags** | [**[Tag]**](Tag.md) | | [optional] -**status** | **String** | pet status in the store | [optional] - - - -## Enum: StatusEnum - - -* `available` (value: `"available"`) - -* `pending` (value: `"pending"`) - -* `sold` (value: `"sold"`) - - - - diff --git a/samples/client/petstore/javascript-promise/docs/PetApi.md b/samples/client/petstore/javascript-promise/docs/PetApi.md deleted file mode 100644 index 4c1607e802f9..000000000000 --- a/samples/client/petstore/javascript-promise/docs/PetApi.md +++ /dev/null @@ -1,470 +0,0 @@ -# OpenApiPetstore.PetApi - -All URIs are relative to *http://petstore.swagger.io:80/v2* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**addPet**](PetApi.md#addPet) | **POST** /pet | Add a new pet to the store -[**deletePet**](PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet -[**findPetsByStatus**](PetApi.md#findPetsByStatus) | **GET** /pet/findByStatus | Finds Pets by status -[**findPetsByTags**](PetApi.md#findPetsByTags) | **GET** /pet/findByTags | Finds Pets by tags -[**getPetById**](PetApi.md#getPetById) | **GET** /pet/{petId} | Find pet by ID -[**updatePet**](PetApi.md#updatePet) | **PUT** /pet | Update an existing pet -[**updatePetWithForm**](PetApi.md#updatePetWithForm) | **POST** /pet/{petId} | Updates a pet in the store with form data -[**uploadFile**](PetApi.md#uploadFile) | **POST** /pet/{petId}/uploadImage | uploads an image -[**uploadFileWithRequiredFile**](PetApi.md#uploadFileWithRequiredFile) | **POST** /fake/{petId}/uploadImageWithRequiredFile | uploads an image (required) - - - -## addPet - -> addPet(body) - -Add a new pet to the store - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); -var defaultClient = OpenApiPetstore.ApiClient.instance; -// Configure OAuth2 access token for authorization: petstore_auth -var petstore_auth = defaultClient.authentications['petstore_auth']; -petstore_auth.accessToken = 'YOUR ACCESS TOKEN'; - -var apiInstance = new OpenApiPetstore.PetApi(); -var body = new OpenApiPetstore.Pet(); // Pet | Pet object that needs to be added to the store -apiInstance.addPet(body).then(function() { - console.log('API called successfully.'); -}, function(error) { - console.error(error); -}); - -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | - -### Return type - -null (empty response body) - -### Authorization - -[petstore_auth](../README.md#petstore_auth) - -### HTTP request headers - -- **Content-Type**: application/json, application/xml -- **Accept**: Not defined - - -## deletePet - -> deletePet(petId, opts) - -Deletes a pet - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); -var defaultClient = OpenApiPetstore.ApiClient.instance; -// Configure OAuth2 access token for authorization: petstore_auth -var petstore_auth = defaultClient.authentications['petstore_auth']; -petstore_auth.accessToken = 'YOUR ACCESS TOKEN'; - -var apiInstance = new OpenApiPetstore.PetApi(); -var petId = 789; // Number | Pet id to delete -var opts = { - 'apiKey': "apiKey_example" // String | -}; -apiInstance.deletePet(petId, opts).then(function() { - console.log('API called successfully.'); -}, function(error) { - console.error(error); -}); - -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **petId** | **Number**| Pet id to delete | - **apiKey** | **String**| | [optional] - -### Return type - -null (empty response body) - -### Authorization - -[petstore_auth](../README.md#petstore_auth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - - -## findPetsByStatus - -> [Pet] findPetsByStatus(status) - -Finds Pets by status - -Multiple status values can be provided with comma separated strings - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); -var defaultClient = OpenApiPetstore.ApiClient.instance; -// Configure OAuth2 access token for authorization: petstore_auth -var petstore_auth = defaultClient.authentications['petstore_auth']; -petstore_auth.accessToken = 'YOUR ACCESS TOKEN'; - -var apiInstance = new OpenApiPetstore.PetApi(); -var status = ["'available'"]; // [String] | Status values that need to be considered for filter -apiInstance.findPetsByStatus(status).then(function(data) { - console.log('API called successfully. Returned data: ' + data); -}, function(error) { - console.error(error); -}); - -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **status** | [**[String]**](String.md)| Status values that need to be considered for filter | - -### Return type - -[**[Pet]**](Pet.md) - -### Authorization - -[petstore_auth](../README.md#petstore_auth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/xml, application/json - - -## findPetsByTags - -> [Pet] findPetsByTags(tags) - -Finds Pets by tags - -Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); -var defaultClient = OpenApiPetstore.ApiClient.instance; -// Configure OAuth2 access token for authorization: petstore_auth -var petstore_auth = defaultClient.authentications['petstore_auth']; -petstore_auth.accessToken = 'YOUR ACCESS TOKEN'; - -var apiInstance = new OpenApiPetstore.PetApi(); -var tags = ["null"]; // [String] | Tags to filter by -apiInstance.findPetsByTags(tags).then(function(data) { - console.log('API called successfully. Returned data: ' + data); -}, function(error) { - console.error(error); -}); - -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **tags** | [**[String]**](String.md)| Tags to filter by | - -### Return type - -[**[Pet]**](Pet.md) - -### Authorization - -[petstore_auth](../README.md#petstore_auth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/xml, application/json - - -## getPetById - -> Pet getPetById(petId) - -Find pet by ID - -Returns a single pet - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); -var defaultClient = OpenApiPetstore.ApiClient.instance; -// Configure API key authorization: api_key -var api_key = defaultClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; - -var apiInstance = new OpenApiPetstore.PetApi(); -var petId = 789; // Number | ID of pet to return -apiInstance.getPetById(petId).then(function(data) { - console.log('API called successfully. Returned data: ' + data); -}, function(error) { - console.error(error); -}); - -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **petId** | **Number**| ID of pet to return | - -### Return type - -[**Pet**](Pet.md) - -### Authorization - -[api_key](../README.md#api_key) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/xml, application/json - - -## updatePet - -> updatePet(body) - -Update an existing pet - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); -var defaultClient = OpenApiPetstore.ApiClient.instance; -// Configure OAuth2 access token for authorization: petstore_auth -var petstore_auth = defaultClient.authentications['petstore_auth']; -petstore_auth.accessToken = 'YOUR ACCESS TOKEN'; - -var apiInstance = new OpenApiPetstore.PetApi(); -var body = new OpenApiPetstore.Pet(); // Pet | Pet object that needs to be added to the store -apiInstance.updatePet(body).then(function() { - console.log('API called successfully.'); -}, function(error) { - console.error(error); -}); - -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | - -### Return type - -null (empty response body) - -### Authorization - -[petstore_auth](../README.md#petstore_auth) - -### HTTP request headers - -- **Content-Type**: application/json, application/xml -- **Accept**: Not defined - - -## updatePetWithForm - -> updatePetWithForm(petId, opts) - -Updates a pet in the store with form data - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); -var defaultClient = OpenApiPetstore.ApiClient.instance; -// Configure OAuth2 access token for authorization: petstore_auth -var petstore_auth = defaultClient.authentications['petstore_auth']; -petstore_auth.accessToken = 'YOUR ACCESS TOKEN'; - -var apiInstance = new OpenApiPetstore.PetApi(); -var petId = 789; // Number | ID of pet that needs to be updated -var opts = { - 'name': "name_example", // String | Updated name of the pet - 'status': "status_example" // String | Updated status of the pet -}; -apiInstance.updatePetWithForm(petId, opts).then(function() { - console.log('API called successfully.'); -}, function(error) { - console.error(error); -}); - -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **petId** | **Number**| ID of pet that needs to be updated | - **name** | **String**| Updated name of the pet | [optional] - **status** | **String**| Updated status of the pet | [optional] - -### Return type - -null (empty response body) - -### Authorization - -[petstore_auth](../README.md#petstore_auth) - -### HTTP request headers - -- **Content-Type**: application/x-www-form-urlencoded -- **Accept**: Not defined - - -## uploadFile - -> ApiResponse uploadFile(petId, opts) - -uploads an image - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); -var defaultClient = OpenApiPetstore.ApiClient.instance; -// Configure OAuth2 access token for authorization: petstore_auth -var petstore_auth = defaultClient.authentications['petstore_auth']; -petstore_auth.accessToken = 'YOUR ACCESS TOKEN'; - -var apiInstance = new OpenApiPetstore.PetApi(); -var petId = 789; // Number | ID of pet to update -var opts = { - 'additionalMetadata': "additionalMetadata_example", // String | Additional data to pass to server - 'file': "/path/to/file" // File | file to upload -}; -apiInstance.uploadFile(petId, opts).then(function(data) { - console.log('API called successfully. Returned data: ' + data); -}, function(error) { - console.error(error); -}); - -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **petId** | **Number**| ID of pet to update | - **additionalMetadata** | **String**| Additional data to pass to server | [optional] - **file** | **File**| file to upload | [optional] - -### Return type - -[**ApiResponse**](ApiResponse.md) - -### Authorization - -[petstore_auth](../README.md#petstore_auth) - -### HTTP request headers - -- **Content-Type**: multipart/form-data -- **Accept**: application/json - - -## uploadFileWithRequiredFile - -> ApiResponse uploadFileWithRequiredFile(petId, requiredFile, opts) - -uploads an image (required) - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); -var defaultClient = OpenApiPetstore.ApiClient.instance; -// Configure OAuth2 access token for authorization: petstore_auth -var petstore_auth = defaultClient.authentications['petstore_auth']; -petstore_auth.accessToken = 'YOUR ACCESS TOKEN'; - -var apiInstance = new OpenApiPetstore.PetApi(); -var petId = 789; // Number | ID of pet to update -var requiredFile = "/path/to/file"; // File | file to upload -var opts = { - 'additionalMetadata': "additionalMetadata_example" // String | Additional data to pass to server -}; -apiInstance.uploadFileWithRequiredFile(petId, requiredFile, opts).then(function(data) { - console.log('API called successfully. Returned data: ' + data); -}, function(error) { - console.error(error); -}); - -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **petId** | **Number**| ID of pet to update | - **requiredFile** | **File**| file to upload | - **additionalMetadata** | **String**| Additional data to pass to server | [optional] - -### Return type - -[**ApiResponse**](ApiResponse.md) - -### Authorization - -[petstore_auth](../README.md#petstore_auth) - -### HTTP request headers - -- **Content-Type**: multipart/form-data -- **Accept**: application/json - diff --git a/samples/client/petstore/javascript-promise/docs/ReadOnlyFirst.md b/samples/client/petstore/javascript-promise/docs/ReadOnlyFirst.md deleted file mode 100644 index eee7a321d406..000000000000 --- a/samples/client/petstore/javascript-promise/docs/ReadOnlyFirst.md +++ /dev/null @@ -1,10 +0,0 @@ -# OpenApiPetstore.ReadOnlyFirst - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**bar** | **String** | | [optional] [readonly] -**baz** | **String** | | [optional] - - diff --git a/samples/client/petstore/javascript-promise/docs/SpecialModelName.md b/samples/client/petstore/javascript-promise/docs/SpecialModelName.md deleted file mode 100644 index f33678460bf3..000000000000 --- a/samples/client/petstore/javascript-promise/docs/SpecialModelName.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.SpecialModelName - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**specialPropertyName** | **Number** | | [optional] - - diff --git a/samples/client/petstore/javascript-promise/docs/StoreApi.md b/samples/client/petstore/javascript-promise/docs/StoreApi.md deleted file mode 100644 index 8f610d535170..000000000000 --- a/samples/client/petstore/javascript-promise/docs/StoreApi.md +++ /dev/null @@ -1,191 +0,0 @@ -# OpenApiPetstore.StoreApi - -All URIs are relative to *http://petstore.swagger.io:80/v2* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**deleteOrder**](StoreApi.md#deleteOrder) | **DELETE** /store/order/{order_id} | Delete purchase order by ID -[**getInventory**](StoreApi.md#getInventory) | **GET** /store/inventory | Returns pet inventories by status -[**getOrderById**](StoreApi.md#getOrderById) | **GET** /store/order/{order_id} | Find purchase order by ID -[**placeOrder**](StoreApi.md#placeOrder) | **POST** /store/order | Place an order for a pet - - - -## deleteOrder - -> deleteOrder(orderId) - -Delete purchase order by ID - -For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); - -var apiInstance = new OpenApiPetstore.StoreApi(); -var orderId = "orderId_example"; // String | ID of the order that needs to be deleted -apiInstance.deleteOrder(orderId).then(function() { - console.log('API called successfully.'); -}, function(error) { - console.error(error); -}); - -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **orderId** | **String**| ID of the order that needs to be deleted | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - - -## getInventory - -> {String: Number} getInventory() - -Returns pet inventories by status - -Returns a map of status codes to quantities - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); -var defaultClient = OpenApiPetstore.ApiClient.instance; -// Configure API key authorization: api_key -var api_key = defaultClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; - -var apiInstance = new OpenApiPetstore.StoreApi(); -apiInstance.getInventory().then(function(data) { - console.log('API called successfully. Returned data: ' + data); -}, function(error) { - console.error(error); -}); - -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -**{String: Number}** - -### Authorization - -[api_key](../README.md#api_key) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getOrderById - -> Order getOrderById(orderId) - -Find purchase order by ID - -For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); - -var apiInstance = new OpenApiPetstore.StoreApi(); -var orderId = 789; // Number | ID of pet that needs to be fetched -apiInstance.getOrderById(orderId).then(function(data) { - console.log('API called successfully. Returned data: ' + data); -}, function(error) { - console.error(error); -}); - -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **orderId** | **Number**| ID of pet that needs to be fetched | - -### Return type - -[**Order**](Order.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/xml, application/json - - -## placeOrder - -> Order placeOrder(body) - -Place an order for a pet - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); - -var apiInstance = new OpenApiPetstore.StoreApi(); -var body = new OpenApiPetstore.Order(); // Order | order placed for purchasing the pet -apiInstance.placeOrder(body).then(function(data) { - console.log('API called successfully. Returned data: ' + data); -}, function(error) { - console.error(error); -}); - -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**Order**](Order.md)| order placed for purchasing the pet | - -### Return type - -[**Order**](Order.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/xml, application/json - diff --git a/samples/client/petstore/javascript-promise/docs/Tag.md b/samples/client/petstore/javascript-promise/docs/Tag.md deleted file mode 100644 index ce6fec0ab93f..000000000000 --- a/samples/client/petstore/javascript-promise/docs/Tag.md +++ /dev/null @@ -1,10 +0,0 @@ -# OpenApiPetstore.Tag - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | | [optional] -**name** | **String** | | [optional] - - diff --git a/samples/client/petstore/javascript-promise/docs/TypeHolderDefault.md b/samples/client/petstore/javascript-promise/docs/TypeHolderDefault.md deleted file mode 100644 index 3342b500760c..000000000000 --- a/samples/client/petstore/javascript-promise/docs/TypeHolderDefault.md +++ /dev/null @@ -1,13 +0,0 @@ -# OpenApiPetstore.TypeHolderDefault - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**stringItem** | **String** | | [default to 'what'] -**numberItem** | **Number** | | -**integerItem** | **Number** | | -**boolItem** | **Boolean** | | [default to true] -**arrayItem** | **[Number]** | | - - diff --git a/samples/client/petstore/javascript-promise/docs/TypeHolderExample.md b/samples/client/petstore/javascript-promise/docs/TypeHolderExample.md deleted file mode 100644 index 44ba1e3aef7f..000000000000 --- a/samples/client/petstore/javascript-promise/docs/TypeHolderExample.md +++ /dev/null @@ -1,14 +0,0 @@ -# OpenApiPetstore.TypeHolderExample - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**stringItem** | **String** | | -**numberItem** | **Number** | | -**floatItem** | **Number** | | -**integerItem** | **Number** | | -**boolItem** | **Boolean** | | -**arrayItem** | **[Number]** | | - - diff --git a/samples/client/petstore/javascript-promise/docs/User.md b/samples/client/petstore/javascript-promise/docs/User.md deleted file mode 100644 index 096f606d0b92..000000000000 --- a/samples/client/petstore/javascript-promise/docs/User.md +++ /dev/null @@ -1,16 +0,0 @@ -# OpenApiPetstore.User - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | | [optional] -**username** | **String** | | [optional] -**firstName** | **String** | | [optional] -**lastName** | **String** | | [optional] -**email** | **String** | | [optional] -**password** | **String** | | [optional] -**phone** | **String** | | [optional] -**userStatus** | **Number** | User Status | [optional] - - diff --git a/samples/client/petstore/javascript-promise/docs/UserApi.md b/samples/client/petstore/javascript-promise/docs/UserApi.md deleted file mode 100644 index aedc1280eab8..000000000000 --- a/samples/client/petstore/javascript-promise/docs/UserApi.md +++ /dev/null @@ -1,365 +0,0 @@ -# OpenApiPetstore.UserApi - -All URIs are relative to *http://petstore.swagger.io:80/v2* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createUser**](UserApi.md#createUser) | **POST** /user | Create user -[**createUsersWithArrayInput**](UserApi.md#createUsersWithArrayInput) | **POST** /user/createWithArray | Creates list of users with given input array -[**createUsersWithListInput**](UserApi.md#createUsersWithListInput) | **POST** /user/createWithList | Creates list of users with given input array -[**deleteUser**](UserApi.md#deleteUser) | **DELETE** /user/{username} | Delete user -[**getUserByName**](UserApi.md#getUserByName) | **GET** /user/{username} | Get user by user name -[**loginUser**](UserApi.md#loginUser) | **GET** /user/login | Logs user into the system -[**logoutUser**](UserApi.md#logoutUser) | **GET** /user/logout | Logs out current logged in user session -[**updateUser**](UserApi.md#updateUser) | **PUT** /user/{username} | Updated user - - - -## createUser - -> createUser(body) - -Create user - -This can only be done by the logged in user. - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); - -var apiInstance = new OpenApiPetstore.UserApi(); -var body = new OpenApiPetstore.User(); // User | Created user object -apiInstance.createUser(body).then(function() { - console.log('API called successfully.'); -}, function(error) { - console.error(error); -}); - -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**User**](User.md)| Created user object | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - - -## createUsersWithArrayInput - -> createUsersWithArrayInput(body) - -Creates list of users with given input array - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); - -var apiInstance = new OpenApiPetstore.UserApi(); -var body = [new OpenApiPetstore.User()]; // [User] | List of user object -apiInstance.createUsersWithArrayInput(body).then(function() { - console.log('API called successfully.'); -}, function(error) { - console.error(error); -}); - -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**[User]**](User.md)| List of user object | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - - -## createUsersWithListInput - -> createUsersWithListInput(body) - -Creates list of users with given input array - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); - -var apiInstance = new OpenApiPetstore.UserApi(); -var body = [new OpenApiPetstore.User()]; // [User] | List of user object -apiInstance.createUsersWithListInput(body).then(function() { - console.log('API called successfully.'); -}, function(error) { - console.error(error); -}); - -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**[User]**](User.md)| List of user object | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - - -## deleteUser - -> deleteUser(username) - -Delete user - -This can only be done by the logged in user. - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); - -var apiInstance = new OpenApiPetstore.UserApi(); -var username = "username_example"; // String | The name that needs to be deleted -apiInstance.deleteUser(username).then(function() { - console.log('API called successfully.'); -}, function(error) { - console.error(error); -}); - -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **username** | **String**| The name that needs to be deleted | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - - -## getUserByName - -> User getUserByName(username) - -Get user by user name - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); - -var apiInstance = new OpenApiPetstore.UserApi(); -var username = "username_example"; // String | The name that needs to be fetched. Use user1 for testing. -apiInstance.getUserByName(username).then(function(data) { - console.log('API called successfully. Returned data: ' + data); -}, function(error) { - console.error(error); -}); - -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **username** | **String**| The name that needs to be fetched. Use user1 for testing. | - -### Return type - -[**User**](User.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/xml, application/json - - -## loginUser - -> String loginUser(username, password) - -Logs user into the system - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); - -var apiInstance = new OpenApiPetstore.UserApi(); -var username = "username_example"; // String | The user name for login -var password = "password_example"; // String | The password for login in clear text -apiInstance.loginUser(username, password).then(function(data) { - console.log('API called successfully. Returned data: ' + data); -}, function(error) { - console.error(error); -}); - -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **username** | **String**| The user name for login | - **password** | **String**| The password for login in clear text | - -### Return type - -**String** - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/xml, application/json - - -## logoutUser - -> logoutUser() - -Logs out current logged in user session - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); - -var apiInstance = new OpenApiPetstore.UserApi(); -apiInstance.logoutUser().then(function() { - console.log('API called successfully.'); -}, function(error) { - console.error(error); -}); - -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - - -## updateUser - -> updateUser(username, body) - -Updated user - -This can only be done by the logged in user. - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); - -var apiInstance = new OpenApiPetstore.UserApi(); -var username = "username_example"; // String | name that need to be deleted -var body = new OpenApiPetstore.User(); // User | Updated user object -apiInstance.updateUser(username, body).then(function() { - console.log('API called successfully.'); -}, function(error) { - console.error(error); -}); - -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **username** | **String**| name that need to be deleted | - **body** | [**User**](User.md)| Updated user object | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - diff --git a/samples/client/petstore/javascript-promise/docs/XmlItem.md b/samples/client/petstore/javascript-promise/docs/XmlItem.md deleted file mode 100644 index 8711fac40809..000000000000 --- a/samples/client/petstore/javascript-promise/docs/XmlItem.md +++ /dev/null @@ -1,37 +0,0 @@ -# OpenApiPetstore.XmlItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**attributeString** | **String** | | [optional] -**attributeNumber** | **Number** | | [optional] -**attributeInteger** | **Number** | | [optional] -**attributeBoolean** | **Boolean** | | [optional] -**wrappedArray** | **[Number]** | | [optional] -**nameString** | **String** | | [optional] -**nameNumber** | **Number** | | [optional] -**nameInteger** | **Number** | | [optional] -**nameBoolean** | **Boolean** | | [optional] -**nameArray** | **[Number]** | | [optional] -**nameWrappedArray** | **[Number]** | | [optional] -**prefixString** | **String** | | [optional] -**prefixNumber** | **Number** | | [optional] -**prefixInteger** | **Number** | | [optional] -**prefixBoolean** | **Boolean** | | [optional] -**prefixArray** | **[Number]** | | [optional] -**prefixWrappedArray** | **[Number]** | | [optional] -**namespaceString** | **String** | | [optional] -**namespaceNumber** | **Number** | | [optional] -**namespaceInteger** | **Number** | | [optional] -**namespaceBoolean** | **Boolean** | | [optional] -**namespaceArray** | **[Number]** | | [optional] -**namespaceWrappedArray** | **[Number]** | | [optional] -**prefixNsString** | **String** | | [optional] -**prefixNsNumber** | **Number** | | [optional] -**prefixNsInteger** | **Number** | | [optional] -**prefixNsBoolean** | **Boolean** | | [optional] -**prefixNsArray** | **[Number]** | | [optional] -**prefixNsWrappedArray** | **[Number]** | | [optional] - - diff --git a/samples/client/petstore/javascript-promise/git_push.sh b/samples/client/petstore/javascript-promise/git_push.sh deleted file mode 100644 index ced3be2b0c7b..000000000000 --- a/samples/client/petstore/javascript-promise/git_push.sh +++ /dev/null @@ -1,58 +0,0 @@ -#!/bin/sh -# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ -# -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" - -git_user_id=$1 -git_repo_id=$2 -release_note=$3 -git_host=$4 - -if [ "$git_host" = "" ]; then - git_host="github.com" - echo "[INFO] No command line input provided. Set \$git_host to $git_host" -fi - -if [ "$git_user_id" = "" ]; then - git_user_id="GIT_USER_ID" - echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" -fi - -if [ "$git_repo_id" = "" ]; then - git_repo_id="GIT_REPO_ID" - echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" -fi - -if [ "$release_note" = "" ]; then - release_note="Minor update" - echo "[INFO] No command line input provided. Set \$release_note to $release_note" -fi - -# Initialize the local directory as a Git repository -git init - -# Adds the files in the local repository and stages them for commit. -git add . - -# Commits the tracked changes and prepares them to be pushed to a remote repository. -git commit -m "$release_note" - -# Sets the new remote -git_remote=`git remote` -if [ "$git_remote" = "" ]; then # git remote not defined - - if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." - git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git - else - git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git - fi - -fi - -git pull origin master - -# Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" -git push origin master 2>&1 | grep -v 'To https' - diff --git a/samples/client/petstore/javascript-promise/mocha.opts b/samples/client/petstore/javascript-promise/mocha.opts deleted file mode 100644 index 907011807d68..000000000000 --- a/samples/client/petstore/javascript-promise/mocha.opts +++ /dev/null @@ -1 +0,0 @@ ---timeout 10000 diff --git a/samples/client/petstore/javascript-promise/package.json b/samples/client/petstore/javascript-promise/package.json deleted file mode 100644 index d194fab67c27..000000000000 --- a/samples/client/petstore/javascript-promise/package.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "name": "open_api_petstore", - "version": "1.0.0", - "description": "This_spec_is_mainly_for_testing_Petstore_server_and_contains_fake_endpoints_models__Please_do_not_use_this_for_any_other_purpose__Special_characters___", - "license": "Apache-2.0", - "main": "src/index.js", - "scripts": { - "test": "mocha --recursive" - }, - "browser": { - "fs": false - }, - "dependencies": { - "superagent": "5.1.0" - }, - "devDependencies": { - "expect.js": "^0.3.1", - "mocha": "^5.2.0", - "sinon": "^7.2.0" - } -} diff --git a/samples/client/petstore/javascript-promise/pom.xml b/samples/client/petstore/javascript-promise/pom.xml deleted file mode 100644 index 7aa5b80ba8cc..000000000000 --- a/samples/client/petstore/javascript-promise/pom.xml +++ /dev/null @@ -1,45 +0,0 @@ - - 4.0.0 - org.openapitools - openapi-petstore-javascript-promise - pom - 1.0-SNAPSHOT - OpenAPI Petstore JS Client (Promise) - - - - org.codehaus.mojo - exec-maven-plugin - 1.2.1 - - - npm-install - pre-integration-test - - exec - - - npm - - install - - - - - mocha - integration-test - - exec - - - npm - - test - - - - - - - - diff --git a/samples/client/petstore/javascript-promise/src/ApiClient.js b/samples/client/petstore/javascript-promise/src/ApiClient.js deleted file mode 100644 index 44237677d2d0..000000000000 --- a/samples/client/petstore/javascript-promise/src/ApiClient.js +++ /dev/null @@ -1,657 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['superagent', 'querystring'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('superagent'), require('querystring')); - } else { - // Browser globals (root is window) - if (!root.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.ApiClient = factory(root.superagent, root.querystring); - } -}(this, function(superagent, querystring) { - 'use strict'; - - /** - * @module ApiClient - * @version 1.0.0 - */ - - /** - * Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an - * application to use this class directly - the *Api and model classes provide the public API for the service. The - * contents of this file should be regarded as internal but are documented for completeness. - * @alias module:ApiClient - * @class - */ - var exports = function() { - /** - * The base URL against which to resolve every API call's (relative) path. - * @type {String} - * @default http://petstore.swagger.io:80/v2 - */ - this.basePath = 'http://petstore.swagger.io:80/v2'.replace(/\/+$/, ''); - - /** - * The authentication methods to be included for all API calls. - * @type {Array.} - */ - this.authentications = { - 'api_key': {type: 'apiKey', 'in': 'header', name: 'api_key'}, - 'api_key_query': {type: 'apiKey', 'in': 'query', name: 'api_key_query'}, - 'http_basic_test': {type: 'basic'}, - 'petstore_auth': {type: 'oauth2'} - }; - /** - * The default HTTP headers to be included for all API calls. - * @type {Array.} - * @default {} - */ - this.defaultHeaders = {}; - - /** - * The default HTTP timeout for all API calls. - * @type {Number} - * @default 60000 - */ - this.timeout = 60000; - - /** - * If set to false an additional timestamp parameter is added to all API GET calls to - * prevent browser caching - * @type {Boolean} - * @default true - */ - this.cache = true; - - /** - * If set to true, the client will save the cookies from each server - * response, and return them in the next request. - * @default false - */ - this.enableCookies = false; - - /* - * Used to save and return cookies in a node.js (non-browser) setting, - * if this.enableCookies is set to true. - */ - if (typeof window === 'undefined') { - this.agent = new superagent.agent(); - } - - /* - * Allow user to override superagent agent - */ - this.requestAgent = null; - - /* - * Allow user to add superagent plugins - */ - this.plugins = null; - }; - - /** - * Returns a string representation for an actual parameter. - * @param param The actual parameter. - * @returns {String} The string representation of param. - */ - exports.prototype.paramToString = function(param) { - if (param == undefined || param == null) { - return ''; - } - if (param instanceof Date) { - return param.toJSON(); - } - return param.toString(); - }; - - /** - * Builds full URL by appending the given path to the base URL and replacing path parameter place-holders with parameter values. - * NOTE: query parameters are not handled here. - * @param {String} path The path to append to the base URL. - * @param {Object} pathParams The parameter values to append. - * @returns {String} The encoded path with parameter values substituted. - */ - exports.prototype.buildUrl = function(path, pathParams, apiBasePath) { - if (!path.match(/^\//)) { - path = '/' + path; - } - var url = this.basePath + path; - - - // use API (operation, path) base path if defined - if (apiBasePath !== null && apiBasePath !== undefined) { - url = apiBasePath + path; - } - - var _this = this; - url = url.replace(/\{([\w-]+)\}/g, function(fullMatch, key) { - var value; - if (pathParams.hasOwnProperty(key)) { - value = _this.paramToString(pathParams[key]); - } else { - value = fullMatch; - } - return encodeURIComponent(value); - }); - return url; - }; - - /** - * Checks whether the given content type represents JSON.
- * JSON content type examples:
- *
    - *
  • application/json
  • - *
  • application/json; charset=UTF8
  • - *
  • APPLICATION/JSON
  • - *
- * @param {String} contentType The MIME content type to check. - * @returns {Boolean} true if contentType represents JSON, otherwise false. - */ - exports.prototype.isJsonMime = function(contentType) { - return Boolean(contentType != null && contentType.match(/^application\/json(;.*)?$/i)); - }; - - /** - * Chooses a content type from the given array, with JSON preferred; i.e. return JSON if included, otherwise return the first. - * @param {Array.} contentTypes - * @returns {String} The chosen content type, preferring JSON. - */ - exports.prototype.jsonPreferredMime = function(contentTypes) { - for (var i = 0; i < contentTypes.length; i++) { - if (this.isJsonMime(contentTypes[i])) { - return contentTypes[i]; - } - } - return contentTypes[0]; - }; - - /** - * Checks whether the given parameter value represents file-like content. - * @param param The parameter to check. - * @returns {Boolean} true if param represents a file. - */ - exports.prototype.isFileParam = function(param) { - // fs.ReadStream in Node.js and Electron (but not in runtime like browserify) - if (typeof require === 'function') { - var fs; - try { - fs = require('fs'); - } catch (err) {} - if (fs && fs.ReadStream && param instanceof fs.ReadStream) { - return true; - } - } - // Buffer in Node.js - if (typeof Buffer === 'function' && param instanceof Buffer) { - return true; - } - // Blob in browser - if (typeof Blob === 'function' && param instanceof Blob) { - return true; - } - // File in browser (it seems File object is also instance of Blob, but keep this for safe) - if (typeof File === 'function' && param instanceof File) { - return true; - } - return false; - }; - - /** - * Normalizes parameter values: - *
    - *
  • remove nils
  • - *
  • keep files and arrays
  • - *
  • format to string with `paramToString` for other cases
  • - *
- * @param {Object.} params The parameters as object properties. - * @returns {Object.} normalized parameters. - */ - exports.prototype.normalizeParams = function(params) { - var newParams = {}; - for (var key in params) { - if (params.hasOwnProperty(key) && params[key] != undefined && params[key] != null) { - var value = params[key]; - if (this.isFileParam(value) || Array.isArray(value)) { - newParams[key] = value; - } else { - newParams[key] = this.paramToString(value); - } - } - } - return newParams; - }; - - /** - * Enumeration of collection format separator strategies. - * @enum {String} - * @readonly - */ - exports.CollectionFormatEnum = { - /** - * Comma-separated values. Value: csv - * @const - */ - CSV: ',', - /** - * Space-separated values. Value: ssv - * @const - */ - SSV: ' ', - /** - * Tab-separated values. Value: tsv - * @const - */ - TSV: '\t', - /** - * Pipe(|)-separated values. Value: pipes - * @const - */ - PIPES: '|', - /** - * Native array. Value: multi - * @const - */ - MULTI: 'multi' - }; - - /** - * Builds a string representation of an array-type actual parameter, according to the given collection format. - * @param {Array} param An array parameter. - * @param {module:ApiClient.CollectionFormatEnum} collectionFormat The array element separator strategy. - * @returns {String|Array} A string representation of the supplied collection, using the specified delimiter. Returns - * param as is if collectionFormat is multi. - */ - exports.prototype.buildCollectionParam = function buildCollectionParam(param, collectionFormat) { - if (param == null) { - return null; - } - switch (collectionFormat) { - case 'csv': - return param.map(this.paramToString).join(','); - case 'ssv': - return param.map(this.paramToString).join(' '); - case 'tsv': - return param.map(this.paramToString).join('\t'); - case 'pipes': - return param.map(this.paramToString).join('|'); - case 'multi': - // return the array directly as SuperAgent will handle it as expected - return param.map(this.paramToString); - default: - throw new Error('Unknown collection format: ' + collectionFormat); - } - }; - - /** - * Applies authentication headers to the request. - * @param {Object} request The request object created by a superagent() call. - * @param {Array.} authNames An array of authentication method names. - */ - exports.prototype.applyAuthToRequest = function(request, authNames) { - var _this = this; - authNames.forEach(function(authName) { - var auth = _this.authentications[authName]; - switch (auth.type) { - case 'basic': - if (auth.username || auth.password) { - request.auth(auth.username || '', auth.password || ''); - } - break; - case 'bearer': - if (auth.accessToken) { - request.set({'Authorization': 'Bearer ' + auth.accessToken}); - } - break; - case 'apiKey': - if (auth.apiKey) { - var data = {}; - if (auth.apiKeyPrefix) { - data[auth.name] = auth.apiKeyPrefix + ' ' + auth.apiKey; - } else { - data[auth.name] = auth.apiKey; - } - if (auth['in'] === 'header') { - request.set(data); - } else { - request.query(data); - } - } - break; - case 'oauth2': - if (auth.accessToken) { - request.set({'Authorization': 'Bearer ' + auth.accessToken}); - } - break; - default: - throw new Error('Unknown authentication type: ' + auth.type); - } - }); - }; - - /** - * Deserializes an HTTP response body into a value of the specified type. - * @param {Object} response A SuperAgent response object. - * @param {(String|Array.|Object.|Function)} returnType The type to return. Pass a string for simple types - * or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To - * return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type: - * all properties on data will be converted to this type. - * @returns A value of the specified type. - */ - exports.prototype.deserialize = function deserialize(response, returnType) { - if (response == null || returnType == null || response.status == 204) { - return null; - } - // Rely on SuperAgent for parsing response body. - // See http://visionmedia.github.io/superagent/#parsing-response-bodies - var data = response.body; - if (data == null || (typeof data === 'object' && typeof data.length === 'undefined' && !Object.keys(data).length)) { - // SuperAgent does not always produce a body; use the unparsed response as a fallback - data = response.text; - } - return exports.convertToType(data, returnType); - }; - - /** - * Invokes the REST service using the supplied settings and parameters. - * @param {String} path The base URL to invoke. - * @param {String} httpMethod The HTTP method to use. - * @param {Object.} pathParams A map of path parameters and their values. - * @param {Object.} queryParams A map of query parameters and their values. - * @param {Object.} collectionQueryParams A map of collection query parameters and their values. - * @param {Object.} headerParams A map of header parameters and their values. - * @param {Object.} formParams A map of form parameters and their values. - * @param {Object} bodyParam The value to pass as the request body. - * @param {Array.} authNames An array of authentication type names. - * @param {Array.} contentTypes An array of request MIME types. - * @param {Array.} accepts An array of acceptable response MIME types. - * @param {(String|Array|ObjectFunction)} returnType The required type to return; can be a string for simple types or the - * constructor for a complex type. - * @returns {Promise} A {@link https://www.promisejs.org/|Promise} object. - */ - exports.prototype.callApi = function callApi(path, httpMethod, pathParams, - queryParams, collectionQueryParams, headerParams, formParams, bodyParam, authNames, contentTypes, accepts, - returnType, apiBasePath) { - - var _this = this; - var url = this.buildUrl(path, pathParams, apiBasePath); - var request = superagent(httpMethod, url); - - if (this.plugins !== null) { - for (var index in this.plugins) { - if (this.plugins.hasOwnProperty(index)) { - request.use(this.plugins[index]) - } - } - } - - // apply authentications - this.applyAuthToRequest(request, authNames); - - // set collection query parameters - for (var key in collectionQueryParams) { - if (collectionQueryParams.hasOwnProperty(key)) { - var param = collectionQueryParams[key]; - if (param.collectionFormat === 'csv') { - // SuperAgent normally percent-encodes all reserved characters in a query parameter. However, - // commas are used as delimiters for the 'csv' collectionFormat so they must not be encoded. We - // must therefore construct and encode 'csv' collection query parameters manually. - if (param.value != null) { - var value = param.value.map(this.paramToString).map(encodeURIComponent).join(','); - request.query(encodeURIComponent(key) + "=" + value); - } - } else { - // All other collection query parameters should be treated as ordinary query parameters. - queryParams[key] = this.buildCollectionParam(param.value, param.collectionFormat); - } - } - } - - // set query parameters - if (httpMethod.toUpperCase() === 'GET' && this.cache === false) { - queryParams['_'] = new Date().getTime(); - } - request.query(this.normalizeParams(queryParams)); - - // set header parameters - request.set(this.defaultHeaders).set(this.normalizeParams(headerParams)); - - - // set requestAgent if it is set by user - if (this.requestAgent) { - request.agent(this.requestAgent); - } - - // set request timeout - request.timeout(this.timeout); - - var contentType = this.jsonPreferredMime(contentTypes); - if (contentType) { - // Issue with superagent and multipart/form-data (https://github.com/visionmedia/superagent/issues/746) - if(contentType != 'multipart/form-data') { - request.type(contentType); - } - } - - if (contentType === 'application/x-www-form-urlencoded') { - request.send(querystring.stringify(this.normalizeParams(formParams))); - } else if (contentType == 'multipart/form-data') { - var _formParams = this.normalizeParams(formParams); - for (var key in _formParams) { - if (_formParams.hasOwnProperty(key)) { - if (this.isFileParam(_formParams[key])) { - // file field - request.attach(key, _formParams[key]); - } else { - request.field(key, _formParams[key]); - } - } - } - } else if (bodyParam !== null && bodyParam !== undefined) { - if (!request.header['Content-Type']) { - request.type('application/json'); - } - request.send(bodyParam); - } - - var accept = this.jsonPreferredMime(accepts); - if (accept) { - request.accept(accept); - } - - if (returnType === 'Blob') { - request.responseType('blob'); - } else if (returnType === 'String') { - request.responseType('string'); - } - - // Attach previously saved cookies, if enabled - if (this.enableCookies){ - if (typeof window === 'undefined') { - this.agent._attachCookies(request); - } - else { - request.withCredentials(); - } - } - - return new Promise(function(resolve, reject) { - request.end(function(error, response) { - if (error) { - reject(error); - } else { - try { - var data = _this.deserialize(response, returnType); - if (_this.enableCookies && typeof window === 'undefined'){ - _this.agent._saveCookies(response); - } - resolve({data: data, response: response}); - } catch (err) { - reject(err); - } - } - }); - }); - }; - - /** - * Parses an ISO-8601 string representation of a date value. - * @param {String} str The date value as a string. - * @returns {Date} The parsed date object. - */ - exports.parseDate = function(str) { - return new Date(str.replace(/T/i, ' ')); - }; - - /** - * Converts a value to the specified type. - * @param {(String|Object)} data The data to convert, as a string or object. - * @param {(String|Array.|Object.|Function)} type The type to return. Pass a string for simple types - * or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To - * return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type: - * all properties on data will be converted to this type. - * @returns An instance of the specified type or null or undefined if data is null or undefined. - */ - exports.convertToType = function(data, type) { - if (data === null || data === undefined) - return data - - switch (type) { - case 'Boolean': - return Boolean(data); - case 'Integer': - return parseInt(data, 10); - case 'Number': - return parseFloat(data); - case 'String': - return String(data); - case 'Date': - return this.parseDate(String(data)); - case 'Blob': - return data; - default: - if (type === Object) { - // generic object, return directly - return data; - } else if (typeof type.constructFromObject === 'function') { - // for model type like User or enum class - return type.constructFromObject(data); - } else if (Array.isArray(type)) { - // for array type like: ['String'] - var itemType = type[0]; - return data.map(function(item) { - return exports.convertToType(item, itemType); - }); - } else if (typeof type === 'object') { - // for plain object type like: {'String': 'Integer'} - var keyType, valueType; - for (var k in type) { - if (type.hasOwnProperty(k)) { - keyType = k; - valueType = type[k]; - break; - } - } - var result = {}; - for (var k in data) { - if (data.hasOwnProperty(k)) { - var key = exports.convertToType(k, keyType); - var value = exports.convertToType(data[k], valueType); - result[key] = value; - } - } - return result; - } else { - // for unknown type, return the data directly - return data; - } - } - }; - - /** - * Gets an array of host settings - * @returns An array of host settings - */ - exports.hostSettings = function() { - return [ - { - 'url': "http://petstore.swagger.io:80/v2", - 'description': "No description provided", - } - ]; - }; - - exports.getBasePathFromSettings = function(index, variables) { - var variables = variables || {}; - var servers = this.hostSettings(); - - // check array index out of bound - if (index < 0 || index >= servers.length) { - throw new Error("Invalid index " + index + " when selecting the host settings. Must be less than " + servers.length); - } - - var server = servers[index]; - var url = server['url']; - - // go through variable and assign a value - for (var variable_name in server['variables']) { - if (variable_name in variables) { - let variable = server['variables'][variable_name]; - if ( !('enum_values' in variable) || variable['enum_values'].includes(variables[variable_name]) ) { - url = url.replace("{" + variable_name + "}", variables[variable_name]); - } else { - throw new Error("The variable `" + variable_name + "` in the host URL has invalid value " + variables[variable_name] + ". Must be " + server['variables'][variable_name]['enum_values'] + "."); - } - } else { - // use default value - url = url.replace("{" + variable_name + "}", server['variables'][variable_name]['default_value']) - } - } - return url; - }; - - /** - * Constructs a new map or array model from REST data. - * @param data {Object|Array} The REST data. - * @param obj {Object|Array} The target object or array. - */ - exports.constructFromObject = function(data, obj, itemType) { - if (Array.isArray(data)) { - for (var i = 0; i < data.length; i++) { - if (data.hasOwnProperty(i)) - obj[i] = exports.convertToType(data[i], itemType); - } - } else { - for (var k in data) { - if (data.hasOwnProperty(k)) - obj[k] = exports.convertToType(data[k], itemType); - } - } - }; - - /** - * The default API client implementation. - * @type {module:ApiClient} - */ - exports.instance = new exports(); - - return exports; -})); diff --git a/samples/client/petstore/javascript-promise/src/api/AnotherFakeApi.js b/samples/client/petstore/javascript-promise/src/api/AnotherFakeApi.js deleted file mode 100644 index e6cbc4e382c3..000000000000 --- a/samples/client/petstore/javascript-promise/src/api/AnotherFakeApi.js +++ /dev/null @@ -1,101 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.AnotherFakeApi = factory(root.OpenApiPetstore.ApiClient, root.OpenApiPetstore.Client); - } -}(this, function(ApiClient, Client) { - 'use strict'; - - /** - * AnotherFake service. - * @module api/AnotherFakeApi - * @version 1.0.0 - */ - - /** - * Constructs a new AnotherFakeApi. - * @alias module:api/AnotherFakeApi - * @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 special tags - * To test special tags and operation ID starting with number - * @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.call123testSpecialTagsWithHttpInfo = 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 call123testSpecialTags"); - } - - var pathParams = { - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Client; - return this.apiClient.callApi( - '/another-fake/dummy', 'PATCH', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * To test special tags - * To test special tags and operation ID starting with number - * @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.call123testSpecialTags = function(body) { - return this.call123testSpecialTagsWithHttpInfo(body) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - }; - - return exports; -})); diff --git a/samples/client/petstore/javascript-promise/src/api/FakeApi.js b/samples/client/petstore/javascript-promise/src/api/FakeApi.js deleted file mode 100644 index 6ba7dcd5431c..000000000000 --- a/samples/client/petstore/javascript-promise/src/api/FakeApi.js +++ /dev/null @@ -1,879 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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', 'model/FileSchemaTestClass', 'model/OuterComposite', 'model/User', 'model/XmlItem'], 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'), require('../model/FileSchemaTestClass'), require('../model/OuterComposite'), require('../model/User'), require('../model/XmlItem')); - } else { - // Browser globals (root is window) - if (!root.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.FakeApi = factory(root.OpenApiPetstore.ApiClient, root.OpenApiPetstore.Client, root.OpenApiPetstore.FileSchemaTestClass, root.OpenApiPetstore.OuterComposite, root.OpenApiPetstore.User, root.OpenApiPetstore.XmlItem); - } -}(this, function(ApiClient, Client, FileSchemaTestClass, OuterComposite, User, XmlItem) { - 'use strict'; - - /** - * Fake service. - * @module api/FakeApi - * @version 1.0.0 - */ - - /** - * Constructs a new FakeApi. - * @alias module:api/FakeApi - * @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; - - - - /** - * creates an XmlItem - * this route creates an XmlItem - * @param {module:model/XmlItem} xmlItem XmlItem Body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response - */ - this.createXmlItemWithHttpInfo = function(xmlItem) { - var postBody = xmlItem; - // verify the required parameter 'xmlItem' is set - if (xmlItem === undefined || xmlItem === null) { - throw new Error("Missing the required parameter 'xmlItem' when calling createXmlItem"); - } - - var pathParams = { - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = []; - var contentTypes = ['application/xml', 'application/xml; charset=utf-8', 'application/xml; charset=utf-16', 'text/xml', 'text/xml; charset=utf-8', 'text/xml; charset=utf-16']; - var accepts = []; - var returnType = null; - return this.apiClient.callApi( - '/fake/create_xml_item', 'POST', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * creates an XmlItem - * this route creates an XmlItem - * @param {module:model/XmlItem} xmlItem XmlItem Body - * @return {Promise} a {@link https://www.promisejs.org/|Promise} - */ - this.createXmlItem = function(xmlItem) { - return this.createXmlItemWithHttpInfo(xmlItem) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Test serialization of outer boolean types - * @param {Object} opts Optional parameters - * @param {Boolean} opts.body Input boolean as post body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Boolean} and HTTP response - */ - this.fakeOuterBooleanSerializeWithHttpInfo = function(opts) { - opts = opts || {}; - var postBody = opts['body']; - - var pathParams = { - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = []; - var contentTypes = []; - var accepts = ['*/*']; - var returnType = 'Boolean'; - return this.apiClient.callApi( - '/fake/outer/boolean', 'POST', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Test serialization of outer boolean types - * @param {Object} opts Optional parameters - * @param {Boolean} opts.body Input boolean as post body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Boolean} - */ - this.fakeOuterBooleanSerialize = function(opts) { - return this.fakeOuterBooleanSerializeWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Test serialization of object with outer number type - * @param {Object} opts Optional parameters - * @param {module:model/OuterComposite} opts.body Input composite as post body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OuterComposite} and HTTP response - */ - this.fakeOuterCompositeSerializeWithHttpInfo = function(opts) { - opts = opts || {}; - var postBody = opts['body']; - - var pathParams = { - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = []; - var contentTypes = []; - var accepts = ['*/*']; - var returnType = OuterComposite; - return this.apiClient.callApi( - '/fake/outer/composite', 'POST', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Test serialization of object with outer number type - * @param {Object} opts Optional parameters - * @param {module:model/OuterComposite} opts.body Input composite as post body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OuterComposite} - */ - this.fakeOuterCompositeSerialize = function(opts) { - return this.fakeOuterCompositeSerializeWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Test serialization of outer number types - * @param {Object} opts Optional parameters - * @param {Number} opts.body Input number as post body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Number} and HTTP response - */ - this.fakeOuterNumberSerializeWithHttpInfo = function(opts) { - opts = opts || {}; - var postBody = opts['body']; - - var pathParams = { - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = []; - var contentTypes = []; - var accepts = ['*/*']; - var returnType = 'Number'; - return this.apiClient.callApi( - '/fake/outer/number', 'POST', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Test serialization of outer number types - * @param {Object} opts Optional parameters - * @param {Number} opts.body Input number as post body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Number} - */ - this.fakeOuterNumberSerialize = function(opts) { - return this.fakeOuterNumberSerializeWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Test serialization of outer string types - * @param {Object} opts Optional parameters - * @param {String} opts.body Input string as post body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link String} and HTTP response - */ - this.fakeOuterStringSerializeWithHttpInfo = function(opts) { - opts = opts || {}; - var postBody = opts['body']; - - var pathParams = { - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = []; - var contentTypes = []; - var accepts = ['*/*']; - var returnType = 'String'; - return this.apiClient.callApi( - '/fake/outer/string', 'POST', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Test serialization of outer string types - * @param {Object} opts Optional parameters - * @param {String} opts.body Input string as post body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link String} - */ - this.fakeOuterStringSerialize = function(opts) { - return this.fakeOuterStringSerializeWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * For this test, the body for this request much reference a schema named `File`. - * @param {module:model/FileSchemaTestClass} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response - */ - this.testBodyWithFileSchemaWithHttpInfo = 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 testBodyWithFileSchema"); - } - - var pathParams = { - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = []; - var contentTypes = ['application/json']; - var accepts = []; - var returnType = null; - return this.apiClient.callApi( - '/fake/body-with-file-schema', 'PUT', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * For this test, the body for this request much reference a schema named `File`. - * @param {module:model/FileSchemaTestClass} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise} - */ - this.testBodyWithFileSchema = function(body) { - return this.testBodyWithFileSchemaWithHttpInfo(body) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * @param {String} query - * @param {module:model/User} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response - */ - this.testBodyWithQueryParamsWithHttpInfo = function(query, body) { - var postBody = body; - // verify the required parameter 'query' is set - if (query === undefined || query === null) { - throw new Error("Missing the required parameter 'query' when calling testBodyWithQueryParams"); - } - // verify the required parameter 'body' is set - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling testBodyWithQueryParams"); - } - - var pathParams = { - }; - var queryParams = { - 'query': query, - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = []; - var contentTypes = ['application/json']; - var accepts = []; - var returnType = null; - return this.apiClient.callApi( - '/fake/body-with-query-params', 'PUT', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * @param {String} query - * @param {module:model/User} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise} - */ - this.testBodyWithQueryParams = function(query, body) { - return this.testBodyWithQueryParamsWithHttpInfo(query, body) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * To test \"client\" model - * To test \"client\" model - * @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.testClientModelWithHttpInfo = 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 testClientModel"); - } - - var pathParams = { - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Client; - return this.apiClient.callApi( - '/fake', 'PATCH', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * To test \"client\" model - * To test \"client\" model - * @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.testClientModel = function(body) { - return this.testClientModelWithHttpInfo(body) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - * @param {Number} _number None - * @param {Number} _double None - * @param {String} patternWithoutDelimiter None - * @param {Blob} _byte None - * @param {Object} opts Optional parameters - * @param {Number} opts.integer None - * @param {Number} opts.int32 None - * @param {Number} opts.int64 None - * @param {Number} opts._float None - * @param {String} opts._string None - * @param {File} opts.binary None - * @param {Date} opts._date None - * @param {Date} opts.dateTime None - * @param {String} opts.password None - * @param {String} opts.callback None - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response - */ - this.testEndpointParametersWithHttpInfo = function(_number, _double, patternWithoutDelimiter, _byte, opts) { - opts = opts || {}; - var postBody = null; - // verify the required parameter '_number' is set - if (_number === undefined || _number === null) { - throw new Error("Missing the required parameter '_number' when calling testEndpointParameters"); - } - // verify the required parameter '_double' is set - if (_double === undefined || _double === null) { - throw new Error("Missing the required parameter '_double' when calling testEndpointParameters"); - } - // verify the required parameter 'patternWithoutDelimiter' is set - if (patternWithoutDelimiter === undefined || patternWithoutDelimiter === null) { - throw new Error("Missing the required parameter 'patternWithoutDelimiter' when calling testEndpointParameters"); - } - // verify the required parameter '_byte' is set - if (_byte === undefined || _byte === null) { - throw new Error("Missing the required parameter '_byte' when calling testEndpointParameters"); - } - - var pathParams = { - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - 'integer': opts['integer'], - 'int32': opts['int32'], - 'int64': opts['int64'], - 'number': _number, - 'float': opts['_float'], - 'double': _double, - 'string': opts['_string'], - 'pattern_without_delimiter': patternWithoutDelimiter, - 'byte': _byte, - 'binary': opts['binary'], - 'date': opts['_date'], - 'dateTime': opts['dateTime'], - 'password': opts['password'], - 'callback': opts['callback'] - }; - - var authNames = ['http_basic_test']; - var contentTypes = ['application/x-www-form-urlencoded']; - var accepts = []; - var returnType = null; - return this.apiClient.callApi( - '/fake', 'POST', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - * @param {Number} _number None - * @param {Number} _double None - * @param {String} patternWithoutDelimiter None - * @param {Blob} _byte None - * @param {Object} opts Optional parameters - * @param {Number} opts.integer None - * @param {Number} opts.int32 None - * @param {Number} opts.int64 None - * @param {Number} opts._float None - * @param {String} opts._string None - * @param {File} opts.binary None - * @param {Date} opts._date None - * @param {Date} opts.dateTime None - * @param {String} opts.password None - * @param {String} opts.callback None - * @return {Promise} a {@link https://www.promisejs.org/|Promise} - */ - this.testEndpointParameters = function(_number, _double, patternWithoutDelimiter, _byte, opts) { - return this.testEndpointParametersWithHttpInfo(_number, _double, patternWithoutDelimiter, _byte, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * To test enum parameters - * To test enum parameters - * @param {Object} opts Optional parameters - * @param {Array.} opts.enumHeaderStringArray Header parameter enum test (string array) - * @param {module:model/String} opts.enumHeaderString Header parameter enum test (string) (default to '-efg') - * @param {Array.} opts.enumQueryStringArray Query parameter enum test (string array) - * @param {module:model/String} opts.enumQueryString Query parameter enum test (string) (default to '-efg') - * @param {module:model/Number} opts.enumQueryInteger Query parameter enum test (double) - * @param {module:model/Number} opts.enumQueryDouble Query parameter enum test (double) - * @param {Array.} opts.enumFormStringArray Form parameter enum test (string array) (default to '$') - * @param {module:model/String} opts.enumFormString Form parameter enum test (string) (default to '-efg') - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response - */ - this.testEnumParametersWithHttpInfo = function(opts) { - opts = opts || {}; - var postBody = null; - - var pathParams = { - }; - var queryParams = { - 'enum_query_string': opts['enumQueryString'], - 'enum_query_integer': opts['enumQueryInteger'], - 'enum_query_double': opts['enumQueryDouble'], - }; - var collectionQueryParams = { - 'enum_query_string_array': { - value: opts['enumQueryStringArray'], - collectionFormat: 'csv' - }, - }; - var headerParams = { - 'enum_header_string_array': opts['enumHeaderStringArray'], - 'enum_header_string': opts['enumHeaderString'] - }; - var formParams = { - 'enum_form_string_array': this.apiClient.buildCollectionParam(opts['enumFormStringArray'], 'csv'), - 'enum_form_string': opts['enumFormString'] - }; - - var authNames = []; - var contentTypes = ['application/x-www-form-urlencoded']; - var accepts = []; - var returnType = null; - return this.apiClient.callApi( - '/fake', 'GET', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * To test enum parameters - * To test enum parameters - * @param {Object} opts Optional parameters - * @param {Array.} opts.enumHeaderStringArray Header parameter enum test (string array) - * @param {module:model/String} opts.enumHeaderString Header parameter enum test (string) (default to '-efg') - * @param {Array.} opts.enumQueryStringArray Query parameter enum test (string array) - * @param {module:model/String} opts.enumQueryString Query parameter enum test (string) (default to '-efg') - * @param {module:model/Number} opts.enumQueryInteger Query parameter enum test (double) - * @param {module:model/Number} opts.enumQueryDouble Query parameter enum test (double) - * @param {Array.} opts.enumFormStringArray Form parameter enum test (string array) (default to '$') - * @param {module:model/String} opts.enumFormString Form parameter enum test (string) (default to '-efg') - * @return {Promise} a {@link https://www.promisejs.org/|Promise} - */ - this.testEnumParameters = function(opts) { - return this.testEnumParametersWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Fake endpoint to test group parameters (optional) - * Fake endpoint to test group parameters (optional) - * @param {Number} requiredStringGroup Required String in group parameters - * @param {Boolean} requiredBooleanGroup Required Boolean in group parameters - * @param {Number} requiredInt64Group Required Integer in group parameters - * @param {Object} opts Optional parameters - * @param {Number} opts.stringGroup String in group parameters - * @param {Boolean} opts.booleanGroup Boolean in group parameters - * @param {Number} opts.int64Group Integer in group parameters - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response - */ - this.testGroupParametersWithHttpInfo = function(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, opts) { - opts = opts || {}; - var postBody = null; - // verify the required parameter 'requiredStringGroup' is set - if (requiredStringGroup === undefined || requiredStringGroup === null) { - throw new Error("Missing the required parameter 'requiredStringGroup' when calling testGroupParameters"); - } - // verify the required parameter 'requiredBooleanGroup' is set - if (requiredBooleanGroup === undefined || requiredBooleanGroup === null) { - throw new Error("Missing the required parameter 'requiredBooleanGroup' when calling testGroupParameters"); - } - // verify the required parameter 'requiredInt64Group' is set - if (requiredInt64Group === undefined || requiredInt64Group === null) { - throw new Error("Missing the required parameter 'requiredInt64Group' when calling testGroupParameters"); - } - - var pathParams = { - }; - var queryParams = { - 'required_string_group': requiredStringGroup, - 'required_int64_group': requiredInt64Group, - 'string_group': opts['stringGroup'], - 'int64_group': opts['int64Group'], - }; - var collectionQueryParams = { - }; - var headerParams = { - 'required_boolean_group': requiredBooleanGroup, - 'boolean_group': opts['booleanGroup'] - }; - var formParams = { - }; - - var authNames = []; - var contentTypes = []; - var accepts = []; - var returnType = null; - return this.apiClient.callApi( - '/fake', 'DELETE', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Fake endpoint to test group parameters (optional) - * Fake endpoint to test group parameters (optional) - * @param {Number} requiredStringGroup Required String in group parameters - * @param {Boolean} requiredBooleanGroup Required Boolean in group parameters - * @param {Number} requiredInt64Group Required Integer in group parameters - * @param {Object} opts Optional parameters - * @param {Number} opts.stringGroup String in group parameters - * @param {Boolean} opts.booleanGroup Boolean in group parameters - * @param {Number} opts.int64Group Integer in group parameters - * @return {Promise} a {@link https://www.promisejs.org/|Promise} - */ - this.testGroupParameters = function(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, opts) { - return this.testGroupParametersWithHttpInfo(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * test inline additionalProperties - * @param {Object.} param request body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response - */ - this.testInlineAdditionalPropertiesWithHttpInfo = function(param) { - var postBody = param; - // verify the required parameter 'param' is set - if (param === undefined || param === null) { - throw new Error("Missing the required parameter 'param' when calling testInlineAdditionalProperties"); - } - - var pathParams = { - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = []; - var contentTypes = ['application/json']; - var accepts = []; - var returnType = null; - return this.apiClient.callApi( - '/fake/inline-additionalProperties', 'POST', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * test inline additionalProperties - * @param {Object.} param request body - * @return {Promise} a {@link https://www.promisejs.org/|Promise} - */ - this.testInlineAdditionalProperties = function(param) { - return this.testInlineAdditionalPropertiesWithHttpInfo(param) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * test json serialization of form data - * @param {String} param field1 - * @param {String} param2 field2 - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response - */ - this.testJsonFormDataWithHttpInfo = function(param, param2) { - var postBody = null; - // verify the required parameter 'param' is set - if (param === undefined || param === null) { - throw new Error("Missing the required parameter 'param' when calling testJsonFormData"); - } - // verify the required parameter 'param2' is set - if (param2 === undefined || param2 === null) { - throw new Error("Missing the required parameter 'param2' when calling testJsonFormData"); - } - - var pathParams = { - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - 'param': param, - 'param2': param2 - }; - - var authNames = []; - var contentTypes = ['application/x-www-form-urlencoded']; - var accepts = []; - var returnType = null; - return this.apiClient.callApi( - '/fake/jsonFormData', 'GET', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * test json serialization of form data - * @param {String} param field1 - * @param {String} param2 field2 - * @return {Promise} a {@link https://www.promisejs.org/|Promise} - */ - this.testJsonFormData = function(param, param2) { - return this.testJsonFormDataWithHttpInfo(param, param2) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * To test the collection format in query parameters - * @param {Array.} pipe - * @param {Array.} ioutil - * @param {Array.} http - * @param {Array.} url - * @param {Array.} context - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response - */ - this.testQueryParameterCollectionFormatWithHttpInfo = function(pipe, ioutil, http, url, context) { - var postBody = null; - // verify the required parameter 'pipe' is set - if (pipe === undefined || pipe === null) { - throw new Error("Missing the required parameter 'pipe' when calling testQueryParameterCollectionFormat"); - } - // verify the required parameter 'ioutil' is set - if (ioutil === undefined || ioutil === null) { - throw new Error("Missing the required parameter 'ioutil' when calling testQueryParameterCollectionFormat"); - } - // verify the required parameter 'http' is set - if (http === undefined || http === null) { - throw new Error("Missing the required parameter 'http' when calling testQueryParameterCollectionFormat"); - } - // verify the required parameter 'url' is set - if (url === undefined || url === null) { - throw new Error("Missing the required parameter 'url' when calling testQueryParameterCollectionFormat"); - } - // verify the required parameter 'context' is set - if (context === undefined || context === null) { - throw new Error("Missing the required parameter 'context' when calling testQueryParameterCollectionFormat"); - } - - var pathParams = { - }; - var queryParams = { - }; - var collectionQueryParams = { - 'pipe': { - value: pipe, - collectionFormat: 'csv' - }, - 'ioutil': { - value: ioutil, - collectionFormat: 'csv' - }, - 'http': { - value: http, - collectionFormat: 'space' - }, - 'url': { - value: url, - collectionFormat: 'csv' - }, - 'context': { - value: context, - collectionFormat: 'multi' - }, - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = []; - var contentTypes = []; - var accepts = []; - var returnType = null; - return this.apiClient.callApi( - '/fake/test-query-paramters', 'PUT', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * To test the collection format in query parameters - * @param {Array.} pipe - * @param {Array.} ioutil - * @param {Array.} http - * @param {Array.} url - * @param {Array.} context - * @return {Promise} a {@link https://www.promisejs.org/|Promise} - */ - this.testQueryParameterCollectionFormat = function(pipe, ioutil, http, url, context) { - return this.testQueryParameterCollectionFormatWithHttpInfo(pipe, ioutil, http, url, context) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - }; - - return exports; -})); diff --git a/samples/client/petstore/javascript-promise/src/api/FakeClassnameTags123Api.js b/samples/client/petstore/javascript-promise/src/api/FakeClassnameTags123Api.js deleted file mode 100644 index eae522bf6317..000000000000 --- a/samples/client/petstore/javascript-promise/src/api/FakeClassnameTags123Api.js +++ /dev/null @@ -1,101 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.FakeClassnameTags123Api = factory(root.OpenApiPetstore.ApiClient, root.OpenApiPetstore.Client); - } -}(this, function(ApiClient, Client) { - 'use strict'; - - /** - * FakeClassnameTags123 service. - * @module api/FakeClassnameTags123Api - * @version 1.0.0 - */ - - /** - * Constructs a new FakeClassnameTags123Api. - * @alias module:api/FakeClassnameTags123Api - * @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 - * 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, null - ); - } - - /** - * To test class name in snake case - * 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/api/PetApi.js b/samples/client/petstore/javascript-promise/src/api/PetApi.js deleted file mode 100644 index c50e428399fb..000000000000 --- a/samples/client/petstore/javascript-promise/src/api/PetApi.js +++ /dev/null @@ -1,531 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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/ApiResponse', 'model/Pet'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../model/ApiResponse'), require('../model/Pet')); - } else { - // Browser globals (root is window) - if (!root.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.PetApi = factory(root.OpenApiPetstore.ApiClient, root.OpenApiPetstore.ApiResponse, root.OpenApiPetstore.Pet); - } -}(this, function(ApiClient, ApiResponse, Pet) { - 'use strict'; - - /** - * Pet service. - * @module api/PetApi - * @version 1.0.0 - */ - - /** - * Constructs a new PetApi. - * @alias module:api/PetApi - * @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; - - - - /** - * Add a new pet to the store - * @param {module:model/Pet} body Pet object that needs to be added to the store - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response - */ - this.addPetWithHttpInfo = 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 addPet"); - } - - var pathParams = { - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['petstore_auth']; - var contentTypes = ['application/json', 'application/xml']; - var accepts = []; - var returnType = null; - return this.apiClient.callApi( - '/pet', 'POST', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Add a new pet to the store - * @param {module:model/Pet} body Pet object that needs to be added to the store - * @return {Promise} a {@link https://www.promisejs.org/|Promise} - */ - this.addPet = function(body) { - return this.addPetWithHttpInfo(body) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Deletes a pet - * @param {Number} petId Pet id to delete - * @param {Object} opts Optional parameters - * @param {String} opts.apiKey - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response - */ - this.deletePetWithHttpInfo = function(petId, opts) { - opts = opts || {}; - var postBody = null; - // verify the required parameter 'petId' is set - if (petId === undefined || petId === null) { - throw new Error("Missing the required parameter 'petId' when calling deletePet"); - } - - var pathParams = { - 'petId': petId - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - 'api_key': opts['apiKey'] - }; - var formParams = { - }; - - var authNames = ['petstore_auth']; - var contentTypes = []; - var accepts = []; - var returnType = null; - return this.apiClient.callApi( - '/pet/{petId}', 'DELETE', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Deletes a pet - * @param {Number} petId Pet id to delete - * @param {Object} opts Optional parameters - * @param {String} opts.apiKey - * @return {Promise} a {@link https://www.promisejs.org/|Promise} - */ - this.deletePet = function(petId, opts) { - return this.deletePetWithHttpInfo(petId, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Finds Pets by status - * Multiple status values can be provided with comma separated strings - * @param {Array.} status Status values that need to be considered for filter - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.} and HTTP response - */ - this.findPetsByStatusWithHttpInfo = function(status) { - var postBody = null; - // verify the required parameter 'status' is set - if (status === undefined || status === null) { - throw new Error("Missing the required parameter 'status' when calling findPetsByStatus"); - } - - var pathParams = { - }; - var queryParams = { - }; - var collectionQueryParams = { - 'status': { - value: status, - collectionFormat: 'csv' - }, - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['petstore_auth']; - var contentTypes = []; - var accepts = ['application/xml', 'application/json']; - var returnType = [Pet]; - return this.apiClient.callApi( - '/pet/findByStatus', 'GET', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Finds Pets by status - * Multiple status values can be provided with comma separated strings - * @param {Array.} status Status values that need to be considered for filter - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.} - */ - this.findPetsByStatus = function(status) { - return this.findPetsByStatusWithHttpInfo(status) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Finds Pets by tags - * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. - * @param {Array.} tags Tags to filter by - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.} and HTTP response - */ - this.findPetsByTagsWithHttpInfo = function(tags) { - var postBody = null; - // verify the required parameter 'tags' is set - if (tags === undefined || tags === null) { - throw new Error("Missing the required parameter 'tags' when calling findPetsByTags"); - } - - var pathParams = { - }; - var queryParams = { - }; - var collectionQueryParams = { - 'tags': { - value: tags, - collectionFormat: 'csv' - }, - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['petstore_auth']; - var contentTypes = []; - var accepts = ['application/xml', 'application/json']; - var returnType = [Pet]; - return this.apiClient.callApi( - '/pet/findByTags', 'GET', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Finds Pets by tags - * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. - * @param {Array.} tags Tags to filter by - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.} - */ - this.findPetsByTags = function(tags) { - return this.findPetsByTagsWithHttpInfo(tags) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Find pet by ID - * Returns a single pet - * @param {Number} petId ID of pet to return - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Pet} and HTTP response - */ - this.getPetByIdWithHttpInfo = function(petId) { - var postBody = null; - // verify the required parameter 'petId' is set - if (petId === undefined || petId === null) { - throw new Error("Missing the required parameter 'petId' when calling getPetById"); - } - - var pathParams = { - 'petId': petId - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['api_key']; - var contentTypes = []; - var accepts = ['application/xml', 'application/json']; - var returnType = Pet; - return this.apiClient.callApi( - '/pet/{petId}', 'GET', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Find pet by ID - * Returns a single pet - * @param {Number} petId ID of pet to return - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Pet} - */ - this.getPetById = function(petId) { - return this.getPetByIdWithHttpInfo(petId) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Update an existing pet - * @param {module:model/Pet} body Pet object that needs to be added to the store - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response - */ - this.updatePetWithHttpInfo = 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 updatePet"); - } - - var pathParams = { - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['petstore_auth']; - var contentTypes = ['application/json', 'application/xml']; - var accepts = []; - var returnType = null; - return this.apiClient.callApi( - '/pet', 'PUT', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Update an existing pet - * @param {module:model/Pet} body Pet object that needs to be added to the store - * @return {Promise} a {@link https://www.promisejs.org/|Promise} - */ - this.updatePet = function(body) { - return this.updatePetWithHttpInfo(body) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Updates a pet in the store with form data - * @param {Number} petId ID of pet that needs to be updated - * @param {Object} opts Optional parameters - * @param {String} opts.name Updated name of the pet - * @param {String} opts.status Updated status of the pet - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response - */ - this.updatePetWithFormWithHttpInfo = function(petId, opts) { - opts = opts || {}; - var postBody = null; - // verify the required parameter 'petId' is set - if (petId === undefined || petId === null) { - throw new Error("Missing the required parameter 'petId' when calling updatePetWithForm"); - } - - var pathParams = { - 'petId': petId - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - 'name': opts['name'], - 'status': opts['status'] - }; - - var authNames = ['petstore_auth']; - var contentTypes = ['application/x-www-form-urlencoded']; - var accepts = []; - var returnType = null; - return this.apiClient.callApi( - '/pet/{petId}', 'POST', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Updates a pet in the store with form data - * @param {Number} petId ID of pet that needs to be updated - * @param {Object} opts Optional parameters - * @param {String} opts.name Updated name of the pet - * @param {String} opts.status Updated status of the pet - * @return {Promise} a {@link https://www.promisejs.org/|Promise} - */ - this.updatePetWithForm = function(petId, opts) { - return this.updatePetWithFormWithHttpInfo(petId, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * uploads an image - * @param {Number} petId ID of pet to update - * @param {Object} opts Optional parameters - * @param {String} opts.additionalMetadata Additional data to pass to server - * @param {File} opts.file file to upload - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ApiResponse} and HTTP response - */ - this.uploadFileWithHttpInfo = function(petId, opts) { - opts = opts || {}; - var postBody = null; - // verify the required parameter 'petId' is set - if (petId === undefined || petId === null) { - throw new Error("Missing the required parameter 'petId' when calling uploadFile"); - } - - var pathParams = { - 'petId': petId - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - 'additionalMetadata': opts['additionalMetadata'], - 'file': opts['file'] - }; - - var authNames = ['petstore_auth']; - var contentTypes = ['multipart/form-data']; - var accepts = ['application/json']; - var returnType = ApiResponse; - return this.apiClient.callApi( - '/pet/{petId}/uploadImage', 'POST', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * uploads an image - * @param {Number} petId ID of pet to update - * @param {Object} opts Optional parameters - * @param {String} opts.additionalMetadata Additional data to pass to server - * @param {File} opts.file file to upload - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ApiResponse} - */ - this.uploadFile = function(petId, opts) { - return this.uploadFileWithHttpInfo(petId, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * uploads an image (required) - * @param {Number} petId ID of pet to update - * @param {File} requiredFile file to upload - * @param {Object} opts Optional parameters - * @param {String} opts.additionalMetadata Additional data to pass to server - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ApiResponse} and HTTP response - */ - this.uploadFileWithRequiredFileWithHttpInfo = function(petId, requiredFile, opts) { - opts = opts || {}; - var postBody = null; - // verify the required parameter 'petId' is set - if (petId === undefined || petId === null) { - throw new Error("Missing the required parameter 'petId' when calling uploadFileWithRequiredFile"); - } - // verify the required parameter 'requiredFile' is set - if (requiredFile === undefined || requiredFile === null) { - throw new Error("Missing the required parameter 'requiredFile' when calling uploadFileWithRequiredFile"); - } - - var pathParams = { - 'petId': petId - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - 'additionalMetadata': opts['additionalMetadata'], - 'requiredFile': requiredFile - }; - - var authNames = ['petstore_auth']; - var contentTypes = ['multipart/form-data']; - var accepts = ['application/json']; - var returnType = ApiResponse; - return this.apiClient.callApi( - '/fake/{petId}/uploadImageWithRequiredFile', 'POST', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * uploads an image (required) - * @param {Number} petId ID of pet to update - * @param {File} requiredFile file to upload - * @param {Object} opts Optional parameters - * @param {String} opts.additionalMetadata Additional data to pass to server - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ApiResponse} - */ - this.uploadFileWithRequiredFile = function(petId, requiredFile, opts) { - return this.uploadFileWithRequiredFileWithHttpInfo(petId, requiredFile, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - }; - - return exports; -})); diff --git a/samples/client/petstore/javascript-promise/src/api/StoreApi.js b/samples/client/petstore/javascript-promise/src/api/StoreApi.js deleted file mode 100644 index eb7d5a60a6cd..000000000000 --- a/samples/client/petstore/javascript-promise/src/api/StoreApi.js +++ /dev/null @@ -1,242 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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/Order'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../model/Order')); - } else { - // Browser globals (root is window) - if (!root.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.StoreApi = factory(root.OpenApiPetstore.ApiClient, root.OpenApiPetstore.Order); - } -}(this, function(ApiClient, Order) { - 'use strict'; - - /** - * Store service. - * @module api/StoreApi - * @version 1.0.0 - */ - - /** - * Constructs a new StoreApi. - * @alias module:api/StoreApi - * @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; - - - - /** - * Delete purchase order by ID - * For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors - * @param {String} orderId ID of the order that needs to be deleted - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response - */ - this.deleteOrderWithHttpInfo = function(orderId) { - var postBody = null; - // verify the required parameter 'orderId' is set - if (orderId === undefined || orderId === null) { - throw new Error("Missing the required parameter 'orderId' when calling deleteOrder"); - } - - var pathParams = { - 'order_id': orderId - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = []; - var contentTypes = []; - var accepts = []; - var returnType = null; - return this.apiClient.callApi( - '/store/order/{order_id}', 'DELETE', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete purchase order by ID - * For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors - * @param {String} orderId ID of the order that needs to be deleted - * @return {Promise} a {@link https://www.promisejs.org/|Promise} - */ - this.deleteOrder = function(orderId) { - return this.deleteOrderWithHttpInfo(orderId) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Returns pet inventories by status - * Returns a map of status codes to quantities - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object.} and HTTP response - */ - this.getInventoryWithHttpInfo = function() { - var postBody = null; - - var pathParams = { - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['api_key']; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = {'String': 'Number'}; - return this.apiClient.callApi( - '/store/inventory', 'GET', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Returns pet inventories by status - * Returns a map of status codes to quantities - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object.} - */ - this.getInventory = function() { - return this.getInventoryWithHttpInfo() - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Find purchase order by ID - * For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions - * @param {Number} orderId ID of pet that needs to be fetched - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Order} and HTTP response - */ - this.getOrderByIdWithHttpInfo = function(orderId) { - var postBody = null; - // verify the required parameter 'orderId' is set - if (orderId === undefined || orderId === null) { - throw new Error("Missing the required parameter 'orderId' when calling getOrderById"); - } - - var pathParams = { - 'order_id': orderId - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = []; - var contentTypes = []; - var accepts = ['application/xml', 'application/json']; - var returnType = Order; - return this.apiClient.callApi( - '/store/order/{order_id}', 'GET', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Find purchase order by ID - * For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions - * @param {Number} orderId ID of pet that needs to be fetched - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Order} - */ - this.getOrderById = function(orderId) { - return this.getOrderByIdWithHttpInfo(orderId) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Place an order for a pet - * @param {module:model/Order} body order placed for purchasing the pet - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Order} and HTTP response - */ - this.placeOrderWithHttpInfo = 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 placeOrder"); - } - - var pathParams = { - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = []; - var contentTypes = []; - var accepts = ['application/xml', 'application/json']; - var returnType = Order; - return this.apiClient.callApi( - '/store/order', 'POST', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Place an order for a pet - * @param {module:model/Order} body order placed for purchasing the pet - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Order} - */ - this.placeOrder = function(body) { - return this.placeOrderWithHttpInfo(body) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - }; - - return exports; -})); diff --git a/samples/client/petstore/javascript-promise/src/api/UserApi.js b/samples/client/petstore/javascript-promise/src/api/UserApi.js deleted file mode 100644 index fb070a51ef6a..000000000000 --- a/samples/client/petstore/javascript-promise/src/api/UserApi.js +++ /dev/null @@ -1,445 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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/User'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../model/User')); - } else { - // Browser globals (root is window) - if (!root.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.UserApi = factory(root.OpenApiPetstore.ApiClient, root.OpenApiPetstore.User); - } -}(this, function(ApiClient, User) { - 'use strict'; - - /** - * User service. - * @module api/UserApi - * @version 1.0.0 - */ - - /** - * Constructs a new UserApi. - * @alias module:api/UserApi - * @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; - - - - /** - * Create user - * This can only be done by the logged in user. - * @param {module:model/User} body Created user object - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response - */ - this.createUserWithHttpInfo = 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 createUser"); - } - - var pathParams = { - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = []; - var contentTypes = []; - var accepts = []; - var returnType = null; - return this.apiClient.callApi( - '/user', 'POST', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Create user - * This can only be done by the logged in user. - * @param {module:model/User} body Created user object - * @return {Promise} a {@link https://www.promisejs.org/|Promise} - */ - this.createUser = function(body) { - return this.createUserWithHttpInfo(body) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Creates list of users with given input array - * @param {Array.} body List of user object - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response - */ - this.createUsersWithArrayInputWithHttpInfo = 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 createUsersWithArrayInput"); - } - - var pathParams = { - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = []; - var contentTypes = []; - var accepts = []; - var returnType = null; - return this.apiClient.callApi( - '/user/createWithArray', 'POST', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Creates list of users with given input array - * @param {Array.} body List of user object - * @return {Promise} a {@link https://www.promisejs.org/|Promise} - */ - this.createUsersWithArrayInput = function(body) { - return this.createUsersWithArrayInputWithHttpInfo(body) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Creates list of users with given input array - * @param {Array.} body List of user object - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response - */ - this.createUsersWithListInputWithHttpInfo = 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 createUsersWithListInput"); - } - - var pathParams = { - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = []; - var contentTypes = []; - var accepts = []; - var returnType = null; - return this.apiClient.callApi( - '/user/createWithList', 'POST', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Creates list of users with given input array - * @param {Array.} body List of user object - * @return {Promise} a {@link https://www.promisejs.org/|Promise} - */ - this.createUsersWithListInput = function(body) { - return this.createUsersWithListInputWithHttpInfo(body) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Delete user - * This can only be done by the logged in user. - * @param {String} username The name that needs to be deleted - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response - */ - this.deleteUserWithHttpInfo = function(username) { - var postBody = null; - // verify the required parameter 'username' is set - if (username === undefined || username === null) { - throw new Error("Missing the required parameter 'username' when calling deleteUser"); - } - - var pathParams = { - 'username': username - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = []; - var contentTypes = []; - var accepts = []; - var returnType = null; - return this.apiClient.callApi( - '/user/{username}', 'DELETE', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete user - * This can only be done by the logged in user. - * @param {String} username The name that needs to be deleted - * @return {Promise} a {@link https://www.promisejs.org/|Promise} - */ - this.deleteUser = function(username) { - return this.deleteUserWithHttpInfo(username) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Get user by user name - * @param {String} username The name that needs to be fetched. Use user1 for testing. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/User} and HTTP response - */ - this.getUserByNameWithHttpInfo = function(username) { - var postBody = null; - // verify the required parameter 'username' is set - if (username === undefined || username === null) { - throw new Error("Missing the required parameter 'username' when calling getUserByName"); - } - - var pathParams = { - 'username': username - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = []; - var contentTypes = []; - var accepts = ['application/xml', 'application/json']; - var returnType = User; - return this.apiClient.callApi( - '/user/{username}', 'GET', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get user by user name - * @param {String} username The name that needs to be fetched. Use user1 for testing. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/User} - */ - this.getUserByName = function(username) { - return this.getUserByNameWithHttpInfo(username) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Logs user into the system - * @param {String} username The user name for login - * @param {String} password The password for login in clear text - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link String} and HTTP response - */ - this.loginUserWithHttpInfo = function(username, password) { - var postBody = null; - // verify the required parameter 'username' is set - if (username === undefined || username === null) { - throw new Error("Missing the required parameter 'username' when calling loginUser"); - } - // verify the required parameter 'password' is set - if (password === undefined || password === null) { - throw new Error("Missing the required parameter 'password' when calling loginUser"); - } - - var pathParams = { - }; - var queryParams = { - 'username': username, - 'password': password, - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = []; - var contentTypes = []; - var accepts = ['application/xml', 'application/json']; - var returnType = 'String'; - return this.apiClient.callApi( - '/user/login', 'GET', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Logs user into the system - * @param {String} username The user name for login - * @param {String} password The password for login in clear text - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link String} - */ - this.loginUser = function(username, password) { - return this.loginUserWithHttpInfo(username, password) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Logs out current logged in user session - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response - */ - this.logoutUserWithHttpInfo = function() { - var postBody = null; - - var pathParams = { - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = []; - var contentTypes = []; - var accepts = []; - var returnType = null; - return this.apiClient.callApi( - '/user/logout', 'GET', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Logs out current logged in user session - * @return {Promise} a {@link https://www.promisejs.org/|Promise} - */ - this.logoutUser = function() { - return this.logoutUserWithHttpInfo() - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Updated user - * This can only be done by the logged in user. - * @param {String} username name that need to be deleted - * @param {module:model/User} body Updated user object - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response - */ - this.updateUserWithHttpInfo = function(username, body) { - var postBody = body; - // verify the required parameter 'username' is set - if (username === undefined || username === null) { - throw new Error("Missing the required parameter 'username' when calling updateUser"); - } - // verify the required parameter 'body' is set - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateUser"); - } - - var pathParams = { - 'username': username - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = []; - var contentTypes = []; - var accepts = []; - var returnType = null; - return this.apiClient.callApi( - '/user/{username}', 'PUT', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Updated user - * This can only be done by the logged in user. - * @param {String} username name that need to be deleted - * @param {module:model/User} body Updated user object - * @return {Promise} a {@link https://www.promisejs.org/|Promise} - */ - this.updateUser = function(username, body) { - return this.updateUserWithHttpInfo(username, body) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - }; - - return exports; -})); diff --git a/samples/client/petstore/javascript-promise/src/index.js b/samples/client/petstore/javascript-promise/src/index.js deleted file mode 100644 index a1defd20ce97..000000000000 --- a/samples/client/petstore/javascript-promise/src/index.js +++ /dev/null @@ -1,337 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['ApiClient', 'model/AdditionalPropertiesAnyType', 'model/AdditionalPropertiesArray', 'model/AdditionalPropertiesBoolean', 'model/AdditionalPropertiesClass', 'model/AdditionalPropertiesInteger', 'model/AdditionalPropertiesNumber', 'model/AdditionalPropertiesObject', 'model/AdditionalPropertiesString', 'model/Animal', 'model/ApiResponse', 'model/ArrayOfArrayOfNumberOnly', 'model/ArrayOfNumberOnly', 'model/ArrayTest', 'model/BigCat', 'model/BigCatAllOf', 'model/Capitalization', 'model/Cat', 'model/CatAllOf', 'model/Category', 'model/ClassModel', 'model/Client', 'model/Dog', 'model/DogAllOf', 'model/EnumArrays', 'model/EnumClass', 'model/EnumTest', 'model/File', 'model/FileSchemaTestClass', 'model/FormatTest', 'model/HasOnlyReadOnly', 'model/List', 'model/MapTest', 'model/MixedPropertiesAndAdditionalPropertiesClass', 'model/Model200Response', 'model/ModelReturn', 'model/Name', 'model/NumberOnly', 'model/Order', 'model/OuterComposite', 'model/OuterEnum', 'model/Pet', 'model/ReadOnlyFirst', 'model/SpecialModelName', 'model/Tag', 'model/TypeHolderDefault', 'model/TypeHolderExample', 'model/User', 'model/XmlItem', 'api/AnotherFakeApi', 'api/FakeApi', 'api/FakeClassnameTags123Api', 'api/PetApi', 'api/StoreApi', 'api/UserApi'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('./ApiClient'), require('./model/AdditionalPropertiesAnyType'), require('./model/AdditionalPropertiesArray'), require('./model/AdditionalPropertiesBoolean'), require('./model/AdditionalPropertiesClass'), require('./model/AdditionalPropertiesInteger'), require('./model/AdditionalPropertiesNumber'), require('./model/AdditionalPropertiesObject'), require('./model/AdditionalPropertiesString'), require('./model/Animal'), require('./model/ApiResponse'), require('./model/ArrayOfArrayOfNumberOnly'), require('./model/ArrayOfNumberOnly'), require('./model/ArrayTest'), require('./model/BigCat'), require('./model/BigCatAllOf'), require('./model/Capitalization'), require('./model/Cat'), require('./model/CatAllOf'), require('./model/Category'), require('./model/ClassModel'), require('./model/Client'), require('./model/Dog'), require('./model/DogAllOf'), require('./model/EnumArrays'), require('./model/EnumClass'), require('./model/EnumTest'), require('./model/File'), require('./model/FileSchemaTestClass'), require('./model/FormatTest'), require('./model/HasOnlyReadOnly'), require('./model/List'), require('./model/MapTest'), require('./model/MixedPropertiesAndAdditionalPropertiesClass'), require('./model/Model200Response'), require('./model/ModelReturn'), require('./model/Name'), require('./model/NumberOnly'), require('./model/Order'), require('./model/OuterComposite'), require('./model/OuterEnum'), require('./model/Pet'), require('./model/ReadOnlyFirst'), require('./model/SpecialModelName'), require('./model/Tag'), require('./model/TypeHolderDefault'), require('./model/TypeHolderExample'), require('./model/User'), require('./model/XmlItem'), require('./api/AnotherFakeApi'), require('./api/FakeApi'), require('./api/FakeClassnameTags123Api'), require('./api/PetApi'), require('./api/StoreApi'), require('./api/UserApi')); - } -}(function(ApiClient, AdditionalPropertiesAnyType, AdditionalPropertiesArray, AdditionalPropertiesBoolean, AdditionalPropertiesClass, AdditionalPropertiesInteger, AdditionalPropertiesNumber, AdditionalPropertiesObject, AdditionalPropertiesString, Animal, ApiResponse, ArrayOfArrayOfNumberOnly, ArrayOfNumberOnly, ArrayTest, BigCat, BigCatAllOf, Capitalization, Cat, CatAllOf, Category, ClassModel, Client, Dog, DogAllOf, EnumArrays, EnumClass, EnumTest, File, FileSchemaTestClass, FormatTest, HasOnlyReadOnly, List, MapTest, MixedPropertiesAndAdditionalPropertiesClass, Model200Response, ModelReturn, Name, NumberOnly, Order, OuterComposite, OuterEnum, Pet, ReadOnlyFirst, SpecialModelName, Tag, TypeHolderDefault, TypeHolderExample, User, XmlItem, AnotherFakeApi, FakeApi, FakeClassnameTags123Api, PetApi, StoreApi, UserApi) { - 'use strict'; - - /** - * This_spec_is_mainly_for_testing_Petstore_server_and_contains_fake_endpoints_models__Please_do_not_use_this_for_any_other_purpose__Special_characters___.
- * The index module provides access to constructors for all the classes which comprise the public API. - *

- * An AMD (recommended!) or CommonJS application will generally do something equivalent to the following: - *

-   * var OpenApiPetstore = require('index'); // See note below*.
-   * var xxxSvc = new OpenApiPetstore.XxxApi(); // Allocate the API class we're going to use.
-   * var yyyModel = new OpenApiPetstore.Yyy(); // Construct a model instance.
-   * yyyModel.someProperty = 'someValue';
-   * ...
-   * var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
-   * ...
-   * 
- * *NOTE: For a top-level AMD script, use require(['index'], function(){...}) - * and put the application logic within the callback function. - *

- *

- * A non-AMD browser application (discouraged) might do something like this: - *

-   * var xxxSvc = new OpenApiPetstore.XxxApi(); // Allocate the API class we're going to use.
-   * var yyy = new OpenApiPetstore.Yyy(); // Construct a model instance.
-   * yyyModel.someProperty = 'someValue';
-   * ...
-   * var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
-   * ...
-   * 
- *

- * @module index - * @version 1.0.0 - */ - var exports = { - /** - * The ApiClient constructor. - * @property {module:ApiClient} - */ - ApiClient: ApiClient, - /** - * The AdditionalPropertiesAnyType model constructor. - * @property {module:model/AdditionalPropertiesAnyType} - */ - AdditionalPropertiesAnyType: AdditionalPropertiesAnyType, - /** - * The AdditionalPropertiesArray model constructor. - * @property {module:model/AdditionalPropertiesArray} - */ - AdditionalPropertiesArray: AdditionalPropertiesArray, - /** - * The AdditionalPropertiesBoolean model constructor. - * @property {module:model/AdditionalPropertiesBoolean} - */ - AdditionalPropertiesBoolean: AdditionalPropertiesBoolean, - /** - * The AdditionalPropertiesClass model constructor. - * @property {module:model/AdditionalPropertiesClass} - */ - AdditionalPropertiesClass: AdditionalPropertiesClass, - /** - * The AdditionalPropertiesInteger model constructor. - * @property {module:model/AdditionalPropertiesInteger} - */ - AdditionalPropertiesInteger: AdditionalPropertiesInteger, - /** - * The AdditionalPropertiesNumber model constructor. - * @property {module:model/AdditionalPropertiesNumber} - */ - AdditionalPropertiesNumber: AdditionalPropertiesNumber, - /** - * The AdditionalPropertiesObject model constructor. - * @property {module:model/AdditionalPropertiesObject} - */ - AdditionalPropertiesObject: AdditionalPropertiesObject, - /** - * The AdditionalPropertiesString model constructor. - * @property {module:model/AdditionalPropertiesString} - */ - AdditionalPropertiesString: AdditionalPropertiesString, - /** - * The Animal model constructor. - * @property {module:model/Animal} - */ - Animal: Animal, - /** - * The ApiResponse model constructor. - * @property {module:model/ApiResponse} - */ - ApiResponse: ApiResponse, - /** - * The ArrayOfArrayOfNumberOnly model constructor. - * @property {module:model/ArrayOfArrayOfNumberOnly} - */ - ArrayOfArrayOfNumberOnly: ArrayOfArrayOfNumberOnly, - /** - * The ArrayOfNumberOnly model constructor. - * @property {module:model/ArrayOfNumberOnly} - */ - ArrayOfNumberOnly: ArrayOfNumberOnly, - /** - * The ArrayTest model constructor. - * @property {module:model/ArrayTest} - */ - ArrayTest: ArrayTest, - /** - * The BigCat model constructor. - * @property {module:model/BigCat} - */ - BigCat: BigCat, - /** - * The BigCatAllOf model constructor. - * @property {module:model/BigCatAllOf} - */ - BigCatAllOf: BigCatAllOf, - /** - * The Capitalization model constructor. - * @property {module:model/Capitalization} - */ - Capitalization: Capitalization, - /** - * The Cat model constructor. - * @property {module:model/Cat} - */ - Cat: Cat, - /** - * The CatAllOf model constructor. - * @property {module:model/CatAllOf} - */ - CatAllOf: CatAllOf, - /** - * The Category model constructor. - * @property {module:model/Category} - */ - Category: Category, - /** - * The ClassModel model constructor. - * @property {module:model/ClassModel} - */ - ClassModel: ClassModel, - /** - * The Client model constructor. - * @property {module:model/Client} - */ - Client: Client, - /** - * The Dog model constructor. - * @property {module:model/Dog} - */ - Dog: Dog, - /** - * The DogAllOf model constructor. - * @property {module:model/DogAllOf} - */ - DogAllOf: DogAllOf, - /** - * The EnumArrays model constructor. - * @property {module:model/EnumArrays} - */ - EnumArrays: EnumArrays, - /** - * The EnumClass model constructor. - * @property {module:model/EnumClass} - */ - EnumClass: EnumClass, - /** - * The EnumTest model constructor. - * @property {module:model/EnumTest} - */ - EnumTest: EnumTest, - /** - * The File model constructor. - * @property {module:model/File} - */ - File: File, - /** - * The FileSchemaTestClass model constructor. - * @property {module:model/FileSchemaTestClass} - */ - FileSchemaTestClass: FileSchemaTestClass, - /** - * The FormatTest model constructor. - * @property {module:model/FormatTest} - */ - FormatTest: FormatTest, - /** - * The HasOnlyReadOnly model constructor. - * @property {module:model/HasOnlyReadOnly} - */ - HasOnlyReadOnly: HasOnlyReadOnly, - /** - * The List model constructor. - * @property {module:model/List} - */ - List: List, - /** - * The MapTest model constructor. - * @property {module:model/MapTest} - */ - MapTest: MapTest, - /** - * The MixedPropertiesAndAdditionalPropertiesClass model constructor. - * @property {module:model/MixedPropertiesAndAdditionalPropertiesClass} - */ - MixedPropertiesAndAdditionalPropertiesClass: MixedPropertiesAndAdditionalPropertiesClass, - /** - * The Model200Response model constructor. - * @property {module:model/Model200Response} - */ - Model200Response: Model200Response, - /** - * The ModelReturn model constructor. - * @property {module:model/ModelReturn} - */ - ModelReturn: ModelReturn, - /** - * The Name model constructor. - * @property {module:model/Name} - */ - Name: Name, - /** - * The NumberOnly model constructor. - * @property {module:model/NumberOnly} - */ - NumberOnly: NumberOnly, - /** - * The Order model constructor. - * @property {module:model/Order} - */ - Order: Order, - /** - * The OuterComposite model constructor. - * @property {module:model/OuterComposite} - */ - OuterComposite: OuterComposite, - /** - * The OuterEnum model constructor. - * @property {module:model/OuterEnum} - */ - OuterEnum: OuterEnum, - /** - * The Pet model constructor. - * @property {module:model/Pet} - */ - Pet: Pet, - /** - * The ReadOnlyFirst model constructor. - * @property {module:model/ReadOnlyFirst} - */ - ReadOnlyFirst: ReadOnlyFirst, - /** - * The SpecialModelName model constructor. - * @property {module:model/SpecialModelName} - */ - SpecialModelName: SpecialModelName, - /** - * The Tag model constructor. - * @property {module:model/Tag} - */ - Tag: Tag, - /** - * The TypeHolderDefault model constructor. - * @property {module:model/TypeHolderDefault} - */ - TypeHolderDefault: TypeHolderDefault, - /** - * The TypeHolderExample model constructor. - * @property {module:model/TypeHolderExample} - */ - TypeHolderExample: TypeHolderExample, - /** - * The User model constructor. - * @property {module:model/User} - */ - User: User, - /** - * The XmlItem model constructor. - * @property {module:model/XmlItem} - */ - XmlItem: XmlItem, - /** - * The AnotherFakeApi service constructor. - * @property {module:api/AnotherFakeApi} - */ - AnotherFakeApi: AnotherFakeApi, - /** - * The FakeApi service constructor. - * @property {module:api/FakeApi} - */ - FakeApi: FakeApi, - /** - * The FakeClassnameTags123Api service constructor. - * @property {module:api/FakeClassnameTags123Api} - */ - FakeClassnameTags123Api: FakeClassnameTags123Api, - /** - * The PetApi service constructor. - * @property {module:api/PetApi} - */ - PetApi: PetApi, - /** - * The StoreApi service constructor. - * @property {module:api/StoreApi} - */ - StoreApi: StoreApi, - /** - * The UserApi service constructor. - * @property {module:api/UserApi} - */ - UserApi: UserApi - }; - - return exports; -})); diff --git a/samples/client/petstore/javascript-promise/src/model/AdditionalPropertiesAnyType.js b/samples/client/petstore/javascript-promise/src/model/AdditionalPropertiesAnyType.js deleted file mode 100644 index 9774ac339993..000000000000 --- a/samples/client/petstore/javascript-promise/src/model/AdditionalPropertiesAnyType.js +++ /dev/null @@ -1,81 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.AdditionalPropertiesAnyType = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The AdditionalPropertiesAnyType model module. - * @module model/AdditionalPropertiesAnyType - * @version 1.0.0 - */ - - /** - * Constructs a new AdditionalPropertiesAnyType. - * @alias module:model/AdditionalPropertiesAnyType - * @class - * @extends Object - */ - var exports = function() { - var _this = this; - - return _this; - }; - - /** - * Constructs a AdditionalPropertiesAnyType 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/AdditionalPropertiesAnyType} obj Optional instance to populate. - * @return {module:model/AdditionalPropertiesAnyType} The populated AdditionalPropertiesAnyType instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - ApiClient.constructFromObject(data, obj, 'Object'); - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - } - return obj; - } - - /** - * @member {String} name - */ - exports.prototype['name'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript-promise/src/model/AdditionalPropertiesArray.js b/samples/client/petstore/javascript-promise/src/model/AdditionalPropertiesArray.js deleted file mode 100644 index 44c2f9b390cc..000000000000 --- a/samples/client/petstore/javascript-promise/src/model/AdditionalPropertiesArray.js +++ /dev/null @@ -1,81 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.AdditionalPropertiesArray = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The AdditionalPropertiesArray model module. - * @module model/AdditionalPropertiesArray - * @version 1.0.0 - */ - - /** - * Constructs a new AdditionalPropertiesArray. - * @alias module:model/AdditionalPropertiesArray - * @class - * @extends Object - */ - var exports = function() { - var _this = this; - - return _this; - }; - - /** - * Constructs a AdditionalPropertiesArray 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/AdditionalPropertiesArray} obj Optional instance to populate. - * @return {module:model/AdditionalPropertiesArray} The populated AdditionalPropertiesArray instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - ApiClient.constructFromObject(data, obj, 'Array'); - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - } - return obj; - } - - /** - * @member {String} name - */ - exports.prototype['name'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript-promise/src/model/AdditionalPropertiesBoolean.js b/samples/client/petstore/javascript-promise/src/model/AdditionalPropertiesBoolean.js deleted file mode 100644 index c1ad7844f52d..000000000000 --- a/samples/client/petstore/javascript-promise/src/model/AdditionalPropertiesBoolean.js +++ /dev/null @@ -1,81 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.AdditionalPropertiesBoolean = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The AdditionalPropertiesBoolean model module. - * @module model/AdditionalPropertiesBoolean - * @version 1.0.0 - */ - - /** - * Constructs a new AdditionalPropertiesBoolean. - * @alias module:model/AdditionalPropertiesBoolean - * @class - * @extends Object - */ - var exports = function() { - var _this = this; - - return _this; - }; - - /** - * Constructs a AdditionalPropertiesBoolean 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/AdditionalPropertiesBoolean} obj Optional instance to populate. - * @return {module:model/AdditionalPropertiesBoolean} The populated AdditionalPropertiesBoolean instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - ApiClient.constructFromObject(data, obj, 'Boolean'); - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - } - return obj; - } - - /** - * @member {String} name - */ - exports.prototype['name'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript-promise/src/model/AdditionalPropertiesClass.js b/samples/client/petstore/javascript-promise/src/model/AdditionalPropertiesClass.js deleted file mode 100644 index 2b19a95b4862..000000000000 --- a/samples/client/petstore/javascript-promise/src/model/AdditionalPropertiesClass.js +++ /dev/null @@ -1,148 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.AdditionalPropertiesClass = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The AdditionalPropertiesClass model module. - * @module model/AdditionalPropertiesClass - * @version 1.0.0 - */ - - /** - * Constructs a new AdditionalPropertiesClass. - * @alias module:model/AdditionalPropertiesClass - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a AdditionalPropertiesClass 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/AdditionalPropertiesClass} obj Optional instance to populate. - * @return {module:model/AdditionalPropertiesClass} The populated AdditionalPropertiesClass instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('map_string')) { - obj['map_string'] = ApiClient.convertToType(data['map_string'], {'String': 'String'}); - } - if (data.hasOwnProperty('map_number')) { - obj['map_number'] = ApiClient.convertToType(data['map_number'], {'String': 'Number'}); - } - if (data.hasOwnProperty('map_integer')) { - obj['map_integer'] = ApiClient.convertToType(data['map_integer'], {'String': 'Number'}); - } - if (data.hasOwnProperty('map_boolean')) { - obj['map_boolean'] = ApiClient.convertToType(data['map_boolean'], {'String': 'Boolean'}); - } - if (data.hasOwnProperty('map_array_integer')) { - obj['map_array_integer'] = ApiClient.convertToType(data['map_array_integer'], {'String': ['Number']}); - } - if (data.hasOwnProperty('map_array_anytype')) { - obj['map_array_anytype'] = ApiClient.convertToType(data['map_array_anytype'], {'String': [Object]}); - } - if (data.hasOwnProperty('map_map_string')) { - obj['map_map_string'] = ApiClient.convertToType(data['map_map_string'], {'String': {'String': 'String'}}); - } - if (data.hasOwnProperty('map_map_anytype')) { - obj['map_map_anytype'] = ApiClient.convertToType(data['map_map_anytype'], {'String': {'String': Object}}); - } - if (data.hasOwnProperty('anytype_1')) { - obj['anytype_1'] = ApiClient.convertToType(data['anytype_1'], Object); - } - if (data.hasOwnProperty('anytype_2')) { - obj['anytype_2'] = ApiClient.convertToType(data['anytype_2'], Object); - } - if (data.hasOwnProperty('anytype_3')) { - obj['anytype_3'] = ApiClient.convertToType(data['anytype_3'], Object); - } - } - return obj; - } - - /** - * @member {Object.} map_string - */ - exports.prototype['map_string'] = undefined; - /** - * @member {Object.} map_number - */ - exports.prototype['map_number'] = undefined; - /** - * @member {Object.} map_integer - */ - exports.prototype['map_integer'] = undefined; - /** - * @member {Object.} map_boolean - */ - exports.prototype['map_boolean'] = undefined; - /** - * @member {Object.>} map_array_integer - */ - exports.prototype['map_array_integer'] = undefined; - /** - * @member {Object.>} map_array_anytype - */ - exports.prototype['map_array_anytype'] = undefined; - /** - * @member {Object.>} map_map_string - */ - exports.prototype['map_map_string'] = undefined; - /** - * @member {Object.>} map_map_anytype - */ - exports.prototype['map_map_anytype'] = undefined; - /** - * @member {Object} anytype_1 - */ - exports.prototype['anytype_1'] = undefined; - /** - * @member {Object} anytype_2 - */ - exports.prototype['anytype_2'] = undefined; - /** - * @member {Object} anytype_3 - */ - exports.prototype['anytype_3'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript-promise/src/model/AdditionalPropertiesInteger.js b/samples/client/petstore/javascript-promise/src/model/AdditionalPropertiesInteger.js deleted file mode 100644 index 295febe3642a..000000000000 --- a/samples/client/petstore/javascript-promise/src/model/AdditionalPropertiesInteger.js +++ /dev/null @@ -1,81 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.AdditionalPropertiesInteger = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The AdditionalPropertiesInteger model module. - * @module model/AdditionalPropertiesInteger - * @version 1.0.0 - */ - - /** - * Constructs a new AdditionalPropertiesInteger. - * @alias module:model/AdditionalPropertiesInteger - * @class - * @extends Object - */ - var exports = function() { - var _this = this; - - return _this; - }; - - /** - * Constructs a AdditionalPropertiesInteger 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/AdditionalPropertiesInteger} obj Optional instance to populate. - * @return {module:model/AdditionalPropertiesInteger} The populated AdditionalPropertiesInteger instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - ApiClient.constructFromObject(data, obj, 'Number'); - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - } - return obj; - } - - /** - * @member {String} name - */ - exports.prototype['name'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript-promise/src/model/AdditionalPropertiesNumber.js b/samples/client/petstore/javascript-promise/src/model/AdditionalPropertiesNumber.js deleted file mode 100644 index f0b20ec0bbfb..000000000000 --- a/samples/client/petstore/javascript-promise/src/model/AdditionalPropertiesNumber.js +++ /dev/null @@ -1,81 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.AdditionalPropertiesNumber = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The AdditionalPropertiesNumber model module. - * @module model/AdditionalPropertiesNumber - * @version 1.0.0 - */ - - /** - * Constructs a new AdditionalPropertiesNumber. - * @alias module:model/AdditionalPropertiesNumber - * @class - * @extends Object - */ - var exports = function() { - var _this = this; - - return _this; - }; - - /** - * Constructs a AdditionalPropertiesNumber 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/AdditionalPropertiesNumber} obj Optional instance to populate. - * @return {module:model/AdditionalPropertiesNumber} The populated AdditionalPropertiesNumber instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - ApiClient.constructFromObject(data, obj, 'Number'); - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - } - return obj; - } - - /** - * @member {String} name - */ - exports.prototype['name'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript-promise/src/model/AdditionalPropertiesObject.js b/samples/client/petstore/javascript-promise/src/model/AdditionalPropertiesObject.js deleted file mode 100644 index e21940515565..000000000000 --- a/samples/client/petstore/javascript-promise/src/model/AdditionalPropertiesObject.js +++ /dev/null @@ -1,81 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.AdditionalPropertiesObject = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The AdditionalPropertiesObject model module. - * @module model/AdditionalPropertiesObject - * @version 1.0.0 - */ - - /** - * Constructs a new AdditionalPropertiesObject. - * @alias module:model/AdditionalPropertiesObject - * @class - * @extends Object - */ - var exports = function() { - var _this = this; - - return _this; - }; - - /** - * Constructs a AdditionalPropertiesObject 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/AdditionalPropertiesObject} obj Optional instance to populate. - * @return {module:model/AdditionalPropertiesObject} The populated AdditionalPropertiesObject instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - ApiClient.constructFromObject(data, obj, 'Object'); - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - } - return obj; - } - - /** - * @member {String} name - */ - exports.prototype['name'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript-promise/src/model/AdditionalPropertiesString.js b/samples/client/petstore/javascript-promise/src/model/AdditionalPropertiesString.js deleted file mode 100644 index ce82a0e752a0..000000000000 --- a/samples/client/petstore/javascript-promise/src/model/AdditionalPropertiesString.js +++ /dev/null @@ -1,81 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.AdditionalPropertiesString = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The AdditionalPropertiesString model module. - * @module model/AdditionalPropertiesString - * @version 1.0.0 - */ - - /** - * Constructs a new AdditionalPropertiesString. - * @alias module:model/AdditionalPropertiesString - * @class - * @extends Object - */ - var exports = function() { - var _this = this; - - return _this; - }; - - /** - * Constructs a AdditionalPropertiesString 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/AdditionalPropertiesString} obj Optional instance to populate. - * @return {module:model/AdditionalPropertiesString} The populated AdditionalPropertiesString instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - ApiClient.constructFromObject(data, obj, 'String'); - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - } - return obj; - } - - /** - * @member {String} name - */ - exports.prototype['name'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript-promise/src/model/Animal.js b/samples/client/petstore/javascript-promise/src/model/Animal.js deleted file mode 100644 index b46bc005c758..000000000000 --- a/samples/client/petstore/javascript-promise/src/model/Animal.js +++ /dev/null @@ -1,88 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.Animal = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The Animal model module. - * @module model/Animal - * @version 1.0.0 - */ - - /** - * Constructs a new Animal. - * @alias module:model/Animal - * @class - * @param className {String} - */ - var exports = function(className) { - var _this = this; - - _this['className'] = className; - }; - - /** - * Constructs a Animal 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/Animal} obj Optional instance to populate. - * @return {module:model/Animal} The populated Animal instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('className')) { - obj['className'] = ApiClient.convertToType(data['className'], 'String'); - } - if (data.hasOwnProperty('color')) { - obj['color'] = ApiClient.convertToType(data['color'], 'String'); - } - } - return obj; - } - - /** - * @member {String} className - */ - exports.prototype['className'] = undefined; - /** - * @member {String} color - * @default 'red' - */ - exports.prototype['color'] = 'red'; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript-promise/src/model/ApiResponse.js b/samples/client/petstore/javascript-promise/src/model/ApiResponse.js deleted file mode 100644 index 5e9e0b16ee88..000000000000 --- a/samples/client/petstore/javascript-promise/src/model/ApiResponse.js +++ /dev/null @@ -1,92 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.ApiResponse = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The ApiResponse model module. - * @module model/ApiResponse - * @version 1.0.0 - */ - - /** - * Constructs a new ApiResponse. - * @alias module:model/ApiResponse - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a ApiResponse 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/ApiResponse} obj Optional instance to populate. - * @return {module:model/ApiResponse} The populated ApiResponse instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('code')) { - obj['code'] = ApiClient.convertToType(data['code'], 'Number'); - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - } - if (data.hasOwnProperty('message')) { - obj['message'] = ApiClient.convertToType(data['message'], 'String'); - } - } - return obj; - } - - /** - * @member {Number} code - */ - exports.prototype['code'] = undefined; - /** - * @member {String} type - */ - exports.prototype['type'] = undefined; - /** - * @member {String} message - */ - exports.prototype['message'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript-promise/src/model/ArrayOfArrayOfNumberOnly.js b/samples/client/petstore/javascript-promise/src/model/ArrayOfArrayOfNumberOnly.js deleted file mode 100644 index 13cae7cf90f6..000000000000 --- a/samples/client/petstore/javascript-promise/src/model/ArrayOfArrayOfNumberOnly.js +++ /dev/null @@ -1,78 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.ArrayOfArrayOfNumberOnly = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The ArrayOfArrayOfNumberOnly model module. - * @module model/ArrayOfArrayOfNumberOnly - * @version 1.0.0 - */ - - /** - * Constructs a new ArrayOfArrayOfNumberOnly. - * @alias module:model/ArrayOfArrayOfNumberOnly - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a ArrayOfArrayOfNumberOnly from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ArrayOfArrayOfNumberOnly} obj Optional instance to populate. - * @return {module:model/ArrayOfArrayOfNumberOnly} The populated ArrayOfArrayOfNumberOnly instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('ArrayArrayNumber')) { - obj['ArrayArrayNumber'] = ApiClient.convertToType(data['ArrayArrayNumber'], [['Number']]); - } - } - return obj; - } - - /** - * @member {Array.>} ArrayArrayNumber - */ - exports.prototype['ArrayArrayNumber'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript-promise/src/model/ArrayOfNumberOnly.js b/samples/client/petstore/javascript-promise/src/model/ArrayOfNumberOnly.js deleted file mode 100644 index a2a51049e71a..000000000000 --- a/samples/client/petstore/javascript-promise/src/model/ArrayOfNumberOnly.js +++ /dev/null @@ -1,78 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.ArrayOfNumberOnly = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The ArrayOfNumberOnly model module. - * @module model/ArrayOfNumberOnly - * @version 1.0.0 - */ - - /** - * Constructs a new ArrayOfNumberOnly. - * @alias module:model/ArrayOfNumberOnly - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a ArrayOfNumberOnly from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ArrayOfNumberOnly} obj Optional instance to populate. - * @return {module:model/ArrayOfNumberOnly} The populated ArrayOfNumberOnly instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('ArrayNumber')) { - obj['ArrayNumber'] = ApiClient.convertToType(data['ArrayNumber'], ['Number']); - } - } - return obj; - } - - /** - * @member {Array.} ArrayNumber - */ - exports.prototype['ArrayNumber'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript-promise/src/model/ArrayTest.js b/samples/client/petstore/javascript-promise/src/model/ArrayTest.js deleted file mode 100644 index 78739e4a4dcb..000000000000 --- a/samples/client/petstore/javascript-promise/src/model/ArrayTest.js +++ /dev/null @@ -1,92 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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/ReadOnlyFirst'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./ReadOnlyFirst')); - } else { - // Browser globals (root is window) - if (!root.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.ArrayTest = factory(root.OpenApiPetstore.ApiClient, root.OpenApiPetstore.ReadOnlyFirst); - } -}(this, function(ApiClient, ReadOnlyFirst) { - 'use strict'; - - - - /** - * The ArrayTest model module. - * @module model/ArrayTest - * @version 1.0.0 - */ - - /** - * Constructs a new ArrayTest. - * @alias module:model/ArrayTest - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a ArrayTest 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/ArrayTest} obj Optional instance to populate. - * @return {module:model/ArrayTest} The populated ArrayTest instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('array_of_string')) { - obj['array_of_string'] = ApiClient.convertToType(data['array_of_string'], ['String']); - } - if (data.hasOwnProperty('array_array_of_integer')) { - obj['array_array_of_integer'] = ApiClient.convertToType(data['array_array_of_integer'], [['Number']]); - } - if (data.hasOwnProperty('array_array_of_model')) { - obj['array_array_of_model'] = ApiClient.convertToType(data['array_array_of_model'], [[ReadOnlyFirst]]); - } - } - return obj; - } - - /** - * @member {Array.} array_of_string - */ - exports.prototype['array_of_string'] = undefined; - /** - * @member {Array.>} array_array_of_integer - */ - exports.prototype['array_array_of_integer'] = undefined; - /** - * @member {Array.>} array_array_of_model - */ - exports.prototype['array_array_of_model'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript-promise/src/model/BigCat.js b/samples/client/petstore/javascript-promise/src/model/BigCat.js deleted file mode 100644 index 7c2e8079c3d4..000000000000 --- a/samples/client/petstore/javascript-promise/src/model/BigCat.js +++ /dev/null @@ -1,137 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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/BigCatAllOf', 'model/Cat'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./BigCatAllOf'), require('./Cat')); - } else { - // Browser globals (root is window) - if (!root.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.BigCat = factory(root.OpenApiPetstore.ApiClient, root.OpenApiPetstore.BigCatAllOf, root.OpenApiPetstore.Cat); - } -}(this, function(ApiClient, BigCatAllOf, Cat) { - 'use strict'; - - - - /** - * The BigCat model module. - * @module model/BigCat - * @version 1.0.0 - */ - - /** - * Constructs a new BigCat. - * @alias module:model/BigCat - * @class - * @extends module:model/Cat - * @implements module:model/Cat - * @implements module:model/BigCatAllOf - * @param className {String} - */ - var exports = function(className) { - var _this = this; - - Cat.call(_this, className); - }; - - /** - * Constructs a BigCat 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/BigCat} obj Optional instance to populate. - * @return {module:model/BigCat} The populated BigCat instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - Cat.constructFromObject(data, obj); - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - } - return obj; - } - - exports.prototype = Object.create(Cat.prototype); - exports.prototype.constructor = exports; - - /** - * @member {module:model/BigCat.KindEnum} kind - */ - exports.prototype['kind'] = undefined; - - // Implement Cat interface: - /** - * @member {String} className - */ -exports.prototype['className'] = undefined; - - /** - * @member {String} color - * @default 'red' - */ -exports.prototype['color'] = 'red'; - - /** - * @member {Boolean} declawed - */ -exports.prototype['declawed'] = undefined; - - // Implement BigCatAllOf interface: - /** - * @member {module:model/BigCatAllOf.KindEnum} kind - */ -exports.prototype['kind'] = undefined; - - - /** - * Allowed values for the kind property. - * @enum {String} - * @readonly - */ - exports.KindEnum = { - /** - * value: "lions" - * @const - */ - "lions": "lions", - /** - * value: "tigers" - * @const - */ - "tigers": "tigers", - /** - * value: "leopards" - * @const - */ - "leopards": "leopards", - /** - * value: "jaguars" - * @const - */ - "jaguars": "jaguars" }; - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript-promise/src/model/BigCatAllOf.js b/samples/client/petstore/javascript-promise/src/model/BigCatAllOf.js deleted file mode 100644 index e9ee15fdc814..000000000000 --- a/samples/client/petstore/javascript-promise/src/model/BigCatAllOf.js +++ /dev/null @@ -1,105 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.BigCatAllOf = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The BigCatAllOf model module. - * @module model/BigCatAllOf - * @version 1.0.0 - */ - - /** - * Constructs a new BigCatAllOf. - * @alias module:model/BigCatAllOf - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a BigCatAllOf 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/BigCatAllOf} obj Optional instance to populate. - * @return {module:model/BigCatAllOf} The populated BigCatAllOf instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - } - return obj; - } - - /** - * @member {module:model/BigCatAllOf.KindEnum} kind - */ - exports.prototype['kind'] = undefined; - - - /** - * Allowed values for the kind property. - * @enum {String} - * @readonly - */ - exports.KindEnum = { - /** - * value: "lions" - * @const - */ - "lions": "lions", - /** - * value: "tigers" - * @const - */ - "tigers": "tigers", - /** - * value: "leopards" - * @const - */ - "leopards": "leopards", - /** - * value: "jaguars" - * @const - */ - "jaguars": "jaguars" }; - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript-promise/src/model/Capitalization.js b/samples/client/petstore/javascript-promise/src/model/Capitalization.js deleted file mode 100644 index ed0dc0b616ae..000000000000 --- a/samples/client/petstore/javascript-promise/src/model/Capitalization.js +++ /dev/null @@ -1,114 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.Capitalization = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The Capitalization model module. - * @module model/Capitalization - * @version 1.0.0 - */ - - /** - * Constructs a new Capitalization. - * @alias module:model/Capitalization - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a Capitalization 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/Capitalization} obj Optional instance to populate. - * @return {module:model/Capitalization} The populated Capitalization instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('smallCamel')) { - obj['smallCamel'] = ApiClient.convertToType(data['smallCamel'], 'String'); - } - if (data.hasOwnProperty('CapitalCamel')) { - obj['CapitalCamel'] = ApiClient.convertToType(data['CapitalCamel'], 'String'); - } - if (data.hasOwnProperty('small_Snake')) { - obj['small_Snake'] = ApiClient.convertToType(data['small_Snake'], 'String'); - } - if (data.hasOwnProperty('Capital_Snake')) { - obj['Capital_Snake'] = ApiClient.convertToType(data['Capital_Snake'], 'String'); - } - if (data.hasOwnProperty('SCA_ETH_Flow_Points')) { - obj['SCA_ETH_Flow_Points'] = ApiClient.convertToType(data['SCA_ETH_Flow_Points'], 'String'); - } - if (data.hasOwnProperty('ATT_NAME')) { - obj['ATT_NAME'] = ApiClient.convertToType(data['ATT_NAME'], 'String'); - } - } - return obj; - } - - /** - * @member {String} smallCamel - */ - exports.prototype['smallCamel'] = undefined; - /** - * @member {String} CapitalCamel - */ - exports.prototype['CapitalCamel'] = undefined; - /** - * @member {String} small_Snake - */ - exports.prototype['small_Snake'] = undefined; - /** - * @member {String} Capital_Snake - */ - exports.prototype['Capital_Snake'] = undefined; - /** - * @member {String} SCA_ETH_Flow_Points - */ - exports.prototype['SCA_ETH_Flow_Points'] = undefined; - /** - * Name of the pet - * @member {String} ATT_NAME - */ - exports.prototype['ATT_NAME'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript-promise/src/model/Cat.js b/samples/client/petstore/javascript-promise/src/model/Cat.js deleted file mode 100644 index fcc9e7bf6704..000000000000 --- a/samples/client/petstore/javascript-promise/src/model/Cat.js +++ /dev/null @@ -1,105 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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/Animal', 'model/CatAllOf'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./Animal'), require('./CatAllOf')); - } else { - // Browser globals (root is window) - if (!root.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.Cat = factory(root.OpenApiPetstore.ApiClient, root.OpenApiPetstore.Animal, root.OpenApiPetstore.CatAllOf); - } -}(this, function(ApiClient, Animal, CatAllOf) { - 'use strict'; - - - - /** - * The Cat model module. - * @module model/Cat - * @version 1.0.0 - */ - - /** - * Constructs a new Cat. - * @alias module:model/Cat - * @class - * @extends module:model/Animal - * @implements module:model/Animal - * @implements module:model/CatAllOf - * @param className {String} - */ - var exports = function(className) { - var _this = this; - - Animal.call(_this, className); - }; - - /** - * Constructs a Cat 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/Cat} obj Optional instance to populate. - * @return {module:model/Cat} The populated Cat instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - Animal.constructFromObject(data, obj); - if (data.hasOwnProperty('declawed')) { - obj['declawed'] = ApiClient.convertToType(data['declawed'], 'Boolean'); - } - } - return obj; - } - - exports.prototype = Object.create(Animal.prototype); - exports.prototype.constructor = exports; - - /** - * @member {Boolean} declawed - */ - exports.prototype['declawed'] = undefined; - - // Implement Animal interface: - /** - * @member {String} className - */ -exports.prototype['className'] = undefined; - - /** - * @member {String} color - * @default 'red' - */ -exports.prototype['color'] = 'red'; - - // Implement CatAllOf interface: - /** - * @member {Boolean} declawed - */ -exports.prototype['declawed'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript-promise/src/model/CatAllOf.js b/samples/client/petstore/javascript-promise/src/model/CatAllOf.js deleted file mode 100644 index 78465ea099fc..000000000000 --- a/samples/client/petstore/javascript-promise/src/model/CatAllOf.js +++ /dev/null @@ -1,78 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.CatAllOf = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The CatAllOf model module. - * @module model/CatAllOf - * @version 1.0.0 - */ - - /** - * Constructs a new CatAllOf. - * @alias module:model/CatAllOf - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a CatAllOf 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/CatAllOf} obj Optional instance to populate. - * @return {module:model/CatAllOf} The populated CatAllOf instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('declawed')) { - obj['declawed'] = ApiClient.convertToType(data['declawed'], 'Boolean'); - } - } - return obj; - } - - /** - * @member {Boolean} declawed - */ - exports.prototype['declawed'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript-promise/src/model/Category.js b/samples/client/petstore/javascript-promise/src/model/Category.js deleted file mode 100644 index 109344702863..000000000000 --- a/samples/client/petstore/javascript-promise/src/model/Category.js +++ /dev/null @@ -1,88 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.Category = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The Category model module. - * @module model/Category - * @version 1.0.0 - */ - - /** - * Constructs a new Category. - * @alias module:model/Category - * @class - * @param name {String} - */ - var exports = function(name) { - var _this = this; - - _this['name'] = name; - }; - - /** - * Constructs a Category 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/Category} obj Optional instance to populate. - * @return {module:model/Category} The populated Category instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - } - return obj; - } - - /** - * @member {Number} id - */ - exports.prototype['id'] = undefined; - /** - * @member {String} name - * @default 'default-name' - */ - exports.prototype['name'] = 'default-name'; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript-promise/src/model/ClassModel.js b/samples/client/petstore/javascript-promise/src/model/ClassModel.js deleted file mode 100644 index 47e80df54213..000000000000 --- a/samples/client/petstore/javascript-promise/src/model/ClassModel.js +++ /dev/null @@ -1,79 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.ClassModel = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The ClassModel model module. - * @module model/ClassModel - * @version 1.0.0 - */ - - /** - * Constructs a new ClassModel. - * Model for testing model with \"_class\" property - * @alias module:model/ClassModel - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a ClassModel 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/ClassModel} obj Optional instance to populate. - * @return {module:model/ClassModel} The populated ClassModel instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('_class')) { - obj['_class'] = ApiClient.convertToType(data['_class'], 'String'); - } - } - return obj; - } - - /** - * @member {String} _class - */ - exports.prototype['_class'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript-promise/src/model/Client.js b/samples/client/petstore/javascript-promise/src/model/Client.js deleted file mode 100644 index ea7bfcafbae4..000000000000 --- a/samples/client/petstore/javascript-promise/src/model/Client.js +++ /dev/null @@ -1,78 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.Client = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The Client model module. - * @module model/Client - * @version 1.0.0 - */ - - /** - * Constructs a new Client. - * @alias module:model/Client - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a Client 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/Client} obj Optional instance to populate. - * @return {module:model/Client} The populated Client instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('client')) { - obj['client'] = ApiClient.convertToType(data['client'], 'String'); - } - } - return obj; - } - - /** - * @member {String} client - */ - exports.prototype['client'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript-promise/src/model/Dog.js b/samples/client/petstore/javascript-promise/src/model/Dog.js deleted file mode 100644 index f69a203858ac..000000000000 --- a/samples/client/petstore/javascript-promise/src/model/Dog.js +++ /dev/null @@ -1,105 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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/Animal', 'model/DogAllOf'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./Animal'), require('./DogAllOf')); - } else { - // Browser globals (root is window) - if (!root.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.Dog = factory(root.OpenApiPetstore.ApiClient, root.OpenApiPetstore.Animal, root.OpenApiPetstore.DogAllOf); - } -}(this, function(ApiClient, Animal, DogAllOf) { - 'use strict'; - - - - /** - * The Dog model module. - * @module model/Dog - * @version 1.0.0 - */ - - /** - * Constructs a new Dog. - * @alias module:model/Dog - * @class - * @extends module:model/Animal - * @implements module:model/Animal - * @implements module:model/DogAllOf - * @param className {String} - */ - var exports = function(className) { - var _this = this; - - Animal.call(_this, className); - }; - - /** - * Constructs a Dog 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/Dog} obj Optional instance to populate. - * @return {module:model/Dog} The populated Dog instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - Animal.constructFromObject(data, obj); - if (data.hasOwnProperty('breed')) { - obj['breed'] = ApiClient.convertToType(data['breed'], 'String'); - } - } - return obj; - } - - exports.prototype = Object.create(Animal.prototype); - exports.prototype.constructor = exports; - - /** - * @member {String} breed - */ - exports.prototype['breed'] = undefined; - - // Implement Animal interface: - /** - * @member {String} className - */ -exports.prototype['className'] = undefined; - - /** - * @member {String} color - * @default 'red' - */ -exports.prototype['color'] = 'red'; - - // Implement DogAllOf interface: - /** - * @member {String} breed - */ -exports.prototype['breed'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript-promise/src/model/DogAllOf.js b/samples/client/petstore/javascript-promise/src/model/DogAllOf.js deleted file mode 100644 index a531669f5371..000000000000 --- a/samples/client/petstore/javascript-promise/src/model/DogAllOf.js +++ /dev/null @@ -1,78 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.DogAllOf = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The DogAllOf model module. - * @module model/DogAllOf - * @version 1.0.0 - */ - - /** - * Constructs a new DogAllOf. - * @alias module:model/DogAllOf - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a DogAllOf 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/DogAllOf} obj Optional instance to populate. - * @return {module:model/DogAllOf} The populated DogAllOf instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('breed')) { - obj['breed'] = ApiClient.convertToType(data['breed'], 'String'); - } - } - return obj; - } - - /** - * @member {String} breed - */ - exports.prototype['breed'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript-promise/src/model/EnumArrays.js b/samples/client/petstore/javascript-promise/src/model/EnumArrays.js deleted file mode 100644 index 78fe939c4bff..000000000000 --- a/samples/client/petstore/javascript-promise/src/model/EnumArrays.js +++ /dev/null @@ -1,119 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.EnumArrays = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The EnumArrays model module. - * @module model/EnumArrays - * @version 1.0.0 - */ - - /** - * Constructs a new EnumArrays. - * @alias module:model/EnumArrays - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a EnumArrays 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/EnumArrays} obj Optional instance to populate. - * @return {module:model/EnumArrays} The populated EnumArrays instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('just_symbol')) { - obj['just_symbol'] = ApiClient.convertToType(data['just_symbol'], 'String'); - } - if (data.hasOwnProperty('array_enum')) { - obj['array_enum'] = ApiClient.convertToType(data['array_enum'], ['String']); - } - } - return obj; - } - - /** - * @member {module:model/EnumArrays.JustSymbolEnum} just_symbol - */ - exports.prototype['just_symbol'] = undefined; - /** - * @member {Array.} array_enum - */ - exports.prototype['array_enum'] = undefined; - - - /** - * Allowed values for the just_symbol property. - * @enum {String} - * @readonly - */ - exports.JustSymbolEnum = { - /** - * value: ">=" - * @const - */ - "GREATER_THAN_OR_EQUAL_TO": ">=", - /** - * value: "$" - * @const - */ - "DOLLAR": "$" }; - - /** - * Allowed values for the arrayEnum property. - * @enum {String} - * @readonly - */ - exports.ArrayEnumEnum = { - /** - * value: "fish" - * @const - */ - "fish": "fish", - /** - * value: "crab" - * @const - */ - "crab": "crab" }; - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript-promise/src/model/EnumClass.js b/samples/client/petstore/javascript-promise/src/model/EnumClass.js deleted file mode 100644 index d4f668246b5c..000000000000 --- a/samples/client/petstore/javascript-promise/src/model/EnumClass.js +++ /dev/null @@ -1,68 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.EnumClass = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - /** - * Enum class EnumClass. - * @enum {} - * @readonly - */ - var exports = { - /** - * value: "_abc" - * @const - */ - "_abc": "_abc", - /** - * value: "-efg" - * @const - */ - "-efg": "-efg", - /** - * value: "(xyz)" - * @const - */ - "(xyz)": "(xyz)" }; - - /** - * Returns a EnumClass enum value from a Javascript object name. - * @param {Object} data The plain JavaScript object containing the name of the enum value. - * @return {module:model/EnumClass} The enum EnumClass value. - */ - exports.constructFromObject = function(object) { - return object; - } - - return exports; -})); - - diff --git a/samples/client/petstore/javascript-promise/src/model/EnumTest.js b/samples/client/petstore/javascript-promise/src/model/EnumTest.js deleted file mode 100644 index 997ac55f5dbc..000000000000 --- a/samples/client/petstore/javascript-promise/src/model/EnumTest.js +++ /dev/null @@ -1,186 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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/OuterEnum'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./OuterEnum')); - } else { - // Browser globals (root is window) - if (!root.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.EnumTest = factory(root.OpenApiPetstore.ApiClient, root.OpenApiPetstore.OuterEnum); - } -}(this, function(ApiClient, OuterEnum) { - 'use strict'; - - - - /** - * The EnumTest model module. - * @module model/EnumTest - * @version 1.0.0 - */ - - /** - * Constructs a new EnumTest. - * @alias module:model/EnumTest - * @class - * @param enumStringRequired {module:model/EnumTest.EnumStringRequiredEnum} - */ - var exports = function(enumStringRequired) { - var _this = this; - - _this['enum_string_required'] = enumStringRequired; - }; - - /** - * Constructs a EnumTest 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/EnumTest} obj Optional instance to populate. - * @return {module:model/EnumTest} The populated EnumTest instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('enum_string')) { - obj['enum_string'] = ApiClient.convertToType(data['enum_string'], 'String'); - } - if (data.hasOwnProperty('enum_string_required')) { - obj['enum_string_required'] = ApiClient.convertToType(data['enum_string_required'], 'String'); - } - if (data.hasOwnProperty('enum_integer')) { - obj['enum_integer'] = ApiClient.convertToType(data['enum_integer'], 'Number'); - } - if (data.hasOwnProperty('enum_number')) { - obj['enum_number'] = ApiClient.convertToType(data['enum_number'], 'Number'); - } - if (data.hasOwnProperty('outerEnum')) { - obj['outerEnum'] = OuterEnum.constructFromObject(data['outerEnum']); - } - } - return obj; - } - - /** - * @member {module:model/EnumTest.EnumStringEnum} enum_string - */ - exports.prototype['enum_string'] = undefined; - /** - * @member {module:model/EnumTest.EnumStringRequiredEnum} enum_string_required - */ - exports.prototype['enum_string_required'] = undefined; - /** - * @member {module:model/EnumTest.EnumIntegerEnum} enum_integer - */ - exports.prototype['enum_integer'] = undefined; - /** - * @member {module:model/EnumTest.EnumNumberEnum} enum_number - */ - exports.prototype['enum_number'] = undefined; - /** - * @member {module:model/OuterEnum} outerEnum - */ - exports.prototype['outerEnum'] = undefined; - - - /** - * Allowed values for the enum_string property. - * @enum {String} - * @readonly - */ - exports.EnumStringEnum = { - /** - * value: "UPPER" - * @const - */ - "UPPER": "UPPER", - /** - * value: "lower" - * @const - */ - "lower": "lower", - /** - * value: "" - * @const - */ - "empty": "" }; - - /** - * Allowed values for the enum_string_required property. - * @enum {String} - * @readonly - */ - exports.EnumStringRequiredEnum = { - /** - * value: "UPPER" - * @const - */ - "UPPER": "UPPER", - /** - * value: "lower" - * @const - */ - "lower": "lower", - /** - * value: "" - * @const - */ - "empty": "" }; - - /** - * Allowed values for the enum_integer property. - * @enum {Number} - * @readonly - */ - exports.EnumIntegerEnum = { - /** - * value: 1 - * @const - */ - "1": 1, - /** - * value: -1 - * @const - */ - "-1": -1 }; - - /** - * Allowed values for the enum_number property. - * @enum {Number} - * @readonly - */ - exports.EnumNumberEnum = { - /** - * value: 1.1 - * @const - */ - "1.1": 1.1, - /** - * value: -1.2 - * @const - */ - "-1.2": -1.2 }; - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript-promise/src/model/File.js b/samples/client/petstore/javascript-promise/src/model/File.js deleted file mode 100644 index 109a6e552663..000000000000 --- a/samples/client/petstore/javascript-promise/src/model/File.js +++ /dev/null @@ -1,80 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.File = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The File model module. - * @module model/File - * @version 1.0.0 - */ - - /** - * Constructs a new File. - * Must be named `File` for test. - * @alias module:model/File - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a File 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/File} obj Optional instance to populate. - * @return {module:model/File} The populated File instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('sourceURI')) { - obj['sourceURI'] = ApiClient.convertToType(data['sourceURI'], 'String'); - } - } - return obj; - } - - /** - * Test capitalization - * @member {String} sourceURI - */ - exports.prototype['sourceURI'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript-promise/src/model/FileSchemaTestClass.js b/samples/client/petstore/javascript-promise/src/model/FileSchemaTestClass.js deleted file mode 100644 index 22f10496e4f4..000000000000 --- a/samples/client/petstore/javascript-promise/src/model/FileSchemaTestClass.js +++ /dev/null @@ -1,85 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.FileSchemaTestClass = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The FileSchemaTestClass model module. - * @module model/FileSchemaTestClass - * @version 1.0.0 - */ - - /** - * Constructs a new FileSchemaTestClass. - * @alias module:model/FileSchemaTestClass - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a FileSchemaTestClass 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/FileSchemaTestClass} obj Optional instance to populate. - * @return {module:model/FileSchemaTestClass} The populated FileSchemaTestClass instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('file')) { - obj['file'] = File.constructFromObject(data['file']); - } - if (data.hasOwnProperty('files')) { - obj['files'] = ApiClient.convertToType(data['files'], [File]); - } - } - return obj; - } - - /** - * @member {File} file - */ - exports.prototype['file'] = undefined; - /** - * @member {Array.} files - */ - exports.prototype['files'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript-promise/src/model/FormatTest.js b/samples/client/petstore/javascript-promise/src/model/FormatTest.js deleted file mode 100644 index 63b987b43944..000000000000 --- a/samples/client/petstore/javascript-promise/src/model/FormatTest.js +++ /dev/null @@ -1,177 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.FormatTest = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The FormatTest model module. - * @module model/FormatTest - * @version 1.0.0 - */ - - /** - * Constructs a new FormatTest. - * @alias module:model/FormatTest - * @class - * @param _number {Number} - * @param _byte {Blob} - * @param _date {Date} - * @param password {String} - */ - var exports = function(_number, _byte, _date, password) { - var _this = this; - - _this['number'] = _number; - _this['byte'] = _byte; - _this['date'] = _date; - _this['password'] = password; - }; - - /** - * Constructs a FormatTest 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/FormatTest} obj Optional instance to populate. - * @return {module:model/FormatTest} The populated FormatTest instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('integer')) { - obj['integer'] = ApiClient.convertToType(data['integer'], 'Number'); - } - if (data.hasOwnProperty('int32')) { - obj['int32'] = ApiClient.convertToType(data['int32'], 'Number'); - } - if (data.hasOwnProperty('int64')) { - obj['int64'] = ApiClient.convertToType(data['int64'], 'Number'); - } - if (data.hasOwnProperty('number')) { - obj['number'] = ApiClient.convertToType(data['number'], 'Number'); - } - if (data.hasOwnProperty('float')) { - obj['float'] = ApiClient.convertToType(data['float'], 'Number'); - } - if (data.hasOwnProperty('double')) { - obj['double'] = ApiClient.convertToType(data['double'], 'Number'); - } - if (data.hasOwnProperty('string')) { - obj['string'] = ApiClient.convertToType(data['string'], 'String'); - } - if (data.hasOwnProperty('byte')) { - obj['byte'] = ApiClient.convertToType(data['byte'], 'Blob'); - } - if (data.hasOwnProperty('binary')) { - obj['binary'] = ApiClient.convertToType(data['binary'], File); - } - if (data.hasOwnProperty('date')) { - obj['date'] = ApiClient.convertToType(data['date'], 'Date'); - } - if (data.hasOwnProperty('dateTime')) { - obj['dateTime'] = ApiClient.convertToType(data['dateTime'], 'Date'); - } - if (data.hasOwnProperty('uuid')) { - obj['uuid'] = ApiClient.convertToType(data['uuid'], 'String'); - } - if (data.hasOwnProperty('password')) { - obj['password'] = ApiClient.convertToType(data['password'], 'String'); - } - if (data.hasOwnProperty('BigDecimal')) { - obj['BigDecimal'] = ApiClient.convertToType(data['BigDecimal'], 'Number'); - } - } - return obj; - } - - /** - * @member {Number} integer - */ - exports.prototype['integer'] = undefined; - /** - * @member {Number} int32 - */ - exports.prototype['int32'] = undefined; - /** - * @member {Number} int64 - */ - exports.prototype['int64'] = undefined; - /** - * @member {Number} number - */ - exports.prototype['number'] = undefined; - /** - * @member {Number} float - */ - exports.prototype['float'] = undefined; - /** - * @member {Number} double - */ - exports.prototype['double'] = undefined; - /** - * @member {String} string - */ - exports.prototype['string'] = undefined; - /** - * @member {Blob} byte - */ - exports.prototype['byte'] = undefined; - /** - * @member {File} binary - */ - exports.prototype['binary'] = undefined; - /** - * @member {Date} date - */ - exports.prototype['date'] = undefined; - /** - * @member {Date} dateTime - */ - exports.prototype['dateTime'] = undefined; - /** - * @member {String} uuid - */ - exports.prototype['uuid'] = undefined; - /** - * @member {String} password - */ - exports.prototype['password'] = undefined; - /** - * @member {Number} BigDecimal - */ - exports.prototype['BigDecimal'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript-promise/src/model/HasOnlyReadOnly.js b/samples/client/petstore/javascript-promise/src/model/HasOnlyReadOnly.js deleted file mode 100644 index a48fa374d986..000000000000 --- a/samples/client/petstore/javascript-promise/src/model/HasOnlyReadOnly.js +++ /dev/null @@ -1,85 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.HasOnlyReadOnly = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The HasOnlyReadOnly model module. - * @module model/HasOnlyReadOnly - * @version 1.0.0 - */ - - /** - * Constructs a new HasOnlyReadOnly. - * @alias module:model/HasOnlyReadOnly - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a HasOnlyReadOnly from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/HasOnlyReadOnly} obj Optional instance to populate. - * @return {module:model/HasOnlyReadOnly} The populated HasOnlyReadOnly instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('bar')) { - obj['bar'] = ApiClient.convertToType(data['bar'], 'String'); - } - if (data.hasOwnProperty('foo')) { - obj['foo'] = ApiClient.convertToType(data['foo'], 'String'); - } - } - return obj; - } - - /** - * @member {String} bar - */ - exports.prototype['bar'] = undefined; - /** - * @member {String} foo - */ - exports.prototype['foo'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript-promise/src/model/List.js b/samples/client/petstore/javascript-promise/src/model/List.js deleted file mode 100644 index d27fdd125e49..000000000000 --- a/samples/client/petstore/javascript-promise/src/model/List.js +++ /dev/null @@ -1,78 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.List = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The List model module. - * @module model/List - * @version 1.0.0 - */ - - /** - * Constructs a new List. - * @alias module:model/List - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a List 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/List} obj Optional instance to populate. - * @return {module:model/List} The populated List instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('123-list')) { - obj['123-list'] = ApiClient.convertToType(data['123-list'], 'String'); - } - } - return obj; - } - - /** - * @member {String} 123-list - */ - exports.prototype['123-list'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript-promise/src/model/MapTest.js b/samples/client/petstore/javascript-promise/src/model/MapTest.js deleted file mode 100644 index aa9a1a5b4ea1..000000000000 --- a/samples/client/petstore/javascript-promise/src/model/MapTest.js +++ /dev/null @@ -1,116 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.MapTest = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The MapTest model module. - * @module model/MapTest - * @version 1.0.0 - */ - - /** - * Constructs a new MapTest. - * @alias module:model/MapTest - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a MapTest from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MapTest} obj Optional instance to populate. - * @return {module:model/MapTest} The populated MapTest instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('map_map_of_string')) { - obj['map_map_of_string'] = ApiClient.convertToType(data['map_map_of_string'], {'String': {'String': 'String'}}); - } - if (data.hasOwnProperty('map_of_enum_string')) { - obj['map_of_enum_string'] = ApiClient.convertToType(data['map_of_enum_string'], {'String': 'String'}); - } - if (data.hasOwnProperty('direct_map')) { - obj['direct_map'] = ApiClient.convertToType(data['direct_map'], {'String': 'Boolean'}); - } - if (data.hasOwnProperty('indirect_map')) { - obj['indirect_map'] = ApiClient.convertToType(data['indirect_map'], {'String': 'Boolean'}); - } - } - return obj; - } - - /** - * @member {Object.>} map_map_of_string - */ - exports.prototype['map_map_of_string'] = undefined; - /** - * @member {Object.} map_of_enum_string - */ - exports.prototype['map_of_enum_string'] = undefined; - /** - * @member {Object.} direct_map - */ - exports.prototype['direct_map'] = undefined; - /** - * @member {Object.} indirect_map - */ - exports.prototype['indirect_map'] = undefined; - - - /** - * Allowed values for the inner property. - * @enum {String} - * @readonly - */ - exports.InnerEnum = { - /** - * value: "UPPER" - * @const - */ - "UPPER": "UPPER", - /** - * value: "lower" - * @const - */ - "lower": "lower" }; - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript-promise/src/model/MixedPropertiesAndAdditionalPropertiesClass.js b/samples/client/petstore/javascript-promise/src/model/MixedPropertiesAndAdditionalPropertiesClass.js deleted file mode 100644 index bc98f6da1fd3..000000000000 --- a/samples/client/petstore/javascript-promise/src/model/MixedPropertiesAndAdditionalPropertiesClass.js +++ /dev/null @@ -1,92 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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/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.MixedPropertiesAndAdditionalPropertiesClass = factory(root.OpenApiPetstore.ApiClient, root.OpenApiPetstore.Animal); - } -}(this, function(ApiClient, Animal) { - 'use strict'; - - - - /** - * The MixedPropertiesAndAdditionalPropertiesClass model module. - * @module model/MixedPropertiesAndAdditionalPropertiesClass - * @version 1.0.0 - */ - - /** - * Constructs a new MixedPropertiesAndAdditionalPropertiesClass. - * @alias module:model/MixedPropertiesAndAdditionalPropertiesClass - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a MixedPropertiesAndAdditionalPropertiesClass 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/MixedPropertiesAndAdditionalPropertiesClass} obj Optional instance to populate. - * @return {module:model/MixedPropertiesAndAdditionalPropertiesClass} The populated MixedPropertiesAndAdditionalPropertiesClass instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('uuid')) { - obj['uuid'] = ApiClient.convertToType(data['uuid'], 'String'); - } - if (data.hasOwnProperty('dateTime')) { - obj['dateTime'] = ApiClient.convertToType(data['dateTime'], 'Date'); - } - if (data.hasOwnProperty('map')) { - obj['map'] = ApiClient.convertToType(data['map'], {'String': Animal}); - } - } - return obj; - } - - /** - * @member {String} uuid - */ - exports.prototype['uuid'] = undefined; - /** - * @member {Date} dateTime - */ - exports.prototype['dateTime'] = undefined; - /** - * @member {Object.} map - */ - exports.prototype['map'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript-promise/src/model/Model200Response.js b/samples/client/petstore/javascript-promise/src/model/Model200Response.js deleted file mode 100644 index 6ded236af20b..000000000000 --- a/samples/client/petstore/javascript-promise/src/model/Model200Response.js +++ /dev/null @@ -1,86 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.Model200Response = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The Model200Response model module. - * @module model/Model200Response - * @version 1.0.0 - */ - - /** - * Constructs a new Model200Response. - * Model for testing model name starting with number - * @alias module:model/Model200Response - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a Model200Response 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/Model200Response} obj Optional instance to populate. - * @return {module:model/Model200Response} The populated Model200Response instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'Number'); - } - if (data.hasOwnProperty('class')) { - obj['class'] = ApiClient.convertToType(data['class'], 'String'); - } - } - return obj; - } - - /** - * @member {Number} name - */ - exports.prototype['name'] = undefined; - /** - * @member {String} class - */ - exports.prototype['class'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript-promise/src/model/ModelReturn.js b/samples/client/petstore/javascript-promise/src/model/ModelReturn.js deleted file mode 100644 index 1d19b387c301..000000000000 --- a/samples/client/petstore/javascript-promise/src/model/ModelReturn.js +++ /dev/null @@ -1,79 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.ModelReturn = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The ModelReturn model module. - * @module model/ModelReturn - * @version 1.0.0 - */ - - /** - * Constructs a new ModelReturn. - * Model for testing reserved words - * @alias module:model/ModelReturn - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a ModelReturn 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/ModelReturn} obj Optional instance to populate. - * @return {module:model/ModelReturn} The populated ModelReturn instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('return')) { - obj['return'] = ApiClient.convertToType(data['return'], 'Number'); - } - } - return obj; - } - - /** - * @member {Number} return - */ - exports.prototype['return'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript-promise/src/model/Name.js b/samples/client/petstore/javascript-promise/src/model/Name.js deleted file mode 100644 index c3e29dd84f79..000000000000 --- a/samples/client/petstore/javascript-promise/src/model/Name.js +++ /dev/null @@ -1,102 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.Name = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The Name model module. - * @module model/Name - * @version 1.0.0 - */ - - /** - * Constructs a new Name. - * Model for testing model name same as property name - * @alias module:model/Name - * @class - * @param name {Number} - */ - var exports = function(name) { - var _this = this; - - _this['name'] = name; - }; - - /** - * Constructs a Name 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/Name} obj Optional instance to populate. - * @return {module:model/Name} The populated Name instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'Number'); - } - if (data.hasOwnProperty('snake_case')) { - obj['snake_case'] = ApiClient.convertToType(data['snake_case'], 'Number'); - } - if (data.hasOwnProperty('property')) { - obj['property'] = ApiClient.convertToType(data['property'], 'String'); - } - if (data.hasOwnProperty('123Number')) { - obj['123Number'] = ApiClient.convertToType(data['123Number'], 'Number'); - } - } - return obj; - } - - /** - * @member {Number} name - */ - exports.prototype['name'] = undefined; - /** - * @member {Number} snake_case - */ - exports.prototype['snake_case'] = undefined; - /** - * @member {String} property - */ - exports.prototype['property'] = undefined; - /** - * @member {Number} 123Number - */ - exports.prototype['123Number'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript-promise/src/model/NumberOnly.js b/samples/client/petstore/javascript-promise/src/model/NumberOnly.js deleted file mode 100644 index a51aff7a97bc..000000000000 --- a/samples/client/petstore/javascript-promise/src/model/NumberOnly.js +++ /dev/null @@ -1,78 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.NumberOnly = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The NumberOnly model module. - * @module model/NumberOnly - * @version 1.0.0 - */ - - /** - * Constructs a new NumberOnly. - * @alias module:model/NumberOnly - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a NumberOnly from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/NumberOnly} obj Optional instance to populate. - * @return {module:model/NumberOnly} The populated NumberOnly instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('JustNumber')) { - obj['JustNumber'] = ApiClient.convertToType(data['JustNumber'], 'Number'); - } - } - return obj; - } - - /** - * @member {Number} JustNumber - */ - exports.prototype['JustNumber'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript-promise/src/model/Order.js b/samples/client/petstore/javascript-promise/src/model/Order.js deleted file mode 100644 index 20f551b4e26b..000000000000 --- a/samples/client/petstore/javascript-promise/src/model/Order.js +++ /dev/null @@ -1,137 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.Order = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The Order model module. - * @module model/Order - * @version 1.0.0 - */ - - /** - * Constructs a new Order. - * @alias module:model/Order - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a Order 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/Order} obj Optional instance to populate. - * @return {module:model/Order} The populated Order instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - } - if (data.hasOwnProperty('petId')) { - obj['petId'] = ApiClient.convertToType(data['petId'], 'Number'); - } - if (data.hasOwnProperty('quantity')) { - obj['quantity'] = ApiClient.convertToType(data['quantity'], 'Number'); - } - if (data.hasOwnProperty('shipDate')) { - obj['shipDate'] = ApiClient.convertToType(data['shipDate'], 'Date'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - } - if (data.hasOwnProperty('complete')) { - obj['complete'] = ApiClient.convertToType(data['complete'], 'Boolean'); - } - } - return obj; - } - - /** - * @member {Number} id - */ - exports.prototype['id'] = undefined; - /** - * @member {Number} petId - */ - exports.prototype['petId'] = undefined; - /** - * @member {Number} quantity - */ - exports.prototype['quantity'] = undefined; - /** - * @member {Date} shipDate - */ - exports.prototype['shipDate'] = undefined; - /** - * Order Status - * @member {module:model/Order.StatusEnum} status - */ - exports.prototype['status'] = undefined; - /** - * @member {Boolean} complete - * @default false - */ - exports.prototype['complete'] = false; - - - /** - * Allowed values for the status property. - * @enum {String} - * @readonly - */ - exports.StatusEnum = { - /** - * value: "placed" - * @const - */ - "placed": "placed", - /** - * value: "approved" - * @const - */ - "approved": "approved", - /** - * value: "delivered" - * @const - */ - "delivered": "delivered" }; - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript-promise/src/model/OuterComposite.js b/samples/client/petstore/javascript-promise/src/model/OuterComposite.js deleted file mode 100644 index 2197245f64fd..000000000000 --- a/samples/client/petstore/javascript-promise/src/model/OuterComposite.js +++ /dev/null @@ -1,92 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.OuterComposite = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The OuterComposite model module. - * @module model/OuterComposite - * @version 1.0.0 - */ - - /** - * Constructs a new OuterComposite. - * @alias module:model/OuterComposite - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a OuterComposite 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/OuterComposite} obj Optional instance to populate. - * @return {module:model/OuterComposite} The populated OuterComposite instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('my_number')) { - obj['my_number'] = ApiClient.convertToType(data['my_number'], 'Number'); - } - if (data.hasOwnProperty('my_string')) { - obj['my_string'] = ApiClient.convertToType(data['my_string'], 'String'); - } - if (data.hasOwnProperty('my_boolean')) { - obj['my_boolean'] = ApiClient.convertToType(data['my_boolean'], 'Boolean'); - } - } - return obj; - } - - /** - * @member {Number} my_number - */ - exports.prototype['my_number'] = undefined; - /** - * @member {String} my_string - */ - exports.prototype['my_string'] = undefined; - /** - * @member {Boolean} my_boolean - */ - exports.prototype['my_boolean'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript-promise/src/model/OuterEnum.js b/samples/client/petstore/javascript-promise/src/model/OuterEnum.js deleted file mode 100644 index ef94683a8277..000000000000 --- a/samples/client/petstore/javascript-promise/src/model/OuterEnum.js +++ /dev/null @@ -1,68 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.OuterEnum = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - /** - * Enum class OuterEnum. - * @enum {} - * @readonly - */ - var exports = { - /** - * value: "placed" - * @const - */ - "placed": "placed", - /** - * value: "approved" - * @const - */ - "approved": "approved", - /** - * value: "delivered" - * @const - */ - "delivered": "delivered" }; - - /** - * Returns a OuterEnum enum value from a Javascript object name. - * @param {Object} data The plain JavaScript object containing the name of the enum value. - * @return {module:model/OuterEnum} The enum OuterEnum value. - */ - exports.constructFromObject = function(object) { - return object; - } - - return exports; -})); - - diff --git a/samples/client/petstore/javascript-promise/src/model/Pet.js b/samples/client/petstore/javascript-promise/src/model/Pet.js deleted file mode 100644 index 5f5c3e2b6f2e..000000000000 --- a/samples/client/petstore/javascript-promise/src/model/Pet.js +++ /dev/null @@ -1,140 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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/Category', 'model/Tag'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./Category'), require('./Tag')); - } else { - // Browser globals (root is window) - if (!root.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.Pet = factory(root.OpenApiPetstore.ApiClient, root.OpenApiPetstore.Category, root.OpenApiPetstore.Tag); - } -}(this, function(ApiClient, Category, Tag) { - 'use strict'; - - - - /** - * The Pet model module. - * @module model/Pet - * @version 1.0.0 - */ - - /** - * Constructs a new Pet. - * @alias module:model/Pet - * @class - * @param name {String} - * @param photoUrls {Array.} - */ - var exports = function(name, photoUrls) { - var _this = this; - - _this['name'] = name; - _this['photoUrls'] = photoUrls; - }; - - /** - * Constructs a Pet 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/Pet} obj Optional instance to populate. - * @return {module:model/Pet} The populated Pet instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - } - if (data.hasOwnProperty('category')) { - obj['category'] = Category.constructFromObject(data['category']); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('photoUrls')) { - obj['photoUrls'] = ApiClient.convertToType(data['photoUrls'], ['String']); - } - if (data.hasOwnProperty('tags')) { - obj['tags'] = ApiClient.convertToType(data['tags'], [Tag]); - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - } - } - return obj; - } - - /** - * @member {Number} id - */ - exports.prototype['id'] = undefined; - /** - * @member {module:model/Category} category - */ - exports.prototype['category'] = undefined; - /** - * @member {String} name - */ - exports.prototype['name'] = undefined; - /** - * @member {Array.} photoUrls - */ - exports.prototype['photoUrls'] = undefined; - /** - * @member {Array.} tags - */ - exports.prototype['tags'] = undefined; - /** - * pet status in the store - * @member {module:model/Pet.StatusEnum} status - */ - exports.prototype['status'] = undefined; - - - /** - * Allowed values for the status property. - * @enum {String} - * @readonly - */ - exports.StatusEnum = { - /** - * value: "available" - * @const - */ - "available": "available", - /** - * value: "pending" - * @const - */ - "pending": "pending", - /** - * value: "sold" - * @const - */ - "sold": "sold" }; - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript-promise/src/model/ReadOnlyFirst.js b/samples/client/petstore/javascript-promise/src/model/ReadOnlyFirst.js deleted file mode 100644 index e5e7a71b4ba2..000000000000 --- a/samples/client/petstore/javascript-promise/src/model/ReadOnlyFirst.js +++ /dev/null @@ -1,85 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.ReadOnlyFirst = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The ReadOnlyFirst model module. - * @module model/ReadOnlyFirst - * @version 1.0.0 - */ - - /** - * Constructs a new ReadOnlyFirst. - * @alias module:model/ReadOnlyFirst - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a ReadOnlyFirst 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/ReadOnlyFirst} obj Optional instance to populate. - * @return {module:model/ReadOnlyFirst} The populated ReadOnlyFirst instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('bar')) { - obj['bar'] = ApiClient.convertToType(data['bar'], 'String'); - } - if (data.hasOwnProperty('baz')) { - obj['baz'] = ApiClient.convertToType(data['baz'], 'String'); - } - } - return obj; - } - - /** - * @member {String} bar - */ - exports.prototype['bar'] = undefined; - /** - * @member {String} baz - */ - exports.prototype['baz'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript-promise/src/model/SpecialModelName.js b/samples/client/petstore/javascript-promise/src/model/SpecialModelName.js deleted file mode 100644 index 2ebce770f7e9..000000000000 --- a/samples/client/petstore/javascript-promise/src/model/SpecialModelName.js +++ /dev/null @@ -1,78 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.SpecialModelName = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The SpecialModelName model module. - * @module model/SpecialModelName - * @version 1.0.0 - */ - - /** - * Constructs a new SpecialModelName. - * @alias module:model/SpecialModelName - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a SpecialModelName 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/SpecialModelName} obj Optional instance to populate. - * @return {module:model/SpecialModelName} The populated SpecialModelName instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('$special[property.name]')) { - obj['$special[property.name]'] = ApiClient.convertToType(data['$special[property.name]'], 'Number'); - } - } - return obj; - } - - /** - * @member {Number} $special[property.name] - */ - exports.prototype['$special[property.name]'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript-promise/src/model/Tag.js b/samples/client/petstore/javascript-promise/src/model/Tag.js deleted file mode 100644 index 64a07da1a794..000000000000 --- a/samples/client/petstore/javascript-promise/src/model/Tag.js +++ /dev/null @@ -1,85 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.Tag = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The Tag model module. - * @module model/Tag - * @version 1.0.0 - */ - - /** - * Constructs a new Tag. - * @alias module:model/Tag - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a Tag 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/Tag} obj Optional instance to populate. - * @return {module:model/Tag} The populated Tag instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - } - return obj; - } - - /** - * @member {Number} id - */ - exports.prototype['id'] = undefined; - /** - * @member {String} name - */ - exports.prototype['name'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript-promise/src/model/TypeHolderDefault.js b/samples/client/petstore/javascript-promise/src/model/TypeHolderDefault.js deleted file mode 100644 index 73386a843347..000000000000 --- a/samples/client/petstore/javascript-promise/src/model/TypeHolderDefault.js +++ /dev/null @@ -1,118 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.TypeHolderDefault = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The TypeHolderDefault model module. - * @module model/TypeHolderDefault - * @version 1.0.0 - */ - - /** - * Constructs a new TypeHolderDefault. - * @alias module:model/TypeHolderDefault - * @class - * @param stringItem {String} - * @param numberItem {Number} - * @param integerItem {Number} - * @param boolItem {Boolean} - * @param arrayItem {Array.} - */ - var exports = function(stringItem, numberItem, integerItem, boolItem, arrayItem) { - var _this = this; - - _this['string_item'] = stringItem; - _this['number_item'] = numberItem; - _this['integer_item'] = integerItem; - _this['bool_item'] = boolItem; - _this['array_item'] = arrayItem; - }; - - /** - * Constructs a TypeHolderDefault 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/TypeHolderDefault} obj Optional instance to populate. - * @return {module:model/TypeHolderDefault} The populated TypeHolderDefault instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('string_item')) { - obj['string_item'] = ApiClient.convertToType(data['string_item'], 'String'); - } - if (data.hasOwnProperty('number_item')) { - obj['number_item'] = ApiClient.convertToType(data['number_item'], 'Number'); - } - if (data.hasOwnProperty('integer_item')) { - obj['integer_item'] = ApiClient.convertToType(data['integer_item'], 'Number'); - } - if (data.hasOwnProperty('bool_item')) { - obj['bool_item'] = ApiClient.convertToType(data['bool_item'], 'Boolean'); - } - if (data.hasOwnProperty('array_item')) { - obj['array_item'] = ApiClient.convertToType(data['array_item'], ['Number']); - } - } - return obj; - } - - /** - * @member {String} string_item - * @default 'what' - */ - exports.prototype['string_item'] = 'what'; - /** - * @member {Number} number_item - */ - exports.prototype['number_item'] = undefined; - /** - * @member {Number} integer_item - */ - exports.prototype['integer_item'] = undefined; - /** - * @member {Boolean} bool_item - * @default true - */ - exports.prototype['bool_item'] = true; - /** - * @member {Array.} array_item - */ - exports.prototype['array_item'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript-promise/src/model/TypeHolderExample.js b/samples/client/petstore/javascript-promise/src/model/TypeHolderExample.js deleted file mode 100644 index b06faabd6631..000000000000 --- a/samples/client/petstore/javascript-promise/src/model/TypeHolderExample.js +++ /dev/null @@ -1,125 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.TypeHolderExample = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The TypeHolderExample model module. - * @module model/TypeHolderExample - * @version 1.0.0 - */ - - /** - * Constructs a new TypeHolderExample. - * @alias module:model/TypeHolderExample - * @class - * @param stringItem {String} - * @param numberItem {Number} - * @param floatItem {Number} - * @param integerItem {Number} - * @param boolItem {Boolean} - * @param arrayItem {Array.} - */ - var exports = function(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem) { - var _this = this; - - _this['string_item'] = stringItem; - _this['number_item'] = numberItem; - _this['float_item'] = floatItem; - _this['integer_item'] = integerItem; - _this['bool_item'] = boolItem; - _this['array_item'] = arrayItem; - }; - - /** - * Constructs a TypeHolderExample 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/TypeHolderExample} obj Optional instance to populate. - * @return {module:model/TypeHolderExample} The populated TypeHolderExample instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('string_item')) { - obj['string_item'] = ApiClient.convertToType(data['string_item'], 'String'); - } - if (data.hasOwnProperty('number_item')) { - obj['number_item'] = ApiClient.convertToType(data['number_item'], 'Number'); - } - if (data.hasOwnProperty('float_item')) { - obj['float_item'] = ApiClient.convertToType(data['float_item'], 'Number'); - } - if (data.hasOwnProperty('integer_item')) { - obj['integer_item'] = ApiClient.convertToType(data['integer_item'], 'Number'); - } - if (data.hasOwnProperty('bool_item')) { - obj['bool_item'] = ApiClient.convertToType(data['bool_item'], 'Boolean'); - } - if (data.hasOwnProperty('array_item')) { - obj['array_item'] = ApiClient.convertToType(data['array_item'], ['Number']); - } - } - return obj; - } - - /** - * @member {String} string_item - */ - exports.prototype['string_item'] = undefined; - /** - * @member {Number} number_item - */ - exports.prototype['number_item'] = undefined; - /** - * @member {Number} float_item - */ - exports.prototype['float_item'] = undefined; - /** - * @member {Number} integer_item - */ - exports.prototype['integer_item'] = undefined; - /** - * @member {Boolean} bool_item - */ - exports.prototype['bool_item'] = undefined; - /** - * @member {Array.} array_item - */ - exports.prototype['array_item'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript-promise/src/model/User.js b/samples/client/petstore/javascript-promise/src/model/User.js deleted file mode 100644 index 967d15b018d5..000000000000 --- a/samples/client/petstore/javascript-promise/src/model/User.js +++ /dev/null @@ -1,128 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.User = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The User model module. - * @module model/User - * @version 1.0.0 - */ - - /** - * Constructs a new User. - * @alias module:model/User - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a User 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/User} obj Optional instance to populate. - * @return {module:model/User} The populated User instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - } - if (data.hasOwnProperty('username')) { - obj['username'] = ApiClient.convertToType(data['username'], 'String'); - } - if (data.hasOwnProperty('firstName')) { - obj['firstName'] = ApiClient.convertToType(data['firstName'], 'String'); - } - if (data.hasOwnProperty('lastName')) { - obj['lastName'] = ApiClient.convertToType(data['lastName'], 'String'); - } - if (data.hasOwnProperty('email')) { - obj['email'] = ApiClient.convertToType(data['email'], 'String'); - } - if (data.hasOwnProperty('password')) { - obj['password'] = ApiClient.convertToType(data['password'], 'String'); - } - if (data.hasOwnProperty('phone')) { - obj['phone'] = ApiClient.convertToType(data['phone'], 'String'); - } - if (data.hasOwnProperty('userStatus')) { - obj['userStatus'] = ApiClient.convertToType(data['userStatus'], 'Number'); - } - } - return obj; - } - - /** - * @member {Number} id - */ - exports.prototype['id'] = undefined; - /** - * @member {String} username - */ - exports.prototype['username'] = undefined; - /** - * @member {String} firstName - */ - exports.prototype['firstName'] = undefined; - /** - * @member {String} lastName - */ - exports.prototype['lastName'] = undefined; - /** - * @member {String} email - */ - exports.prototype['email'] = undefined; - /** - * @member {String} password - */ - exports.prototype['password'] = undefined; - /** - * @member {String} phone - */ - exports.prototype['phone'] = undefined; - /** - * User Status - * @member {Number} userStatus - */ - exports.prototype['userStatus'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript-promise/src/model/XmlItem.js b/samples/client/petstore/javascript-promise/src/model/XmlItem.js deleted file mode 100644 index 244eb73f03a9..000000000000 --- a/samples/client/petstore/javascript-promise/src/model/XmlItem.js +++ /dev/null @@ -1,274 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.XmlItem = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The XmlItem model module. - * @module model/XmlItem - * @version 1.0.0 - */ - - /** - * Constructs a new XmlItem. - * @alias module:model/XmlItem - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a XmlItem 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/XmlItem} obj Optional instance to populate. - * @return {module:model/XmlItem} The populated XmlItem instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('attribute_string')) { - obj['attribute_string'] = ApiClient.convertToType(data['attribute_string'], 'String'); - } - if (data.hasOwnProperty('attribute_number')) { - obj['attribute_number'] = ApiClient.convertToType(data['attribute_number'], 'Number'); - } - if (data.hasOwnProperty('attribute_integer')) { - obj['attribute_integer'] = ApiClient.convertToType(data['attribute_integer'], 'Number'); - } - if (data.hasOwnProperty('attribute_boolean')) { - obj['attribute_boolean'] = ApiClient.convertToType(data['attribute_boolean'], 'Boolean'); - } - if (data.hasOwnProperty('wrapped_array')) { - obj['wrapped_array'] = ApiClient.convertToType(data['wrapped_array'], ['Number']); - } - if (data.hasOwnProperty('name_string')) { - obj['name_string'] = ApiClient.convertToType(data['name_string'], 'String'); - } - if (data.hasOwnProperty('name_number')) { - obj['name_number'] = ApiClient.convertToType(data['name_number'], 'Number'); - } - if (data.hasOwnProperty('name_integer')) { - obj['name_integer'] = ApiClient.convertToType(data['name_integer'], 'Number'); - } - if (data.hasOwnProperty('name_boolean')) { - obj['name_boolean'] = ApiClient.convertToType(data['name_boolean'], 'Boolean'); - } - if (data.hasOwnProperty('name_array')) { - obj['name_array'] = ApiClient.convertToType(data['name_array'], ['Number']); - } - if (data.hasOwnProperty('name_wrapped_array')) { - obj['name_wrapped_array'] = ApiClient.convertToType(data['name_wrapped_array'], ['Number']); - } - if (data.hasOwnProperty('prefix_string')) { - obj['prefix_string'] = ApiClient.convertToType(data['prefix_string'], 'String'); - } - if (data.hasOwnProperty('prefix_number')) { - obj['prefix_number'] = ApiClient.convertToType(data['prefix_number'], 'Number'); - } - if (data.hasOwnProperty('prefix_integer')) { - obj['prefix_integer'] = ApiClient.convertToType(data['prefix_integer'], 'Number'); - } - if (data.hasOwnProperty('prefix_boolean')) { - obj['prefix_boolean'] = ApiClient.convertToType(data['prefix_boolean'], 'Boolean'); - } - if (data.hasOwnProperty('prefix_array')) { - obj['prefix_array'] = ApiClient.convertToType(data['prefix_array'], ['Number']); - } - if (data.hasOwnProperty('prefix_wrapped_array')) { - obj['prefix_wrapped_array'] = ApiClient.convertToType(data['prefix_wrapped_array'], ['Number']); - } - if (data.hasOwnProperty('namespace_string')) { - obj['namespace_string'] = ApiClient.convertToType(data['namespace_string'], 'String'); - } - if (data.hasOwnProperty('namespace_number')) { - obj['namespace_number'] = ApiClient.convertToType(data['namespace_number'], 'Number'); - } - if (data.hasOwnProperty('namespace_integer')) { - obj['namespace_integer'] = ApiClient.convertToType(data['namespace_integer'], 'Number'); - } - if (data.hasOwnProperty('namespace_boolean')) { - obj['namespace_boolean'] = ApiClient.convertToType(data['namespace_boolean'], 'Boolean'); - } - if (data.hasOwnProperty('namespace_array')) { - obj['namespace_array'] = ApiClient.convertToType(data['namespace_array'], ['Number']); - } - if (data.hasOwnProperty('namespace_wrapped_array')) { - obj['namespace_wrapped_array'] = ApiClient.convertToType(data['namespace_wrapped_array'], ['Number']); - } - if (data.hasOwnProperty('prefix_ns_string')) { - obj['prefix_ns_string'] = ApiClient.convertToType(data['prefix_ns_string'], 'String'); - } - if (data.hasOwnProperty('prefix_ns_number')) { - obj['prefix_ns_number'] = ApiClient.convertToType(data['prefix_ns_number'], 'Number'); - } - if (data.hasOwnProperty('prefix_ns_integer')) { - obj['prefix_ns_integer'] = ApiClient.convertToType(data['prefix_ns_integer'], 'Number'); - } - if (data.hasOwnProperty('prefix_ns_boolean')) { - obj['prefix_ns_boolean'] = ApiClient.convertToType(data['prefix_ns_boolean'], 'Boolean'); - } - if (data.hasOwnProperty('prefix_ns_array')) { - obj['prefix_ns_array'] = ApiClient.convertToType(data['prefix_ns_array'], ['Number']); - } - if (data.hasOwnProperty('prefix_ns_wrapped_array')) { - obj['prefix_ns_wrapped_array'] = ApiClient.convertToType(data['prefix_ns_wrapped_array'], ['Number']); - } - } - return obj; - } - - /** - * @member {String} attribute_string - */ - exports.prototype['attribute_string'] = undefined; - /** - * @member {Number} attribute_number - */ - exports.prototype['attribute_number'] = undefined; - /** - * @member {Number} attribute_integer - */ - exports.prototype['attribute_integer'] = undefined; - /** - * @member {Boolean} attribute_boolean - */ - exports.prototype['attribute_boolean'] = undefined; - /** - * @member {Array.} wrapped_array - */ - exports.prototype['wrapped_array'] = undefined; - /** - * @member {String} name_string - */ - exports.prototype['name_string'] = undefined; - /** - * @member {Number} name_number - */ - exports.prototype['name_number'] = undefined; - /** - * @member {Number} name_integer - */ - exports.prototype['name_integer'] = undefined; - /** - * @member {Boolean} name_boolean - */ - exports.prototype['name_boolean'] = undefined; - /** - * @member {Array.} name_array - */ - exports.prototype['name_array'] = undefined; - /** - * @member {Array.} name_wrapped_array - */ - exports.prototype['name_wrapped_array'] = undefined; - /** - * @member {String} prefix_string - */ - exports.prototype['prefix_string'] = undefined; - /** - * @member {Number} prefix_number - */ - exports.prototype['prefix_number'] = undefined; - /** - * @member {Number} prefix_integer - */ - exports.prototype['prefix_integer'] = undefined; - /** - * @member {Boolean} prefix_boolean - */ - exports.prototype['prefix_boolean'] = undefined; - /** - * @member {Array.} prefix_array - */ - exports.prototype['prefix_array'] = undefined; - /** - * @member {Array.} prefix_wrapped_array - */ - exports.prototype['prefix_wrapped_array'] = undefined; - /** - * @member {String} namespace_string - */ - exports.prototype['namespace_string'] = undefined; - /** - * @member {Number} namespace_number - */ - exports.prototype['namespace_number'] = undefined; - /** - * @member {Number} namespace_integer - */ - exports.prototype['namespace_integer'] = undefined; - /** - * @member {Boolean} namespace_boolean - */ - exports.prototype['namespace_boolean'] = undefined; - /** - * @member {Array.} namespace_array - */ - exports.prototype['namespace_array'] = undefined; - /** - * @member {Array.} namespace_wrapped_array - */ - exports.prototype['namespace_wrapped_array'] = undefined; - /** - * @member {String} prefix_ns_string - */ - exports.prototype['prefix_ns_string'] = undefined; - /** - * @member {Number} prefix_ns_number - */ - exports.prototype['prefix_ns_number'] = undefined; - /** - * @member {Number} prefix_ns_integer - */ - exports.prototype['prefix_ns_integer'] = undefined; - /** - * @member {Boolean} prefix_ns_boolean - */ - exports.prototype['prefix_ns_boolean'] = undefined; - /** - * @member {Array.} prefix_ns_array - */ - exports.prototype['prefix_ns_array'] = undefined; - /** - * @member {Array.} prefix_ns_wrapped_array - */ - exports.prototype['prefix_ns_wrapped_array'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript-promise/test/ApiClientTest.js b/samples/client/petstore/javascript-promise/test/ApiClientTest.js deleted file mode 100644 index 5e98b685a911..000000000000 --- a/samples/client/petstore/javascript-promise/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-promise/test/api/AnotherFakeApi.spec.js b/samples/client/petstore/javascript-promise/test/api/AnotherFakeApi.spec.js deleted file mode 100644 index 4405452f9922..000000000000 --- a/samples/client/petstore/javascript-promise/test/api/AnotherFakeApi.spec.js +++ /dev/null @@ -1,65 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.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('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(); - //}); - done(); - }); - }); - }); - -})); diff --git a/samples/client/petstore/javascript-promise/test/api/FakeApi.spec.js b/samples/client/petstore/javascript-promise/test/api/FakeApi.spec.js deleted file mode 100644 index 22fe0a1019e4..000000000000 --- a/samples/client/petstore/javascript-promise/test/api/FakeApi.spec.js +++ /dev/null @@ -1,185 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.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('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(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(); - //}); - done(); - }); - }); - }); - -})); diff --git a/samples/client/petstore/javascript-promise/test/api/FakeClassnameTags123Api.spec.js b/samples/client/petstore/javascript-promise/test/api/FakeClassnameTags123Api.spec.js deleted file mode 100644 index 29bd5fbbaf20..000000000000 --- a/samples/client/petstore/javascript-promise/test/api/FakeClassnameTags123Api.spec.js +++ /dev/null @@ -1,65 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.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-promise/test/api/PetApi.spec.js b/samples/client/petstore/javascript-promise/test/api/PetApi.spec.js deleted file mode 100644 index 360453a74bbe..000000000000 --- a/samples/client/petstore/javascript-promise/test/api/PetApi.spec.js +++ /dev/null @@ -1,145 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.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(); - }); - }); - 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/test/api/StoreApi.spec.js b/samples/client/petstore/javascript-promise/test/api/StoreApi.spec.js deleted file mode 100644 index 1e1f225ef949..000000000000 --- a/samples/client/petstore/javascript-promise/test/api/StoreApi.spec.js +++ /dev/null @@ -1,95 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.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-promise/test/api/UserApi.spec.js b/samples/client/petstore/javascript-promise/test/api/UserApi.spec.js deleted file mode 100644 index 71aaed5a9640..000000000000 --- a/samples/client/petstore/javascript-promise/test/api/UserApi.spec.js +++ /dev/null @@ -1,135 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.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-promise/test/mocha.opts b/samples/client/petstore/javascript-promise/test/mocha.opts deleted file mode 100644 index 907011807d68..000000000000 --- a/samples/client/petstore/javascript-promise/test/mocha.opts +++ /dev/null @@ -1 +0,0 @@ ---timeout 10000 diff --git a/samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesAnyType.spec.js b/samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesAnyType.spec.js deleted file mode 100644 index 3e9aaed718b2..000000000000 --- a/samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesAnyType.spec.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 - * - * 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', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.AdditionalPropertiesAnyType(); - }); - - 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('AdditionalPropertiesAnyType', function() { - it('should create an instance of AdditionalPropertiesAnyType', function() { - // uncomment below and update the code to test AdditionalPropertiesAnyType - //var instance = new OpenApiPetstore.AdditionalPropertiesAnyType(); - //expect(instance).to.be.a(OpenApiPetstore.AdditionalPropertiesAnyType); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new OpenApiPetstore.AdditionalPropertiesAnyType(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesArray.spec.js b/samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesArray.spec.js deleted file mode 100644 index 70e2e348fb1d..000000000000 --- a/samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesArray.spec.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 - * - * 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', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.AdditionalPropertiesArray(); - }); - - 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('AdditionalPropertiesArray', function() { - it('should create an instance of AdditionalPropertiesArray', function() { - // uncomment below and update the code to test AdditionalPropertiesArray - //var instance = new OpenApiPetstore.AdditionalPropertiesArray(); - //expect(instance).to.be.a(OpenApiPetstore.AdditionalPropertiesArray); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new OpenApiPetstore.AdditionalPropertiesArray(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesBoolean.spec.js b/samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesBoolean.spec.js deleted file mode 100644 index f3bca3d55fc3..000000000000 --- a/samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesBoolean.spec.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 - * - * 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', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.AdditionalPropertiesBoolean(); - }); - - 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('AdditionalPropertiesBoolean', function() { - it('should create an instance of AdditionalPropertiesBoolean', function() { - // uncomment below and update the code to test AdditionalPropertiesBoolean - //var instance = new OpenApiPetstore.AdditionalPropertiesBoolean(); - //expect(instance).to.be.a(OpenApiPetstore.AdditionalPropertiesBoolean); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new OpenApiPetstore.AdditionalPropertiesBoolean(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesClass.spec.js b/samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesClass.spec.js deleted file mode 100644 index 0c6e0a15343b..000000000000 --- a/samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesClass.spec.js +++ /dev/null @@ -1,127 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.AdditionalPropertiesClass(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('AdditionalPropertiesClass', function() { - it('should create an instance of AdditionalPropertiesClass', function() { - // uncomment below and update the code to test AdditionalPropertiesClass - //var instance = new OpenApiPetstore.AdditionalPropertiesClass(); - //expect(instance).to.be.a(OpenApiPetstore.AdditionalPropertiesClass); - }); - - it('should have the property 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 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 deleted file mode 100644 index bb48c2a4dec1..000000000000 --- a/samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesInteger.spec.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 - * - * 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', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.AdditionalPropertiesInteger(); - }); - - 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('AdditionalPropertiesInteger', function() { - it('should create an instance of AdditionalPropertiesInteger', function() { - // uncomment below and update the code to test AdditionalPropertiesInteger - //var instance = new OpenApiPetstore.AdditionalPropertiesInteger(); - //expect(instance).to.be.a(OpenApiPetstore.AdditionalPropertiesInteger); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new OpenApiPetstore.AdditionalPropertiesInteger(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesNumber.spec.js b/samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesNumber.spec.js deleted file mode 100644 index ab22daa2f9ce..000000000000 --- a/samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesNumber.spec.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 - * - * 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', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.AdditionalPropertiesNumber(); - }); - - 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('AdditionalPropertiesNumber', function() { - it('should create an instance of AdditionalPropertiesNumber', function() { - // uncomment below and update the code to test AdditionalPropertiesNumber - //var instance = new OpenApiPetstore.AdditionalPropertiesNumber(); - //expect(instance).to.be.a(OpenApiPetstore.AdditionalPropertiesNumber); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new OpenApiPetstore.AdditionalPropertiesNumber(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesObject.spec.js b/samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesObject.spec.js deleted file mode 100644 index 97195ef4d4fe..000000000000 --- a/samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesObject.spec.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 - * - * 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', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.AdditionalPropertiesObject(); - }); - - 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('AdditionalPropertiesObject', function() { - it('should create an instance of AdditionalPropertiesObject', function() { - // uncomment below and update the code to test AdditionalPropertiesObject - //var instance = new OpenApiPetstore.AdditionalPropertiesObject(); - //expect(instance).to.be.a(OpenApiPetstore.AdditionalPropertiesObject); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new OpenApiPetstore.AdditionalPropertiesObject(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesString.spec.js b/samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesString.spec.js deleted file mode 100644 index 1f2cf9ba828a..000000000000 --- a/samples/client/petstore/javascript-promise/test/model/AdditionalPropertiesString.spec.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 - * - * 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', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.AdditionalPropertiesString(); - }); - - 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('AdditionalPropertiesString', function() { - it('should create an instance of AdditionalPropertiesString', function() { - // uncomment below and update the code to test AdditionalPropertiesString - //var instance = new OpenApiPetstore.AdditionalPropertiesString(); - //expect(instance).to.be.a(OpenApiPetstore.AdditionalPropertiesString); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new OpenApiPetstore.AdditionalPropertiesString(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-promise/test/model/Animal.spec.js b/samples/client/petstore/javascript-promise/test/model/Animal.spec.js deleted file mode 100644 index dd46eeca4a85..000000000000 --- a/samples/client/petstore/javascript-promise/test/model/Animal.spec.js +++ /dev/null @@ -1,73 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.Animal(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Animal', function() { - it('should create an instance of Animal', function() { - // uncomment below and update the code to test Animal - //var instance = new OpenApiPetstore.Animal(); - //expect(instance).to.be.a(OpenApiPetstore.Animal); - }); - - it('should have the property className (base name: "className")', function() { - // uncomment below and update the code to test the property className - //var instance = new OpenApiPetstore.Animal(); - //expect(instance).to.be(); - }); - - it('should have the property color (base name: "color")', function() { - // uncomment below and update the code to test the property color - //var instance = new OpenApiPetstore.Animal(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-promise/test/model/ApiResponse.spec.js b/samples/client/petstore/javascript-promise/test/model/ApiResponse.spec.js deleted file mode 100644 index 80b54d040ba3..000000000000 --- a/samples/client/petstore/javascript-promise/test/model/ApiResponse.spec.js +++ /dev/null @@ -1,79 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.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 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 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 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 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 deleted file mode 100644 index 30bd568fcf82..000000000000 --- a/samples/client/petstore/javascript-promise/test/model/ArrayOfArrayOfNumberOnly.spec.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 - * - * 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', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.ArrayOfArrayOfNumberOnly(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ArrayOfArrayOfNumberOnly', function() { - it('should create an instance of ArrayOfArrayOfNumberOnly', function() { - // uncomment below and update the code to test ArrayOfArrayOfNumberOnly - //var instance = new OpenApiPetstore.ArrayOfArrayOfNumberOnly(); - //expect(instance).to.be.a(OpenApiPetstore.ArrayOfArrayOfNumberOnly); - }); - - it('should have the property arrayArrayNumber (base name: "ArrayArrayNumber")', function() { - // uncomment below and update the code to test the property arrayArrayNumber - //var instance = new OpenApiPetstore.ArrayOfArrayOfNumberOnly(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-promise/test/model/ArrayOfNumberOnly.spec.js b/samples/client/petstore/javascript-promise/test/model/ArrayOfNumberOnly.spec.js deleted file mode 100644 index 2719e03ea995..000000000000 --- a/samples/client/petstore/javascript-promise/test/model/ArrayOfNumberOnly.spec.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 - * - * 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', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.ArrayOfNumberOnly(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ArrayOfNumberOnly', function() { - it('should create an instance of ArrayOfNumberOnly', function() { - // uncomment below and update the code to test ArrayOfNumberOnly - //var instance = new OpenApiPetstore.ArrayOfNumberOnly(); - //expect(instance).to.be.a(OpenApiPetstore.ArrayOfNumberOnly); - }); - - it('should have the property arrayNumber (base name: "ArrayNumber")', function() { - // uncomment below and update the code to test the property arrayNumber - //var instance = new OpenApiPetstore.ArrayOfNumberOnly(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-promise/test/model/ArrayTest.spec.js b/samples/client/petstore/javascript-promise/test/model/ArrayTest.spec.js deleted file mode 100644 index 6808eecd3fdb..000000000000 --- a/samples/client/petstore/javascript-promise/test/model/ArrayTest.spec.js +++ /dev/null @@ -1,79 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.ArrayTest(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ArrayTest', function() { - it('should create an instance of ArrayTest', function() { - // uncomment below and update the code to test ArrayTest - //var instance = new OpenApiPetstore.ArrayTest(); - //expect(instance).to.be.a(OpenApiPetstore.ArrayTest); - }); - - it('should have the property arrayOfString (base name: "array_of_string")', function() { - // uncomment below and update the code to test the property arrayOfString - //var instance = new OpenApiPetstore.ArrayTest(); - //expect(instance).to.be(); - }); - - it('should have the property arrayArrayOfInteger (base name: "array_array_of_integer")', function() { - // uncomment below and update the code to test the property arrayArrayOfInteger - //var instance = new OpenApiPetstore.ArrayTest(); - //expect(instance).to.be(); - }); - - it('should have the property arrayArrayOfModel (base name: "array_array_of_model")', function() { - // uncomment below and update the code to test the property arrayArrayOfModel - //var instance = new OpenApiPetstore.ArrayTest(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-promise/test/model/BigCat.spec.js b/samples/client/petstore/javascript-promise/test/model/BigCat.spec.js deleted file mode 100644 index 2001b0a31fc1..000000000000 --- a/samples/client/petstore/javascript-promise/test/model/BigCat.spec.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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 4.2.2-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.BigCat(); - }); - - 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('BigCat', function() { - it('should create an instance of BigCat', function() { - // uncomment below and update the code to test BigCat - //var instance = new OpenApiPetstore.BigCat(); - //expect(instance).to.be.a(OpenApiPetstore.BigCat); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instance = new OpenApiPetstore.BigCat(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-promise/test/model/BigCatAllOf.spec.js b/samples/client/petstore/javascript-promise/test/model/BigCatAllOf.spec.js deleted file mode 100644 index 50d3277f5a6e..000000000000 --- a/samples/client/petstore/javascript-promise/test/model/BigCatAllOf.spec.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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 4.2.2-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.BigCatAllOf(); - }); - - 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('BigCatAllOf', function() { - it('should create an instance of BigCatAllOf', function() { - // uncomment below and update the code to test BigCatAllOf - //var instance = new OpenApiPetstore.BigCatAllOf(); - //expect(instance).to.be.a(OpenApiPetstore.BigCatAllOf); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instance = new OpenApiPetstore.BigCatAllOf(); - //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 deleted file mode 100644 index 79e02c9aeb50..000000000000 --- a/samples/client/petstore/javascript-promise/test/model/Capitalization.spec.js +++ /dev/null @@ -1,97 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.Capitalization(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Capitalization', function() { - it('should create an instance of Capitalization', function() { - // uncomment below and update the code to test Capitalization - //var instance = new OpenApiPetstore.Capitalization(); - //expect(instance).to.be.a(OpenApiPetstore.Capitalization); - }); - - it('should have the property smallCamel (base name: "smallCamel")', function() { - // uncomment below and update the code to test the property smallCamel - //var instance = new OpenApiPetstore.Capitalization(); - //expect(instance).to.be(); - }); - - it('should have the property capitalCamel (base name: "CapitalCamel")', function() { - // uncomment below and update the code to test the property capitalCamel - //var instance = new OpenApiPetstore.Capitalization(); - //expect(instance).to.be(); - }); - - it('should have the property smallSnake (base name: "small_Snake")', function() { - // uncomment below and update the code to test the property smallSnake - //var instance = new OpenApiPetstore.Capitalization(); - //expect(instance).to.be(); - }); - - it('should have the property capitalSnake (base name: "Capital_Snake")', function() { - // uncomment below and update the code to test the property capitalSnake - //var instance = new OpenApiPetstore.Capitalization(); - //expect(instance).to.be(); - }); - - it('should have the property sCAETHFlowPoints (base name: "SCA_ETH_Flow_Points")', function() { - // uncomment below and update the code to test the property sCAETHFlowPoints - //var instance = new OpenApiPetstore.Capitalization(); - //expect(instance).to.be(); - }); - - it('should have the property ATT_NAME (base name: "ATT_NAME")', function() { - // uncomment below and update the code to test the property ATT_NAME - //var instance = new OpenApiPetstore.Capitalization(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-promise/test/model/Cat.spec.js b/samples/client/petstore/javascript-promise/test/model/Cat.spec.js deleted file mode 100644 index 3dcafaebf457..000000000000 --- a/samples/client/petstore/javascript-promise/test/model/Cat.spec.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 - * - * 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', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.Cat(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Cat', function() { - it('should create an instance of Cat', function() { - // uncomment below and update the code to test Cat - //var instance = new OpenApiPetstore.Cat(); - //expect(instance).to.be.a(OpenApiPetstore.Cat); - }); - - it('should have the property declawed (base name: "declawed")', function() { - // uncomment below and update the code to test the property declawed - //var instance = new OpenApiPetstore.Cat(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-promise/test/model/CatAllOf.spec.js b/samples/client/petstore/javascript-promise/test/model/CatAllOf.spec.js deleted file mode 100644 index 0edf182d6ff1..000000000000 --- a/samples/client/petstore/javascript-promise/test/model/CatAllOf.spec.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 - * - * 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', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.CatAllOf(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('CatAllOf', function() { - it('should create an instance of CatAllOf', function() { - // uncomment below and update the code to test CatAllOf - //var instance = new OpenApiPetstore.CatAllOf(); - //expect(instance).to.be.a(OpenApiPetstore.CatAllOf); - }); - - it('should have the property declawed (base name: "declawed")', function() { - // uncomment below and update the code to test the property declawed - //var instance = new OpenApiPetstore.CatAllOf(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-promise/test/model/Category.spec.js b/samples/client/petstore/javascript-promise/test/model/Category.spec.js deleted file mode 100644 index af78800f910a..000000000000 --- a/samples/client/petstore/javascript-promise/test/model/Category.spec.js +++ /dev/null @@ -1,73 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.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 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 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 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 deleted file mode 100644 index a87944b84b16..000000000000 --- a/samples/client/petstore/javascript-promise/test/model/ClassModel.spec.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 - * - * 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', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.ClassModel(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ClassModel', function() { - it('should create an instance of ClassModel', function() { - // uncomment below and update the code to test ClassModel - //var instance = new OpenApiPetstore.ClassModel(); - //expect(instance).to.be.a(OpenApiPetstore.ClassModel); - }); - - it('should have the property _class (base name: "_class")', function() { - // uncomment below and update the code to test the property _class - //var instance = new OpenApiPetstore.ClassModel(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-promise/test/model/Client.spec.js b/samples/client/petstore/javascript-promise/test/model/Client.spec.js deleted file mode 100644 index 2df55fe774c0..000000000000 --- a/samples/client/petstore/javascript-promise/test/model/Client.spec.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 - * - * 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', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.Client(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Client', function() { - it('should create an instance of Client', function() { - // uncomment below and update the code to test Client - //var instance = new OpenApiPetstore.Client(); - //expect(instance).to.be.a(OpenApiPetstore.Client); - }); - - it('should have the property client (base name: "client")', function() { - // uncomment below and update the code to test the property client - //var instance = new OpenApiPetstore.Client(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-promise/test/model/Dog.spec.js b/samples/client/petstore/javascript-promise/test/model/Dog.spec.js deleted file mode 100644 index b652c44fa441..000000000000 --- a/samples/client/petstore/javascript-promise/test/model/Dog.spec.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 - * - * 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', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.Dog(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Dog', function() { - it('should create an instance of Dog', function() { - // uncomment below and update the code to test Dog - //var instance = new OpenApiPetstore.Dog(); - //expect(instance).to.be.a(OpenApiPetstore.Dog); - }); - - it('should have the property breed (base name: "breed")', function() { - // uncomment below and update the code to test the property breed - //var instance = new OpenApiPetstore.Dog(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-promise/test/model/DogAllOf.spec.js b/samples/client/petstore/javascript-promise/test/model/DogAllOf.spec.js deleted file mode 100644 index 846e8f066e3b..000000000000 --- a/samples/client/petstore/javascript-promise/test/model/DogAllOf.spec.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 - * - * 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', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.DogAllOf(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('DogAllOf', function() { - it('should create an instance of DogAllOf', function() { - // uncomment below and update the code to test DogAllOf - //var instance = new OpenApiPetstore.DogAllOf(); - //expect(instance).to.be.a(OpenApiPetstore.DogAllOf); - }); - - it('should have the property breed (base name: "breed")', function() { - // uncomment below and update the code to test the property breed - //var instance = new OpenApiPetstore.DogAllOf(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-promise/test/model/EnumArrays.spec.js b/samples/client/petstore/javascript-promise/test/model/EnumArrays.spec.js deleted file mode 100644 index 7d8cc8d61c96..000000000000 --- a/samples/client/petstore/javascript-promise/test/model/EnumArrays.spec.js +++ /dev/null @@ -1,73 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.EnumArrays(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('EnumArrays', function() { - it('should create an instance of EnumArrays', function() { - // uncomment below and update the code to test EnumArrays - //var instance = new OpenApiPetstore.EnumArrays(); - //expect(instance).to.be.a(OpenApiPetstore.EnumArrays); - }); - - it('should have the property justSymbol (base name: "just_symbol")', function() { - // uncomment below and update the code to test the property justSymbol - //var instance = new OpenApiPetstore.EnumArrays(); - //expect(instance).to.be(); - }); - - it('should have the property arrayEnum (base name: "array_enum")', function() { - // uncomment below and update the code to test the property arrayEnum - //var instance = new OpenApiPetstore.EnumArrays(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-promise/test/model/EnumClass.spec.js b/samples/client/petstore/javascript-promise/test/model/EnumClass.spec.js deleted file mode 100644 index 99fc34743cb7..000000000000 --- a/samples/client/petstore/javascript-promise/test/model/EnumClass.spec.js +++ /dev/null @@ -1,60 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('EnumClass', function() { - it('should create an instance of EnumClass', function() { - // uncomment below and update the code to test EnumClass - //var instance = new OpenApiPetstore.EnumClass(); - //expect(instance).to.be.a(OpenApiPetstore.EnumClass); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-promise/test/model/EnumTest.spec.js b/samples/client/petstore/javascript-promise/test/model/EnumTest.spec.js deleted file mode 100644 index df04077b2983..000000000000 --- a/samples/client/petstore/javascript-promise/test/model/EnumTest.spec.js +++ /dev/null @@ -1,91 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.EnumTest(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('EnumTest', function() { - it('should create an instance of EnumTest', function() { - // uncomment below and update the code to test EnumTest - //var instance = new OpenApiPetstore.EnumTest(); - //expect(instance).to.be.a(OpenApiPetstore.EnumTest); - }); - - it('should have the property enumString (base name: "enum_string")', function() { - // uncomment below and update the code to test the property enumString - //var instance = new OpenApiPetstore.EnumTest(); - //expect(instance).to.be(); - }); - - it('should have the property enumStringRequired (base name: "enum_string_required")', function() { - // uncomment below and update the code to test the property enumStringRequired - //var instance = new OpenApiPetstore.EnumTest(); - //expect(instance).to.be(); - }); - - it('should have the property enumInteger (base name: "enum_integer")', function() { - // uncomment below and update the code to test the property enumInteger - //var instance = new OpenApiPetstore.EnumTest(); - //expect(instance).to.be(); - }); - - it('should have the property enumNumber (base name: "enum_number")', function() { - // uncomment below and update the code to test the property enumNumber - //var instance = new OpenApiPetstore.EnumTest(); - //expect(instance).to.be(); - }); - - it('should have the property outerEnum (base name: "outerEnum")', function() { - // uncomment below and update the code to test the property outerEnum - //var instance = new OpenApiPetstore.EnumTest(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-promise/test/model/File.spec.js b/samples/client/petstore/javascript-promise/test/model/File.spec.js deleted file mode 100644 index 6be3d7942aad..000000000000 --- a/samples/client/petstore/javascript-promise/test/model/File.spec.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 - * - * 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', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.File(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('File', function() { - it('should create an instance of File', function() { - // uncomment below and update the code to test File - //var instance = new OpenApiPetstore.File(); - //expect(instance).to.be.a(OpenApiPetstore.File); - }); - - it('should have the property sourceURI (base name: "sourceURI")', function() { - // uncomment below and update the code to test the property sourceURI - //var instance = new OpenApiPetstore.File(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-promise/test/model/FileSchemaTestClass.spec.js b/samples/client/petstore/javascript-promise/test/model/FileSchemaTestClass.spec.js deleted file mode 100644 index 52d4cddd3266..000000000000 --- a/samples/client/petstore/javascript-promise/test/model/FileSchemaTestClass.spec.js +++ /dev/null @@ -1,73 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.FileSchemaTestClass(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('FileSchemaTestClass', function() { - it('should create an instance of FileSchemaTestClass', function() { - // uncomment below and update the code to test FileSchemaTestClass - //var instance = new OpenApiPetstore.FileSchemaTestClass(); - //expect(instance).to.be.a(OpenApiPetstore.FileSchemaTestClass); - }); - - it('should have the property file (base name: "file")', function() { - // uncomment below and update the code to test the property file - //var instance = new OpenApiPetstore.FileSchemaTestClass(); - //expect(instance).to.be(); - }); - - it('should have the property files (base name: "files")', function() { - // uncomment below and update the code to test the property files - //var instance = new OpenApiPetstore.FileSchemaTestClass(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-promise/test/model/FormatTest.spec.js b/samples/client/petstore/javascript-promise/test/model/FormatTest.spec.js deleted file mode 100644 index f7255fb1f554..000000000000 --- a/samples/client/petstore/javascript-promise/test/model/FormatTest.spec.js +++ /dev/null @@ -1,139 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.FormatTest(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('FormatTest', function() { - it('should create an instance of FormatTest', function() { - // uncomment below and update the code to test FormatTest - //var instance = new OpenApiPetstore.FormatTest(); - //expect(instance).to.be.a(OpenApiPetstore.FormatTest); - }); - - it('should have the property integer (base name: "integer")', function() { - // uncomment below and update the code to test the property integer - //var instance = new OpenApiPetstore.FormatTest(); - //expect(instance).to.be(); - }); - - it('should have the property int32 (base name: "int32")', function() { - // uncomment below and update the code to test the property int32 - //var instance = new OpenApiPetstore.FormatTest(); - //expect(instance).to.be(); - }); - - it('should have the property int64 (base name: "int64")', function() { - // uncomment below and update the code to test the property int64 - //var instance = new OpenApiPetstore.FormatTest(); - //expect(instance).to.be(); - }); - - it('should have the property _number (base name: "number")', function() { - // uncomment below and update the code to test the property _number - //var instance = new OpenApiPetstore.FormatTest(); - //expect(instance).to.be(); - }); - - it('should have the property _float (base name: "float")', function() { - // uncomment below and update the code to test the property _float - //var instance = new OpenApiPetstore.FormatTest(); - //expect(instance).to.be(); - }); - - it('should have the property _double (base name: "double")', function() { - // uncomment below and update the code to test the property _double - //var instance = new OpenApiPetstore.FormatTest(); - //expect(instance).to.be(); - }); - - it('should have the property _string (base name: "string")', function() { - // uncomment below and update the code to test the property _string - //var instance = new OpenApiPetstore.FormatTest(); - //expect(instance).to.be(); - }); - - it('should have the property _byte (base name: "byte")', function() { - // uncomment below and update the code to test the property _byte - //var instance = new OpenApiPetstore.FormatTest(); - //expect(instance).to.be(); - }); - - it('should have the property binary (base name: "binary")', function() { - // uncomment below and update the code to test the property binary - //var instance = new OpenApiPetstore.FormatTest(); - //expect(instance).to.be(); - }); - - it('should have the property _date (base name: "date")', function() { - // uncomment below and update the code to test the property _date - //var instance = new OpenApiPetstore.FormatTest(); - //expect(instance).to.be(); - }); - - it('should have the property dateTime (base name: "dateTime")', function() { - // uncomment below and update the code to test the property dateTime - //var instance = new OpenApiPetstore.FormatTest(); - //expect(instance).to.be(); - }); - - it('should have the property uuid (base name: "uuid")', function() { - // uncomment below and update the code to test the property uuid - //var instance = new OpenApiPetstore.FormatTest(); - //expect(instance).to.be(); - }); - - it('should have the property password (base name: "password")', function() { - // uncomment below and update the code to test the property password - //var instance = new OpenApiPetstore.FormatTest(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-promise/test/model/HasOnlyReadOnly.spec.js b/samples/client/petstore/javascript-promise/test/model/HasOnlyReadOnly.spec.js deleted file mode 100644 index 4ae5235ec48e..000000000000 --- a/samples/client/petstore/javascript-promise/test/model/HasOnlyReadOnly.spec.js +++ /dev/null @@ -1,73 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.HasOnlyReadOnly(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('HasOnlyReadOnly', function() { - it('should create an instance of HasOnlyReadOnly', function() { - // uncomment below and update the code to test HasOnlyReadOnly - //var instance = new OpenApiPetstore.HasOnlyReadOnly(); - //expect(instance).to.be.a(OpenApiPetstore.HasOnlyReadOnly); - }); - - it('should have the property bar (base name: "bar")', function() { - // uncomment below and update the code to test the property bar - //var instance = new OpenApiPetstore.HasOnlyReadOnly(); - //expect(instance).to.be(); - }); - - it('should have the property foo (base name: "foo")', function() { - // uncomment below and update the code to test the property foo - //var instance = new OpenApiPetstore.HasOnlyReadOnly(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-promise/test/model/List.spec.js b/samples/client/petstore/javascript-promise/test/model/List.spec.js deleted file mode 100644 index ec5795971760..000000000000 --- a/samples/client/petstore/javascript-promise/test/model/List.spec.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 - * - * 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', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.List(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('List', function() { - it('should create an instance of List', function() { - // uncomment below and update the code to test List - //var instance = new OpenApiPetstore.List(); - //expect(instance).to.be.a(OpenApiPetstore.List); - }); - - it('should have the property _123list (base name: "123-list")', function() { - // uncomment below and update the code to test the property _123list - //var instance = new OpenApiPetstore.List(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-promise/test/model/MapTest.spec.js b/samples/client/petstore/javascript-promise/test/model/MapTest.spec.js deleted file mode 100644 index cefaa92b8fd9..000000000000 --- a/samples/client/petstore/javascript-promise/test/model/MapTest.spec.js +++ /dev/null @@ -1,85 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.MapTest(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('MapTest', function() { - it('should create an instance of MapTest', function() { - // uncomment below and update the code to test MapTest - //var instance = new OpenApiPetstore.MapTest(); - //expect(instance).to.be.a(OpenApiPetstore.MapTest); - }); - - it('should have the property mapMapOfString (base name: "map_map_of_string")', function() { - // uncomment below and update the code to test the property mapMapOfString - //var instance = new OpenApiPetstore.MapTest(); - //expect(instance).to.be(); - }); - - it('should have the property mapOfEnumString (base name: "map_of_enum_string")', function() { - // uncomment below and update the code to test the property mapOfEnumString - //var instance = new OpenApiPetstore.MapTest(); - //expect(instance).to.be(); - }); - - it('should have the property directMap (base name: "direct_map")', function() { - // uncomment below and update the code to test the property directMap - //var instance = new OpenApiPetstore.MapTest(); - //expect(instance).to.be(); - }); - - it('should have the property indirectMap (base name: "indirect_map")', function() { - // uncomment below and update the code to test the property indirectMap - //var instance = new OpenApiPetstore.MapTest(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-promise/test/model/MixedPropertiesAndAdditionalPropertiesClass.spec.js b/samples/client/petstore/javascript-promise/test/model/MixedPropertiesAndAdditionalPropertiesClass.spec.js deleted file mode 100644 index f5152276441f..000000000000 --- a/samples/client/petstore/javascript-promise/test/model/MixedPropertiesAndAdditionalPropertiesClass.spec.js +++ /dev/null @@ -1,79 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.MixedPropertiesAndAdditionalPropertiesClass(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('MixedPropertiesAndAdditionalPropertiesClass', function() { - it('should create an instance of MixedPropertiesAndAdditionalPropertiesClass', function() { - // uncomment below and update the code to test MixedPropertiesAndAdditionalPropertiesClass - //var instance = new OpenApiPetstore.MixedPropertiesAndAdditionalPropertiesClass(); - //expect(instance).to.be.a(OpenApiPetstore.MixedPropertiesAndAdditionalPropertiesClass); - }); - - it('should have the property uuid (base name: "uuid")', function() { - // uncomment below and update the code to test the property uuid - //var instance = new OpenApiPetstore.MixedPropertiesAndAdditionalPropertiesClass(); - //expect(instance).to.be(); - }); - - it('should have the property dateTime (base name: "dateTime")', function() { - // uncomment below and update the code to test the property dateTime - //var instance = new OpenApiPetstore.MixedPropertiesAndAdditionalPropertiesClass(); - //expect(instance).to.be(); - }); - - it('should have the property map (base name: "map")', function() { - // uncomment below and update the code to test the property map - //var instance = new OpenApiPetstore.MixedPropertiesAndAdditionalPropertiesClass(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-promise/test/model/Model200Response.spec.js b/samples/client/petstore/javascript-promise/test/model/Model200Response.spec.js deleted file mode 100644 index 4ada7bbf24a4..000000000000 --- a/samples/client/petstore/javascript-promise/test/model/Model200Response.spec.js +++ /dev/null @@ -1,73 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.Model200Response(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Model200Response', function() { - it('should create an instance of Model200Response', function() { - // uncomment below and update the code to test Model200Response - //var instance = new OpenApiPetstore.Model200Response(); - //expect(instance).to.be.a(OpenApiPetstore.Model200Response); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new OpenApiPetstore.Model200Response(); - //expect(instance).to.be(); - }); - - it('should have the property _class (base name: "class")', function() { - // uncomment below and update the code to test the property _class - //var instance = new OpenApiPetstore.Model200Response(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-promise/test/model/ModelReturn.spec.js b/samples/client/petstore/javascript-promise/test/model/ModelReturn.spec.js deleted file mode 100644 index 955895d3ec92..000000000000 --- a/samples/client/petstore/javascript-promise/test/model/ModelReturn.spec.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 - * - * 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', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.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 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 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 deleted file mode 100644 index 2335871808e8..000000000000 --- a/samples/client/petstore/javascript-promise/test/model/Name.spec.js +++ /dev/null @@ -1,85 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.Name(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Name', function() { - it('should create an instance of Name', function() { - // uncomment below and update the code to test Name - //var instance = new OpenApiPetstore.Name(); - //expect(instance).to.be.a(OpenApiPetstore.Name); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new OpenApiPetstore.Name(); - //expect(instance).to.be(); - }); - - it('should have the property snakeCase (base name: "snake_case")', function() { - // uncomment below and update the code to test the property snakeCase - //var instance = new OpenApiPetstore.Name(); - //expect(instance).to.be(); - }); - - it('should have the property property (base name: "property")', function() { - // uncomment below and update the code to test the property property - //var instance = new OpenApiPetstore.Name(); - //expect(instance).to.be(); - }); - - it('should have the property _123number (base name: "123Number")', function() { - // uncomment below and update the code to test the property _123number - //var instance = new OpenApiPetstore.Name(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-promise/test/model/NumberOnly.spec.js b/samples/client/petstore/javascript-promise/test/model/NumberOnly.spec.js deleted file mode 100644 index 8d903c726975..000000000000 --- a/samples/client/petstore/javascript-promise/test/model/NumberOnly.spec.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 - * - * 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', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.NumberOnly(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('NumberOnly', function() { - it('should create an instance of NumberOnly', function() { - // uncomment below and update the code to test NumberOnly - //var instance = new OpenApiPetstore.NumberOnly(); - //expect(instance).to.be.a(OpenApiPetstore.NumberOnly); - }); - - it('should have the property justNumber (base name: "JustNumber")', function() { - // uncomment below and update the code to test the property justNumber - //var instance = new OpenApiPetstore.NumberOnly(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-promise/test/model/Order.spec.js b/samples/client/petstore/javascript-promise/test/model/Order.spec.js deleted file mode 100644 index 1a5765958a4a..000000000000 --- a/samples/client/petstore/javascript-promise/test/model/Order.spec.js +++ /dev/null @@ -1,97 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.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 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 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 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 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 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 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 instance = new OpenApiPetstore.Order(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-promise/test/model/OuterComposite.spec.js b/samples/client/petstore/javascript-promise/test/model/OuterComposite.spec.js deleted file mode 100644 index ddce9fa8c9a9..000000000000 --- a/samples/client/petstore/javascript-promise/test/model/OuterComposite.spec.js +++ /dev/null @@ -1,79 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.OuterComposite(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('OuterComposite', function() { - it('should create an instance of OuterComposite', function() { - // uncomment below and update the code to test OuterComposite - //var instance = new OpenApiPetstore.OuterComposite(); - //expect(instance).to.be.a(OpenApiPetstore.OuterComposite); - }); - - it('should have the property myNumber (base name: "my_number")', function() { - // uncomment below and update the code to test the property myNumber - //var instance = new OpenApiPetstore.OuterComposite(); - //expect(instance).to.be(); - }); - - it('should have the property myString (base name: "my_string")', function() { - // uncomment below and update the code to test the property myString - //var instance = new OpenApiPetstore.OuterComposite(); - //expect(instance).to.be(); - }); - - it('should have the property myBoolean (base name: "my_boolean")', function() { - // uncomment below and update the code to test the property myBoolean - //var instance = new OpenApiPetstore.OuterComposite(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-promise/test/model/OuterEnum.spec.js b/samples/client/petstore/javascript-promise/test/model/OuterEnum.spec.js deleted file mode 100644 index a094fbd5a5d4..000000000000 --- a/samples/client/petstore/javascript-promise/test/model/OuterEnum.spec.js +++ /dev/null @@ -1,60 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('OuterEnum', function() { - it('should create an instance of OuterEnum', function() { - // uncomment below and update the code to test OuterEnum - //var instance = new OpenApiPetstore.OuterEnum(); - //expect(instance).to.be.a(OpenApiPetstore.OuterEnum); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-promise/test/model/Pet.spec.js b/samples/client/petstore/javascript-promise/test/model/Pet.spec.js deleted file mode 100644 index 16d08337b975..000000000000 --- a/samples/client/petstore/javascript-promise/test/model/Pet.spec.js +++ /dev/null @@ -1,97 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.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 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 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 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 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 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 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 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 deleted file mode 100644 index b25f36aeb557..000000000000 --- a/samples/client/petstore/javascript-promise/test/model/ReadOnlyFirst.spec.js +++ /dev/null @@ -1,73 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.ReadOnlyFirst(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ReadOnlyFirst', function() { - it('should create an instance of ReadOnlyFirst', function() { - // uncomment below and update the code to test ReadOnlyFirst - //var instance = new OpenApiPetstore.ReadOnlyFirst(); - //expect(instance).to.be.a(OpenApiPetstore.ReadOnlyFirst); - }); - - it('should have the property bar (base name: "bar")', function() { - // uncomment below and update the code to test the property bar - //var instance = new OpenApiPetstore.ReadOnlyFirst(); - //expect(instance).to.be(); - }); - - it('should have the property baz (base name: "baz")', function() { - // uncomment below and update the code to test the property baz - //var instance = new OpenApiPetstore.ReadOnlyFirst(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-promise/test/model/SpecialModelName.spec.js b/samples/client/petstore/javascript-promise/test/model/SpecialModelName.spec.js deleted file mode 100644 index 9b9e8a128f03..000000000000 --- a/samples/client/petstore/javascript-promise/test/model/SpecialModelName.spec.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 - * - * 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', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.SpecialModelName(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SpecialModelName', function() { - it('should create an instance of SpecialModelName', function() { - // uncomment below and update the code to test SpecialModelName - //var instance = new OpenApiPetstore.SpecialModelName(); - //expect(instance).to.be.a(OpenApiPetstore.SpecialModelName); - }); - - it('should have the property specialPropertyName (base name: "$special[property.name]")', function() { - // uncomment below and update the code to test the property specialPropertyName - //var instance = new OpenApiPetstore.SpecialModelName(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-promise/test/model/Tag.spec.js b/samples/client/petstore/javascript-promise/test/model/Tag.spec.js deleted file mode 100644 index 2cfed4bd9074..000000000000 --- a/samples/client/petstore/javascript-promise/test/model/Tag.spec.js +++ /dev/null @@ -1,73 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.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 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 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 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 deleted file mode 100644 index e6618ea65ac9..000000000000 --- a/samples/client/petstore/javascript-promise/test/model/TypeHolderDefault.spec.js +++ /dev/null @@ -1,91 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.TypeHolderDefault(); - }); - - 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('TypeHolderDefault', function() { - it('should create an instance of TypeHolderDefault', function() { - // uncomment below and update the code to test TypeHolderDefault - //var instance = new OpenApiPetstore.TypeHolderDefault(); - //expect(instance).to.be.a(OpenApiPetstore.TypeHolderDefault); - }); - - it('should have the property stringItem (base name: "string_item")', function() { - // uncomment below and update the code to test the property stringItem - //var instance = new OpenApiPetstore.TypeHolderDefault(); - //expect(instance).to.be(); - }); - - it('should have the property numberItem (base name: "number_item")', function() { - // uncomment below and update the code to test the property numberItem - //var instance = new OpenApiPetstore.TypeHolderDefault(); - //expect(instance).to.be(); - }); - - it('should have the property integerItem (base name: "integer_item")', function() { - // uncomment below and update the code to test the property integerItem - //var instance = new OpenApiPetstore.TypeHolderDefault(); - //expect(instance).to.be(); - }); - - it('should have the property boolItem (base name: "bool_item")', function() { - // uncomment below and update the code to test the property boolItem - //var instance = new OpenApiPetstore.TypeHolderDefault(); - //expect(instance).to.be(); - }); - - it('should have the property arrayItem (base name: "array_item")', function() { - // uncomment below and update the code to test the property arrayItem - //var instance = new OpenApiPetstore.TypeHolderDefault(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-promise/test/model/TypeHolderExample.spec.js b/samples/client/petstore/javascript-promise/test/model/TypeHolderExample.spec.js deleted file mode 100644 index 5f705a61a998..000000000000 --- a/samples/client/petstore/javascript-promise/test/model/TypeHolderExample.spec.js +++ /dev/null @@ -1,91 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.TypeHolderExample(); - }); - - 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('TypeHolderExample', function() { - it('should create an instance of TypeHolderExample', function() { - // uncomment below and update the code to test TypeHolderExample - //var instance = new OpenApiPetstore.TypeHolderExample(); - //expect(instance).to.be.a(OpenApiPetstore.TypeHolderExample); - }); - - it('should have the property stringItem (base name: "string_item")', function() { - // uncomment below and update the code to test the property stringItem - //var instance = new OpenApiPetstore.TypeHolderExample(); - //expect(instance).to.be(); - }); - - it('should have the property numberItem (base name: "number_item")', function() { - // uncomment below and update the code to test the property numberItem - //var instance = new OpenApiPetstore.TypeHolderExample(); - //expect(instance).to.be(); - }); - - it('should have the property integerItem (base name: "integer_item")', function() { - // uncomment below and update the code to test the property integerItem - //var instance = new OpenApiPetstore.TypeHolderExample(); - //expect(instance).to.be(); - }); - - it('should have the property boolItem (base name: "bool_item")', function() { - // uncomment below and update the code to test the property boolItem - //var instance = new OpenApiPetstore.TypeHolderExample(); - //expect(instance).to.be(); - }); - - it('should have the property arrayItem (base name: "array_item")', function() { - // uncomment below and update the code to test the property arrayItem - //var instance = new OpenApiPetstore.TypeHolderExample(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-promise/test/model/User.spec.js b/samples/client/petstore/javascript-promise/test/model/User.spec.js deleted file mode 100644 index c7b88dbe10b7..000000000000 --- a/samples/client/petstore/javascript-promise/test/model/User.spec.js +++ /dev/null @@ -1,109 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.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 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 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 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 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 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 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 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 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 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 deleted file mode 100644 index 75d5350ebb69..000000000000 --- a/samples/client/petstore/javascript-promise/test/model/XmlItem.spec.js +++ /dev/null @@ -1,235 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.XmlItem(); - }); - - 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('XmlItem', function() { - it('should create an instance of XmlItem', function() { - // uncomment below and update the code to test XmlItem - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be.a(OpenApiPetstore.XmlItem); - }); - - it('should have the property attributeString (base name: "attribute_string")', function() { - // uncomment below and update the code to test the property attributeString - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property attributeNumber (base name: "attribute_number")', function() { - // uncomment below and update the code to test the property attributeNumber - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property attributeInteger (base name: "attribute_integer")', function() { - // uncomment below and update the code to test the property attributeInteger - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property attributeBoolean (base name: "attribute_boolean")', function() { - // uncomment below and update the code to test the property attributeBoolean - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property wrappedArray (base name: "wrapped_array")', function() { - // uncomment below and update the code to test the property wrappedArray - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property nameString (base name: "name_string")', function() { - // uncomment below and update the code to test the property nameString - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property nameNumber (base name: "name_number")', function() { - // uncomment below and update the code to test the property nameNumber - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property nameInteger (base name: "name_integer")', function() { - // uncomment below and update the code to test the property nameInteger - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property nameBoolean (base name: "name_boolean")', function() { - // uncomment below and update the code to test the property nameBoolean - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property nameArray (base name: "name_array")', function() { - // uncomment below and update the code to test the property nameArray - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property nameWrappedArray (base name: "name_wrapped_array")', function() { - // uncomment below and update the code to test the property nameWrappedArray - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property prefixString (base name: "prefix_string")', function() { - // uncomment below and update the code to test the property prefixString - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property prefixNumber (base name: "prefix_number")', function() { - // uncomment below and update the code to test the property prefixNumber - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property prefixInteger (base name: "prefix_integer")', function() { - // uncomment below and update the code to test the property prefixInteger - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property prefixBoolean (base name: "prefix_boolean")', function() { - // uncomment below and update the code to test the property prefixBoolean - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property prefixArray (base name: "prefix_array")', function() { - // uncomment below and update the code to test the property prefixArray - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property prefixWrappedArray (base name: "prefix_wrapped_array")', function() { - // uncomment below and update the code to test the property prefixWrappedArray - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property namespaceString (base name: "namespace_string")', function() { - // uncomment below and update the code to test the property namespaceString - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property namespaceNumber (base name: "namespace_number")', function() { - // uncomment below and update the code to test the property namespaceNumber - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property namespaceInteger (base name: "namespace_integer")', function() { - // uncomment below and update the code to test the property namespaceInteger - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property namespaceBoolean (base name: "namespace_boolean")', function() { - // uncomment below and update the code to test the property namespaceBoolean - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property namespaceArray (base name: "namespace_array")', function() { - // uncomment below and update the code to test the property namespaceArray - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property namespaceWrappedArray (base name: "namespace_wrapped_array")', function() { - // uncomment below and update the code to test the property namespaceWrappedArray - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property prefixNsString (base name: "prefix_ns_string")', function() { - // uncomment below and update the code to test the property prefixNsString - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property prefixNsNumber (base name: "prefix_ns_number")', function() { - // uncomment below and update the code to test the property prefixNsNumber - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property prefixNsInteger (base name: "prefix_ns_integer")', function() { - // uncomment below and update the code to test the property prefixNsInteger - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property prefixNsBoolean (base name: "prefix_ns_boolean")', function() { - // uncomment below and update the code to test the property prefixNsBoolean - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property prefixNsArray (base name: "prefix_ns_array")', function() { - // uncomment below and update the code to test the property prefixNsArray - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property prefixNsWrappedArray (base name: "prefix_ns_wrapped_array")', function() { - // uncomment below and update the code to test the property prefixNsWrappedArray - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-promise/test/run_tests.html b/samples/client/petstore/javascript-promise/test/run_tests.html deleted file mode 100644 index 2f3e3f1e33ae..000000000000 --- a/samples/client/petstore/javascript-promise/test/run_tests.html +++ /dev/null @@ -1,41 +0,0 @@ - - - - Mocha Tests - - - -
- - - - - - - - - - - - - - - - - - - - - - - - diff --git a/samples/client/petstore/javascript/.gitignore b/samples/client/petstore/javascript/.gitignore deleted file mode 100644 index 2ccbe4656c60..000000000000 --- a/samples/client/petstore/javascript/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/node_modules/ diff --git a/samples/client/petstore/javascript/.openapi-generator-ignore b/samples/client/petstore/javascript/.openapi-generator-ignore deleted file mode 100644 index 7484ee590a38..000000000000 --- a/samples/client/petstore/javascript/.openapi-generator-ignore +++ /dev/null @@ -1,23 +0,0 @@ -# OpenAPI Generator Ignore -# Generated by openapi-generator https://github.com/openapitools/openapi-generator - -# Use this file to prevent files from being overwritten by the generator. -# The patterns follow closely to .gitignore or .dockerignore. - -# As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: -#ApiClient.cs - -# You can match any string of characters against a directory, file or extension with a single asterisk (*): -#foo/*/qux -# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux - -# You can recursively match patterns against a directory, file or extension with a double asterisk (**): -#foo/**/qux -# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux - -# You can also negate patterns with an exclamation (!). -# For example, you can ignore all files in a docs folder with the file extension .md: -#docs/*.md -# Then explicitly reverse the ignore rule for a single file: -#!docs/README.md diff --git a/samples/client/petstore/javascript/.openapi-generator/FILES b/samples/client/petstore/javascript/.openapi-generator/FILES deleted file mode 100644 index 2a3e1d4d81ea..000000000000 --- a/samples/client/petstore/javascript/.openapi-generator/FILES +++ /dev/null @@ -1,115 +0,0 @@ -.travis.yml -README.md -docs/AdditionalPropertiesAnyType.md -docs/AdditionalPropertiesArray.md -docs/AdditionalPropertiesBoolean.md -docs/AdditionalPropertiesClass.md -docs/AdditionalPropertiesInteger.md -docs/AdditionalPropertiesNumber.md -docs/AdditionalPropertiesObject.md -docs/AdditionalPropertiesString.md -docs/Animal.md -docs/AnotherFakeApi.md -docs/ApiResponse.md -docs/ArrayOfArrayOfNumberOnly.md -docs/ArrayOfNumberOnly.md -docs/ArrayTest.md -docs/BigCat.md -docs/BigCatAllOf.md -docs/Capitalization.md -docs/Cat.md -docs/CatAllOf.md -docs/Category.md -docs/ClassModel.md -docs/Client.md -docs/Dog.md -docs/DogAllOf.md -docs/EnumArrays.md -docs/EnumClass.md -docs/EnumTest.md -docs/FakeApi.md -docs/FakeClassnameTags123Api.md -docs/File.md -docs/FileSchemaTestClass.md -docs/FormatTest.md -docs/HasOnlyReadOnly.md -docs/List.md -docs/MapTest.md -docs/MixedPropertiesAndAdditionalPropertiesClass.md -docs/Model200Response.md -docs/ModelReturn.md -docs/Name.md -docs/NumberOnly.md -docs/Order.md -docs/OuterComposite.md -docs/OuterEnum.md -docs/Pet.md -docs/PetApi.md -docs/ReadOnlyFirst.md -docs/SpecialModelName.md -docs/StoreApi.md -docs/Tag.md -docs/TypeHolderDefault.md -docs/TypeHolderExample.md -docs/User.md -docs/UserApi.md -docs/XmlItem.md -git_push.sh -mocha.opts -package.json -src/ApiClient.js -src/api/AnotherFakeApi.js -src/api/FakeApi.js -src/api/FakeClassnameTags123Api.js -src/api/PetApi.js -src/api/StoreApi.js -src/api/UserApi.js -src/index.js -src/model/AdditionalPropertiesAnyType.js -src/model/AdditionalPropertiesArray.js -src/model/AdditionalPropertiesBoolean.js -src/model/AdditionalPropertiesClass.js -src/model/AdditionalPropertiesInteger.js -src/model/AdditionalPropertiesNumber.js -src/model/AdditionalPropertiesObject.js -src/model/AdditionalPropertiesString.js -src/model/Animal.js -src/model/ApiResponse.js -src/model/ArrayOfArrayOfNumberOnly.js -src/model/ArrayOfNumberOnly.js -src/model/ArrayTest.js -src/model/BigCat.js -src/model/BigCatAllOf.js -src/model/Capitalization.js -src/model/Cat.js -src/model/CatAllOf.js -src/model/Category.js -src/model/ClassModel.js -src/model/Client.js -src/model/Dog.js -src/model/DogAllOf.js -src/model/EnumArrays.js -src/model/EnumClass.js -src/model/EnumTest.js -src/model/File.js -src/model/FileSchemaTestClass.js -src/model/FormatTest.js -src/model/HasOnlyReadOnly.js -src/model/List.js -src/model/MapTest.js -src/model/MixedPropertiesAndAdditionalPropertiesClass.js -src/model/Model200Response.js -src/model/ModelReturn.js -src/model/Name.js -src/model/NumberOnly.js -src/model/Order.js -src/model/OuterComposite.js -src/model/OuterEnum.js -src/model/Pet.js -src/model/ReadOnlyFirst.js -src/model/SpecialModelName.js -src/model/Tag.js -src/model/TypeHolderDefault.js -src/model/TypeHolderExample.js -src/model/User.js -src/model/XmlItem.js diff --git a/samples/client/petstore/javascript/.openapi-generator/VERSION b/samples/client/petstore/javascript/.openapi-generator/VERSION deleted file mode 100644 index d99e7162d01f..000000000000 --- a/samples/client/petstore/javascript/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -5.0.0-SNAPSHOT \ No newline at end of file diff --git a/samples/client/petstore/javascript/.travis.yml b/samples/client/petstore/javascript/.travis.yml deleted file mode 100644 index 1b1103e7bd1b..000000000000 --- a/samples/client/petstore/javascript/.travis.yml +++ /dev/null @@ -1,5 +0,0 @@ -language: node_js -cache: npm -node_js: - - "5" - - "5.11" diff --git a/samples/client/petstore/javascript/README.md b/samples/client/petstore/javascript/README.md deleted file mode 100644 index cb4c84dad87f..000000000000 --- a/samples/client/petstore/javascript/README.md +++ /dev/null @@ -1,241 +0,0 @@ -# open_api_petstore - -OpenApiPetstore - JavaScript client for open_api_petstore -This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - -- API version: 1.0.0 -- Package version: 1.0.0 -- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen - -## Installation - -### For [Node.js](https://nodejs.org/) - -#### npm - -To publish the library as a [npm](https://www.npmjs.com/), please follow the procedure in ["Publishing npm packages"](https://docs.npmjs.com/getting-started/publishing-npm-packages). - -Then install it via: - -```shell -npm install open_api_petstore --save -``` - -##### Local development - -To use the library locally without publishing to a remote npm registry, first install the dependencies by changing into the directory containing `package.json` (and this README). Let's call this `JAVASCRIPT_CLIENT_DIR`. Then run: - -```shell -npm install -``` - -Next, [link](https://docs.npmjs.com/cli/link) it globally in npm with the following, also from `JAVASCRIPT_CLIENT_DIR`: - -```shell -npm link -``` - -Finally, switch to the directory you want to use your open_api_petstore from, and run: - -```shell -npm link /path/to/ -``` - -You should now be able to `require('open_api_petstore')` in javascript files from the directory you ran the last command above from. - -### git - -If the library is hosted at a git repository, e.g. https://github.com/GIT_USER_ID/GIT_REPO_ID -then install it via: - -```shell - npm install GIT_USER_ID/GIT_REPO_ID --save -``` - -### For browser - -The library also works in the browser environment via npm and [browserify](http://browserify.org/). After following the above steps with Node.js and installing browserify with `npm install -g browserify`, perform the following (assuming *main.js* is your entry file, that's to say your javascript file where you actually use this library): - -```shell -browserify main.js > bundle.js -``` - -Then include *bundle.js* in the HTML pages. - -### Webpack Configuration - -Using Webpack you may encounter the following error: "Module not found: Error: -Cannot resolve module", most certainly you should disable AMD loader. Add/merge -the following section to your webpack config: - -```javascript -module: { - rules: [ - { - parser: { - amd: false - } - } - ] -} -``` - -## Getting Started - -Please follow the [installation](#installation) instruction and execute the following JS code: - -```javascript -var OpenApiPetstore = require('open_api_petstore'); - - -var api = new OpenApiPetstore.AnotherFakeApi() -var body = new OpenApiPetstore.Client(); // {Client} client model - -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -api.call123testSpecialTags(body, callback); - -``` - -## Documentation for API Endpoints - -All URIs are relative to *http://petstore.swagger.io:80/v2* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*OpenApiPetstore.AnotherFakeApi* | [**call123testSpecialTags**](docs/AnotherFakeApi.md#call123testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags -*OpenApiPetstore.FakeApi* | [**createXmlItem**](docs/FakeApi.md#createXmlItem) | **POST** /fake/create_xml_item | creates an XmlItem -*OpenApiPetstore.FakeApi* | [**fakeOuterBooleanSerialize**](docs/FakeApi.md#fakeOuterBooleanSerialize) | **POST** /fake/outer/boolean | -*OpenApiPetstore.FakeApi* | [**fakeOuterCompositeSerialize**](docs/FakeApi.md#fakeOuterCompositeSerialize) | **POST** /fake/outer/composite | -*OpenApiPetstore.FakeApi* | [**fakeOuterNumberSerialize**](docs/FakeApi.md#fakeOuterNumberSerialize) | **POST** /fake/outer/number | -*OpenApiPetstore.FakeApi* | [**fakeOuterStringSerialize**](docs/FakeApi.md#fakeOuterStringSerialize) | **POST** /fake/outer/string | -*OpenApiPetstore.FakeApi* | [**testBodyWithFileSchema**](docs/FakeApi.md#testBodyWithFileSchema) | **PUT** /fake/body-with-file-schema | -*OpenApiPetstore.FakeApi* | [**testBodyWithQueryParams**](docs/FakeApi.md#testBodyWithQueryParams) | **PUT** /fake/body-with-query-params | -*OpenApiPetstore.FakeApi* | [**testClientModel**](docs/FakeApi.md#testClientModel) | **PATCH** /fake | To test \"client\" model -*OpenApiPetstore.FakeApi* | [**testEndpointParameters**](docs/FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 -*OpenApiPetstore.FakeApi* | [**testEnumParameters**](docs/FakeApi.md#testEnumParameters) | **GET** /fake | To test enum parameters -*OpenApiPetstore.FakeApi* | [**testGroupParameters**](docs/FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) -*OpenApiPetstore.FakeApi* | [**testInlineAdditionalProperties**](docs/FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties -*OpenApiPetstore.FakeApi* | [**testJsonFormData**](docs/FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data -*OpenApiPetstore.FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | -*OpenApiPetstore.FakeClassnameTags123Api* | [**testClassname**](docs/FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case -*OpenApiPetstore.PetApi* | [**addPet**](docs/PetApi.md#addPet) | **POST** /pet | Add a new pet to the store -*OpenApiPetstore.PetApi* | [**deletePet**](docs/PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet -*OpenApiPetstore.PetApi* | [**findPetsByStatus**](docs/PetApi.md#findPetsByStatus) | **GET** /pet/findByStatus | Finds Pets by status -*OpenApiPetstore.PetApi* | [**findPetsByTags**](docs/PetApi.md#findPetsByTags) | **GET** /pet/findByTags | Finds Pets by tags -*OpenApiPetstore.PetApi* | [**getPetById**](docs/PetApi.md#getPetById) | **GET** /pet/{petId} | Find pet by ID -*OpenApiPetstore.PetApi* | [**updatePet**](docs/PetApi.md#updatePet) | **PUT** /pet | Update an existing pet -*OpenApiPetstore.PetApi* | [**updatePetWithForm**](docs/PetApi.md#updatePetWithForm) | **POST** /pet/{petId} | Updates a pet in the store with form data -*OpenApiPetstore.PetApi* | [**uploadFile**](docs/PetApi.md#uploadFile) | **POST** /pet/{petId}/uploadImage | uploads an image -*OpenApiPetstore.PetApi* | [**uploadFileWithRequiredFile**](docs/PetApi.md#uploadFileWithRequiredFile) | **POST** /fake/{petId}/uploadImageWithRequiredFile | uploads an image (required) -*OpenApiPetstore.StoreApi* | [**deleteOrder**](docs/StoreApi.md#deleteOrder) | **DELETE** /store/order/{order_id} | Delete purchase order by ID -*OpenApiPetstore.StoreApi* | [**getInventory**](docs/StoreApi.md#getInventory) | **GET** /store/inventory | Returns pet inventories by status -*OpenApiPetstore.StoreApi* | [**getOrderById**](docs/StoreApi.md#getOrderById) | **GET** /store/order/{order_id} | Find purchase order by ID -*OpenApiPetstore.StoreApi* | [**placeOrder**](docs/StoreApi.md#placeOrder) | **POST** /store/order | Place an order for a pet -*OpenApiPetstore.UserApi* | [**createUser**](docs/UserApi.md#createUser) | **POST** /user | Create user -*OpenApiPetstore.UserApi* | [**createUsersWithArrayInput**](docs/UserApi.md#createUsersWithArrayInput) | **POST** /user/createWithArray | Creates list of users with given input array -*OpenApiPetstore.UserApi* | [**createUsersWithListInput**](docs/UserApi.md#createUsersWithListInput) | **POST** /user/createWithList | Creates list of users with given input array -*OpenApiPetstore.UserApi* | [**deleteUser**](docs/UserApi.md#deleteUser) | **DELETE** /user/{username} | Delete user -*OpenApiPetstore.UserApi* | [**getUserByName**](docs/UserApi.md#getUserByName) | **GET** /user/{username} | Get user by user name -*OpenApiPetstore.UserApi* | [**loginUser**](docs/UserApi.md#loginUser) | **GET** /user/login | Logs user into the system -*OpenApiPetstore.UserApi* | [**logoutUser**](docs/UserApi.md#logoutUser) | **GET** /user/logout | Logs out current logged in user session -*OpenApiPetstore.UserApi* | [**updateUser**](docs/UserApi.md#updateUser) | **PUT** /user/{username} | Updated user - - -## Documentation for Models - - - [OpenApiPetstore.AdditionalPropertiesAnyType](docs/AdditionalPropertiesAnyType.md) - - [OpenApiPetstore.AdditionalPropertiesArray](docs/AdditionalPropertiesArray.md) - - [OpenApiPetstore.AdditionalPropertiesBoolean](docs/AdditionalPropertiesBoolean.md) - - [OpenApiPetstore.AdditionalPropertiesClass](docs/AdditionalPropertiesClass.md) - - [OpenApiPetstore.AdditionalPropertiesInteger](docs/AdditionalPropertiesInteger.md) - - [OpenApiPetstore.AdditionalPropertiesNumber](docs/AdditionalPropertiesNumber.md) - - [OpenApiPetstore.AdditionalPropertiesObject](docs/AdditionalPropertiesObject.md) - - [OpenApiPetstore.AdditionalPropertiesString](docs/AdditionalPropertiesString.md) - - [OpenApiPetstore.Animal](docs/Animal.md) - - [OpenApiPetstore.ApiResponse](docs/ApiResponse.md) - - [OpenApiPetstore.ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md) - - [OpenApiPetstore.ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md) - - [OpenApiPetstore.ArrayTest](docs/ArrayTest.md) - - [OpenApiPetstore.BigCat](docs/BigCat.md) - - [OpenApiPetstore.BigCatAllOf](docs/BigCatAllOf.md) - - [OpenApiPetstore.Capitalization](docs/Capitalization.md) - - [OpenApiPetstore.Cat](docs/Cat.md) - - [OpenApiPetstore.CatAllOf](docs/CatAllOf.md) - - [OpenApiPetstore.Category](docs/Category.md) - - [OpenApiPetstore.ClassModel](docs/ClassModel.md) - - [OpenApiPetstore.Client](docs/Client.md) - - [OpenApiPetstore.Dog](docs/Dog.md) - - [OpenApiPetstore.DogAllOf](docs/DogAllOf.md) - - [OpenApiPetstore.EnumArrays](docs/EnumArrays.md) - - [OpenApiPetstore.EnumClass](docs/EnumClass.md) - - [OpenApiPetstore.EnumTest](docs/EnumTest.md) - - [OpenApiPetstore.File](docs/File.md) - - [OpenApiPetstore.FileSchemaTestClass](docs/FileSchemaTestClass.md) - - [OpenApiPetstore.FormatTest](docs/FormatTest.md) - - [OpenApiPetstore.HasOnlyReadOnly](docs/HasOnlyReadOnly.md) - - [OpenApiPetstore.List](docs/List.md) - - [OpenApiPetstore.MapTest](docs/MapTest.md) - - [OpenApiPetstore.MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md) - - [OpenApiPetstore.Model200Response](docs/Model200Response.md) - - [OpenApiPetstore.ModelReturn](docs/ModelReturn.md) - - [OpenApiPetstore.Name](docs/Name.md) - - [OpenApiPetstore.NumberOnly](docs/NumberOnly.md) - - [OpenApiPetstore.Order](docs/Order.md) - - [OpenApiPetstore.OuterComposite](docs/OuterComposite.md) - - [OpenApiPetstore.OuterEnum](docs/OuterEnum.md) - - [OpenApiPetstore.Pet](docs/Pet.md) - - [OpenApiPetstore.ReadOnlyFirst](docs/ReadOnlyFirst.md) - - [OpenApiPetstore.SpecialModelName](docs/SpecialModelName.md) - - [OpenApiPetstore.Tag](docs/Tag.md) - - [OpenApiPetstore.TypeHolderDefault](docs/TypeHolderDefault.md) - - [OpenApiPetstore.TypeHolderExample](docs/TypeHolderExample.md) - - [OpenApiPetstore.User](docs/User.md) - - [OpenApiPetstore.XmlItem](docs/XmlItem.md) - - -## Documentation for Authorization - - - -### api_key - - -- **Type**: API key -- **API key parameter name**: api_key -- **Location**: HTTP header - - - -### api_key_query - - -- **Type**: API key -- **API key parameter name**: api_key_query -- **Location**: URL query string - - - -### http_basic_test - - -- **Type**: HTTP basic authentication - - - -### petstore_auth - - -- **Type**: OAuth -- **Flow**: implicit -- **Authorization URL**: http://petstore.swagger.io/api/oauth/dialog -- **Scopes**: - - write:pets: modify pets in your account - - read:pets: read your pets - diff --git a/samples/client/petstore/javascript/docs/AdditionalPropertiesAnyType.md b/samples/client/petstore/javascript/docs/AdditionalPropertiesAnyType.md deleted file mode 100644 index 4b14f26ad125..000000000000 --- a/samples/client/petstore/javascript/docs/AdditionalPropertiesAnyType.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.AdditionalPropertiesAnyType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | | [optional] - - diff --git a/samples/client/petstore/javascript/docs/AdditionalPropertiesArray.md b/samples/client/petstore/javascript/docs/AdditionalPropertiesArray.md deleted file mode 100644 index b99e8820d27a..000000000000 --- a/samples/client/petstore/javascript/docs/AdditionalPropertiesArray.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.AdditionalPropertiesArray - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | | [optional] - - diff --git a/samples/client/petstore/javascript/docs/AdditionalPropertiesBoolean.md b/samples/client/petstore/javascript/docs/AdditionalPropertiesBoolean.md deleted file mode 100644 index db3f089ce98e..000000000000 --- a/samples/client/petstore/javascript/docs/AdditionalPropertiesBoolean.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.AdditionalPropertiesBoolean - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | | [optional] - - diff --git a/samples/client/petstore/javascript/docs/AdditionalPropertiesClass.md b/samples/client/petstore/javascript/docs/AdditionalPropertiesClass.md deleted file mode 100644 index 9f8a26bcc612..000000000000 --- a/samples/client/petstore/javascript/docs/AdditionalPropertiesClass.md +++ /dev/null @@ -1,19 +0,0 @@ -# OpenApiPetstore.AdditionalPropertiesClass - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**mapString** | **{String: String}** | | [optional] -**mapNumber** | **{String: Number}** | | [optional] -**mapInteger** | **{String: Number}** | | [optional] -**mapBoolean** | **{String: Boolean}** | | [optional] -**mapArrayInteger** | **{String: [Number]}** | | [optional] -**mapArrayAnytype** | **{String: [Object]}** | | [optional] -**mapMapString** | **{String: {String: String}}** | | [optional] -**mapMapAnytype** | **{String: {String: Object}}** | | [optional] -**anytype1** | **Object** | | [optional] -**anytype2** | **Object** | | [optional] -**anytype3** | **Object** | | [optional] - - diff --git a/samples/client/petstore/javascript/docs/AdditionalPropertiesInteger.md b/samples/client/petstore/javascript/docs/AdditionalPropertiesInteger.md deleted file mode 100644 index be98887371ae..000000000000 --- a/samples/client/petstore/javascript/docs/AdditionalPropertiesInteger.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.AdditionalPropertiesInteger - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | | [optional] - - diff --git a/samples/client/petstore/javascript/docs/AdditionalPropertiesNumber.md b/samples/client/petstore/javascript/docs/AdditionalPropertiesNumber.md deleted file mode 100644 index 6f4273d6eb36..000000000000 --- a/samples/client/petstore/javascript/docs/AdditionalPropertiesNumber.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.AdditionalPropertiesNumber - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | | [optional] - - diff --git a/samples/client/petstore/javascript/docs/AdditionalPropertiesObject.md b/samples/client/petstore/javascript/docs/AdditionalPropertiesObject.md deleted file mode 100644 index 58a92784180d..000000000000 --- a/samples/client/petstore/javascript/docs/AdditionalPropertiesObject.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.AdditionalPropertiesObject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | | [optional] - - diff --git a/samples/client/petstore/javascript/docs/AdditionalPropertiesString.md b/samples/client/petstore/javascript/docs/AdditionalPropertiesString.md deleted file mode 100644 index ee6ad171eef5..000000000000 --- a/samples/client/petstore/javascript/docs/AdditionalPropertiesString.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.AdditionalPropertiesString - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | | [optional] - - diff --git a/samples/client/petstore/javascript/docs/Animal.md b/samples/client/petstore/javascript/docs/Animal.md deleted file mode 100644 index 483c89a1ab30..000000000000 --- a/samples/client/petstore/javascript/docs/Animal.md +++ /dev/null @@ -1,10 +0,0 @@ -# OpenApiPetstore.Animal - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**className** | **String** | | -**color** | **String** | | [optional] [default to 'red'] - - diff --git a/samples/client/petstore/javascript/docs/AnotherFakeApi.md b/samples/client/petstore/javascript/docs/AnotherFakeApi.md deleted file mode 100644 index 702eebc26503..000000000000 --- a/samples/client/petstore/javascript/docs/AnotherFakeApi.md +++ /dev/null @@ -1,56 +0,0 @@ -# OpenApiPetstore.AnotherFakeApi - -All URIs are relative to *http://petstore.swagger.io:80/v2* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**call123testSpecialTags**](AnotherFakeApi.md#call123testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags - - - -## call123testSpecialTags - -> Client call123testSpecialTags(body) - -To test special tags - -To test special tags and operation ID starting with number - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); - -var apiInstance = new OpenApiPetstore.AnotherFakeApi(); -var body = new OpenApiPetstore.Client(); // Client | client model -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.call123testSpecialTags(body, callback); -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**Client**](Client.md)| client model | - -### Return type - -[**Client**](Client.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - diff --git a/samples/client/petstore/javascript/docs/ApiResponse.md b/samples/client/petstore/javascript/docs/ApiResponse.md deleted file mode 100644 index 0dc945d60766..000000000000 --- a/samples/client/petstore/javascript/docs/ApiResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# OpenApiPetstore.ApiResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **Number** | | [optional] -**type** | **String** | | [optional] -**message** | **String** | | [optional] - - diff --git a/samples/client/petstore/javascript/docs/ArrayOfArrayOfNumberOnly.md b/samples/client/petstore/javascript/docs/ArrayOfArrayOfNumberOnly.md deleted file mode 100644 index c321c0985f3a..000000000000 --- a/samples/client/petstore/javascript/docs/ArrayOfArrayOfNumberOnly.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.ArrayOfArrayOfNumberOnly - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**arrayArrayNumber** | **[[Number]]** | | [optional] - - diff --git a/samples/client/petstore/javascript/docs/ArrayOfNumberOnly.md b/samples/client/petstore/javascript/docs/ArrayOfNumberOnly.md deleted file mode 100644 index b83e136d978f..000000000000 --- a/samples/client/petstore/javascript/docs/ArrayOfNumberOnly.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.ArrayOfNumberOnly - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**arrayNumber** | **[Number]** | | [optional] - - diff --git a/samples/client/petstore/javascript/docs/ArrayTest.md b/samples/client/petstore/javascript/docs/ArrayTest.md deleted file mode 100644 index 711b53a520f5..000000000000 --- a/samples/client/petstore/javascript/docs/ArrayTest.md +++ /dev/null @@ -1,11 +0,0 @@ -# OpenApiPetstore.ArrayTest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**arrayOfString** | **[String]** | | [optional] -**arrayArrayOfInteger** | **[[Number]]** | | [optional] -**arrayArrayOfModel** | **[[ReadOnlyFirst]]** | | [optional] - - diff --git a/samples/client/petstore/javascript/docs/BigCat.md b/samples/client/petstore/javascript/docs/BigCat.md deleted file mode 100644 index bbd79b2ba1bb..000000000000 --- a/samples/client/petstore/javascript/docs/BigCat.md +++ /dev/null @@ -1,24 +0,0 @@ -# OpenApiPetstore.BigCat - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**kind** | **String** | | [optional] - - - -## Enum: KindEnum - - -* `lions` (value: `"lions"`) - -* `tigers` (value: `"tigers"`) - -* `leopards` (value: `"leopards"`) - -* `jaguars` (value: `"jaguars"`) - - - - diff --git a/samples/client/petstore/javascript/docs/BigCatAllOf.md b/samples/client/petstore/javascript/docs/BigCatAllOf.md deleted file mode 100644 index c5e83bfdaebb..000000000000 --- a/samples/client/petstore/javascript/docs/BigCatAllOf.md +++ /dev/null @@ -1,24 +0,0 @@ -# OpenApiPetstore.BigCatAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**kind** | **String** | | [optional] - - - -## Enum: KindEnum - - -* `lions` (value: `"lions"`) - -* `tigers` (value: `"tigers"`) - -* `leopards` (value: `"leopards"`) - -* `jaguars` (value: `"jaguars"`) - - - - diff --git a/samples/client/petstore/javascript/docs/Capitalization.md b/samples/client/petstore/javascript/docs/Capitalization.md deleted file mode 100644 index 3bbc5d491fc1..000000000000 --- a/samples/client/petstore/javascript/docs/Capitalization.md +++ /dev/null @@ -1,14 +0,0 @@ -# OpenApiPetstore.Capitalization - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**smallCamel** | **String** | | [optional] -**capitalCamel** | **String** | | [optional] -**smallSnake** | **String** | | [optional] -**capitalSnake** | **String** | | [optional] -**sCAETHFlowPoints** | **String** | | [optional] -**ATT_NAME** | **String** | Name of the pet | [optional] - - diff --git a/samples/client/petstore/javascript/docs/Cat.md b/samples/client/petstore/javascript/docs/Cat.md deleted file mode 100644 index 652bca4ed073..000000000000 --- a/samples/client/petstore/javascript/docs/Cat.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.Cat - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**declawed** | **Boolean** | | [optional] - - diff --git a/samples/client/petstore/javascript/docs/CatAllOf.md b/samples/client/petstore/javascript/docs/CatAllOf.md deleted file mode 100644 index 3b8274c01202..000000000000 --- a/samples/client/petstore/javascript/docs/CatAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.CatAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**declawed** | **Boolean** | | [optional] - - diff --git a/samples/client/petstore/javascript/docs/Category.md b/samples/client/petstore/javascript/docs/Category.md deleted file mode 100644 index 2de44aa03ddc..000000000000 --- a/samples/client/petstore/javascript/docs/Category.md +++ /dev/null @@ -1,10 +0,0 @@ -# OpenApiPetstore.Category - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | | [optional] -**name** | **String** | | [default to 'default-name'] - - diff --git a/samples/client/petstore/javascript/docs/ClassModel.md b/samples/client/petstore/javascript/docs/ClassModel.md deleted file mode 100644 index dd90930dade3..000000000000 --- a/samples/client/petstore/javascript/docs/ClassModel.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.ClassModel - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**_class** | **String** | | [optional] - - diff --git a/samples/client/petstore/javascript/docs/Client.md b/samples/client/petstore/javascript/docs/Client.md deleted file mode 100644 index 1164b7043191..000000000000 --- a/samples/client/petstore/javascript/docs/Client.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.Client - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**client** | **String** | | [optional] - - diff --git a/samples/client/petstore/javascript/docs/Dog.md b/samples/client/petstore/javascript/docs/Dog.md deleted file mode 100644 index fd3b9f7c77ce..000000000000 --- a/samples/client/petstore/javascript/docs/Dog.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.Dog - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**breed** | **String** | | [optional] - - diff --git a/samples/client/petstore/javascript/docs/DogAllOf.md b/samples/client/petstore/javascript/docs/DogAllOf.md deleted file mode 100644 index 8a6402940735..000000000000 --- a/samples/client/petstore/javascript/docs/DogAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.DogAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**breed** | **String** | | [optional] - - diff --git a/samples/client/petstore/javascript/docs/EnumArrays.md b/samples/client/petstore/javascript/docs/EnumArrays.md deleted file mode 100644 index 4926385b3ff8..000000000000 --- a/samples/client/petstore/javascript/docs/EnumArrays.md +++ /dev/null @@ -1,32 +0,0 @@ -# OpenApiPetstore.EnumArrays - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**justSymbol** | **String** | | [optional] -**arrayEnum** | **[String]** | | [optional] - - - -## Enum: JustSymbolEnum - - -* `GREATER_THAN_OR_EQUAL_TO` (value: `">="`) - -* `DOLLAR` (value: `"$"`) - - - - - -## Enum: [ArrayEnumEnum] - - -* `fish` (value: `"fish"`) - -* `crab` (value: `"crab"`) - - - - diff --git a/samples/client/petstore/javascript/docs/EnumClass.md b/samples/client/petstore/javascript/docs/EnumClass.md deleted file mode 100644 index cef9bb57a56c..000000000000 --- a/samples/client/petstore/javascript/docs/EnumClass.md +++ /dev/null @@ -1,12 +0,0 @@ -# OpenApiPetstore.EnumClass - -## Enum - - -* `_abc` (value: `"_abc"`) - -* `-efg` (value: `"-efg"`) - -* `(xyz)` (value: `"(xyz)"`) - - diff --git a/samples/client/petstore/javascript/docs/EnumTest.md b/samples/client/petstore/javascript/docs/EnumTest.md deleted file mode 100644 index c1504aeb4f72..000000000000 --- a/samples/client/petstore/javascript/docs/EnumTest.md +++ /dev/null @@ -1,61 +0,0 @@ -# OpenApiPetstore.EnumTest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**enumString** | **String** | | [optional] -**enumStringRequired** | **String** | | -**enumInteger** | **Number** | | [optional] -**enumNumber** | **Number** | | [optional] -**outerEnum** | [**OuterEnum**](OuterEnum.md) | | [optional] - - - -## Enum: EnumStringEnum - - -* `UPPER` (value: `"UPPER"`) - -* `lower` (value: `"lower"`) - -* `empty` (value: `""`) - - - - - -## Enum: EnumStringRequiredEnum - - -* `UPPER` (value: `"UPPER"`) - -* `lower` (value: `"lower"`) - -* `empty` (value: `""`) - - - - - -## Enum: EnumIntegerEnum - - -* `1` (value: `1`) - -* `-1` (value: `-1`) - - - - - -## Enum: EnumNumberEnum - - -* `1.1` (value: `1.1`) - -* `-1.2` (value: `-1.2`) - - - - diff --git a/samples/client/petstore/javascript/docs/FakeApi.md b/samples/client/petstore/javascript/docs/FakeApi.md deleted file mode 100644 index b613566621dc..000000000000 --- a/samples/client/petstore/javascript/docs/FakeApi.md +++ /dev/null @@ -1,755 +0,0 @@ -# OpenApiPetstore.FakeApi - -All URIs are relative to *http://petstore.swagger.io:80/v2* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createXmlItem**](FakeApi.md#createXmlItem) | **POST** /fake/create_xml_item | creates an XmlItem -[**fakeOuterBooleanSerialize**](FakeApi.md#fakeOuterBooleanSerialize) | **POST** /fake/outer/boolean | -[**fakeOuterCompositeSerialize**](FakeApi.md#fakeOuterCompositeSerialize) | **POST** /fake/outer/composite | -[**fakeOuterNumberSerialize**](FakeApi.md#fakeOuterNumberSerialize) | **POST** /fake/outer/number | -[**fakeOuterStringSerialize**](FakeApi.md#fakeOuterStringSerialize) | **POST** /fake/outer/string | -[**testBodyWithFileSchema**](FakeApi.md#testBodyWithFileSchema) | **PUT** /fake/body-with-file-schema | -[**testBodyWithQueryParams**](FakeApi.md#testBodyWithQueryParams) | **PUT** /fake/body-with-query-params | -[**testClientModel**](FakeApi.md#testClientModel) | **PATCH** /fake | To test \"client\" model -[**testEndpointParameters**](FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 -[**testEnumParameters**](FakeApi.md#testEnumParameters) | **GET** /fake | To test enum parameters -[**testGroupParameters**](FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) -[**testInlineAdditionalProperties**](FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties -[**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data -[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | - - - -## createXmlItem - -> createXmlItem(xmlItem) - -creates an XmlItem - -this route creates an XmlItem - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); - -var apiInstance = new OpenApiPetstore.FakeApi(); -var xmlItem = new OpenApiPetstore.XmlItem(); // XmlItem | XmlItem Body -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully.'); - } -}; -apiInstance.createXmlItem(xmlItem, callback); -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **xmlItem** | [**XmlItem**](XmlItem.md)| XmlItem Body | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/xml, application/xml; charset=utf-8, application/xml; charset=utf-16, text/xml, text/xml; charset=utf-8, text/xml; charset=utf-16 -- **Accept**: Not defined - - -## fakeOuterBooleanSerialize - -> Boolean fakeOuterBooleanSerialize(opts) - - - -Test serialization of outer boolean types - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); - -var apiInstance = new OpenApiPetstore.FakeApi(); -var opts = { - 'body': true // Boolean | Input boolean as post body -}; -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.fakeOuterBooleanSerialize(opts, callback); -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **Boolean**| Input boolean as post body | [optional] - -### Return type - -**Boolean** - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: */* - - -## fakeOuterCompositeSerialize - -> OuterComposite fakeOuterCompositeSerialize(opts) - - - -Test serialization of object with outer number type - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); - -var apiInstance = new OpenApiPetstore.FakeApi(); -var opts = { - 'body': new OpenApiPetstore.OuterComposite() // OuterComposite | Input composite as post body -}; -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.fakeOuterCompositeSerialize(opts, callback); -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional] - -### Return type - -[**OuterComposite**](OuterComposite.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: */* - - -## fakeOuterNumberSerialize - -> Number fakeOuterNumberSerialize(opts) - - - -Test serialization of outer number types - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); - -var apiInstance = new OpenApiPetstore.FakeApi(); -var opts = { - 'body': 3.4 // Number | Input number as post body -}; -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.fakeOuterNumberSerialize(opts, callback); -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **Number**| Input number as post body | [optional] - -### Return type - -**Number** - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: */* - - -## fakeOuterStringSerialize - -> String fakeOuterStringSerialize(opts) - - - -Test serialization of outer string types - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); - -var apiInstance = new OpenApiPetstore.FakeApi(); -var opts = { - 'body': "body_example" // String | Input string as post body -}; -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.fakeOuterStringSerialize(opts, callback); -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **String**| Input string as post body | [optional] - -### Return type - -**String** - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: */* - - -## testBodyWithFileSchema - -> testBodyWithFileSchema(body) - - - -For this test, the body for this request much reference a schema named `File`. - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); - -var apiInstance = new OpenApiPetstore.FakeApi(); -var body = new OpenApiPetstore.FileSchemaTestClass(); // FileSchemaTestClass | -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully.'); - } -}; -apiInstance.testBodyWithFileSchema(body, callback); -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: Not defined - - -## testBodyWithQueryParams - -> testBodyWithQueryParams(query, body) - - - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); - -var apiInstance = new OpenApiPetstore.FakeApi(); -var query = "query_example"; // String | -var body = new OpenApiPetstore.User(); // User | -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully.'); - } -}; -apiInstance.testBodyWithQueryParams(query, body, callback); -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **query** | **String**| | - **body** | [**User**](User.md)| | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: Not defined - - -## testClientModel - -> Client testClientModel(body) - -To test \"client\" model - -To test \"client\" model - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); - -var apiInstance = new OpenApiPetstore.FakeApi(); -var body = new OpenApiPetstore.Client(); // Client | client model -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.testClientModel(body, callback); -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**Client**](Client.md)| client model | - -### Return type - -[**Client**](Client.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## testEndpointParameters - -> testEndpointParameters(_number, _double, patternWithoutDelimiter, _byte, opts) - -Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - -Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); -var defaultClient = OpenApiPetstore.ApiClient.instance; -// Configure HTTP basic authorization: http_basic_test -var http_basic_test = defaultClient.authentications['http_basic_test']; -http_basic_test.username = 'YOUR USERNAME'; -http_basic_test.password = 'YOUR PASSWORD'; - -var apiInstance = new OpenApiPetstore.FakeApi(); -var _number = 3.4; // Number | None -var _double = 3.4; // Number | None -var patternWithoutDelimiter = "patternWithoutDelimiter_example"; // String | None -var _byte = null; // Blob | None -var opts = { - 'integer': 56, // Number | None - 'int32': 56, // Number | None - 'int64': 789, // Number | None - '_float': 3.4, // Number | None - '_string': "_string_example", // String | None - 'binary': "/path/to/file", // File | None - '_date': new Date("2013-10-20"), // Date | None - 'dateTime': new Date("2013-10-20T19:20:30+01:00"), // Date | None - 'password': "password_example", // String | None - 'callback': "callback_example" // String | None -}; -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully.'); - } -}; -apiInstance.testEndpointParameters(_number, _double, patternWithoutDelimiter, _byte, opts, callback); -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **_number** | **Number**| None | - **_double** | **Number**| None | - **patternWithoutDelimiter** | **String**| None | - **_byte** | **Blob**| None | - **integer** | **Number**| None | [optional] - **int32** | **Number**| None | [optional] - **int64** | **Number**| None | [optional] - **_float** | **Number**| None | [optional] - **_string** | **String**| None | [optional] - **binary** | **File**| None | [optional] - **_date** | **Date**| None | [optional] - **dateTime** | **Date**| None | [optional] - **password** | **String**| None | [optional] - **callback** | **String**| None | [optional] - -### Return type - -null (empty response body) - -### Authorization - -[http_basic_test](../README.md#http_basic_test) - -### HTTP request headers - -- **Content-Type**: application/x-www-form-urlencoded -- **Accept**: Not defined - - -## testEnumParameters - -> testEnumParameters(opts) - -To test enum parameters - -To test enum parameters - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); - -var apiInstance = new OpenApiPetstore.FakeApi(); -var opts = { - 'enumHeaderStringArray': ["'$'"], // [String] | Header parameter enum test (string array) - 'enumHeaderString': "'-efg'", // String | Header parameter enum test (string) - 'enumQueryStringArray': ["'$'"], // [String] | Query parameter enum test (string array) - 'enumQueryString': "'-efg'", // String | Query parameter enum test (string) - 'enumQueryInteger': 56, // Number | Query parameter enum test (double) - 'enumQueryDouble': 3.4, // Number | Query parameter enum test (double) - 'enumFormStringArray': "'$'", // [String] | Form parameter enum test (string array) - 'enumFormString': "'-efg'" // String | Form parameter enum test (string) -}; -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully.'); - } -}; -apiInstance.testEnumParameters(opts, callback); -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **enumHeaderStringArray** | [**[String]**](String.md)| Header parameter enum test (string array) | [optional] - **enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to '-efg'] - **enumQueryStringArray** | [**[String]**](String.md)| Query parameter enum test (string array) | [optional] - **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to '-efg'] - **enumQueryInteger** | **Number**| Query parameter enum test (double) | [optional] - **enumQueryDouble** | **Number**| Query parameter enum test (double) | [optional] - **enumFormStringArray** | [**[String]**](String.md)| Form parameter enum test (string array) | [optional] [default to '$'] - **enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to '-efg'] - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/x-www-form-urlencoded -- **Accept**: Not defined - - -## testGroupParameters - -> testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, opts) - -Fake endpoint to test group parameters (optional) - -Fake endpoint to test group parameters (optional) - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); - -var apiInstance = new OpenApiPetstore.FakeApi(); -var requiredStringGroup = 56; // Number | Required String in group parameters -var requiredBooleanGroup = true; // Boolean | Required Boolean in group parameters -var requiredInt64Group = 789; // Number | Required Integer in group parameters -var opts = { - 'stringGroup': 56, // Number | String in group parameters - 'booleanGroup': true, // Boolean | Boolean in group parameters - 'int64Group': 789 // Number | Integer in group parameters -}; -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully.'); - } -}; -apiInstance.testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, opts, callback); -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **requiredStringGroup** | **Number**| Required String in group parameters | - **requiredBooleanGroup** | **Boolean**| Required Boolean in group parameters | - **requiredInt64Group** | **Number**| Required Integer in group parameters | - **stringGroup** | **Number**| String in group parameters | [optional] - **booleanGroup** | **Boolean**| Boolean in group parameters | [optional] - **int64Group** | **Number**| Integer in group parameters | [optional] - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - - -## testInlineAdditionalProperties - -> testInlineAdditionalProperties(param) - -test inline additionalProperties - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); - -var apiInstance = new OpenApiPetstore.FakeApi(); -var param = {key: "null"}; // {String: String} | request body -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully.'); - } -}; -apiInstance.testInlineAdditionalProperties(param, callback); -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **param** | [**{String: String}**](String.md)| request body | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: Not defined - - -## testJsonFormData - -> testJsonFormData(param, param2) - -test json serialization of form data - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); - -var apiInstance = new OpenApiPetstore.FakeApi(); -var param = "param_example"; // String | field1 -var param2 = "param2_example"; // String | field2 -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully.'); - } -}; -apiInstance.testJsonFormData(param, param2, callback); -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **param** | **String**| field1 | - **param2** | **String**| field2 | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/x-www-form-urlencoded -- **Accept**: Not defined - - -## testQueryParameterCollectionFormat - -> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context) - - - -To test the collection format in query parameters - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); - -var apiInstance = new OpenApiPetstore.FakeApi(); -var pipe = ["null"]; // [String] | -var ioutil = ["null"]; // [String] | -var http = ["null"]; // [String] | -var url = ["null"]; // [String] | -var context = ["null"]; // [String] | -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully.'); - } -}; -apiInstance.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, callback); -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pipe** | [**[String]**](String.md)| | - **ioutil** | [**[String]**](String.md)| | - **http** | [**[String]**](String.md)| | - **url** | [**[String]**](String.md)| | - **context** | [**[String]**](String.md)| | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - diff --git a/samples/client/petstore/javascript/docs/FakeClassnameTags123Api.md b/samples/client/petstore/javascript/docs/FakeClassnameTags123Api.md deleted file mode 100644 index 6dbc67f58ae7..000000000000 --- a/samples/client/petstore/javascript/docs/FakeClassnameTags123Api.md +++ /dev/null @@ -1,62 +0,0 @@ -# OpenApiPetstore.FakeClassnameTags123Api - -All URIs are relative to *http://petstore.swagger.io:80/v2* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**testClassname**](FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case - - - -## testClassname - -> Client testClassname(body) - -To test class name in snake case - -To test class name in snake case - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); -var defaultClient = OpenApiPetstore.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 OpenApiPetstore.FakeClassnameTags123Api(); -var body = new OpenApiPetstore.Client(); // Client | client model -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.testClassname(body, callback); -``` - -### 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/docs/File.md b/samples/client/petstore/javascript/docs/File.md deleted file mode 100644 index 51162c3e0da3..000000000000 --- a/samples/client/petstore/javascript/docs/File.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.File - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**sourceURI** | **String** | Test capitalization | [optional] - - diff --git a/samples/client/petstore/javascript/docs/FileSchemaTestClass.md b/samples/client/petstore/javascript/docs/FileSchemaTestClass.md deleted file mode 100644 index 6f28c4976f10..000000000000 --- a/samples/client/petstore/javascript/docs/FileSchemaTestClass.md +++ /dev/null @@ -1,10 +0,0 @@ -# OpenApiPetstore.FileSchemaTestClass - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**file** | **File** | | [optional] -**files** | **[File]** | | [optional] - - diff --git a/samples/client/petstore/javascript/docs/FormatTest.md b/samples/client/petstore/javascript/docs/FormatTest.md deleted file mode 100644 index d0df4b552e5a..000000000000 --- a/samples/client/petstore/javascript/docs/FormatTest.md +++ /dev/null @@ -1,22 +0,0 @@ -# OpenApiPetstore.FormatTest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**integer** | **Number** | | [optional] -**int32** | **Number** | | [optional] -**int64** | **Number** | | [optional] -**_number** | **Number** | | -**_float** | **Number** | | [optional] -**_double** | **Number** | | [optional] -**_string** | **String** | | [optional] -**_byte** | **Blob** | | -**binary** | **File** | | [optional] -**_date** | **Date** | | -**dateTime** | **Date** | | [optional] -**uuid** | **String** | | [optional] -**password** | **String** | | -**bigDecimal** | **Number** | | [optional] - - diff --git a/samples/client/petstore/javascript/docs/HasOnlyReadOnly.md b/samples/client/petstore/javascript/docs/HasOnlyReadOnly.md deleted file mode 100644 index bfe08a1baee2..000000000000 --- a/samples/client/petstore/javascript/docs/HasOnlyReadOnly.md +++ /dev/null @@ -1,10 +0,0 @@ -# OpenApiPetstore.HasOnlyReadOnly - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**bar** | **String** | | [optional] [readonly] -**foo** | **String** | | [optional] [readonly] - - diff --git a/samples/client/petstore/javascript/docs/List.md b/samples/client/petstore/javascript/docs/List.md deleted file mode 100644 index aaaa082e6a5b..000000000000 --- a/samples/client/petstore/javascript/docs/List.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.List - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**_123list** | **String** | | [optional] - - diff --git a/samples/client/petstore/javascript/docs/MapTest.md b/samples/client/petstore/javascript/docs/MapTest.md deleted file mode 100644 index 9399adf75329..000000000000 --- a/samples/client/petstore/javascript/docs/MapTest.md +++ /dev/null @@ -1,23 +0,0 @@ -# OpenApiPetstore.MapTest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**mapMapOfString** | **{String: {String: String}}** | | [optional] -**mapOfEnumString** | **{String: String}** | | [optional] -**directMap** | **{String: Boolean}** | | [optional] -**indirectMap** | **{String: Boolean}** | | [optional] - - - -## Enum: {String: String} - - -* `UPPER` (value: `"UPPER"`) - -* `lower` (value: `"lower"`) - - - - diff --git a/samples/client/petstore/javascript/docs/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/client/petstore/javascript/docs/MixedPropertiesAndAdditionalPropertiesClass.md deleted file mode 100644 index 776d4b3ae052..000000000000 --- a/samples/client/petstore/javascript/docs/MixedPropertiesAndAdditionalPropertiesClass.md +++ /dev/null @@ -1,11 +0,0 @@ -# OpenApiPetstore.MixedPropertiesAndAdditionalPropertiesClass - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**uuid** | **String** | | [optional] -**dateTime** | **Date** | | [optional] -**map** | [**{String: Animal}**](Animal.md) | | [optional] - - diff --git a/samples/client/petstore/javascript/docs/Model200Response.md b/samples/client/petstore/javascript/docs/Model200Response.md deleted file mode 100644 index 45f7932a1be7..000000000000 --- a/samples/client/petstore/javascript/docs/Model200Response.md +++ /dev/null @@ -1,10 +0,0 @@ -# OpenApiPetstore.Model200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **Number** | | [optional] -**_class** | **String** | | [optional] - - diff --git a/samples/client/petstore/javascript/docs/ModelReturn.md b/samples/client/petstore/javascript/docs/ModelReturn.md deleted file mode 100644 index c93601692f60..000000000000 --- a/samples/client/petstore/javascript/docs/ModelReturn.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.ModelReturn - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**_return** | **Number** | | [optional] - - diff --git a/samples/client/petstore/javascript/docs/Name.md b/samples/client/petstore/javascript/docs/Name.md deleted file mode 100644 index d9f2fbeb68ba..000000000000 --- a/samples/client/petstore/javascript/docs/Name.md +++ /dev/null @@ -1,12 +0,0 @@ -# OpenApiPetstore.Name - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **Number** | | -**snakeCase** | **Number** | | [optional] [readonly] -**property** | **String** | | [optional] -**_123number** | **Number** | | [optional] [readonly] - - diff --git a/samples/client/petstore/javascript/docs/NumberOnly.md b/samples/client/petstore/javascript/docs/NumberOnly.md deleted file mode 100644 index 65243600759d..000000000000 --- a/samples/client/petstore/javascript/docs/NumberOnly.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.NumberOnly - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**justNumber** | **Number** | | [optional] - - diff --git a/samples/client/petstore/javascript/docs/Order.md b/samples/client/petstore/javascript/docs/Order.md deleted file mode 100644 index 3f63473a2394..000000000000 --- a/samples/client/petstore/javascript/docs/Order.md +++ /dev/null @@ -1,27 +0,0 @@ -# OpenApiPetstore.Order - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | | [optional] -**petId** | **Number** | | [optional] -**quantity** | **Number** | | [optional] -**shipDate** | **Date** | | [optional] -**status** | **String** | Order Status | [optional] -**complete** | **Boolean** | | [optional] [default to false] - - - -## Enum: StatusEnum - - -* `placed` (value: `"placed"`) - -* `approved` (value: `"approved"`) - -* `delivered` (value: `"delivered"`) - - - - diff --git a/samples/client/petstore/javascript/docs/OuterComposite.md b/samples/client/petstore/javascript/docs/OuterComposite.md deleted file mode 100644 index aea253a0dfe0..000000000000 --- a/samples/client/petstore/javascript/docs/OuterComposite.md +++ /dev/null @@ -1,11 +0,0 @@ -# OpenApiPetstore.OuterComposite - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**myNumber** | **Number** | | [optional] -**myString** | **String** | | [optional] -**myBoolean** | **Boolean** | | [optional] - - diff --git a/samples/client/petstore/javascript/docs/OuterEnum.md b/samples/client/petstore/javascript/docs/OuterEnum.md deleted file mode 100644 index 445d3f4074c8..000000000000 --- a/samples/client/petstore/javascript/docs/OuterEnum.md +++ /dev/null @@ -1,12 +0,0 @@ -# OpenApiPetstore.OuterEnum - -## Enum - - -* `placed` (value: `"placed"`) - -* `approved` (value: `"approved"`) - -* `delivered` (value: `"delivered"`) - - diff --git a/samples/client/petstore/javascript/docs/Pet.md b/samples/client/petstore/javascript/docs/Pet.md deleted file mode 100644 index 68bb1eb7a048..000000000000 --- a/samples/client/petstore/javascript/docs/Pet.md +++ /dev/null @@ -1,27 +0,0 @@ -# OpenApiPetstore.Pet - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | | [optional] -**category** | [**Category**](Category.md) | | [optional] -**name** | **String** | | -**photoUrls** | **[String]** | | -**tags** | [**[Tag]**](Tag.md) | | [optional] -**status** | **String** | pet status in the store | [optional] - - - -## Enum: StatusEnum - - -* `available` (value: `"available"`) - -* `pending` (value: `"pending"`) - -* `sold` (value: `"sold"`) - - - - diff --git a/samples/client/petstore/javascript/docs/PetApi.md b/samples/client/petstore/javascript/docs/PetApi.md deleted file mode 100644 index e4efd33d09b4..000000000000 --- a/samples/client/petstore/javascript/docs/PetApi.md +++ /dev/null @@ -1,488 +0,0 @@ -# OpenApiPetstore.PetApi - -All URIs are relative to *http://petstore.swagger.io:80/v2* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**addPet**](PetApi.md#addPet) | **POST** /pet | Add a new pet to the store -[**deletePet**](PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet -[**findPetsByStatus**](PetApi.md#findPetsByStatus) | **GET** /pet/findByStatus | Finds Pets by status -[**findPetsByTags**](PetApi.md#findPetsByTags) | **GET** /pet/findByTags | Finds Pets by tags -[**getPetById**](PetApi.md#getPetById) | **GET** /pet/{petId} | Find pet by ID -[**updatePet**](PetApi.md#updatePet) | **PUT** /pet | Update an existing pet -[**updatePetWithForm**](PetApi.md#updatePetWithForm) | **POST** /pet/{petId} | Updates a pet in the store with form data -[**uploadFile**](PetApi.md#uploadFile) | **POST** /pet/{petId}/uploadImage | uploads an image -[**uploadFileWithRequiredFile**](PetApi.md#uploadFileWithRequiredFile) | **POST** /fake/{petId}/uploadImageWithRequiredFile | uploads an image (required) - - - -## addPet - -> addPet(body) - -Add a new pet to the store - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); -var defaultClient = OpenApiPetstore.ApiClient.instance; -// Configure OAuth2 access token for authorization: petstore_auth -var petstore_auth = defaultClient.authentications['petstore_auth']; -petstore_auth.accessToken = 'YOUR ACCESS TOKEN'; - -var apiInstance = new OpenApiPetstore.PetApi(); -var body = new OpenApiPetstore.Pet(); // Pet | Pet object that needs to be added to the store -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully.'); - } -}; -apiInstance.addPet(body, callback); -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | - -### Return type - -null (empty response body) - -### Authorization - -[petstore_auth](../README.md#petstore_auth) - -### HTTP request headers - -- **Content-Type**: application/json, application/xml -- **Accept**: Not defined - - -## deletePet - -> deletePet(petId, opts) - -Deletes a pet - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); -var defaultClient = OpenApiPetstore.ApiClient.instance; -// Configure OAuth2 access token for authorization: petstore_auth -var petstore_auth = defaultClient.authentications['petstore_auth']; -petstore_auth.accessToken = 'YOUR ACCESS TOKEN'; - -var apiInstance = new OpenApiPetstore.PetApi(); -var petId = 789; // Number | Pet id to delete -var opts = { - 'apiKey': "apiKey_example" // String | -}; -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully.'); - } -}; -apiInstance.deletePet(petId, opts, callback); -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **petId** | **Number**| Pet id to delete | - **apiKey** | **String**| | [optional] - -### Return type - -null (empty response body) - -### Authorization - -[petstore_auth](../README.md#petstore_auth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - - -## findPetsByStatus - -> [Pet] findPetsByStatus(status) - -Finds Pets by status - -Multiple status values can be provided with comma separated strings - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); -var defaultClient = OpenApiPetstore.ApiClient.instance; -// Configure OAuth2 access token for authorization: petstore_auth -var petstore_auth = defaultClient.authentications['petstore_auth']; -petstore_auth.accessToken = 'YOUR ACCESS TOKEN'; - -var apiInstance = new OpenApiPetstore.PetApi(); -var status = ["'available'"]; // [String] | Status values that need to be considered for filter -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.findPetsByStatus(status, callback); -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **status** | [**[String]**](String.md)| Status values that need to be considered for filter | - -### Return type - -[**[Pet]**](Pet.md) - -### Authorization - -[petstore_auth](../README.md#petstore_auth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/xml, application/json - - -## findPetsByTags - -> [Pet] findPetsByTags(tags) - -Finds Pets by tags - -Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); -var defaultClient = OpenApiPetstore.ApiClient.instance; -// Configure OAuth2 access token for authorization: petstore_auth -var petstore_auth = defaultClient.authentications['petstore_auth']; -petstore_auth.accessToken = 'YOUR ACCESS TOKEN'; - -var apiInstance = new OpenApiPetstore.PetApi(); -var tags = ["null"]; // [String] | Tags to filter by -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.findPetsByTags(tags, callback); -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **tags** | [**[String]**](String.md)| Tags to filter by | - -### Return type - -[**[Pet]**](Pet.md) - -### Authorization - -[petstore_auth](../README.md#petstore_auth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/xml, application/json - - -## getPetById - -> Pet getPetById(petId) - -Find pet by ID - -Returns a single pet - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); -var defaultClient = OpenApiPetstore.ApiClient.instance; -// Configure API key authorization: api_key -var api_key = defaultClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; - -var apiInstance = new OpenApiPetstore.PetApi(); -var petId = 789; // Number | ID of pet to return -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.getPetById(petId, callback); -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **petId** | **Number**| ID of pet to return | - -### Return type - -[**Pet**](Pet.md) - -### Authorization - -[api_key](../README.md#api_key) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/xml, application/json - - -## updatePet - -> updatePet(body) - -Update an existing pet - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); -var defaultClient = OpenApiPetstore.ApiClient.instance; -// Configure OAuth2 access token for authorization: petstore_auth -var petstore_auth = defaultClient.authentications['petstore_auth']; -petstore_auth.accessToken = 'YOUR ACCESS TOKEN'; - -var apiInstance = new OpenApiPetstore.PetApi(); -var body = new OpenApiPetstore.Pet(); // Pet | Pet object that needs to be added to the store -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully.'); - } -}; -apiInstance.updatePet(body, callback); -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | - -### Return type - -null (empty response body) - -### Authorization - -[petstore_auth](../README.md#petstore_auth) - -### HTTP request headers - -- **Content-Type**: application/json, application/xml -- **Accept**: Not defined - - -## updatePetWithForm - -> updatePetWithForm(petId, opts) - -Updates a pet in the store with form data - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); -var defaultClient = OpenApiPetstore.ApiClient.instance; -// Configure OAuth2 access token for authorization: petstore_auth -var petstore_auth = defaultClient.authentications['petstore_auth']; -petstore_auth.accessToken = 'YOUR ACCESS TOKEN'; - -var apiInstance = new OpenApiPetstore.PetApi(); -var petId = 789; // Number | ID of pet that needs to be updated -var opts = { - 'name': "name_example", // String | Updated name of the pet - 'status': "status_example" // String | Updated status of the pet -}; -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully.'); - } -}; -apiInstance.updatePetWithForm(petId, opts, callback); -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **petId** | **Number**| ID of pet that needs to be updated | - **name** | **String**| Updated name of the pet | [optional] - **status** | **String**| Updated status of the pet | [optional] - -### Return type - -null (empty response body) - -### Authorization - -[petstore_auth](../README.md#petstore_auth) - -### HTTP request headers - -- **Content-Type**: application/x-www-form-urlencoded -- **Accept**: Not defined - - -## uploadFile - -> ApiResponse uploadFile(petId, opts) - -uploads an image - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); -var defaultClient = OpenApiPetstore.ApiClient.instance; -// Configure OAuth2 access token for authorization: petstore_auth -var petstore_auth = defaultClient.authentications['petstore_auth']; -petstore_auth.accessToken = 'YOUR ACCESS TOKEN'; - -var apiInstance = new OpenApiPetstore.PetApi(); -var petId = 789; // Number | ID of pet to update -var opts = { - 'additionalMetadata': "additionalMetadata_example", // String | Additional data to pass to server - 'file': "/path/to/file" // File | file to upload -}; -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.uploadFile(petId, opts, callback); -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **petId** | **Number**| ID of pet to update | - **additionalMetadata** | **String**| Additional data to pass to server | [optional] - **file** | **File**| file to upload | [optional] - -### Return type - -[**ApiResponse**](ApiResponse.md) - -### Authorization - -[petstore_auth](../README.md#petstore_auth) - -### HTTP request headers - -- **Content-Type**: multipart/form-data -- **Accept**: application/json - - -## uploadFileWithRequiredFile - -> ApiResponse uploadFileWithRequiredFile(petId, requiredFile, opts) - -uploads an image (required) - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); -var defaultClient = OpenApiPetstore.ApiClient.instance; -// Configure OAuth2 access token for authorization: petstore_auth -var petstore_auth = defaultClient.authentications['petstore_auth']; -petstore_auth.accessToken = 'YOUR ACCESS TOKEN'; - -var apiInstance = new OpenApiPetstore.PetApi(); -var petId = 789; // Number | ID of pet to update -var requiredFile = "/path/to/file"; // File | file to upload -var opts = { - 'additionalMetadata': "additionalMetadata_example" // String | Additional data to pass to server -}; -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.uploadFileWithRequiredFile(petId, requiredFile, opts, callback); -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **petId** | **Number**| ID of pet to update | - **requiredFile** | **File**| file to upload | - **additionalMetadata** | **String**| Additional data to pass to server | [optional] - -### Return type - -[**ApiResponse**](ApiResponse.md) - -### Authorization - -[petstore_auth](../README.md#petstore_auth) - -### HTTP request headers - -- **Content-Type**: multipart/form-data -- **Accept**: application/json - diff --git a/samples/client/petstore/javascript/docs/ReadOnlyFirst.md b/samples/client/petstore/javascript/docs/ReadOnlyFirst.md deleted file mode 100644 index eee7a321d406..000000000000 --- a/samples/client/petstore/javascript/docs/ReadOnlyFirst.md +++ /dev/null @@ -1,10 +0,0 @@ -# OpenApiPetstore.ReadOnlyFirst - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**bar** | **String** | | [optional] [readonly] -**baz** | **String** | | [optional] - - diff --git a/samples/client/petstore/javascript/docs/SpecialModelName.md b/samples/client/petstore/javascript/docs/SpecialModelName.md deleted file mode 100644 index f33678460bf3..000000000000 --- a/samples/client/petstore/javascript/docs/SpecialModelName.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.SpecialModelName - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**specialPropertyName** | **Number** | | [optional] - - diff --git a/samples/client/petstore/javascript/docs/StoreApi.md b/samples/client/petstore/javascript/docs/StoreApi.md deleted file mode 100644 index 54676afa4bf7..000000000000 --- a/samples/client/petstore/javascript/docs/StoreApi.md +++ /dev/null @@ -1,199 +0,0 @@ -# OpenApiPetstore.StoreApi - -All URIs are relative to *http://petstore.swagger.io:80/v2* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**deleteOrder**](StoreApi.md#deleteOrder) | **DELETE** /store/order/{order_id} | Delete purchase order by ID -[**getInventory**](StoreApi.md#getInventory) | **GET** /store/inventory | Returns pet inventories by status -[**getOrderById**](StoreApi.md#getOrderById) | **GET** /store/order/{order_id} | Find purchase order by ID -[**placeOrder**](StoreApi.md#placeOrder) | **POST** /store/order | Place an order for a pet - - - -## deleteOrder - -> deleteOrder(orderId) - -Delete purchase order by ID - -For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); - -var apiInstance = new OpenApiPetstore.StoreApi(); -var orderId = "orderId_example"; // String | ID of the order that needs to be deleted -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully.'); - } -}; -apiInstance.deleteOrder(orderId, callback); -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **orderId** | **String**| ID of the order that needs to be deleted | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - - -## getInventory - -> {String: Number} getInventory() - -Returns pet inventories by status - -Returns a map of status codes to quantities - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); -var defaultClient = OpenApiPetstore.ApiClient.instance; -// Configure API key authorization: api_key -var api_key = defaultClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; - -var apiInstance = new OpenApiPetstore.StoreApi(); -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.getInventory(callback); -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -**{String: Number}** - -### Authorization - -[api_key](../README.md#api_key) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getOrderById - -> Order getOrderById(orderId) - -Find purchase order by ID - -For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); - -var apiInstance = new OpenApiPetstore.StoreApi(); -var orderId = 789; // Number | ID of pet that needs to be fetched -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.getOrderById(orderId, callback); -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **orderId** | **Number**| ID of pet that needs to be fetched | - -### Return type - -[**Order**](Order.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/xml, application/json - - -## placeOrder - -> Order placeOrder(body) - -Place an order for a pet - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); - -var apiInstance = new OpenApiPetstore.StoreApi(); -var body = new OpenApiPetstore.Order(); // Order | order placed for purchasing the pet -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.placeOrder(body, callback); -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**Order**](Order.md)| order placed for purchasing the pet | - -### Return type - -[**Order**](Order.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/xml, application/json - diff --git a/samples/client/petstore/javascript/docs/Tag.md b/samples/client/petstore/javascript/docs/Tag.md deleted file mode 100644 index ce6fec0ab93f..000000000000 --- a/samples/client/petstore/javascript/docs/Tag.md +++ /dev/null @@ -1,10 +0,0 @@ -# OpenApiPetstore.Tag - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | | [optional] -**name** | **String** | | [optional] - - diff --git a/samples/client/petstore/javascript/docs/TypeHolderDefault.md b/samples/client/petstore/javascript/docs/TypeHolderDefault.md deleted file mode 100644 index 3342b500760c..000000000000 --- a/samples/client/petstore/javascript/docs/TypeHolderDefault.md +++ /dev/null @@ -1,13 +0,0 @@ -# OpenApiPetstore.TypeHolderDefault - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**stringItem** | **String** | | [default to 'what'] -**numberItem** | **Number** | | -**integerItem** | **Number** | | -**boolItem** | **Boolean** | | [default to true] -**arrayItem** | **[Number]** | | - - diff --git a/samples/client/petstore/javascript/docs/TypeHolderExample.md b/samples/client/petstore/javascript/docs/TypeHolderExample.md deleted file mode 100644 index 44ba1e3aef7f..000000000000 --- a/samples/client/petstore/javascript/docs/TypeHolderExample.md +++ /dev/null @@ -1,14 +0,0 @@ -# OpenApiPetstore.TypeHolderExample - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**stringItem** | **String** | | -**numberItem** | **Number** | | -**floatItem** | **Number** | | -**integerItem** | **Number** | | -**boolItem** | **Boolean** | | -**arrayItem** | **[Number]** | | - - diff --git a/samples/client/petstore/javascript/docs/User.md b/samples/client/petstore/javascript/docs/User.md deleted file mode 100644 index 096f606d0b92..000000000000 --- a/samples/client/petstore/javascript/docs/User.md +++ /dev/null @@ -1,16 +0,0 @@ -# OpenApiPetstore.User - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | | [optional] -**username** | **String** | | [optional] -**firstName** | **String** | | [optional] -**lastName** | **String** | | [optional] -**email** | **String** | | [optional] -**password** | **String** | | [optional] -**phone** | **String** | | [optional] -**userStatus** | **Number** | User Status | [optional] - - diff --git a/samples/client/petstore/javascript/docs/UserApi.md b/samples/client/petstore/javascript/docs/UserApi.md deleted file mode 100644 index d405c1b6d206..000000000000 --- a/samples/client/petstore/javascript/docs/UserApi.md +++ /dev/null @@ -1,381 +0,0 @@ -# OpenApiPetstore.UserApi - -All URIs are relative to *http://petstore.swagger.io:80/v2* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createUser**](UserApi.md#createUser) | **POST** /user | Create user -[**createUsersWithArrayInput**](UserApi.md#createUsersWithArrayInput) | **POST** /user/createWithArray | Creates list of users with given input array -[**createUsersWithListInput**](UserApi.md#createUsersWithListInput) | **POST** /user/createWithList | Creates list of users with given input array -[**deleteUser**](UserApi.md#deleteUser) | **DELETE** /user/{username} | Delete user -[**getUserByName**](UserApi.md#getUserByName) | **GET** /user/{username} | Get user by user name -[**loginUser**](UserApi.md#loginUser) | **GET** /user/login | Logs user into the system -[**logoutUser**](UserApi.md#logoutUser) | **GET** /user/logout | Logs out current logged in user session -[**updateUser**](UserApi.md#updateUser) | **PUT** /user/{username} | Updated user - - - -## createUser - -> createUser(body) - -Create user - -This can only be done by the logged in user. - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); - -var apiInstance = new OpenApiPetstore.UserApi(); -var body = new OpenApiPetstore.User(); // User | Created user object -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully.'); - } -}; -apiInstance.createUser(body, callback); -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**User**](User.md)| Created user object | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - - -## createUsersWithArrayInput - -> createUsersWithArrayInput(body) - -Creates list of users with given input array - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); - -var apiInstance = new OpenApiPetstore.UserApi(); -var body = [new OpenApiPetstore.User()]; // [User] | List of user object -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully.'); - } -}; -apiInstance.createUsersWithArrayInput(body, callback); -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**[User]**](User.md)| List of user object | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - - -## createUsersWithListInput - -> createUsersWithListInput(body) - -Creates list of users with given input array - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); - -var apiInstance = new OpenApiPetstore.UserApi(); -var body = [new OpenApiPetstore.User()]; // [User] | List of user object -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully.'); - } -}; -apiInstance.createUsersWithListInput(body, callback); -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**[User]**](User.md)| List of user object | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - - -## deleteUser - -> deleteUser(username) - -Delete user - -This can only be done by the logged in user. - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); - -var apiInstance = new OpenApiPetstore.UserApi(); -var username = "username_example"; // String | The name that needs to be deleted -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully.'); - } -}; -apiInstance.deleteUser(username, callback); -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **username** | **String**| The name that needs to be deleted | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - - -## getUserByName - -> User getUserByName(username) - -Get user by user name - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); - -var apiInstance = new OpenApiPetstore.UserApi(); -var username = "username_example"; // String | The name that needs to be fetched. Use user1 for testing. -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.getUserByName(username, callback); -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **username** | **String**| The name that needs to be fetched. Use user1 for testing. | - -### Return type - -[**User**](User.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/xml, application/json - - -## loginUser - -> String loginUser(username, password) - -Logs user into the system - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); - -var apiInstance = new OpenApiPetstore.UserApi(); -var username = "username_example"; // String | The user name for login -var password = "password_example"; // String | The password for login in clear text -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -apiInstance.loginUser(username, password, callback); -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **username** | **String**| The user name for login | - **password** | **String**| The password for login in clear text | - -### Return type - -**String** - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/xml, application/json - - -## logoutUser - -> logoutUser() - -Logs out current logged in user session - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); - -var apiInstance = new OpenApiPetstore.UserApi(); -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully.'); - } -}; -apiInstance.logoutUser(callback); -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - - -## updateUser - -> updateUser(username, body) - -Updated user - -This can only be done by the logged in user. - -### Example - -```javascript -var OpenApiPetstore = require('open_api_petstore'); - -var apiInstance = new OpenApiPetstore.UserApi(); -var username = "username_example"; // String | name that need to be deleted -var body = new OpenApiPetstore.User(); // User | Updated user object -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully.'); - } -}; -apiInstance.updateUser(username, body, callback); -``` - -### Parameters - - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **username** | **String**| name that need to be deleted | - **body** | [**User**](User.md)| Updated user object | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - diff --git a/samples/client/petstore/javascript/docs/XmlItem.md b/samples/client/petstore/javascript/docs/XmlItem.md deleted file mode 100644 index 8711fac40809..000000000000 --- a/samples/client/petstore/javascript/docs/XmlItem.md +++ /dev/null @@ -1,37 +0,0 @@ -# OpenApiPetstore.XmlItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**attributeString** | **String** | | [optional] -**attributeNumber** | **Number** | | [optional] -**attributeInteger** | **Number** | | [optional] -**attributeBoolean** | **Boolean** | | [optional] -**wrappedArray** | **[Number]** | | [optional] -**nameString** | **String** | | [optional] -**nameNumber** | **Number** | | [optional] -**nameInteger** | **Number** | | [optional] -**nameBoolean** | **Boolean** | | [optional] -**nameArray** | **[Number]** | | [optional] -**nameWrappedArray** | **[Number]** | | [optional] -**prefixString** | **String** | | [optional] -**prefixNumber** | **Number** | | [optional] -**prefixInteger** | **Number** | | [optional] -**prefixBoolean** | **Boolean** | | [optional] -**prefixArray** | **[Number]** | | [optional] -**prefixWrappedArray** | **[Number]** | | [optional] -**namespaceString** | **String** | | [optional] -**namespaceNumber** | **Number** | | [optional] -**namespaceInteger** | **Number** | | [optional] -**namespaceBoolean** | **Boolean** | | [optional] -**namespaceArray** | **[Number]** | | [optional] -**namespaceWrappedArray** | **[Number]** | | [optional] -**prefixNsString** | **String** | | [optional] -**prefixNsNumber** | **Number** | | [optional] -**prefixNsInteger** | **Number** | | [optional] -**prefixNsBoolean** | **Boolean** | | [optional] -**prefixNsArray** | **[Number]** | | [optional] -**prefixNsWrappedArray** | **[Number]** | | [optional] - - diff --git a/samples/client/petstore/javascript/git_push.sh b/samples/client/petstore/javascript/git_push.sh deleted file mode 100644 index ced3be2b0c7b..000000000000 --- a/samples/client/petstore/javascript/git_push.sh +++ /dev/null @@ -1,58 +0,0 @@ -#!/bin/sh -# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ -# -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" - -git_user_id=$1 -git_repo_id=$2 -release_note=$3 -git_host=$4 - -if [ "$git_host" = "" ]; then - git_host="github.com" - echo "[INFO] No command line input provided. Set \$git_host to $git_host" -fi - -if [ "$git_user_id" = "" ]; then - git_user_id="GIT_USER_ID" - echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" -fi - -if [ "$git_repo_id" = "" ]; then - git_repo_id="GIT_REPO_ID" - echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" -fi - -if [ "$release_note" = "" ]; then - release_note="Minor update" - echo "[INFO] No command line input provided. Set \$release_note to $release_note" -fi - -# Initialize the local directory as a Git repository -git init - -# Adds the files in the local repository and stages them for commit. -git add . - -# Commits the tracked changes and prepares them to be pushed to a remote repository. -git commit -m "$release_note" - -# Sets the new remote -git_remote=`git remote` -if [ "$git_remote" = "" ]; then # git remote not defined - - if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." - git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git - else - git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git - fi - -fi - -git pull origin master - -# Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" -git push origin master 2>&1 | grep -v 'To https' - diff --git a/samples/client/petstore/javascript/mocha.opts b/samples/client/petstore/javascript/mocha.opts deleted file mode 100644 index 907011807d68..000000000000 --- a/samples/client/petstore/javascript/mocha.opts +++ /dev/null @@ -1 +0,0 @@ ---timeout 10000 diff --git a/samples/client/petstore/javascript/package.json b/samples/client/petstore/javascript/package.json deleted file mode 100644 index d194fab67c27..000000000000 --- a/samples/client/petstore/javascript/package.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "name": "open_api_petstore", - "version": "1.0.0", - "description": "This_spec_is_mainly_for_testing_Petstore_server_and_contains_fake_endpoints_models__Please_do_not_use_this_for_any_other_purpose__Special_characters___", - "license": "Apache-2.0", - "main": "src/index.js", - "scripts": { - "test": "mocha --recursive" - }, - "browser": { - "fs": false - }, - "dependencies": { - "superagent": "5.1.0" - }, - "devDependencies": { - "expect.js": "^0.3.1", - "mocha": "^5.2.0", - "sinon": "^7.2.0" - } -} diff --git a/samples/client/petstore/javascript/pom.xml b/samples/client/petstore/javascript/pom.xml deleted file mode 100644 index 3d461be47216..000000000000 --- a/samples/client/petstore/javascript/pom.xml +++ /dev/null @@ -1,45 +0,0 @@ - - 4.0.0 - org.openapitools - openapi-petstore-javascript - pom - 1.0-SNAPSHOT - OpenAPI Petstore JS Client - - - - org.codehaus.mojo - exec-maven-plugin - 1.2.1 - - - npm-install - pre-integration-test - - exec - - - npm - - install - - - - - mocha - integration-test - - exec - - - npm - - test - - - - - - - - diff --git a/samples/client/petstore/javascript/src/ApiClient.js b/samples/client/petstore/javascript/src/ApiClient.js deleted file mode 100644 index 298e4abb7e31..000000000000 --- a/samples/client/petstore/javascript/src/ApiClient.js +++ /dev/null @@ -1,668 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['superagent', 'querystring'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('superagent'), require('querystring')); - } else { - // Browser globals (root is window) - if (!root.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.ApiClient = factory(root.superagent, root.querystring); - } -}(this, function(superagent, querystring) { - 'use strict'; - - /** - * @module ApiClient - * @version 1.0.0 - */ - - /** - * Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an - * application to use this class directly - the *Api and model classes provide the public API for the service. The - * contents of this file should be regarded as internal but are documented for completeness. - * @alias module:ApiClient - * @class - */ - var exports = function() { - /** - * The base URL against which to resolve every API call's (relative) path. - * @type {String} - * @default http://petstore.swagger.io:80/v2 - */ - this.basePath = 'http://petstore.swagger.io:80/v2'.replace(/\/+$/, ''); - - /** - * The authentication methods to be included for all API calls. - * @type {Array.} - */ - this.authentications = { - 'api_key': {type: 'apiKey', 'in': 'header', name: 'api_key'}, - 'api_key_query': {type: 'apiKey', 'in': 'query', name: 'api_key_query'}, - 'http_basic_test': {type: 'basic'}, - 'petstore_auth': {type: 'oauth2'} - }; - /** - * The default HTTP headers to be included for all API calls. - * @type {Array.} - * @default {} - */ - this.defaultHeaders = {}; - - /** - * The default HTTP timeout for all API calls. - * @type {Number} - * @default 60000 - */ - this.timeout = 60000; - - /** - * If set to false an additional timestamp parameter is added to all API GET calls to - * prevent browser caching - * @type {Boolean} - * @default true - */ - this.cache = true; - - /** - * If set to true, the client will save the cookies from each server - * response, and return them in the next request. - * @default false - */ - this.enableCookies = false; - - /* - * Used to save and return cookies in a node.js (non-browser) setting, - * if this.enableCookies is set to true. - */ - if (typeof window === 'undefined') { - this.agent = new superagent.agent(); - } - - /* - * Allow user to override superagent agent - */ - this.requestAgent = null; - - /* - * Allow user to add superagent plugins - */ - this.plugins = null; - }; - - /** - * Returns a string representation for an actual parameter. - * @param param The actual parameter. - * @returns {String} The string representation of param. - */ - exports.prototype.paramToString = function(param) { - if (param == undefined || param == null) { - return ''; - } - if (param instanceof Date) { - return param.toJSON(); - } - return param.toString(); - }; - - /** - * Builds full URL by appending the given path to the base URL and replacing path parameter place-holders with parameter values. - * NOTE: query parameters are not handled here. - * @param {String} path The path to append to the base URL. - * @param {Object} pathParams The parameter values to append. - * @returns {String} The encoded path with parameter values substituted. - */ - exports.prototype.buildUrl = function(path, pathParams, apiBasePath) { - if (!path.match(/^\//)) { - path = '/' + path; - } - var url = this.basePath + path; - - - // use API (operation, path) base path if defined - if (apiBasePath !== null && apiBasePath !== undefined) { - url = apiBasePath + path; - } - - var _this = this; - url = url.replace(/\{([\w-]+)\}/g, function(fullMatch, key) { - var value; - if (pathParams.hasOwnProperty(key)) { - value = _this.paramToString(pathParams[key]); - } else { - value = fullMatch; - } - return encodeURIComponent(value); - }); - return url; - }; - - /** - * Checks whether the given content type represents JSON.
- * JSON content type examples:
- *
    - *
  • application/json
  • - *
  • application/json; charset=UTF8
  • - *
  • APPLICATION/JSON
  • - *
- * @param {String} contentType The MIME content type to check. - * @returns {Boolean} true if contentType represents JSON, otherwise false. - */ - exports.prototype.isJsonMime = function(contentType) { - return Boolean(contentType != null && contentType.match(/^application\/json(;.*)?$/i)); - }; - - /** - * Chooses a content type from the given array, with JSON preferred; i.e. return JSON if included, otherwise return the first. - * @param {Array.} contentTypes - * @returns {String} The chosen content type, preferring JSON. - */ - exports.prototype.jsonPreferredMime = function(contentTypes) { - for (var i = 0; i < contentTypes.length; i++) { - if (this.isJsonMime(contentTypes[i])) { - return contentTypes[i]; - } - } - return contentTypes[0]; - }; - - /** - * Checks whether the given parameter value represents file-like content. - * @param param The parameter to check. - * @returns {Boolean} true if param represents a file. - */ - exports.prototype.isFileParam = function(param) { - // fs.ReadStream in Node.js and Electron (but not in runtime like browserify) - if (typeof require === 'function') { - var fs; - try { - fs = require('fs'); - } catch (err) {} - if (fs && fs.ReadStream && param instanceof fs.ReadStream) { - return true; - } - } - // Buffer in Node.js - if (typeof Buffer === 'function' && param instanceof Buffer) { - return true; - } - // Blob in browser - if (typeof Blob === 'function' && param instanceof Blob) { - return true; - } - // File in browser (it seems File object is also instance of Blob, but keep this for safe) - if (typeof File === 'function' && param instanceof File) { - return true; - } - return false; - }; - - /** - * Normalizes parameter values: - *
    - *
  • remove nils
  • - *
  • keep files and arrays
  • - *
  • format to string with `paramToString` for other cases
  • - *
- * @param {Object.} params The parameters as object properties. - * @returns {Object.} normalized parameters. - */ - exports.prototype.normalizeParams = function(params) { - var newParams = {}; - for (var key in params) { - if (params.hasOwnProperty(key) && params[key] != undefined && params[key] != null) { - var value = params[key]; - if (this.isFileParam(value) || Array.isArray(value)) { - newParams[key] = value; - } else { - newParams[key] = this.paramToString(value); - } - } - } - return newParams; - }; - - /** - * Enumeration of collection format separator strategies. - * @enum {String} - * @readonly - */ - exports.CollectionFormatEnum = { - /** - * Comma-separated values. Value: csv - * @const - */ - CSV: ',', - /** - * Space-separated values. Value: ssv - * @const - */ - SSV: ' ', - /** - * Tab-separated values. Value: tsv - * @const - */ - TSV: '\t', - /** - * Pipe(|)-separated values. Value: pipes - * @const - */ - PIPES: '|', - /** - * Native array. Value: multi - * @const - */ - MULTI: 'multi' - }; - - /** - * Builds a string representation of an array-type actual parameter, according to the given collection format. - * @param {Array} param An array parameter. - * @param {module:ApiClient.CollectionFormatEnum} collectionFormat The array element separator strategy. - * @returns {String|Array} A string representation of the supplied collection, using the specified delimiter. Returns - * param as is if collectionFormat is multi. - */ - exports.prototype.buildCollectionParam = function buildCollectionParam(param, collectionFormat) { - if (param == null) { - return null; - } - switch (collectionFormat) { - case 'csv': - return param.map(this.paramToString).join(','); - case 'ssv': - return param.map(this.paramToString).join(' '); - case 'tsv': - return param.map(this.paramToString).join('\t'); - case 'pipes': - return param.map(this.paramToString).join('|'); - case 'multi': - // return the array directly as SuperAgent will handle it as expected - return param.map(this.paramToString); - default: - throw new Error('Unknown collection format: ' + collectionFormat); - } - }; - - /** - * Applies authentication headers to the request. - * @param {Object} request The request object created by a superagent() call. - * @param {Array.} authNames An array of authentication method names. - */ - exports.prototype.applyAuthToRequest = function(request, authNames) { - var _this = this; - authNames.forEach(function(authName) { - var auth = _this.authentications[authName]; - switch (auth.type) { - case 'basic': - if (auth.username || auth.password) { - request.auth(auth.username || '', auth.password || ''); - } - break; - case 'bearer': - if (auth.accessToken) { - request.set({'Authorization': 'Bearer ' + auth.accessToken}); - } - break; - case 'apiKey': - if (auth.apiKey) { - var data = {}; - if (auth.apiKeyPrefix) { - data[auth.name] = auth.apiKeyPrefix + ' ' + auth.apiKey; - } else { - data[auth.name] = auth.apiKey; - } - if (auth['in'] === 'header') { - request.set(data); - } else { - request.query(data); - } - } - break; - case 'oauth2': - if (auth.accessToken) { - request.set({'Authorization': 'Bearer ' + auth.accessToken}); - } - break; - default: - throw new Error('Unknown authentication type: ' + auth.type); - } - }); - }; - - /** - * Deserializes an HTTP response body into a value of the specified type. - * @param {Object} response A SuperAgent response object. - * @param {(String|Array.|Object.|Function)} returnType The type to return. Pass a string for simple types - * or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To - * return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type: - * all properties on data will be converted to this type. - * @returns A value of the specified type. - */ - exports.prototype.deserialize = function deserialize(response, returnType) { - if (response == null || returnType == null || response.status == 204) { - return null; - } - // Rely on SuperAgent for parsing response body. - // See http://visionmedia.github.io/superagent/#parsing-response-bodies - var data = response.body; - if (data == null || (typeof data === 'object' && typeof data.length === 'undefined' && !Object.keys(data).length)) { - // SuperAgent does not always produce a body; use the unparsed response as a fallback - data = response.text; - } - return exports.convertToType(data, returnType); - }; - - /** - * Callback function to receive the result of the operation. - * @callback module:ApiClient~callApiCallback - * @param {String} error Error message, if any. - * @param data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * Invokes the REST service using the supplied settings and parameters. - * @param {String} path The base URL to invoke. - * @param {String} httpMethod The HTTP method to use. - * @param {Object.} pathParams A map of path parameters and their values. - * @param {Object.} queryParams A map of query parameters and their values. - * @param {Object.} collectionQueryParams A map of collection query parameters and their values. - * @param {Object.} headerParams A map of header parameters and their values. - * @param {Object.} formParams A map of form parameters and their values. - * @param {Object} bodyParam The value to pass as the request body. - * @param {Array.} authNames An array of authentication type names. - * @param {Array.} contentTypes An array of request MIME types. - * @param {Array.} accepts An array of acceptable response MIME types. - * @param {(String|Array|ObjectFunction)} returnType The required type to return; can be a string for simple types or the - * constructor for a complex type. - * @param {module:ApiClient~callApiCallback} callback The callback function. - * @returns {Object} The SuperAgent request object. - */ - exports.prototype.callApi = function callApi(path, httpMethod, pathParams, - queryParams, collectionQueryParams, headerParams, formParams, bodyParam, authNames, contentTypes, accepts, - returnType, apiBasePath, callback) { - - var _this = this; - var url = this.buildUrl(path, pathParams, apiBasePath); - var request = superagent(httpMethod, url); - - if (this.plugins !== null) { - for (var index in this.plugins) { - if (this.plugins.hasOwnProperty(index)) { - request.use(this.plugins[index]) - } - } - } - - // apply authentications - this.applyAuthToRequest(request, authNames); - - // set collection query parameters - for (var key in collectionQueryParams) { - if (collectionQueryParams.hasOwnProperty(key)) { - var param = collectionQueryParams[key]; - if (param.collectionFormat === 'csv') { - // SuperAgent normally percent-encodes all reserved characters in a query parameter. However, - // commas are used as delimiters for the 'csv' collectionFormat so they must not be encoded. We - // must therefore construct and encode 'csv' collection query parameters manually. - if (param.value != null) { - var value = param.value.map(this.paramToString).map(encodeURIComponent).join(','); - request.query(encodeURIComponent(key) + "=" + value); - } - } else { - // All other collection query parameters should be treated as ordinary query parameters. - queryParams[key] = this.buildCollectionParam(param.value, param.collectionFormat); - } - } - } - - // set query parameters - if (httpMethod.toUpperCase() === 'GET' && this.cache === false) { - queryParams['_'] = new Date().getTime(); - } - request.query(this.normalizeParams(queryParams)); - - // set header parameters - request.set(this.defaultHeaders).set(this.normalizeParams(headerParams)); - - - // set requestAgent if it is set by user - if (this.requestAgent) { - request.agent(this.requestAgent); - } - - // set request timeout - request.timeout(this.timeout); - - var contentType = this.jsonPreferredMime(contentTypes); - if (contentType) { - // Issue with superagent and multipart/form-data (https://github.com/visionmedia/superagent/issues/746) - if(contentType != 'multipart/form-data') { - request.type(contentType); - } - } - - if (contentType === 'application/x-www-form-urlencoded') { - request.send(querystring.stringify(this.normalizeParams(formParams))); - } else if (contentType == 'multipart/form-data') { - var _formParams = this.normalizeParams(formParams); - for (var key in _formParams) { - if (_formParams.hasOwnProperty(key)) { - if (this.isFileParam(_formParams[key])) { - // file field - request.attach(key, _formParams[key]); - } else { - request.field(key, _formParams[key]); - } - } - } - } else if (bodyParam !== null && bodyParam !== undefined) { - if (!request.header['Content-Type']) { - request.type('application/json'); - } - request.send(bodyParam); - } - - var accept = this.jsonPreferredMime(accepts); - if (accept) { - request.accept(accept); - } - - if (returnType === 'Blob') { - request.responseType('blob'); - } else if (returnType === 'String') { - request.responseType('string'); - } - - // Attach previously saved cookies, if enabled - if (this.enableCookies){ - if (typeof window === 'undefined') { - this.agent._attachCookies(request); - } - else { - request.withCredentials(); - } - } - - - request.end(function(error, response) { - if (callback) { - var data = null; - if (!error) { - try { - data = _this.deserialize(response, returnType); - if (_this.enableCookies && typeof window === 'undefined'){ - _this.agent._saveCookies(response); - } - } catch (err) { - error = err; - } - } - callback(error, data, response); - } - }); - - return request; - }; - - /** - * Parses an ISO-8601 string representation of a date value. - * @param {String} str The date value as a string. - * @returns {Date} The parsed date object. - */ - exports.parseDate = function(str) { - return new Date(str.replace(/T/i, ' ')); - }; - - /** - * Converts a value to the specified type. - * @param {(String|Object)} data The data to convert, as a string or object. - * @param {(String|Array.|Object.|Function)} type The type to return. Pass a string for simple types - * or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To - * return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type: - * all properties on data will be converted to this type. - * @returns An instance of the specified type or null or undefined if data is null or undefined. - */ - exports.convertToType = function(data, type) { - if (data === null || data === undefined) - return data - - switch (type) { - case 'Boolean': - return Boolean(data); - case 'Integer': - return parseInt(data, 10); - case 'Number': - return parseFloat(data); - case 'String': - return String(data); - case 'Date': - return this.parseDate(String(data)); - case 'Blob': - return data; - default: - if (type === Object) { - // generic object, return directly - return data; - } else if (typeof type.constructFromObject === 'function') { - // for model type like User or enum class - return type.constructFromObject(data); - } else if (Array.isArray(type)) { - // for array type like: ['String'] - var itemType = type[0]; - return data.map(function(item) { - return exports.convertToType(item, itemType); - }); - } else if (typeof type === 'object') { - // for plain object type like: {'String': 'Integer'} - var keyType, valueType; - for (var k in type) { - if (type.hasOwnProperty(k)) { - keyType = k; - valueType = type[k]; - break; - } - } - var result = {}; - for (var k in data) { - if (data.hasOwnProperty(k)) { - var key = exports.convertToType(k, keyType); - var value = exports.convertToType(data[k], valueType); - result[key] = value; - } - } - return result; - } else { - // for unknown type, return the data directly - return data; - } - } - }; - - /** - * Gets an array of host settings - * @returns An array of host settings - */ - exports.hostSettings = function() { - return [ - { - 'url': "http://petstore.swagger.io:80/v2", - 'description': "No description provided", - } - ]; - }; - - exports.getBasePathFromSettings = function(index, variables) { - var variables = variables || {}; - var servers = this.hostSettings(); - - // check array index out of bound - if (index < 0 || index >= servers.length) { - throw new Error("Invalid index " + index + " when selecting the host settings. Must be less than " + servers.length); - } - - var server = servers[index]; - var url = server['url']; - - // go through variable and assign a value - for (var variable_name in server['variables']) { - if (variable_name in variables) { - let variable = server['variables'][variable_name]; - if ( !('enum_values' in variable) || variable['enum_values'].includes(variables[variable_name]) ) { - url = url.replace("{" + variable_name + "}", variables[variable_name]); - } else { - throw new Error("The variable `" + variable_name + "` in the host URL has invalid value " + variables[variable_name] + ". Must be " + server['variables'][variable_name]['enum_values'] + "."); - } - } else { - // use default value - url = url.replace("{" + variable_name + "}", server['variables'][variable_name]['default_value']) - } - } - return url; - }; - - /** - * Constructs a new map or array model from REST data. - * @param data {Object|Array} The REST data. - * @param obj {Object|Array} The target object or array. - */ - exports.constructFromObject = function(data, obj, itemType) { - if (Array.isArray(data)) { - for (var i = 0; i < data.length; i++) { - if (data.hasOwnProperty(i)) - obj[i] = exports.convertToType(data[i], itemType); - } - } else { - for (var k in data) { - if (data.hasOwnProperty(k)) - obj[k] = exports.convertToType(data[k], itemType); - } - } - }; - - /** - * The default API client implementation. - * @type {module:ApiClient} - */ - exports.instance = new exports(); - - return exports; -})); diff --git a/samples/client/petstore/javascript/src/api/AnotherFakeApi.js b/samples/client/petstore/javascript/src/api/AnotherFakeApi.js deleted file mode 100644 index 54709c871e08..000000000000 --- a/samples/client/petstore/javascript/src/api/AnotherFakeApi.js +++ /dev/null @@ -1,96 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.AnotherFakeApi = factory(root.OpenApiPetstore.ApiClient, root.OpenApiPetstore.Client); - } -}(this, function(ApiClient, Client) { - 'use strict'; - - /** - * AnotherFake service. - * @module api/AnotherFakeApi - * @version 1.0.0 - */ - - /** - * Constructs a new AnotherFakeApi. - * @alias module:api/AnotherFakeApi - * @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; - - - /** - * Callback function to receive the result of the call123testSpecialTags operation. - * @callback module:api/AnotherFakeApi~call123testSpecialTagsCallback - * @param {String} error Error message, if any. - * @param {module:model/Client} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * To test special tags - * To test special tags and operation ID starting with number - * @param {module:model/Client} body client model - * @param {module:api/AnotherFakeApi~call123testSpecialTagsCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:model/Client} - */ - this.call123testSpecialTags = function(body, callback) { - 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 call123testSpecialTags"); - } - - var pathParams = { - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Client; - return this.apiClient.callApi( - '/another-fake/dummy', 'PATCH', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - }; - - return exports; -})); diff --git a/samples/client/petstore/javascript/src/api/FakeApi.js b/samples/client/petstore/javascript/src/api/FakeApi.js deleted file mode 100644 index 9512f4d082c2..000000000000 --- a/samples/client/petstore/javascript/src/api/FakeApi.js +++ /dev/null @@ -1,772 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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', 'model/FileSchemaTestClass', 'model/OuterComposite', 'model/User', 'model/XmlItem'], 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'), require('../model/FileSchemaTestClass'), require('../model/OuterComposite'), require('../model/User'), require('../model/XmlItem')); - } else { - // Browser globals (root is window) - if (!root.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.FakeApi = factory(root.OpenApiPetstore.ApiClient, root.OpenApiPetstore.Client, root.OpenApiPetstore.FileSchemaTestClass, root.OpenApiPetstore.OuterComposite, root.OpenApiPetstore.User, root.OpenApiPetstore.XmlItem); - } -}(this, function(ApiClient, Client, FileSchemaTestClass, OuterComposite, User, XmlItem) { - 'use strict'; - - /** - * Fake service. - * @module api/FakeApi - * @version 1.0.0 - */ - - /** - * Constructs a new FakeApi. - * @alias module:api/FakeApi - * @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; - - - /** - * Callback function to receive the result of the createXmlItem operation. - * @callback module:api/FakeApi~createXmlItemCallback - * @param {String} error Error message, if any. - * @param data This operation does not return a value. - * @param {String} response The complete HTTP response. - */ - - /** - * creates an XmlItem - * this route creates an XmlItem - * @param {module:model/XmlItem} xmlItem XmlItem Body - * @param {module:api/FakeApi~createXmlItemCallback} callback The callback function, accepting three arguments: error, data, response - */ - this.createXmlItem = function(xmlItem, callback) { - var postBody = xmlItem; - // verify the required parameter 'xmlItem' is set - if (xmlItem === undefined || xmlItem === null) { - throw new Error("Missing the required parameter 'xmlItem' when calling createXmlItem"); - } - - var pathParams = { - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = []; - var contentTypes = ['application/xml', 'application/xml; charset=utf-8', 'application/xml; charset=utf-16', 'text/xml', 'text/xml; charset=utf-8', 'text/xml; charset=utf-16']; - var accepts = []; - var returnType = null; - return this.apiClient.callApi( - '/fake/create_xml_item', 'POST', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the fakeOuterBooleanSerialize operation. - * @callback module:api/FakeApi~fakeOuterBooleanSerializeCallback - * @param {String} error Error message, if any. - * @param {Boolean} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * Test serialization of outer boolean types - * @param {Object} opts Optional parameters - * @param {Boolean} opts.body Input boolean as post body - * @param {module:api/FakeApi~fakeOuterBooleanSerializeCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link Boolean} - */ - this.fakeOuterBooleanSerialize = function(opts, callback) { - opts = opts || {}; - var postBody = opts['body']; - - var pathParams = { - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = []; - var contentTypes = []; - var accepts = ['*/*']; - var returnType = 'Boolean'; - return this.apiClient.callApi( - '/fake/outer/boolean', 'POST', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the fakeOuterCompositeSerialize operation. - * @callback module:api/FakeApi~fakeOuterCompositeSerializeCallback - * @param {String} error Error message, if any. - * @param {module:model/OuterComposite} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * Test serialization of object with outer number type - * @param {Object} opts Optional parameters - * @param {module:model/OuterComposite} opts.body Input composite as post body - * @param {module:api/FakeApi~fakeOuterCompositeSerializeCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:model/OuterComposite} - */ - this.fakeOuterCompositeSerialize = function(opts, callback) { - opts = opts || {}; - var postBody = opts['body']; - - var pathParams = { - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = []; - var contentTypes = []; - var accepts = ['*/*']; - var returnType = OuterComposite; - return this.apiClient.callApi( - '/fake/outer/composite', 'POST', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the fakeOuterNumberSerialize operation. - * @callback module:api/FakeApi~fakeOuterNumberSerializeCallback - * @param {String} error Error message, if any. - * @param {Number} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * Test serialization of outer number types - * @param {Object} opts Optional parameters - * @param {Number} opts.body Input number as post body - * @param {module:api/FakeApi~fakeOuterNumberSerializeCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link Number} - */ - this.fakeOuterNumberSerialize = function(opts, callback) { - opts = opts || {}; - var postBody = opts['body']; - - var pathParams = { - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = []; - var contentTypes = []; - var accepts = ['*/*']; - var returnType = 'Number'; - return this.apiClient.callApi( - '/fake/outer/number', 'POST', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the fakeOuterStringSerialize operation. - * @callback module:api/FakeApi~fakeOuterStringSerializeCallback - * @param {String} error Error message, if any. - * @param {String} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * Test serialization of outer string types - * @param {Object} opts Optional parameters - * @param {String} opts.body Input string as post body - * @param {module:api/FakeApi~fakeOuterStringSerializeCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link String} - */ - this.fakeOuterStringSerialize = function(opts, callback) { - opts = opts || {}; - var postBody = opts['body']; - - var pathParams = { - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = []; - var contentTypes = []; - var accepts = ['*/*']; - var returnType = 'String'; - return this.apiClient.callApi( - '/fake/outer/string', 'POST', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the testBodyWithFileSchema operation. - * @callback module:api/FakeApi~testBodyWithFileSchemaCallback - * @param {String} error Error message, if any. - * @param data This operation does not return a value. - * @param {String} response The complete HTTP response. - */ - - /** - * For this test, the body for this request much reference a schema named `File`. - * @param {module:model/FileSchemaTestClass} body - * @param {module:api/FakeApi~testBodyWithFileSchemaCallback} callback The callback function, accepting three arguments: error, data, response - */ - this.testBodyWithFileSchema = function(body, callback) { - 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 testBodyWithFileSchema"); - } - - var pathParams = { - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = []; - var contentTypes = ['application/json']; - var accepts = []; - var returnType = null; - return this.apiClient.callApi( - '/fake/body-with-file-schema', 'PUT', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the testBodyWithQueryParams operation. - * @callback module:api/FakeApi~testBodyWithQueryParamsCallback - * @param {String} error Error message, if any. - * @param data This operation does not return a value. - * @param {String} response The complete HTTP response. - */ - - /** - * @param {String} query - * @param {module:model/User} body - * @param {module:api/FakeApi~testBodyWithQueryParamsCallback} callback The callback function, accepting three arguments: error, data, response - */ - this.testBodyWithQueryParams = function(query, body, callback) { - var postBody = body; - // verify the required parameter 'query' is set - if (query === undefined || query === null) { - throw new Error("Missing the required parameter 'query' when calling testBodyWithQueryParams"); - } - // verify the required parameter 'body' is set - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling testBodyWithQueryParams"); - } - - var pathParams = { - }; - var queryParams = { - 'query': query, - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = []; - var contentTypes = ['application/json']; - var accepts = []; - var returnType = null; - return this.apiClient.callApi( - '/fake/body-with-query-params', 'PUT', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the testClientModel operation. - * @callback module:api/FakeApi~testClientModelCallback - * @param {String} error Error message, if any. - * @param {module:model/Client} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * To test \"client\" model - * To test \"client\" model - * @param {module:model/Client} body client model - * @param {module:api/FakeApi~testClientModelCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:model/Client} - */ - this.testClientModel = function(body, callback) { - 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 testClientModel"); - } - - var pathParams = { - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Client; - return this.apiClient.callApi( - '/fake', 'PATCH', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the testEndpointParameters operation. - * @callback module:api/FakeApi~testEndpointParametersCallback - * @param {String} error Error message, if any. - * @param data This operation does not return a value. - * @param {String} response The complete HTTP response. - */ - - /** - * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - * @param {Number} _number None - * @param {Number} _double None - * @param {String} patternWithoutDelimiter None - * @param {Blob} _byte None - * @param {Object} opts Optional parameters - * @param {Number} opts.integer None - * @param {Number} opts.int32 None - * @param {Number} opts.int64 None - * @param {Number} opts._float None - * @param {String} opts._string None - * @param {File} opts.binary None - * @param {Date} opts._date None - * @param {Date} opts.dateTime None - * @param {String} opts.password None - * @param {String} opts.callback None - * @param {module:api/FakeApi~testEndpointParametersCallback} callback The callback function, accepting three arguments: error, data, response - */ - this.testEndpointParameters = function(_number, _double, patternWithoutDelimiter, _byte, opts, callback) { - opts = opts || {}; - var postBody = null; - // verify the required parameter '_number' is set - if (_number === undefined || _number === null) { - throw new Error("Missing the required parameter '_number' when calling testEndpointParameters"); - } - // verify the required parameter '_double' is set - if (_double === undefined || _double === null) { - throw new Error("Missing the required parameter '_double' when calling testEndpointParameters"); - } - // verify the required parameter 'patternWithoutDelimiter' is set - if (patternWithoutDelimiter === undefined || patternWithoutDelimiter === null) { - throw new Error("Missing the required parameter 'patternWithoutDelimiter' when calling testEndpointParameters"); - } - // verify the required parameter '_byte' is set - if (_byte === undefined || _byte === null) { - throw new Error("Missing the required parameter '_byte' when calling testEndpointParameters"); - } - - var pathParams = { - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - 'integer': opts['integer'], - 'int32': opts['int32'], - 'int64': opts['int64'], - 'number': _number, - 'float': opts['_float'], - 'double': _double, - 'string': opts['_string'], - 'pattern_without_delimiter': patternWithoutDelimiter, - 'byte': _byte, - 'binary': opts['binary'], - 'date': opts['_date'], - 'dateTime': opts['dateTime'], - 'password': opts['password'], - 'callback': opts['callback'] - }; - - var authNames = ['http_basic_test']; - var contentTypes = ['application/x-www-form-urlencoded']; - var accepts = []; - var returnType = null; - return this.apiClient.callApi( - '/fake', 'POST', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the testEnumParameters operation. - * @callback module:api/FakeApi~testEnumParametersCallback - * @param {String} error Error message, if any. - * @param data This operation does not return a value. - * @param {String} response The complete HTTP response. - */ - - /** - * To test enum parameters - * To test enum parameters - * @param {Object} opts Optional parameters - * @param {Array.} opts.enumHeaderStringArray Header parameter enum test (string array) - * @param {module:model/String} opts.enumHeaderString Header parameter enum test (string) (default to '-efg') - * @param {Array.} opts.enumQueryStringArray Query parameter enum test (string array) - * @param {module:model/String} opts.enumQueryString Query parameter enum test (string) (default to '-efg') - * @param {module:model/Number} opts.enumQueryInteger Query parameter enum test (double) - * @param {module:model/Number} opts.enumQueryDouble Query parameter enum test (double) - * @param {Array.} opts.enumFormStringArray Form parameter enum test (string array) (default to '$') - * @param {module:model/String} opts.enumFormString Form parameter enum test (string) (default to '-efg') - * @param {module:api/FakeApi~testEnumParametersCallback} callback The callback function, accepting three arguments: error, data, response - */ - this.testEnumParameters = function(opts, callback) { - opts = opts || {}; - var postBody = null; - - var pathParams = { - }; - var queryParams = { - 'enum_query_string': opts['enumQueryString'], - 'enum_query_integer': opts['enumQueryInteger'], - 'enum_query_double': opts['enumQueryDouble'], - }; - var collectionQueryParams = { - 'enum_query_string_array': { - value: opts['enumQueryStringArray'], - collectionFormat: 'csv' - }, - }; - var headerParams = { - 'enum_header_string_array': opts['enumHeaderStringArray'], - 'enum_header_string': opts['enumHeaderString'] - }; - var formParams = { - 'enum_form_string_array': this.apiClient.buildCollectionParam(opts['enumFormStringArray'], 'csv'), - 'enum_form_string': opts['enumFormString'] - }; - - var authNames = []; - var contentTypes = ['application/x-www-form-urlencoded']; - var accepts = []; - var returnType = null; - return this.apiClient.callApi( - '/fake', 'GET', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the testGroupParameters operation. - * @callback module:api/FakeApi~testGroupParametersCallback - * @param {String} error Error message, if any. - * @param data This operation does not return a value. - * @param {String} response The complete HTTP response. - */ - - /** - * Fake endpoint to test group parameters (optional) - * Fake endpoint to test group parameters (optional) - * @param {Number} requiredStringGroup Required String in group parameters - * @param {Boolean} requiredBooleanGroup Required Boolean in group parameters - * @param {Number} requiredInt64Group Required Integer in group parameters - * @param {Object} opts Optional parameters - * @param {Number} opts.stringGroup String in group parameters - * @param {Boolean} opts.booleanGroup Boolean in group parameters - * @param {Number} opts.int64Group Integer in group parameters - * @param {module:api/FakeApi~testGroupParametersCallback} callback The callback function, accepting three arguments: error, data, response - */ - this.testGroupParameters = function(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, opts, callback) { - opts = opts || {}; - var postBody = null; - // verify the required parameter 'requiredStringGroup' is set - if (requiredStringGroup === undefined || requiredStringGroup === null) { - throw new Error("Missing the required parameter 'requiredStringGroup' when calling testGroupParameters"); - } - // verify the required parameter 'requiredBooleanGroup' is set - if (requiredBooleanGroup === undefined || requiredBooleanGroup === null) { - throw new Error("Missing the required parameter 'requiredBooleanGroup' when calling testGroupParameters"); - } - // verify the required parameter 'requiredInt64Group' is set - if (requiredInt64Group === undefined || requiredInt64Group === null) { - throw new Error("Missing the required parameter 'requiredInt64Group' when calling testGroupParameters"); - } - - var pathParams = { - }; - var queryParams = { - 'required_string_group': requiredStringGroup, - 'required_int64_group': requiredInt64Group, - 'string_group': opts['stringGroup'], - 'int64_group': opts['int64Group'], - }; - var collectionQueryParams = { - }; - var headerParams = { - 'required_boolean_group': requiredBooleanGroup, - 'boolean_group': opts['booleanGroup'] - }; - var formParams = { - }; - - var authNames = []; - var contentTypes = []; - var accepts = []; - var returnType = null; - return this.apiClient.callApi( - '/fake', 'DELETE', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the testInlineAdditionalProperties operation. - * @callback module:api/FakeApi~testInlineAdditionalPropertiesCallback - * @param {String} error Error message, if any. - * @param data This operation does not return a value. - * @param {String} response The complete HTTP response. - */ - - /** - * test inline additionalProperties - * @param {Object.} param request body - * @param {module:api/FakeApi~testInlineAdditionalPropertiesCallback} callback The callback function, accepting three arguments: error, data, response - */ - this.testInlineAdditionalProperties = function(param, callback) { - var postBody = param; - // verify the required parameter 'param' is set - if (param === undefined || param === null) { - throw new Error("Missing the required parameter 'param' when calling testInlineAdditionalProperties"); - } - - var pathParams = { - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = []; - var contentTypes = ['application/json']; - var accepts = []; - var returnType = null; - return this.apiClient.callApi( - '/fake/inline-additionalProperties', 'POST', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the testJsonFormData operation. - * @callback module:api/FakeApi~testJsonFormDataCallback - * @param {String} error Error message, if any. - * @param data This operation does not return a value. - * @param {String} response The complete HTTP response. - */ - - /** - * test json serialization of form data - * @param {String} param field1 - * @param {String} param2 field2 - * @param {module:api/FakeApi~testJsonFormDataCallback} callback The callback function, accepting three arguments: error, data, response - */ - this.testJsonFormData = function(param, param2, callback) { - var postBody = null; - // verify the required parameter 'param' is set - if (param === undefined || param === null) { - throw new Error("Missing the required parameter 'param' when calling testJsonFormData"); - } - // verify the required parameter 'param2' is set - if (param2 === undefined || param2 === null) { - throw new Error("Missing the required parameter 'param2' when calling testJsonFormData"); - } - - var pathParams = { - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - 'param': param, - 'param2': param2 - }; - - var authNames = []; - var contentTypes = ['application/x-www-form-urlencoded']; - var accepts = []; - var returnType = null; - return this.apiClient.callApi( - '/fake/jsonFormData', 'GET', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the testQueryParameterCollectionFormat operation. - * @callback module:api/FakeApi~testQueryParameterCollectionFormatCallback - * @param {String} error Error message, if any. - * @param data This operation does not return a value. - * @param {String} response The complete HTTP response. - */ - - /** - * To test the collection format in query parameters - * @param {Array.} pipe - * @param {Array.} ioutil - * @param {Array.} http - * @param {Array.} url - * @param {Array.} context - * @param {module:api/FakeApi~testQueryParameterCollectionFormatCallback} callback The callback function, accepting three arguments: error, data, response - */ - this.testQueryParameterCollectionFormat = function(pipe, ioutil, http, url, context, callback) { - var postBody = null; - // verify the required parameter 'pipe' is set - if (pipe === undefined || pipe === null) { - throw new Error("Missing the required parameter 'pipe' when calling testQueryParameterCollectionFormat"); - } - // verify the required parameter 'ioutil' is set - if (ioutil === undefined || ioutil === null) { - throw new Error("Missing the required parameter 'ioutil' when calling testQueryParameterCollectionFormat"); - } - // verify the required parameter 'http' is set - if (http === undefined || http === null) { - throw new Error("Missing the required parameter 'http' when calling testQueryParameterCollectionFormat"); - } - // verify the required parameter 'url' is set - if (url === undefined || url === null) { - throw new Error("Missing the required parameter 'url' when calling testQueryParameterCollectionFormat"); - } - // verify the required parameter 'context' is set - if (context === undefined || context === null) { - throw new Error("Missing the required parameter 'context' when calling testQueryParameterCollectionFormat"); - } - - var pathParams = { - }; - var queryParams = { - }; - var collectionQueryParams = { - 'pipe': { - value: pipe, - collectionFormat: 'csv' - }, - 'ioutil': { - value: ioutil, - collectionFormat: 'csv' - }, - 'http': { - value: http, - collectionFormat: 'space' - }, - 'url': { - value: url, - collectionFormat: 'csv' - }, - 'context': { - value: context, - collectionFormat: 'multi' - }, - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = []; - var contentTypes = []; - var accepts = []; - var returnType = null; - return this.apiClient.callApi( - '/fake/test-query-paramters', 'PUT', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - }; - - return exports; -})); diff --git a/samples/client/petstore/javascript/src/api/FakeClassnameTags123Api.js b/samples/client/petstore/javascript/src/api/FakeClassnameTags123Api.js deleted file mode 100644 index 8ef462bffc6d..000000000000 --- a/samples/client/petstore/javascript/src/api/FakeClassnameTags123Api.js +++ /dev/null @@ -1,96 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.FakeClassnameTags123Api = factory(root.OpenApiPetstore.ApiClient, root.OpenApiPetstore.Client); - } -}(this, function(ApiClient, Client) { - 'use strict'; - - /** - * FakeClassnameTags123 service. - * @module api/FakeClassnameTags123Api - * @version 1.0.0 - */ - - /** - * Constructs a new FakeClassnameTags123Api. - * @alias module:api/FakeClassnameTags123Api - * @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; - - - /** - * Callback function to receive the result of the testClassname operation. - * @callback module:api/FakeClassnameTags123Api~testClassnameCallback - * @param {String} error Error message, if any. - * @param {module:model/Client} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * To test class name in snake case - * To test class name in snake case - * @param {module:model/Client} body client model - * @param {module:api/FakeClassnameTags123Api~testClassnameCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:model/Client} - */ - this.testClassname = function(body, callback) { - 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, null, callback - ); - } - }; - - return exports; -})); diff --git a/samples/client/petstore/javascript/src/api/PetApi.js b/samples/client/petstore/javascript/src/api/PetApi.js deleted file mode 100644 index 7af853c712a4..000000000000 --- a/samples/client/petstore/javascript/src/api/PetApi.js +++ /dev/null @@ -1,477 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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/ApiResponse', 'model/Pet'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../model/ApiResponse'), require('../model/Pet')); - } else { - // Browser globals (root is window) - if (!root.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.PetApi = factory(root.OpenApiPetstore.ApiClient, root.OpenApiPetstore.ApiResponse, root.OpenApiPetstore.Pet); - } -}(this, function(ApiClient, ApiResponse, Pet) { - 'use strict'; - - /** - * Pet service. - * @module api/PetApi - * @version 1.0.0 - */ - - /** - * Constructs a new PetApi. - * @alias module:api/PetApi - * @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; - - - /** - * Callback function to receive the result of the addPet operation. - * @callback module:api/PetApi~addPetCallback - * @param {String} error Error message, if any. - * @param data This operation does not return a value. - * @param {String} response The complete HTTP response. - */ - - /** - * Add a new pet to the store - * @param {module:model/Pet} body Pet object that needs to be added to the store - * @param {module:api/PetApi~addPetCallback} callback The callback function, accepting three arguments: error, data, response - */ - this.addPet = function(body, callback) { - 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 addPet"); - } - - var pathParams = { - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['petstore_auth']; - var contentTypes = ['application/json', 'application/xml']; - var accepts = []; - var returnType = null; - return this.apiClient.callApi( - '/pet', 'POST', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the deletePet operation. - * @callback module:api/PetApi~deletePetCallback - * @param {String} error Error message, if any. - * @param data This operation does not return a value. - * @param {String} response The complete HTTP response. - */ - - /** - * Deletes a pet - * @param {Number} petId Pet id to delete - * @param {Object} opts Optional parameters - * @param {String} opts.apiKey - * @param {module:api/PetApi~deletePetCallback} callback The callback function, accepting three arguments: error, data, response - */ - this.deletePet = function(petId, opts, callback) { - opts = opts || {}; - var postBody = null; - // verify the required parameter 'petId' is set - if (petId === undefined || petId === null) { - throw new Error("Missing the required parameter 'petId' when calling deletePet"); - } - - var pathParams = { - 'petId': petId - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - 'api_key': opts['apiKey'] - }; - var formParams = { - }; - - var authNames = ['petstore_auth']; - var contentTypes = []; - var accepts = []; - var returnType = null; - return this.apiClient.callApi( - '/pet/{petId}', 'DELETE', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the findPetsByStatus operation. - * @callback module:api/PetApi~findPetsByStatusCallback - * @param {String} error Error message, if any. - * @param {Array.} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * Finds Pets by status - * Multiple status values can be provided with comma separated strings - * @param {Array.} status Status values that need to be considered for filter - * @param {module:api/PetApi~findPetsByStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link Array.} - */ - this.findPetsByStatus = function(status, callback) { - var postBody = null; - // verify the required parameter 'status' is set - if (status === undefined || status === null) { - throw new Error("Missing the required parameter 'status' when calling findPetsByStatus"); - } - - var pathParams = { - }; - var queryParams = { - }; - var collectionQueryParams = { - 'status': { - value: status, - collectionFormat: 'csv' - }, - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['petstore_auth']; - var contentTypes = []; - var accepts = ['application/xml', 'application/json']; - var returnType = [Pet]; - return this.apiClient.callApi( - '/pet/findByStatus', 'GET', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the findPetsByTags operation. - * @callback module:api/PetApi~findPetsByTagsCallback - * @param {String} error Error message, if any. - * @param {Array.} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * Finds Pets by tags - * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. - * @param {Array.} tags Tags to filter by - * @param {module:api/PetApi~findPetsByTagsCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link Array.} - */ - this.findPetsByTags = function(tags, callback) { - var postBody = null; - // verify the required parameter 'tags' is set - if (tags === undefined || tags === null) { - throw new Error("Missing the required parameter 'tags' when calling findPetsByTags"); - } - - var pathParams = { - }; - var queryParams = { - }; - var collectionQueryParams = { - 'tags': { - value: tags, - collectionFormat: 'csv' - }, - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['petstore_auth']; - var contentTypes = []; - var accepts = ['application/xml', 'application/json']; - var returnType = [Pet]; - return this.apiClient.callApi( - '/pet/findByTags', 'GET', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the getPetById operation. - * @callback module:api/PetApi~getPetByIdCallback - * @param {String} error Error message, if any. - * @param {module:model/Pet} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * Find pet by ID - * Returns a single pet - * @param {Number} petId ID of pet to return - * @param {module:api/PetApi~getPetByIdCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:model/Pet} - */ - this.getPetById = function(petId, callback) { - var postBody = null; - // verify the required parameter 'petId' is set - if (petId === undefined || petId === null) { - throw new Error("Missing the required parameter 'petId' when calling getPetById"); - } - - var pathParams = { - 'petId': petId - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['api_key']; - var contentTypes = []; - var accepts = ['application/xml', 'application/json']; - var returnType = Pet; - return this.apiClient.callApi( - '/pet/{petId}', 'GET', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the updatePet operation. - * @callback module:api/PetApi~updatePetCallback - * @param {String} error Error message, if any. - * @param data This operation does not return a value. - * @param {String} response The complete HTTP response. - */ - - /** - * Update an existing pet - * @param {module:model/Pet} body Pet object that needs to be added to the store - * @param {module:api/PetApi~updatePetCallback} callback The callback function, accepting three arguments: error, data, response - */ - this.updatePet = function(body, callback) { - 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 updatePet"); - } - - var pathParams = { - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['petstore_auth']; - var contentTypes = ['application/json', 'application/xml']; - var accepts = []; - var returnType = null; - return this.apiClient.callApi( - '/pet', 'PUT', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the updatePetWithForm operation. - * @callback module:api/PetApi~updatePetWithFormCallback - * @param {String} error Error message, if any. - * @param data This operation does not return a value. - * @param {String} response The complete HTTP response. - */ - - /** - * Updates a pet in the store with form data - * @param {Number} petId ID of pet that needs to be updated - * @param {Object} opts Optional parameters - * @param {String} opts.name Updated name of the pet - * @param {String} opts.status Updated status of the pet - * @param {module:api/PetApi~updatePetWithFormCallback} callback The callback function, accepting three arguments: error, data, response - */ - this.updatePetWithForm = function(petId, opts, callback) { - opts = opts || {}; - var postBody = null; - // verify the required parameter 'petId' is set - if (petId === undefined || petId === null) { - throw new Error("Missing the required parameter 'petId' when calling updatePetWithForm"); - } - - var pathParams = { - 'petId': petId - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - 'name': opts['name'], - 'status': opts['status'] - }; - - var authNames = ['petstore_auth']; - var contentTypes = ['application/x-www-form-urlencoded']; - var accepts = []; - var returnType = null; - return this.apiClient.callApi( - '/pet/{petId}', 'POST', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the uploadFile operation. - * @callback module:api/PetApi~uploadFileCallback - * @param {String} error Error message, if any. - * @param {module:model/ApiResponse} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * uploads an image - * @param {Number} petId ID of pet to update - * @param {Object} opts Optional parameters - * @param {String} opts.additionalMetadata Additional data to pass to server - * @param {File} opts.file file to upload - * @param {module:api/PetApi~uploadFileCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:model/ApiResponse} - */ - this.uploadFile = function(petId, opts, callback) { - opts = opts || {}; - var postBody = null; - // verify the required parameter 'petId' is set - if (petId === undefined || petId === null) { - throw new Error("Missing the required parameter 'petId' when calling uploadFile"); - } - - var pathParams = { - 'petId': petId - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - 'additionalMetadata': opts['additionalMetadata'], - 'file': opts['file'] - }; - - var authNames = ['petstore_auth']; - var contentTypes = ['multipart/form-data']; - var accepts = ['application/json']; - var returnType = ApiResponse; - return this.apiClient.callApi( - '/pet/{petId}/uploadImage', 'POST', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the uploadFileWithRequiredFile operation. - * @callback module:api/PetApi~uploadFileWithRequiredFileCallback - * @param {String} error Error message, if any. - * @param {module:model/ApiResponse} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * uploads an image (required) - * @param {Number} petId ID of pet to update - * @param {File} requiredFile file to upload - * @param {Object} opts Optional parameters - * @param {String} opts.additionalMetadata Additional data to pass to server - * @param {module:api/PetApi~uploadFileWithRequiredFileCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:model/ApiResponse} - */ - this.uploadFileWithRequiredFile = function(petId, requiredFile, opts, callback) { - opts = opts || {}; - var postBody = null; - // verify the required parameter 'petId' is set - if (petId === undefined || petId === null) { - throw new Error("Missing the required parameter 'petId' when calling uploadFileWithRequiredFile"); - } - // verify the required parameter 'requiredFile' is set - if (requiredFile === undefined || requiredFile === null) { - throw new Error("Missing the required parameter 'requiredFile' when calling uploadFileWithRequiredFile"); - } - - var pathParams = { - 'petId': petId - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - 'additionalMetadata': opts['additionalMetadata'], - 'requiredFile': requiredFile - }; - - var authNames = ['petstore_auth']; - var contentTypes = ['multipart/form-data']; - var accepts = ['application/json']; - var returnType = ApiResponse; - return this.apiClient.callApi( - '/fake/{petId}/uploadImageWithRequiredFile', 'POST', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - }; - - return exports; -})); diff --git a/samples/client/petstore/javascript/src/api/StoreApi.js b/samples/client/petstore/javascript/src/api/StoreApi.js deleted file mode 100644 index 11ba830249e7..000000000000 --- a/samples/client/petstore/javascript/src/api/StoreApi.js +++ /dev/null @@ -1,223 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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/Order'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../model/Order')); - } else { - // Browser globals (root is window) - if (!root.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.StoreApi = factory(root.OpenApiPetstore.ApiClient, root.OpenApiPetstore.Order); - } -}(this, function(ApiClient, Order) { - 'use strict'; - - /** - * Store service. - * @module api/StoreApi - * @version 1.0.0 - */ - - /** - * Constructs a new StoreApi. - * @alias module:api/StoreApi - * @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; - - - /** - * Callback function to receive the result of the deleteOrder operation. - * @callback module:api/StoreApi~deleteOrderCallback - * @param {String} error Error message, if any. - * @param data This operation does not return a value. - * @param {String} response The complete HTTP response. - */ - - /** - * Delete purchase order by ID - * For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors - * @param {String} orderId ID of the order that needs to be deleted - * @param {module:api/StoreApi~deleteOrderCallback} callback The callback function, accepting three arguments: error, data, response - */ - this.deleteOrder = function(orderId, callback) { - var postBody = null; - // verify the required parameter 'orderId' is set - if (orderId === undefined || orderId === null) { - throw new Error("Missing the required parameter 'orderId' when calling deleteOrder"); - } - - var pathParams = { - 'order_id': orderId - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = []; - var contentTypes = []; - var accepts = []; - var returnType = null; - return this.apiClient.callApi( - '/store/order/{order_id}', 'DELETE', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the getInventory operation. - * @callback module:api/StoreApi~getInventoryCallback - * @param {String} error Error message, if any. - * @param {Object.} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * Returns pet inventories by status - * Returns a map of status codes to quantities - * @param {module:api/StoreApi~getInventoryCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link Object.} - */ - this.getInventory = function(callback) { - var postBody = null; - - var pathParams = { - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['api_key']; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = {'String': 'Number'}; - return this.apiClient.callApi( - '/store/inventory', 'GET', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the getOrderById operation. - * @callback module:api/StoreApi~getOrderByIdCallback - * @param {String} error Error message, if any. - * @param {module:model/Order} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * Find purchase order by ID - * For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions - * @param {Number} orderId ID of pet that needs to be fetched - * @param {module:api/StoreApi~getOrderByIdCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:model/Order} - */ - this.getOrderById = function(orderId, callback) { - var postBody = null; - // verify the required parameter 'orderId' is set - if (orderId === undefined || orderId === null) { - throw new Error("Missing the required parameter 'orderId' when calling getOrderById"); - } - - var pathParams = { - 'order_id': orderId - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = []; - var contentTypes = []; - var accepts = ['application/xml', 'application/json']; - var returnType = Order; - return this.apiClient.callApi( - '/store/order/{order_id}', 'GET', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the placeOrder operation. - * @callback module:api/StoreApi~placeOrderCallback - * @param {String} error Error message, if any. - * @param {module:model/Order} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * Place an order for a pet - * @param {module:model/Order} body order placed for purchasing the pet - * @param {module:api/StoreApi~placeOrderCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:model/Order} - */ - this.placeOrder = function(body, callback) { - 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 placeOrder"); - } - - var pathParams = { - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = []; - var contentTypes = []; - var accepts = ['application/xml', 'application/json']; - var returnType = Order; - return this.apiClient.callApi( - '/store/order', 'POST', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - }; - - return exports; -})); diff --git a/samples/client/petstore/javascript/src/api/UserApi.js b/samples/client/petstore/javascript/src/api/UserApi.js deleted file mode 100644 index a92872f7a335..000000000000 --- a/samples/client/petstore/javascript/src/api/UserApi.js +++ /dev/null @@ -1,403 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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/User'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../model/User')); - } else { - // Browser globals (root is window) - if (!root.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.UserApi = factory(root.OpenApiPetstore.ApiClient, root.OpenApiPetstore.User); - } -}(this, function(ApiClient, User) { - 'use strict'; - - /** - * User service. - * @module api/UserApi - * @version 1.0.0 - */ - - /** - * Constructs a new UserApi. - * @alias module:api/UserApi - * @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; - - - /** - * Callback function to receive the result of the createUser operation. - * @callback module:api/UserApi~createUserCallback - * @param {String} error Error message, if any. - * @param data This operation does not return a value. - * @param {String} response The complete HTTP response. - */ - - /** - * Create user - * This can only be done by the logged in user. - * @param {module:model/User} body Created user object - * @param {module:api/UserApi~createUserCallback} callback The callback function, accepting three arguments: error, data, response - */ - this.createUser = function(body, callback) { - 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 createUser"); - } - - var pathParams = { - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = []; - var contentTypes = []; - var accepts = []; - var returnType = null; - return this.apiClient.callApi( - '/user', 'POST', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the createUsersWithArrayInput operation. - * @callback module:api/UserApi~createUsersWithArrayInputCallback - * @param {String} error Error message, if any. - * @param data This operation does not return a value. - * @param {String} response The complete HTTP response. - */ - - /** - * Creates list of users with given input array - * @param {Array.} body List of user object - * @param {module:api/UserApi~createUsersWithArrayInputCallback} callback The callback function, accepting three arguments: error, data, response - */ - this.createUsersWithArrayInput = function(body, callback) { - 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 createUsersWithArrayInput"); - } - - var pathParams = { - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = []; - var contentTypes = []; - var accepts = []; - var returnType = null; - return this.apiClient.callApi( - '/user/createWithArray', 'POST', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the createUsersWithListInput operation. - * @callback module:api/UserApi~createUsersWithListInputCallback - * @param {String} error Error message, if any. - * @param data This operation does not return a value. - * @param {String} response The complete HTTP response. - */ - - /** - * Creates list of users with given input array - * @param {Array.} body List of user object - * @param {module:api/UserApi~createUsersWithListInputCallback} callback The callback function, accepting three arguments: error, data, response - */ - this.createUsersWithListInput = function(body, callback) { - 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 createUsersWithListInput"); - } - - var pathParams = { - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = []; - var contentTypes = []; - var accepts = []; - var returnType = null; - return this.apiClient.callApi( - '/user/createWithList', 'POST', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the deleteUser operation. - * @callback module:api/UserApi~deleteUserCallback - * @param {String} error Error message, if any. - * @param data This operation does not return a value. - * @param {String} response The complete HTTP response. - */ - - /** - * Delete user - * This can only be done by the logged in user. - * @param {String} username The name that needs to be deleted - * @param {module:api/UserApi~deleteUserCallback} callback The callback function, accepting three arguments: error, data, response - */ - this.deleteUser = function(username, callback) { - var postBody = null; - // verify the required parameter 'username' is set - if (username === undefined || username === null) { - throw new Error("Missing the required parameter 'username' when calling deleteUser"); - } - - var pathParams = { - 'username': username - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = []; - var contentTypes = []; - var accepts = []; - var returnType = null; - return this.apiClient.callApi( - '/user/{username}', 'DELETE', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the getUserByName operation. - * @callback module:api/UserApi~getUserByNameCallback - * @param {String} error Error message, if any. - * @param {module:model/User} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * Get user by user name - * @param {String} username The name that needs to be fetched. Use user1 for testing. - * @param {module:api/UserApi~getUserByNameCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:model/User} - */ - this.getUserByName = function(username, callback) { - var postBody = null; - // verify the required parameter 'username' is set - if (username === undefined || username === null) { - throw new Error("Missing the required parameter 'username' when calling getUserByName"); - } - - var pathParams = { - 'username': username - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = []; - var contentTypes = []; - var accepts = ['application/xml', 'application/json']; - var returnType = User; - return this.apiClient.callApi( - '/user/{username}', 'GET', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the loginUser operation. - * @callback module:api/UserApi~loginUserCallback - * @param {String} error Error message, if any. - * @param {String} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * Logs user into the system - * @param {String} username The user name for login - * @param {String} password The password for login in clear text - * @param {module:api/UserApi~loginUserCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link String} - */ - this.loginUser = function(username, password, callback) { - var postBody = null; - // verify the required parameter 'username' is set - if (username === undefined || username === null) { - throw new Error("Missing the required parameter 'username' when calling loginUser"); - } - // verify the required parameter 'password' is set - if (password === undefined || password === null) { - throw new Error("Missing the required parameter 'password' when calling loginUser"); - } - - var pathParams = { - }; - var queryParams = { - 'username': username, - 'password': password, - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = []; - var contentTypes = []; - var accepts = ['application/xml', 'application/json']; - var returnType = 'String'; - return this.apiClient.callApi( - '/user/login', 'GET', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the logoutUser operation. - * @callback module:api/UserApi~logoutUserCallback - * @param {String} error Error message, if any. - * @param data This operation does not return a value. - * @param {String} response The complete HTTP response. - */ - - /** - * Logs out current logged in user session - * @param {module:api/UserApi~logoutUserCallback} callback The callback function, accepting three arguments: error, data, response - */ - this.logoutUser = function(callback) { - var postBody = null; - - var pathParams = { - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = []; - var contentTypes = []; - var accepts = []; - var returnType = null; - return this.apiClient.callApi( - '/user/logout', 'GET', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the updateUser operation. - * @callback module:api/UserApi~updateUserCallback - * @param {String} error Error message, if any. - * @param data This operation does not return a value. - * @param {String} response The complete HTTP response. - */ - - /** - * Updated user - * This can only be done by the logged in user. - * @param {String} username name that need to be deleted - * @param {module:model/User} body Updated user object - * @param {module:api/UserApi~updateUserCallback} callback The callback function, accepting three arguments: error, data, response - */ - this.updateUser = function(username, body, callback) { - var postBody = body; - // verify the required parameter 'username' is set - if (username === undefined || username === null) { - throw new Error("Missing the required parameter 'username' when calling updateUser"); - } - // verify the required parameter 'body' is set - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateUser"); - } - - var pathParams = { - 'username': username - }; - var queryParams = { - }; - var collectionQueryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = []; - var contentTypes = []; - var accepts = []; - var returnType = null; - return this.apiClient.callApi( - '/user/{username}', 'PUT', - pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - }; - - return exports; -})); diff --git a/samples/client/petstore/javascript/src/index.js b/samples/client/petstore/javascript/src/index.js deleted file mode 100644 index a1defd20ce97..000000000000 --- a/samples/client/petstore/javascript/src/index.js +++ /dev/null @@ -1,337 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['ApiClient', 'model/AdditionalPropertiesAnyType', 'model/AdditionalPropertiesArray', 'model/AdditionalPropertiesBoolean', 'model/AdditionalPropertiesClass', 'model/AdditionalPropertiesInteger', 'model/AdditionalPropertiesNumber', 'model/AdditionalPropertiesObject', 'model/AdditionalPropertiesString', 'model/Animal', 'model/ApiResponse', 'model/ArrayOfArrayOfNumberOnly', 'model/ArrayOfNumberOnly', 'model/ArrayTest', 'model/BigCat', 'model/BigCatAllOf', 'model/Capitalization', 'model/Cat', 'model/CatAllOf', 'model/Category', 'model/ClassModel', 'model/Client', 'model/Dog', 'model/DogAllOf', 'model/EnumArrays', 'model/EnumClass', 'model/EnumTest', 'model/File', 'model/FileSchemaTestClass', 'model/FormatTest', 'model/HasOnlyReadOnly', 'model/List', 'model/MapTest', 'model/MixedPropertiesAndAdditionalPropertiesClass', 'model/Model200Response', 'model/ModelReturn', 'model/Name', 'model/NumberOnly', 'model/Order', 'model/OuterComposite', 'model/OuterEnum', 'model/Pet', 'model/ReadOnlyFirst', 'model/SpecialModelName', 'model/Tag', 'model/TypeHolderDefault', 'model/TypeHolderExample', 'model/User', 'model/XmlItem', 'api/AnotherFakeApi', 'api/FakeApi', 'api/FakeClassnameTags123Api', 'api/PetApi', 'api/StoreApi', 'api/UserApi'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('./ApiClient'), require('./model/AdditionalPropertiesAnyType'), require('./model/AdditionalPropertiesArray'), require('./model/AdditionalPropertiesBoolean'), require('./model/AdditionalPropertiesClass'), require('./model/AdditionalPropertiesInteger'), require('./model/AdditionalPropertiesNumber'), require('./model/AdditionalPropertiesObject'), require('./model/AdditionalPropertiesString'), require('./model/Animal'), require('./model/ApiResponse'), require('./model/ArrayOfArrayOfNumberOnly'), require('./model/ArrayOfNumberOnly'), require('./model/ArrayTest'), require('./model/BigCat'), require('./model/BigCatAllOf'), require('./model/Capitalization'), require('./model/Cat'), require('./model/CatAllOf'), require('./model/Category'), require('./model/ClassModel'), require('./model/Client'), require('./model/Dog'), require('./model/DogAllOf'), require('./model/EnumArrays'), require('./model/EnumClass'), require('./model/EnumTest'), require('./model/File'), require('./model/FileSchemaTestClass'), require('./model/FormatTest'), require('./model/HasOnlyReadOnly'), require('./model/List'), require('./model/MapTest'), require('./model/MixedPropertiesAndAdditionalPropertiesClass'), require('./model/Model200Response'), require('./model/ModelReturn'), require('./model/Name'), require('./model/NumberOnly'), require('./model/Order'), require('./model/OuterComposite'), require('./model/OuterEnum'), require('./model/Pet'), require('./model/ReadOnlyFirst'), require('./model/SpecialModelName'), require('./model/Tag'), require('./model/TypeHolderDefault'), require('./model/TypeHolderExample'), require('./model/User'), require('./model/XmlItem'), require('./api/AnotherFakeApi'), require('./api/FakeApi'), require('./api/FakeClassnameTags123Api'), require('./api/PetApi'), require('./api/StoreApi'), require('./api/UserApi')); - } -}(function(ApiClient, AdditionalPropertiesAnyType, AdditionalPropertiesArray, AdditionalPropertiesBoolean, AdditionalPropertiesClass, AdditionalPropertiesInteger, AdditionalPropertiesNumber, AdditionalPropertiesObject, AdditionalPropertiesString, Animal, ApiResponse, ArrayOfArrayOfNumberOnly, ArrayOfNumberOnly, ArrayTest, BigCat, BigCatAllOf, Capitalization, Cat, CatAllOf, Category, ClassModel, Client, Dog, DogAllOf, EnumArrays, EnumClass, EnumTest, File, FileSchemaTestClass, FormatTest, HasOnlyReadOnly, List, MapTest, MixedPropertiesAndAdditionalPropertiesClass, Model200Response, ModelReturn, Name, NumberOnly, Order, OuterComposite, OuterEnum, Pet, ReadOnlyFirst, SpecialModelName, Tag, TypeHolderDefault, TypeHolderExample, User, XmlItem, AnotherFakeApi, FakeApi, FakeClassnameTags123Api, PetApi, StoreApi, UserApi) { - 'use strict'; - - /** - * This_spec_is_mainly_for_testing_Petstore_server_and_contains_fake_endpoints_models__Please_do_not_use_this_for_any_other_purpose__Special_characters___.
- * The index module provides access to constructors for all the classes which comprise the public API. - *

- * An AMD (recommended!) or CommonJS application will generally do something equivalent to the following: - *

-   * var OpenApiPetstore = require('index'); // See note below*.
-   * var xxxSvc = new OpenApiPetstore.XxxApi(); // Allocate the API class we're going to use.
-   * var yyyModel = new OpenApiPetstore.Yyy(); // Construct a model instance.
-   * yyyModel.someProperty = 'someValue';
-   * ...
-   * var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
-   * ...
-   * 
- * *NOTE: For a top-level AMD script, use require(['index'], function(){...}) - * and put the application logic within the callback function. - *

- *

- * A non-AMD browser application (discouraged) might do something like this: - *

-   * var xxxSvc = new OpenApiPetstore.XxxApi(); // Allocate the API class we're going to use.
-   * var yyy = new OpenApiPetstore.Yyy(); // Construct a model instance.
-   * yyyModel.someProperty = 'someValue';
-   * ...
-   * var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
-   * ...
-   * 
- *

- * @module index - * @version 1.0.0 - */ - var exports = { - /** - * The ApiClient constructor. - * @property {module:ApiClient} - */ - ApiClient: ApiClient, - /** - * The AdditionalPropertiesAnyType model constructor. - * @property {module:model/AdditionalPropertiesAnyType} - */ - AdditionalPropertiesAnyType: AdditionalPropertiesAnyType, - /** - * The AdditionalPropertiesArray model constructor. - * @property {module:model/AdditionalPropertiesArray} - */ - AdditionalPropertiesArray: AdditionalPropertiesArray, - /** - * The AdditionalPropertiesBoolean model constructor. - * @property {module:model/AdditionalPropertiesBoolean} - */ - AdditionalPropertiesBoolean: AdditionalPropertiesBoolean, - /** - * The AdditionalPropertiesClass model constructor. - * @property {module:model/AdditionalPropertiesClass} - */ - AdditionalPropertiesClass: AdditionalPropertiesClass, - /** - * The AdditionalPropertiesInteger model constructor. - * @property {module:model/AdditionalPropertiesInteger} - */ - AdditionalPropertiesInteger: AdditionalPropertiesInteger, - /** - * The AdditionalPropertiesNumber model constructor. - * @property {module:model/AdditionalPropertiesNumber} - */ - AdditionalPropertiesNumber: AdditionalPropertiesNumber, - /** - * The AdditionalPropertiesObject model constructor. - * @property {module:model/AdditionalPropertiesObject} - */ - AdditionalPropertiesObject: AdditionalPropertiesObject, - /** - * The AdditionalPropertiesString model constructor. - * @property {module:model/AdditionalPropertiesString} - */ - AdditionalPropertiesString: AdditionalPropertiesString, - /** - * The Animal model constructor. - * @property {module:model/Animal} - */ - Animal: Animal, - /** - * The ApiResponse model constructor. - * @property {module:model/ApiResponse} - */ - ApiResponse: ApiResponse, - /** - * The ArrayOfArrayOfNumberOnly model constructor. - * @property {module:model/ArrayOfArrayOfNumberOnly} - */ - ArrayOfArrayOfNumberOnly: ArrayOfArrayOfNumberOnly, - /** - * The ArrayOfNumberOnly model constructor. - * @property {module:model/ArrayOfNumberOnly} - */ - ArrayOfNumberOnly: ArrayOfNumberOnly, - /** - * The ArrayTest model constructor. - * @property {module:model/ArrayTest} - */ - ArrayTest: ArrayTest, - /** - * The BigCat model constructor. - * @property {module:model/BigCat} - */ - BigCat: BigCat, - /** - * The BigCatAllOf model constructor. - * @property {module:model/BigCatAllOf} - */ - BigCatAllOf: BigCatAllOf, - /** - * The Capitalization model constructor. - * @property {module:model/Capitalization} - */ - Capitalization: Capitalization, - /** - * The Cat model constructor. - * @property {module:model/Cat} - */ - Cat: Cat, - /** - * The CatAllOf model constructor. - * @property {module:model/CatAllOf} - */ - CatAllOf: CatAllOf, - /** - * The Category model constructor. - * @property {module:model/Category} - */ - Category: Category, - /** - * The ClassModel model constructor. - * @property {module:model/ClassModel} - */ - ClassModel: ClassModel, - /** - * The Client model constructor. - * @property {module:model/Client} - */ - Client: Client, - /** - * The Dog model constructor. - * @property {module:model/Dog} - */ - Dog: Dog, - /** - * The DogAllOf model constructor. - * @property {module:model/DogAllOf} - */ - DogAllOf: DogAllOf, - /** - * The EnumArrays model constructor. - * @property {module:model/EnumArrays} - */ - EnumArrays: EnumArrays, - /** - * The EnumClass model constructor. - * @property {module:model/EnumClass} - */ - EnumClass: EnumClass, - /** - * The EnumTest model constructor. - * @property {module:model/EnumTest} - */ - EnumTest: EnumTest, - /** - * The File model constructor. - * @property {module:model/File} - */ - File: File, - /** - * The FileSchemaTestClass model constructor. - * @property {module:model/FileSchemaTestClass} - */ - FileSchemaTestClass: FileSchemaTestClass, - /** - * The FormatTest model constructor. - * @property {module:model/FormatTest} - */ - FormatTest: FormatTest, - /** - * The HasOnlyReadOnly model constructor. - * @property {module:model/HasOnlyReadOnly} - */ - HasOnlyReadOnly: HasOnlyReadOnly, - /** - * The List model constructor. - * @property {module:model/List} - */ - List: List, - /** - * The MapTest model constructor. - * @property {module:model/MapTest} - */ - MapTest: MapTest, - /** - * The MixedPropertiesAndAdditionalPropertiesClass model constructor. - * @property {module:model/MixedPropertiesAndAdditionalPropertiesClass} - */ - MixedPropertiesAndAdditionalPropertiesClass: MixedPropertiesAndAdditionalPropertiesClass, - /** - * The Model200Response model constructor. - * @property {module:model/Model200Response} - */ - Model200Response: Model200Response, - /** - * The ModelReturn model constructor. - * @property {module:model/ModelReturn} - */ - ModelReturn: ModelReturn, - /** - * The Name model constructor. - * @property {module:model/Name} - */ - Name: Name, - /** - * The NumberOnly model constructor. - * @property {module:model/NumberOnly} - */ - NumberOnly: NumberOnly, - /** - * The Order model constructor. - * @property {module:model/Order} - */ - Order: Order, - /** - * The OuterComposite model constructor. - * @property {module:model/OuterComposite} - */ - OuterComposite: OuterComposite, - /** - * The OuterEnum model constructor. - * @property {module:model/OuterEnum} - */ - OuterEnum: OuterEnum, - /** - * The Pet model constructor. - * @property {module:model/Pet} - */ - Pet: Pet, - /** - * The ReadOnlyFirst model constructor. - * @property {module:model/ReadOnlyFirst} - */ - ReadOnlyFirst: ReadOnlyFirst, - /** - * The SpecialModelName model constructor. - * @property {module:model/SpecialModelName} - */ - SpecialModelName: SpecialModelName, - /** - * The Tag model constructor. - * @property {module:model/Tag} - */ - Tag: Tag, - /** - * The TypeHolderDefault model constructor. - * @property {module:model/TypeHolderDefault} - */ - TypeHolderDefault: TypeHolderDefault, - /** - * The TypeHolderExample model constructor. - * @property {module:model/TypeHolderExample} - */ - TypeHolderExample: TypeHolderExample, - /** - * The User model constructor. - * @property {module:model/User} - */ - User: User, - /** - * The XmlItem model constructor. - * @property {module:model/XmlItem} - */ - XmlItem: XmlItem, - /** - * The AnotherFakeApi service constructor. - * @property {module:api/AnotherFakeApi} - */ - AnotherFakeApi: AnotherFakeApi, - /** - * The FakeApi service constructor. - * @property {module:api/FakeApi} - */ - FakeApi: FakeApi, - /** - * The FakeClassnameTags123Api service constructor. - * @property {module:api/FakeClassnameTags123Api} - */ - FakeClassnameTags123Api: FakeClassnameTags123Api, - /** - * The PetApi service constructor. - * @property {module:api/PetApi} - */ - PetApi: PetApi, - /** - * The StoreApi service constructor. - * @property {module:api/StoreApi} - */ - StoreApi: StoreApi, - /** - * The UserApi service constructor. - * @property {module:api/UserApi} - */ - UserApi: UserApi - }; - - return exports; -})); diff --git a/samples/client/petstore/javascript/src/model/AdditionalPropertiesAnyType.js b/samples/client/petstore/javascript/src/model/AdditionalPropertiesAnyType.js deleted file mode 100644 index 9774ac339993..000000000000 --- a/samples/client/petstore/javascript/src/model/AdditionalPropertiesAnyType.js +++ /dev/null @@ -1,81 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.AdditionalPropertiesAnyType = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The AdditionalPropertiesAnyType model module. - * @module model/AdditionalPropertiesAnyType - * @version 1.0.0 - */ - - /** - * Constructs a new AdditionalPropertiesAnyType. - * @alias module:model/AdditionalPropertiesAnyType - * @class - * @extends Object - */ - var exports = function() { - var _this = this; - - return _this; - }; - - /** - * Constructs a AdditionalPropertiesAnyType 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/AdditionalPropertiesAnyType} obj Optional instance to populate. - * @return {module:model/AdditionalPropertiesAnyType} The populated AdditionalPropertiesAnyType instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - ApiClient.constructFromObject(data, obj, 'Object'); - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - } - return obj; - } - - /** - * @member {String} name - */ - exports.prototype['name'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript/src/model/AdditionalPropertiesArray.js b/samples/client/petstore/javascript/src/model/AdditionalPropertiesArray.js deleted file mode 100644 index 44c2f9b390cc..000000000000 --- a/samples/client/petstore/javascript/src/model/AdditionalPropertiesArray.js +++ /dev/null @@ -1,81 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.AdditionalPropertiesArray = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The AdditionalPropertiesArray model module. - * @module model/AdditionalPropertiesArray - * @version 1.0.0 - */ - - /** - * Constructs a new AdditionalPropertiesArray. - * @alias module:model/AdditionalPropertiesArray - * @class - * @extends Object - */ - var exports = function() { - var _this = this; - - return _this; - }; - - /** - * Constructs a AdditionalPropertiesArray 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/AdditionalPropertiesArray} obj Optional instance to populate. - * @return {module:model/AdditionalPropertiesArray} The populated AdditionalPropertiesArray instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - ApiClient.constructFromObject(data, obj, 'Array'); - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - } - return obj; - } - - /** - * @member {String} name - */ - exports.prototype['name'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript/src/model/AdditionalPropertiesBoolean.js b/samples/client/petstore/javascript/src/model/AdditionalPropertiesBoolean.js deleted file mode 100644 index c1ad7844f52d..000000000000 --- a/samples/client/petstore/javascript/src/model/AdditionalPropertiesBoolean.js +++ /dev/null @@ -1,81 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.AdditionalPropertiesBoolean = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The AdditionalPropertiesBoolean model module. - * @module model/AdditionalPropertiesBoolean - * @version 1.0.0 - */ - - /** - * Constructs a new AdditionalPropertiesBoolean. - * @alias module:model/AdditionalPropertiesBoolean - * @class - * @extends Object - */ - var exports = function() { - var _this = this; - - return _this; - }; - - /** - * Constructs a AdditionalPropertiesBoolean 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/AdditionalPropertiesBoolean} obj Optional instance to populate. - * @return {module:model/AdditionalPropertiesBoolean} The populated AdditionalPropertiesBoolean instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - ApiClient.constructFromObject(data, obj, 'Boolean'); - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - } - return obj; - } - - /** - * @member {String} name - */ - exports.prototype['name'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript/src/model/AdditionalPropertiesClass.js b/samples/client/petstore/javascript/src/model/AdditionalPropertiesClass.js deleted file mode 100644 index 2b19a95b4862..000000000000 --- a/samples/client/petstore/javascript/src/model/AdditionalPropertiesClass.js +++ /dev/null @@ -1,148 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.AdditionalPropertiesClass = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The AdditionalPropertiesClass model module. - * @module model/AdditionalPropertiesClass - * @version 1.0.0 - */ - - /** - * Constructs a new AdditionalPropertiesClass. - * @alias module:model/AdditionalPropertiesClass - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a AdditionalPropertiesClass 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/AdditionalPropertiesClass} obj Optional instance to populate. - * @return {module:model/AdditionalPropertiesClass} The populated AdditionalPropertiesClass instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('map_string')) { - obj['map_string'] = ApiClient.convertToType(data['map_string'], {'String': 'String'}); - } - if (data.hasOwnProperty('map_number')) { - obj['map_number'] = ApiClient.convertToType(data['map_number'], {'String': 'Number'}); - } - if (data.hasOwnProperty('map_integer')) { - obj['map_integer'] = ApiClient.convertToType(data['map_integer'], {'String': 'Number'}); - } - if (data.hasOwnProperty('map_boolean')) { - obj['map_boolean'] = ApiClient.convertToType(data['map_boolean'], {'String': 'Boolean'}); - } - if (data.hasOwnProperty('map_array_integer')) { - obj['map_array_integer'] = ApiClient.convertToType(data['map_array_integer'], {'String': ['Number']}); - } - if (data.hasOwnProperty('map_array_anytype')) { - obj['map_array_anytype'] = ApiClient.convertToType(data['map_array_anytype'], {'String': [Object]}); - } - if (data.hasOwnProperty('map_map_string')) { - obj['map_map_string'] = ApiClient.convertToType(data['map_map_string'], {'String': {'String': 'String'}}); - } - if (data.hasOwnProperty('map_map_anytype')) { - obj['map_map_anytype'] = ApiClient.convertToType(data['map_map_anytype'], {'String': {'String': Object}}); - } - if (data.hasOwnProperty('anytype_1')) { - obj['anytype_1'] = ApiClient.convertToType(data['anytype_1'], Object); - } - if (data.hasOwnProperty('anytype_2')) { - obj['anytype_2'] = ApiClient.convertToType(data['anytype_2'], Object); - } - if (data.hasOwnProperty('anytype_3')) { - obj['anytype_3'] = ApiClient.convertToType(data['anytype_3'], Object); - } - } - return obj; - } - - /** - * @member {Object.} map_string - */ - exports.prototype['map_string'] = undefined; - /** - * @member {Object.} map_number - */ - exports.prototype['map_number'] = undefined; - /** - * @member {Object.} map_integer - */ - exports.prototype['map_integer'] = undefined; - /** - * @member {Object.} map_boolean - */ - exports.prototype['map_boolean'] = undefined; - /** - * @member {Object.>} map_array_integer - */ - exports.prototype['map_array_integer'] = undefined; - /** - * @member {Object.>} map_array_anytype - */ - exports.prototype['map_array_anytype'] = undefined; - /** - * @member {Object.>} map_map_string - */ - exports.prototype['map_map_string'] = undefined; - /** - * @member {Object.>} map_map_anytype - */ - exports.prototype['map_map_anytype'] = undefined; - /** - * @member {Object} anytype_1 - */ - exports.prototype['anytype_1'] = undefined; - /** - * @member {Object} anytype_2 - */ - exports.prototype['anytype_2'] = undefined; - /** - * @member {Object} anytype_3 - */ - exports.prototype['anytype_3'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript/src/model/AdditionalPropertiesInteger.js b/samples/client/petstore/javascript/src/model/AdditionalPropertiesInteger.js deleted file mode 100644 index 295febe3642a..000000000000 --- a/samples/client/petstore/javascript/src/model/AdditionalPropertiesInteger.js +++ /dev/null @@ -1,81 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.AdditionalPropertiesInteger = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The AdditionalPropertiesInteger model module. - * @module model/AdditionalPropertiesInteger - * @version 1.0.0 - */ - - /** - * Constructs a new AdditionalPropertiesInteger. - * @alias module:model/AdditionalPropertiesInteger - * @class - * @extends Object - */ - var exports = function() { - var _this = this; - - return _this; - }; - - /** - * Constructs a AdditionalPropertiesInteger 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/AdditionalPropertiesInteger} obj Optional instance to populate. - * @return {module:model/AdditionalPropertiesInteger} The populated AdditionalPropertiesInteger instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - ApiClient.constructFromObject(data, obj, 'Number'); - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - } - return obj; - } - - /** - * @member {String} name - */ - exports.prototype['name'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript/src/model/AdditionalPropertiesNumber.js b/samples/client/petstore/javascript/src/model/AdditionalPropertiesNumber.js deleted file mode 100644 index f0b20ec0bbfb..000000000000 --- a/samples/client/petstore/javascript/src/model/AdditionalPropertiesNumber.js +++ /dev/null @@ -1,81 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.AdditionalPropertiesNumber = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The AdditionalPropertiesNumber model module. - * @module model/AdditionalPropertiesNumber - * @version 1.0.0 - */ - - /** - * Constructs a new AdditionalPropertiesNumber. - * @alias module:model/AdditionalPropertiesNumber - * @class - * @extends Object - */ - var exports = function() { - var _this = this; - - return _this; - }; - - /** - * Constructs a AdditionalPropertiesNumber 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/AdditionalPropertiesNumber} obj Optional instance to populate. - * @return {module:model/AdditionalPropertiesNumber} The populated AdditionalPropertiesNumber instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - ApiClient.constructFromObject(data, obj, 'Number'); - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - } - return obj; - } - - /** - * @member {String} name - */ - exports.prototype['name'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript/src/model/AdditionalPropertiesObject.js b/samples/client/petstore/javascript/src/model/AdditionalPropertiesObject.js deleted file mode 100644 index e21940515565..000000000000 --- a/samples/client/petstore/javascript/src/model/AdditionalPropertiesObject.js +++ /dev/null @@ -1,81 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.AdditionalPropertiesObject = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The AdditionalPropertiesObject model module. - * @module model/AdditionalPropertiesObject - * @version 1.0.0 - */ - - /** - * Constructs a new AdditionalPropertiesObject. - * @alias module:model/AdditionalPropertiesObject - * @class - * @extends Object - */ - var exports = function() { - var _this = this; - - return _this; - }; - - /** - * Constructs a AdditionalPropertiesObject 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/AdditionalPropertiesObject} obj Optional instance to populate. - * @return {module:model/AdditionalPropertiesObject} The populated AdditionalPropertiesObject instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - ApiClient.constructFromObject(data, obj, 'Object'); - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - } - return obj; - } - - /** - * @member {String} name - */ - exports.prototype['name'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript/src/model/AdditionalPropertiesString.js b/samples/client/petstore/javascript/src/model/AdditionalPropertiesString.js deleted file mode 100644 index ce82a0e752a0..000000000000 --- a/samples/client/petstore/javascript/src/model/AdditionalPropertiesString.js +++ /dev/null @@ -1,81 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.AdditionalPropertiesString = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The AdditionalPropertiesString model module. - * @module model/AdditionalPropertiesString - * @version 1.0.0 - */ - - /** - * Constructs a new AdditionalPropertiesString. - * @alias module:model/AdditionalPropertiesString - * @class - * @extends Object - */ - var exports = function() { - var _this = this; - - return _this; - }; - - /** - * Constructs a AdditionalPropertiesString 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/AdditionalPropertiesString} obj Optional instance to populate. - * @return {module:model/AdditionalPropertiesString} The populated AdditionalPropertiesString instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - ApiClient.constructFromObject(data, obj, 'String'); - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - } - return obj; - } - - /** - * @member {String} name - */ - exports.prototype['name'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript/src/model/Animal.js b/samples/client/petstore/javascript/src/model/Animal.js deleted file mode 100644 index b46bc005c758..000000000000 --- a/samples/client/petstore/javascript/src/model/Animal.js +++ /dev/null @@ -1,88 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.Animal = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The Animal model module. - * @module model/Animal - * @version 1.0.0 - */ - - /** - * Constructs a new Animal. - * @alias module:model/Animal - * @class - * @param className {String} - */ - var exports = function(className) { - var _this = this; - - _this['className'] = className; - }; - - /** - * Constructs a Animal 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/Animal} obj Optional instance to populate. - * @return {module:model/Animal} The populated Animal instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('className')) { - obj['className'] = ApiClient.convertToType(data['className'], 'String'); - } - if (data.hasOwnProperty('color')) { - obj['color'] = ApiClient.convertToType(data['color'], 'String'); - } - } - return obj; - } - - /** - * @member {String} className - */ - exports.prototype['className'] = undefined; - /** - * @member {String} color - * @default 'red' - */ - exports.prototype['color'] = 'red'; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript/src/model/ApiResponse.js b/samples/client/petstore/javascript/src/model/ApiResponse.js deleted file mode 100644 index 5e9e0b16ee88..000000000000 --- a/samples/client/petstore/javascript/src/model/ApiResponse.js +++ /dev/null @@ -1,92 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.ApiResponse = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The ApiResponse model module. - * @module model/ApiResponse - * @version 1.0.0 - */ - - /** - * Constructs a new ApiResponse. - * @alias module:model/ApiResponse - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a ApiResponse 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/ApiResponse} obj Optional instance to populate. - * @return {module:model/ApiResponse} The populated ApiResponse instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('code')) { - obj['code'] = ApiClient.convertToType(data['code'], 'Number'); - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - } - if (data.hasOwnProperty('message')) { - obj['message'] = ApiClient.convertToType(data['message'], 'String'); - } - } - return obj; - } - - /** - * @member {Number} code - */ - exports.prototype['code'] = undefined; - /** - * @member {String} type - */ - exports.prototype['type'] = undefined; - /** - * @member {String} message - */ - exports.prototype['message'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript/src/model/ArrayOfArrayOfNumberOnly.js b/samples/client/petstore/javascript/src/model/ArrayOfArrayOfNumberOnly.js deleted file mode 100644 index 13cae7cf90f6..000000000000 --- a/samples/client/petstore/javascript/src/model/ArrayOfArrayOfNumberOnly.js +++ /dev/null @@ -1,78 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.ArrayOfArrayOfNumberOnly = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The ArrayOfArrayOfNumberOnly model module. - * @module model/ArrayOfArrayOfNumberOnly - * @version 1.0.0 - */ - - /** - * Constructs a new ArrayOfArrayOfNumberOnly. - * @alias module:model/ArrayOfArrayOfNumberOnly - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a ArrayOfArrayOfNumberOnly from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ArrayOfArrayOfNumberOnly} obj Optional instance to populate. - * @return {module:model/ArrayOfArrayOfNumberOnly} The populated ArrayOfArrayOfNumberOnly instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('ArrayArrayNumber')) { - obj['ArrayArrayNumber'] = ApiClient.convertToType(data['ArrayArrayNumber'], [['Number']]); - } - } - return obj; - } - - /** - * @member {Array.>} ArrayArrayNumber - */ - exports.prototype['ArrayArrayNumber'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript/src/model/ArrayOfNumberOnly.js b/samples/client/petstore/javascript/src/model/ArrayOfNumberOnly.js deleted file mode 100644 index a2a51049e71a..000000000000 --- a/samples/client/petstore/javascript/src/model/ArrayOfNumberOnly.js +++ /dev/null @@ -1,78 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.ArrayOfNumberOnly = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The ArrayOfNumberOnly model module. - * @module model/ArrayOfNumberOnly - * @version 1.0.0 - */ - - /** - * Constructs a new ArrayOfNumberOnly. - * @alias module:model/ArrayOfNumberOnly - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a ArrayOfNumberOnly from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ArrayOfNumberOnly} obj Optional instance to populate. - * @return {module:model/ArrayOfNumberOnly} The populated ArrayOfNumberOnly instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('ArrayNumber')) { - obj['ArrayNumber'] = ApiClient.convertToType(data['ArrayNumber'], ['Number']); - } - } - return obj; - } - - /** - * @member {Array.} ArrayNumber - */ - exports.prototype['ArrayNumber'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript/src/model/ArrayTest.js b/samples/client/petstore/javascript/src/model/ArrayTest.js deleted file mode 100644 index 78739e4a4dcb..000000000000 --- a/samples/client/petstore/javascript/src/model/ArrayTest.js +++ /dev/null @@ -1,92 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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/ReadOnlyFirst'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./ReadOnlyFirst')); - } else { - // Browser globals (root is window) - if (!root.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.ArrayTest = factory(root.OpenApiPetstore.ApiClient, root.OpenApiPetstore.ReadOnlyFirst); - } -}(this, function(ApiClient, ReadOnlyFirst) { - 'use strict'; - - - - /** - * The ArrayTest model module. - * @module model/ArrayTest - * @version 1.0.0 - */ - - /** - * Constructs a new ArrayTest. - * @alias module:model/ArrayTest - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a ArrayTest 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/ArrayTest} obj Optional instance to populate. - * @return {module:model/ArrayTest} The populated ArrayTest instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('array_of_string')) { - obj['array_of_string'] = ApiClient.convertToType(data['array_of_string'], ['String']); - } - if (data.hasOwnProperty('array_array_of_integer')) { - obj['array_array_of_integer'] = ApiClient.convertToType(data['array_array_of_integer'], [['Number']]); - } - if (data.hasOwnProperty('array_array_of_model')) { - obj['array_array_of_model'] = ApiClient.convertToType(data['array_array_of_model'], [[ReadOnlyFirst]]); - } - } - return obj; - } - - /** - * @member {Array.} array_of_string - */ - exports.prototype['array_of_string'] = undefined; - /** - * @member {Array.>} array_array_of_integer - */ - exports.prototype['array_array_of_integer'] = undefined; - /** - * @member {Array.>} array_array_of_model - */ - exports.prototype['array_array_of_model'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript/src/model/BigCat.js b/samples/client/petstore/javascript/src/model/BigCat.js deleted file mode 100644 index 7c2e8079c3d4..000000000000 --- a/samples/client/petstore/javascript/src/model/BigCat.js +++ /dev/null @@ -1,137 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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/BigCatAllOf', 'model/Cat'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./BigCatAllOf'), require('./Cat')); - } else { - // Browser globals (root is window) - if (!root.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.BigCat = factory(root.OpenApiPetstore.ApiClient, root.OpenApiPetstore.BigCatAllOf, root.OpenApiPetstore.Cat); - } -}(this, function(ApiClient, BigCatAllOf, Cat) { - 'use strict'; - - - - /** - * The BigCat model module. - * @module model/BigCat - * @version 1.0.0 - */ - - /** - * Constructs a new BigCat. - * @alias module:model/BigCat - * @class - * @extends module:model/Cat - * @implements module:model/Cat - * @implements module:model/BigCatAllOf - * @param className {String} - */ - var exports = function(className) { - var _this = this; - - Cat.call(_this, className); - }; - - /** - * Constructs a BigCat 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/BigCat} obj Optional instance to populate. - * @return {module:model/BigCat} The populated BigCat instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - Cat.constructFromObject(data, obj); - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - } - return obj; - } - - exports.prototype = Object.create(Cat.prototype); - exports.prototype.constructor = exports; - - /** - * @member {module:model/BigCat.KindEnum} kind - */ - exports.prototype['kind'] = undefined; - - // Implement Cat interface: - /** - * @member {String} className - */ -exports.prototype['className'] = undefined; - - /** - * @member {String} color - * @default 'red' - */ -exports.prototype['color'] = 'red'; - - /** - * @member {Boolean} declawed - */ -exports.prototype['declawed'] = undefined; - - // Implement BigCatAllOf interface: - /** - * @member {module:model/BigCatAllOf.KindEnum} kind - */ -exports.prototype['kind'] = undefined; - - - /** - * Allowed values for the kind property. - * @enum {String} - * @readonly - */ - exports.KindEnum = { - /** - * value: "lions" - * @const - */ - "lions": "lions", - /** - * value: "tigers" - * @const - */ - "tigers": "tigers", - /** - * value: "leopards" - * @const - */ - "leopards": "leopards", - /** - * value: "jaguars" - * @const - */ - "jaguars": "jaguars" }; - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript/src/model/BigCatAllOf.js b/samples/client/petstore/javascript/src/model/BigCatAllOf.js deleted file mode 100644 index e9ee15fdc814..000000000000 --- a/samples/client/petstore/javascript/src/model/BigCatAllOf.js +++ /dev/null @@ -1,105 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.BigCatAllOf = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The BigCatAllOf model module. - * @module model/BigCatAllOf - * @version 1.0.0 - */ - - /** - * Constructs a new BigCatAllOf. - * @alias module:model/BigCatAllOf - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a BigCatAllOf 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/BigCatAllOf} obj Optional instance to populate. - * @return {module:model/BigCatAllOf} The populated BigCatAllOf instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('kind')) { - obj['kind'] = ApiClient.convertToType(data['kind'], 'String'); - } - } - return obj; - } - - /** - * @member {module:model/BigCatAllOf.KindEnum} kind - */ - exports.prototype['kind'] = undefined; - - - /** - * Allowed values for the kind property. - * @enum {String} - * @readonly - */ - exports.KindEnum = { - /** - * value: "lions" - * @const - */ - "lions": "lions", - /** - * value: "tigers" - * @const - */ - "tigers": "tigers", - /** - * value: "leopards" - * @const - */ - "leopards": "leopards", - /** - * value: "jaguars" - * @const - */ - "jaguars": "jaguars" }; - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript/src/model/Capitalization.js b/samples/client/petstore/javascript/src/model/Capitalization.js deleted file mode 100644 index ed0dc0b616ae..000000000000 --- a/samples/client/petstore/javascript/src/model/Capitalization.js +++ /dev/null @@ -1,114 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.Capitalization = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The Capitalization model module. - * @module model/Capitalization - * @version 1.0.0 - */ - - /** - * Constructs a new Capitalization. - * @alias module:model/Capitalization - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a Capitalization 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/Capitalization} obj Optional instance to populate. - * @return {module:model/Capitalization} The populated Capitalization instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('smallCamel')) { - obj['smallCamel'] = ApiClient.convertToType(data['smallCamel'], 'String'); - } - if (data.hasOwnProperty('CapitalCamel')) { - obj['CapitalCamel'] = ApiClient.convertToType(data['CapitalCamel'], 'String'); - } - if (data.hasOwnProperty('small_Snake')) { - obj['small_Snake'] = ApiClient.convertToType(data['small_Snake'], 'String'); - } - if (data.hasOwnProperty('Capital_Snake')) { - obj['Capital_Snake'] = ApiClient.convertToType(data['Capital_Snake'], 'String'); - } - if (data.hasOwnProperty('SCA_ETH_Flow_Points')) { - obj['SCA_ETH_Flow_Points'] = ApiClient.convertToType(data['SCA_ETH_Flow_Points'], 'String'); - } - if (data.hasOwnProperty('ATT_NAME')) { - obj['ATT_NAME'] = ApiClient.convertToType(data['ATT_NAME'], 'String'); - } - } - return obj; - } - - /** - * @member {String} smallCamel - */ - exports.prototype['smallCamel'] = undefined; - /** - * @member {String} CapitalCamel - */ - exports.prototype['CapitalCamel'] = undefined; - /** - * @member {String} small_Snake - */ - exports.prototype['small_Snake'] = undefined; - /** - * @member {String} Capital_Snake - */ - exports.prototype['Capital_Snake'] = undefined; - /** - * @member {String} SCA_ETH_Flow_Points - */ - exports.prototype['SCA_ETH_Flow_Points'] = undefined; - /** - * Name of the pet - * @member {String} ATT_NAME - */ - exports.prototype['ATT_NAME'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript/src/model/Cat.js b/samples/client/petstore/javascript/src/model/Cat.js deleted file mode 100644 index fcc9e7bf6704..000000000000 --- a/samples/client/petstore/javascript/src/model/Cat.js +++ /dev/null @@ -1,105 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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/Animal', 'model/CatAllOf'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./Animal'), require('./CatAllOf')); - } else { - // Browser globals (root is window) - if (!root.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.Cat = factory(root.OpenApiPetstore.ApiClient, root.OpenApiPetstore.Animal, root.OpenApiPetstore.CatAllOf); - } -}(this, function(ApiClient, Animal, CatAllOf) { - 'use strict'; - - - - /** - * The Cat model module. - * @module model/Cat - * @version 1.0.0 - */ - - /** - * Constructs a new Cat. - * @alias module:model/Cat - * @class - * @extends module:model/Animal - * @implements module:model/Animal - * @implements module:model/CatAllOf - * @param className {String} - */ - var exports = function(className) { - var _this = this; - - Animal.call(_this, className); - }; - - /** - * Constructs a Cat 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/Cat} obj Optional instance to populate. - * @return {module:model/Cat} The populated Cat instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - Animal.constructFromObject(data, obj); - if (data.hasOwnProperty('declawed')) { - obj['declawed'] = ApiClient.convertToType(data['declawed'], 'Boolean'); - } - } - return obj; - } - - exports.prototype = Object.create(Animal.prototype); - exports.prototype.constructor = exports; - - /** - * @member {Boolean} declawed - */ - exports.prototype['declawed'] = undefined; - - // Implement Animal interface: - /** - * @member {String} className - */ -exports.prototype['className'] = undefined; - - /** - * @member {String} color - * @default 'red' - */ -exports.prototype['color'] = 'red'; - - // Implement CatAllOf interface: - /** - * @member {Boolean} declawed - */ -exports.prototype['declawed'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript/src/model/CatAllOf.js b/samples/client/petstore/javascript/src/model/CatAllOf.js deleted file mode 100644 index 78465ea099fc..000000000000 --- a/samples/client/petstore/javascript/src/model/CatAllOf.js +++ /dev/null @@ -1,78 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.CatAllOf = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The CatAllOf model module. - * @module model/CatAllOf - * @version 1.0.0 - */ - - /** - * Constructs a new CatAllOf. - * @alias module:model/CatAllOf - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a CatAllOf 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/CatAllOf} obj Optional instance to populate. - * @return {module:model/CatAllOf} The populated CatAllOf instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('declawed')) { - obj['declawed'] = ApiClient.convertToType(data['declawed'], 'Boolean'); - } - } - return obj; - } - - /** - * @member {Boolean} declawed - */ - exports.prototype['declawed'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript/src/model/Category.js b/samples/client/petstore/javascript/src/model/Category.js deleted file mode 100644 index 109344702863..000000000000 --- a/samples/client/petstore/javascript/src/model/Category.js +++ /dev/null @@ -1,88 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.Category = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The Category model module. - * @module model/Category - * @version 1.0.0 - */ - - /** - * Constructs a new Category. - * @alias module:model/Category - * @class - * @param name {String} - */ - var exports = function(name) { - var _this = this; - - _this['name'] = name; - }; - - /** - * Constructs a Category 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/Category} obj Optional instance to populate. - * @return {module:model/Category} The populated Category instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - } - return obj; - } - - /** - * @member {Number} id - */ - exports.prototype['id'] = undefined; - /** - * @member {String} name - * @default 'default-name' - */ - exports.prototype['name'] = 'default-name'; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript/src/model/ClassModel.js b/samples/client/petstore/javascript/src/model/ClassModel.js deleted file mode 100644 index 47e80df54213..000000000000 --- a/samples/client/petstore/javascript/src/model/ClassModel.js +++ /dev/null @@ -1,79 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.ClassModel = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The ClassModel model module. - * @module model/ClassModel - * @version 1.0.0 - */ - - /** - * Constructs a new ClassModel. - * Model for testing model with \"_class\" property - * @alias module:model/ClassModel - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a ClassModel 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/ClassModel} obj Optional instance to populate. - * @return {module:model/ClassModel} The populated ClassModel instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('_class')) { - obj['_class'] = ApiClient.convertToType(data['_class'], 'String'); - } - } - return obj; - } - - /** - * @member {String} _class - */ - exports.prototype['_class'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript/src/model/Client.js b/samples/client/petstore/javascript/src/model/Client.js deleted file mode 100644 index ea7bfcafbae4..000000000000 --- a/samples/client/petstore/javascript/src/model/Client.js +++ /dev/null @@ -1,78 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.Client = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The Client model module. - * @module model/Client - * @version 1.0.0 - */ - - /** - * Constructs a new Client. - * @alias module:model/Client - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a Client 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/Client} obj Optional instance to populate. - * @return {module:model/Client} The populated Client instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('client')) { - obj['client'] = ApiClient.convertToType(data['client'], 'String'); - } - } - return obj; - } - - /** - * @member {String} client - */ - exports.prototype['client'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript/src/model/Dog.js b/samples/client/petstore/javascript/src/model/Dog.js deleted file mode 100644 index f69a203858ac..000000000000 --- a/samples/client/petstore/javascript/src/model/Dog.js +++ /dev/null @@ -1,105 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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/Animal', 'model/DogAllOf'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./Animal'), require('./DogAllOf')); - } else { - // Browser globals (root is window) - if (!root.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.Dog = factory(root.OpenApiPetstore.ApiClient, root.OpenApiPetstore.Animal, root.OpenApiPetstore.DogAllOf); - } -}(this, function(ApiClient, Animal, DogAllOf) { - 'use strict'; - - - - /** - * The Dog model module. - * @module model/Dog - * @version 1.0.0 - */ - - /** - * Constructs a new Dog. - * @alias module:model/Dog - * @class - * @extends module:model/Animal - * @implements module:model/Animal - * @implements module:model/DogAllOf - * @param className {String} - */ - var exports = function(className) { - var _this = this; - - Animal.call(_this, className); - }; - - /** - * Constructs a Dog 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/Dog} obj Optional instance to populate. - * @return {module:model/Dog} The populated Dog instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - Animal.constructFromObject(data, obj); - if (data.hasOwnProperty('breed')) { - obj['breed'] = ApiClient.convertToType(data['breed'], 'String'); - } - } - return obj; - } - - exports.prototype = Object.create(Animal.prototype); - exports.prototype.constructor = exports; - - /** - * @member {String} breed - */ - exports.prototype['breed'] = undefined; - - // Implement Animal interface: - /** - * @member {String} className - */ -exports.prototype['className'] = undefined; - - /** - * @member {String} color - * @default 'red' - */ -exports.prototype['color'] = 'red'; - - // Implement DogAllOf interface: - /** - * @member {String} breed - */ -exports.prototype['breed'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript/src/model/DogAllOf.js b/samples/client/petstore/javascript/src/model/DogAllOf.js deleted file mode 100644 index a531669f5371..000000000000 --- a/samples/client/petstore/javascript/src/model/DogAllOf.js +++ /dev/null @@ -1,78 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.DogAllOf = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The DogAllOf model module. - * @module model/DogAllOf - * @version 1.0.0 - */ - - /** - * Constructs a new DogAllOf. - * @alias module:model/DogAllOf - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a DogAllOf 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/DogAllOf} obj Optional instance to populate. - * @return {module:model/DogAllOf} The populated DogAllOf instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('breed')) { - obj['breed'] = ApiClient.convertToType(data['breed'], 'String'); - } - } - return obj; - } - - /** - * @member {String} breed - */ - exports.prototype['breed'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript/src/model/EnumArrays.js b/samples/client/petstore/javascript/src/model/EnumArrays.js deleted file mode 100644 index 78fe939c4bff..000000000000 --- a/samples/client/petstore/javascript/src/model/EnumArrays.js +++ /dev/null @@ -1,119 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.EnumArrays = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The EnumArrays model module. - * @module model/EnumArrays - * @version 1.0.0 - */ - - /** - * Constructs a new EnumArrays. - * @alias module:model/EnumArrays - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a EnumArrays 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/EnumArrays} obj Optional instance to populate. - * @return {module:model/EnumArrays} The populated EnumArrays instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('just_symbol')) { - obj['just_symbol'] = ApiClient.convertToType(data['just_symbol'], 'String'); - } - if (data.hasOwnProperty('array_enum')) { - obj['array_enum'] = ApiClient.convertToType(data['array_enum'], ['String']); - } - } - return obj; - } - - /** - * @member {module:model/EnumArrays.JustSymbolEnum} just_symbol - */ - exports.prototype['just_symbol'] = undefined; - /** - * @member {Array.} array_enum - */ - exports.prototype['array_enum'] = undefined; - - - /** - * Allowed values for the just_symbol property. - * @enum {String} - * @readonly - */ - exports.JustSymbolEnum = { - /** - * value: ">=" - * @const - */ - "GREATER_THAN_OR_EQUAL_TO": ">=", - /** - * value: "$" - * @const - */ - "DOLLAR": "$" }; - - /** - * Allowed values for the arrayEnum property. - * @enum {String} - * @readonly - */ - exports.ArrayEnumEnum = { - /** - * value: "fish" - * @const - */ - "fish": "fish", - /** - * value: "crab" - * @const - */ - "crab": "crab" }; - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript/src/model/EnumClass.js b/samples/client/petstore/javascript/src/model/EnumClass.js deleted file mode 100644 index d4f668246b5c..000000000000 --- a/samples/client/petstore/javascript/src/model/EnumClass.js +++ /dev/null @@ -1,68 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.EnumClass = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - /** - * Enum class EnumClass. - * @enum {} - * @readonly - */ - var exports = { - /** - * value: "_abc" - * @const - */ - "_abc": "_abc", - /** - * value: "-efg" - * @const - */ - "-efg": "-efg", - /** - * value: "(xyz)" - * @const - */ - "(xyz)": "(xyz)" }; - - /** - * Returns a EnumClass enum value from a Javascript object name. - * @param {Object} data The plain JavaScript object containing the name of the enum value. - * @return {module:model/EnumClass} The enum EnumClass value. - */ - exports.constructFromObject = function(object) { - return object; - } - - return exports; -})); - - diff --git a/samples/client/petstore/javascript/src/model/EnumTest.js b/samples/client/petstore/javascript/src/model/EnumTest.js deleted file mode 100644 index 997ac55f5dbc..000000000000 --- a/samples/client/petstore/javascript/src/model/EnumTest.js +++ /dev/null @@ -1,186 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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/OuterEnum'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./OuterEnum')); - } else { - // Browser globals (root is window) - if (!root.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.EnumTest = factory(root.OpenApiPetstore.ApiClient, root.OpenApiPetstore.OuterEnum); - } -}(this, function(ApiClient, OuterEnum) { - 'use strict'; - - - - /** - * The EnumTest model module. - * @module model/EnumTest - * @version 1.0.0 - */ - - /** - * Constructs a new EnumTest. - * @alias module:model/EnumTest - * @class - * @param enumStringRequired {module:model/EnumTest.EnumStringRequiredEnum} - */ - var exports = function(enumStringRequired) { - var _this = this; - - _this['enum_string_required'] = enumStringRequired; - }; - - /** - * Constructs a EnumTest 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/EnumTest} obj Optional instance to populate. - * @return {module:model/EnumTest} The populated EnumTest instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('enum_string')) { - obj['enum_string'] = ApiClient.convertToType(data['enum_string'], 'String'); - } - if (data.hasOwnProperty('enum_string_required')) { - obj['enum_string_required'] = ApiClient.convertToType(data['enum_string_required'], 'String'); - } - if (data.hasOwnProperty('enum_integer')) { - obj['enum_integer'] = ApiClient.convertToType(data['enum_integer'], 'Number'); - } - if (data.hasOwnProperty('enum_number')) { - obj['enum_number'] = ApiClient.convertToType(data['enum_number'], 'Number'); - } - if (data.hasOwnProperty('outerEnum')) { - obj['outerEnum'] = OuterEnum.constructFromObject(data['outerEnum']); - } - } - return obj; - } - - /** - * @member {module:model/EnumTest.EnumStringEnum} enum_string - */ - exports.prototype['enum_string'] = undefined; - /** - * @member {module:model/EnumTest.EnumStringRequiredEnum} enum_string_required - */ - exports.prototype['enum_string_required'] = undefined; - /** - * @member {module:model/EnumTest.EnumIntegerEnum} enum_integer - */ - exports.prototype['enum_integer'] = undefined; - /** - * @member {module:model/EnumTest.EnumNumberEnum} enum_number - */ - exports.prototype['enum_number'] = undefined; - /** - * @member {module:model/OuterEnum} outerEnum - */ - exports.prototype['outerEnum'] = undefined; - - - /** - * Allowed values for the enum_string property. - * @enum {String} - * @readonly - */ - exports.EnumStringEnum = { - /** - * value: "UPPER" - * @const - */ - "UPPER": "UPPER", - /** - * value: "lower" - * @const - */ - "lower": "lower", - /** - * value: "" - * @const - */ - "empty": "" }; - - /** - * Allowed values for the enum_string_required property. - * @enum {String} - * @readonly - */ - exports.EnumStringRequiredEnum = { - /** - * value: "UPPER" - * @const - */ - "UPPER": "UPPER", - /** - * value: "lower" - * @const - */ - "lower": "lower", - /** - * value: "" - * @const - */ - "empty": "" }; - - /** - * Allowed values for the enum_integer property. - * @enum {Number} - * @readonly - */ - exports.EnumIntegerEnum = { - /** - * value: 1 - * @const - */ - "1": 1, - /** - * value: -1 - * @const - */ - "-1": -1 }; - - /** - * Allowed values for the enum_number property. - * @enum {Number} - * @readonly - */ - exports.EnumNumberEnum = { - /** - * value: 1.1 - * @const - */ - "1.1": 1.1, - /** - * value: -1.2 - * @const - */ - "-1.2": -1.2 }; - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript/src/model/File.js b/samples/client/petstore/javascript/src/model/File.js deleted file mode 100644 index 109a6e552663..000000000000 --- a/samples/client/petstore/javascript/src/model/File.js +++ /dev/null @@ -1,80 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.File = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The File model module. - * @module model/File - * @version 1.0.0 - */ - - /** - * Constructs a new File. - * Must be named `File` for test. - * @alias module:model/File - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a File 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/File} obj Optional instance to populate. - * @return {module:model/File} The populated File instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('sourceURI')) { - obj['sourceURI'] = ApiClient.convertToType(data['sourceURI'], 'String'); - } - } - return obj; - } - - /** - * Test capitalization - * @member {String} sourceURI - */ - exports.prototype['sourceURI'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript/src/model/FileSchemaTestClass.js b/samples/client/petstore/javascript/src/model/FileSchemaTestClass.js deleted file mode 100644 index 22f10496e4f4..000000000000 --- a/samples/client/petstore/javascript/src/model/FileSchemaTestClass.js +++ /dev/null @@ -1,85 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.FileSchemaTestClass = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The FileSchemaTestClass model module. - * @module model/FileSchemaTestClass - * @version 1.0.0 - */ - - /** - * Constructs a new FileSchemaTestClass. - * @alias module:model/FileSchemaTestClass - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a FileSchemaTestClass 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/FileSchemaTestClass} obj Optional instance to populate. - * @return {module:model/FileSchemaTestClass} The populated FileSchemaTestClass instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('file')) { - obj['file'] = File.constructFromObject(data['file']); - } - if (data.hasOwnProperty('files')) { - obj['files'] = ApiClient.convertToType(data['files'], [File]); - } - } - return obj; - } - - /** - * @member {File} file - */ - exports.prototype['file'] = undefined; - /** - * @member {Array.} files - */ - exports.prototype['files'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript/src/model/FormatTest.js b/samples/client/petstore/javascript/src/model/FormatTest.js deleted file mode 100644 index 63b987b43944..000000000000 --- a/samples/client/petstore/javascript/src/model/FormatTest.js +++ /dev/null @@ -1,177 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.FormatTest = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The FormatTest model module. - * @module model/FormatTest - * @version 1.0.0 - */ - - /** - * Constructs a new FormatTest. - * @alias module:model/FormatTest - * @class - * @param _number {Number} - * @param _byte {Blob} - * @param _date {Date} - * @param password {String} - */ - var exports = function(_number, _byte, _date, password) { - var _this = this; - - _this['number'] = _number; - _this['byte'] = _byte; - _this['date'] = _date; - _this['password'] = password; - }; - - /** - * Constructs a FormatTest 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/FormatTest} obj Optional instance to populate. - * @return {module:model/FormatTest} The populated FormatTest instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('integer')) { - obj['integer'] = ApiClient.convertToType(data['integer'], 'Number'); - } - if (data.hasOwnProperty('int32')) { - obj['int32'] = ApiClient.convertToType(data['int32'], 'Number'); - } - if (data.hasOwnProperty('int64')) { - obj['int64'] = ApiClient.convertToType(data['int64'], 'Number'); - } - if (data.hasOwnProperty('number')) { - obj['number'] = ApiClient.convertToType(data['number'], 'Number'); - } - if (data.hasOwnProperty('float')) { - obj['float'] = ApiClient.convertToType(data['float'], 'Number'); - } - if (data.hasOwnProperty('double')) { - obj['double'] = ApiClient.convertToType(data['double'], 'Number'); - } - if (data.hasOwnProperty('string')) { - obj['string'] = ApiClient.convertToType(data['string'], 'String'); - } - if (data.hasOwnProperty('byte')) { - obj['byte'] = ApiClient.convertToType(data['byte'], 'Blob'); - } - if (data.hasOwnProperty('binary')) { - obj['binary'] = ApiClient.convertToType(data['binary'], File); - } - if (data.hasOwnProperty('date')) { - obj['date'] = ApiClient.convertToType(data['date'], 'Date'); - } - if (data.hasOwnProperty('dateTime')) { - obj['dateTime'] = ApiClient.convertToType(data['dateTime'], 'Date'); - } - if (data.hasOwnProperty('uuid')) { - obj['uuid'] = ApiClient.convertToType(data['uuid'], 'String'); - } - if (data.hasOwnProperty('password')) { - obj['password'] = ApiClient.convertToType(data['password'], 'String'); - } - if (data.hasOwnProperty('BigDecimal')) { - obj['BigDecimal'] = ApiClient.convertToType(data['BigDecimal'], 'Number'); - } - } - return obj; - } - - /** - * @member {Number} integer - */ - exports.prototype['integer'] = undefined; - /** - * @member {Number} int32 - */ - exports.prototype['int32'] = undefined; - /** - * @member {Number} int64 - */ - exports.prototype['int64'] = undefined; - /** - * @member {Number} number - */ - exports.prototype['number'] = undefined; - /** - * @member {Number} float - */ - exports.prototype['float'] = undefined; - /** - * @member {Number} double - */ - exports.prototype['double'] = undefined; - /** - * @member {String} string - */ - exports.prototype['string'] = undefined; - /** - * @member {Blob} byte - */ - exports.prototype['byte'] = undefined; - /** - * @member {File} binary - */ - exports.prototype['binary'] = undefined; - /** - * @member {Date} date - */ - exports.prototype['date'] = undefined; - /** - * @member {Date} dateTime - */ - exports.prototype['dateTime'] = undefined; - /** - * @member {String} uuid - */ - exports.prototype['uuid'] = undefined; - /** - * @member {String} password - */ - exports.prototype['password'] = undefined; - /** - * @member {Number} BigDecimal - */ - exports.prototype['BigDecimal'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript/src/model/HasOnlyReadOnly.js b/samples/client/petstore/javascript/src/model/HasOnlyReadOnly.js deleted file mode 100644 index a48fa374d986..000000000000 --- a/samples/client/petstore/javascript/src/model/HasOnlyReadOnly.js +++ /dev/null @@ -1,85 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.HasOnlyReadOnly = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The HasOnlyReadOnly model module. - * @module model/HasOnlyReadOnly - * @version 1.0.0 - */ - - /** - * Constructs a new HasOnlyReadOnly. - * @alias module:model/HasOnlyReadOnly - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a HasOnlyReadOnly from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/HasOnlyReadOnly} obj Optional instance to populate. - * @return {module:model/HasOnlyReadOnly} The populated HasOnlyReadOnly instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('bar')) { - obj['bar'] = ApiClient.convertToType(data['bar'], 'String'); - } - if (data.hasOwnProperty('foo')) { - obj['foo'] = ApiClient.convertToType(data['foo'], 'String'); - } - } - return obj; - } - - /** - * @member {String} bar - */ - exports.prototype['bar'] = undefined; - /** - * @member {String} foo - */ - exports.prototype['foo'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript/src/model/List.js b/samples/client/petstore/javascript/src/model/List.js deleted file mode 100644 index d27fdd125e49..000000000000 --- a/samples/client/petstore/javascript/src/model/List.js +++ /dev/null @@ -1,78 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.List = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The List model module. - * @module model/List - * @version 1.0.0 - */ - - /** - * Constructs a new List. - * @alias module:model/List - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a List 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/List} obj Optional instance to populate. - * @return {module:model/List} The populated List instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('123-list')) { - obj['123-list'] = ApiClient.convertToType(data['123-list'], 'String'); - } - } - return obj; - } - - /** - * @member {String} 123-list - */ - exports.prototype['123-list'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript/src/model/MapTest.js b/samples/client/petstore/javascript/src/model/MapTest.js deleted file mode 100644 index aa9a1a5b4ea1..000000000000 --- a/samples/client/petstore/javascript/src/model/MapTest.js +++ /dev/null @@ -1,116 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.MapTest = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The MapTest model module. - * @module model/MapTest - * @version 1.0.0 - */ - - /** - * Constructs a new MapTest. - * @alias module:model/MapTest - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a MapTest from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MapTest} obj Optional instance to populate. - * @return {module:model/MapTest} The populated MapTest instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('map_map_of_string')) { - obj['map_map_of_string'] = ApiClient.convertToType(data['map_map_of_string'], {'String': {'String': 'String'}}); - } - if (data.hasOwnProperty('map_of_enum_string')) { - obj['map_of_enum_string'] = ApiClient.convertToType(data['map_of_enum_string'], {'String': 'String'}); - } - if (data.hasOwnProperty('direct_map')) { - obj['direct_map'] = ApiClient.convertToType(data['direct_map'], {'String': 'Boolean'}); - } - if (data.hasOwnProperty('indirect_map')) { - obj['indirect_map'] = ApiClient.convertToType(data['indirect_map'], {'String': 'Boolean'}); - } - } - return obj; - } - - /** - * @member {Object.>} map_map_of_string - */ - exports.prototype['map_map_of_string'] = undefined; - /** - * @member {Object.} map_of_enum_string - */ - exports.prototype['map_of_enum_string'] = undefined; - /** - * @member {Object.} direct_map - */ - exports.prototype['direct_map'] = undefined; - /** - * @member {Object.} indirect_map - */ - exports.prototype['indirect_map'] = undefined; - - - /** - * Allowed values for the inner property. - * @enum {String} - * @readonly - */ - exports.InnerEnum = { - /** - * value: "UPPER" - * @const - */ - "UPPER": "UPPER", - /** - * value: "lower" - * @const - */ - "lower": "lower" }; - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript/src/model/MixedPropertiesAndAdditionalPropertiesClass.js b/samples/client/petstore/javascript/src/model/MixedPropertiesAndAdditionalPropertiesClass.js deleted file mode 100644 index bc98f6da1fd3..000000000000 --- a/samples/client/petstore/javascript/src/model/MixedPropertiesAndAdditionalPropertiesClass.js +++ /dev/null @@ -1,92 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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/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.MixedPropertiesAndAdditionalPropertiesClass = factory(root.OpenApiPetstore.ApiClient, root.OpenApiPetstore.Animal); - } -}(this, function(ApiClient, Animal) { - 'use strict'; - - - - /** - * The MixedPropertiesAndAdditionalPropertiesClass model module. - * @module model/MixedPropertiesAndAdditionalPropertiesClass - * @version 1.0.0 - */ - - /** - * Constructs a new MixedPropertiesAndAdditionalPropertiesClass. - * @alias module:model/MixedPropertiesAndAdditionalPropertiesClass - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a MixedPropertiesAndAdditionalPropertiesClass 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/MixedPropertiesAndAdditionalPropertiesClass} obj Optional instance to populate. - * @return {module:model/MixedPropertiesAndAdditionalPropertiesClass} The populated MixedPropertiesAndAdditionalPropertiesClass instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('uuid')) { - obj['uuid'] = ApiClient.convertToType(data['uuid'], 'String'); - } - if (data.hasOwnProperty('dateTime')) { - obj['dateTime'] = ApiClient.convertToType(data['dateTime'], 'Date'); - } - if (data.hasOwnProperty('map')) { - obj['map'] = ApiClient.convertToType(data['map'], {'String': Animal}); - } - } - return obj; - } - - /** - * @member {String} uuid - */ - exports.prototype['uuid'] = undefined; - /** - * @member {Date} dateTime - */ - exports.prototype['dateTime'] = undefined; - /** - * @member {Object.} map - */ - exports.prototype['map'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript/src/model/Model200Response.js b/samples/client/petstore/javascript/src/model/Model200Response.js deleted file mode 100644 index 6ded236af20b..000000000000 --- a/samples/client/petstore/javascript/src/model/Model200Response.js +++ /dev/null @@ -1,86 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.Model200Response = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The Model200Response model module. - * @module model/Model200Response - * @version 1.0.0 - */ - - /** - * Constructs a new Model200Response. - * Model for testing model name starting with number - * @alias module:model/Model200Response - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a Model200Response 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/Model200Response} obj Optional instance to populate. - * @return {module:model/Model200Response} The populated Model200Response instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'Number'); - } - if (data.hasOwnProperty('class')) { - obj['class'] = ApiClient.convertToType(data['class'], 'String'); - } - } - return obj; - } - - /** - * @member {Number} name - */ - exports.prototype['name'] = undefined; - /** - * @member {String} class - */ - exports.prototype['class'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript/src/model/ModelReturn.js b/samples/client/petstore/javascript/src/model/ModelReturn.js deleted file mode 100644 index 1d19b387c301..000000000000 --- a/samples/client/petstore/javascript/src/model/ModelReturn.js +++ /dev/null @@ -1,79 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.ModelReturn = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The ModelReturn model module. - * @module model/ModelReturn - * @version 1.0.0 - */ - - /** - * Constructs a new ModelReturn. - * Model for testing reserved words - * @alias module:model/ModelReturn - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a ModelReturn 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/ModelReturn} obj Optional instance to populate. - * @return {module:model/ModelReturn} The populated ModelReturn instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('return')) { - obj['return'] = ApiClient.convertToType(data['return'], 'Number'); - } - } - return obj; - } - - /** - * @member {Number} return - */ - exports.prototype['return'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript/src/model/Name.js b/samples/client/petstore/javascript/src/model/Name.js deleted file mode 100644 index c3e29dd84f79..000000000000 --- a/samples/client/petstore/javascript/src/model/Name.js +++ /dev/null @@ -1,102 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.Name = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The Name model module. - * @module model/Name - * @version 1.0.0 - */ - - /** - * Constructs a new Name. - * Model for testing model name same as property name - * @alias module:model/Name - * @class - * @param name {Number} - */ - var exports = function(name) { - var _this = this; - - _this['name'] = name; - }; - - /** - * Constructs a Name 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/Name} obj Optional instance to populate. - * @return {module:model/Name} The populated Name instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'Number'); - } - if (data.hasOwnProperty('snake_case')) { - obj['snake_case'] = ApiClient.convertToType(data['snake_case'], 'Number'); - } - if (data.hasOwnProperty('property')) { - obj['property'] = ApiClient.convertToType(data['property'], 'String'); - } - if (data.hasOwnProperty('123Number')) { - obj['123Number'] = ApiClient.convertToType(data['123Number'], 'Number'); - } - } - return obj; - } - - /** - * @member {Number} name - */ - exports.prototype['name'] = undefined; - /** - * @member {Number} snake_case - */ - exports.prototype['snake_case'] = undefined; - /** - * @member {String} property - */ - exports.prototype['property'] = undefined; - /** - * @member {Number} 123Number - */ - exports.prototype['123Number'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript/src/model/NumberOnly.js b/samples/client/petstore/javascript/src/model/NumberOnly.js deleted file mode 100644 index a51aff7a97bc..000000000000 --- a/samples/client/petstore/javascript/src/model/NumberOnly.js +++ /dev/null @@ -1,78 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.NumberOnly = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The NumberOnly model module. - * @module model/NumberOnly - * @version 1.0.0 - */ - - /** - * Constructs a new NumberOnly. - * @alias module:model/NumberOnly - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a NumberOnly from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/NumberOnly} obj Optional instance to populate. - * @return {module:model/NumberOnly} The populated NumberOnly instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('JustNumber')) { - obj['JustNumber'] = ApiClient.convertToType(data['JustNumber'], 'Number'); - } - } - return obj; - } - - /** - * @member {Number} JustNumber - */ - exports.prototype['JustNumber'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript/src/model/Order.js b/samples/client/petstore/javascript/src/model/Order.js deleted file mode 100644 index 20f551b4e26b..000000000000 --- a/samples/client/petstore/javascript/src/model/Order.js +++ /dev/null @@ -1,137 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.Order = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The Order model module. - * @module model/Order - * @version 1.0.0 - */ - - /** - * Constructs a new Order. - * @alias module:model/Order - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a Order 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/Order} obj Optional instance to populate. - * @return {module:model/Order} The populated Order instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - } - if (data.hasOwnProperty('petId')) { - obj['petId'] = ApiClient.convertToType(data['petId'], 'Number'); - } - if (data.hasOwnProperty('quantity')) { - obj['quantity'] = ApiClient.convertToType(data['quantity'], 'Number'); - } - if (data.hasOwnProperty('shipDate')) { - obj['shipDate'] = ApiClient.convertToType(data['shipDate'], 'Date'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - } - if (data.hasOwnProperty('complete')) { - obj['complete'] = ApiClient.convertToType(data['complete'], 'Boolean'); - } - } - return obj; - } - - /** - * @member {Number} id - */ - exports.prototype['id'] = undefined; - /** - * @member {Number} petId - */ - exports.prototype['petId'] = undefined; - /** - * @member {Number} quantity - */ - exports.prototype['quantity'] = undefined; - /** - * @member {Date} shipDate - */ - exports.prototype['shipDate'] = undefined; - /** - * Order Status - * @member {module:model/Order.StatusEnum} status - */ - exports.prototype['status'] = undefined; - /** - * @member {Boolean} complete - * @default false - */ - exports.prototype['complete'] = false; - - - /** - * Allowed values for the status property. - * @enum {String} - * @readonly - */ - exports.StatusEnum = { - /** - * value: "placed" - * @const - */ - "placed": "placed", - /** - * value: "approved" - * @const - */ - "approved": "approved", - /** - * value: "delivered" - * @const - */ - "delivered": "delivered" }; - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript/src/model/OuterComposite.js b/samples/client/petstore/javascript/src/model/OuterComposite.js deleted file mode 100644 index 2197245f64fd..000000000000 --- a/samples/client/petstore/javascript/src/model/OuterComposite.js +++ /dev/null @@ -1,92 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.OuterComposite = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The OuterComposite model module. - * @module model/OuterComposite - * @version 1.0.0 - */ - - /** - * Constructs a new OuterComposite. - * @alias module:model/OuterComposite - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a OuterComposite 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/OuterComposite} obj Optional instance to populate. - * @return {module:model/OuterComposite} The populated OuterComposite instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('my_number')) { - obj['my_number'] = ApiClient.convertToType(data['my_number'], 'Number'); - } - if (data.hasOwnProperty('my_string')) { - obj['my_string'] = ApiClient.convertToType(data['my_string'], 'String'); - } - if (data.hasOwnProperty('my_boolean')) { - obj['my_boolean'] = ApiClient.convertToType(data['my_boolean'], 'Boolean'); - } - } - return obj; - } - - /** - * @member {Number} my_number - */ - exports.prototype['my_number'] = undefined; - /** - * @member {String} my_string - */ - exports.prototype['my_string'] = undefined; - /** - * @member {Boolean} my_boolean - */ - exports.prototype['my_boolean'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript/src/model/OuterEnum.js b/samples/client/petstore/javascript/src/model/OuterEnum.js deleted file mode 100644 index ef94683a8277..000000000000 --- a/samples/client/petstore/javascript/src/model/OuterEnum.js +++ /dev/null @@ -1,68 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.OuterEnum = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - /** - * Enum class OuterEnum. - * @enum {} - * @readonly - */ - var exports = { - /** - * value: "placed" - * @const - */ - "placed": "placed", - /** - * value: "approved" - * @const - */ - "approved": "approved", - /** - * value: "delivered" - * @const - */ - "delivered": "delivered" }; - - /** - * Returns a OuterEnum enum value from a Javascript object name. - * @param {Object} data The plain JavaScript object containing the name of the enum value. - * @return {module:model/OuterEnum} The enum OuterEnum value. - */ - exports.constructFromObject = function(object) { - return object; - } - - return exports; -})); - - diff --git a/samples/client/petstore/javascript/src/model/Pet.js b/samples/client/petstore/javascript/src/model/Pet.js deleted file mode 100644 index 5f5c3e2b6f2e..000000000000 --- a/samples/client/petstore/javascript/src/model/Pet.js +++ /dev/null @@ -1,140 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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/Category', 'model/Tag'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./Category'), require('./Tag')); - } else { - // Browser globals (root is window) - if (!root.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.Pet = factory(root.OpenApiPetstore.ApiClient, root.OpenApiPetstore.Category, root.OpenApiPetstore.Tag); - } -}(this, function(ApiClient, Category, Tag) { - 'use strict'; - - - - /** - * The Pet model module. - * @module model/Pet - * @version 1.0.0 - */ - - /** - * Constructs a new Pet. - * @alias module:model/Pet - * @class - * @param name {String} - * @param photoUrls {Array.} - */ - var exports = function(name, photoUrls) { - var _this = this; - - _this['name'] = name; - _this['photoUrls'] = photoUrls; - }; - - /** - * Constructs a Pet 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/Pet} obj Optional instance to populate. - * @return {module:model/Pet} The populated Pet instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - } - if (data.hasOwnProperty('category')) { - obj['category'] = Category.constructFromObject(data['category']); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('photoUrls')) { - obj['photoUrls'] = ApiClient.convertToType(data['photoUrls'], ['String']); - } - if (data.hasOwnProperty('tags')) { - obj['tags'] = ApiClient.convertToType(data['tags'], [Tag]); - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - } - } - return obj; - } - - /** - * @member {Number} id - */ - exports.prototype['id'] = undefined; - /** - * @member {module:model/Category} category - */ - exports.prototype['category'] = undefined; - /** - * @member {String} name - */ - exports.prototype['name'] = undefined; - /** - * @member {Array.} photoUrls - */ - exports.prototype['photoUrls'] = undefined; - /** - * @member {Array.} tags - */ - exports.prototype['tags'] = undefined; - /** - * pet status in the store - * @member {module:model/Pet.StatusEnum} status - */ - exports.prototype['status'] = undefined; - - - /** - * Allowed values for the status property. - * @enum {String} - * @readonly - */ - exports.StatusEnum = { - /** - * value: "available" - * @const - */ - "available": "available", - /** - * value: "pending" - * @const - */ - "pending": "pending", - /** - * value: "sold" - * @const - */ - "sold": "sold" }; - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript/src/model/ReadOnlyFirst.js b/samples/client/petstore/javascript/src/model/ReadOnlyFirst.js deleted file mode 100644 index e5e7a71b4ba2..000000000000 --- a/samples/client/petstore/javascript/src/model/ReadOnlyFirst.js +++ /dev/null @@ -1,85 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.ReadOnlyFirst = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The ReadOnlyFirst model module. - * @module model/ReadOnlyFirst - * @version 1.0.0 - */ - - /** - * Constructs a new ReadOnlyFirst. - * @alias module:model/ReadOnlyFirst - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a ReadOnlyFirst 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/ReadOnlyFirst} obj Optional instance to populate. - * @return {module:model/ReadOnlyFirst} The populated ReadOnlyFirst instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('bar')) { - obj['bar'] = ApiClient.convertToType(data['bar'], 'String'); - } - if (data.hasOwnProperty('baz')) { - obj['baz'] = ApiClient.convertToType(data['baz'], 'String'); - } - } - return obj; - } - - /** - * @member {String} bar - */ - exports.prototype['bar'] = undefined; - /** - * @member {String} baz - */ - exports.prototype['baz'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript/src/model/SpecialModelName.js b/samples/client/petstore/javascript/src/model/SpecialModelName.js deleted file mode 100644 index 2ebce770f7e9..000000000000 --- a/samples/client/petstore/javascript/src/model/SpecialModelName.js +++ /dev/null @@ -1,78 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.SpecialModelName = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The SpecialModelName model module. - * @module model/SpecialModelName - * @version 1.0.0 - */ - - /** - * Constructs a new SpecialModelName. - * @alias module:model/SpecialModelName - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a SpecialModelName 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/SpecialModelName} obj Optional instance to populate. - * @return {module:model/SpecialModelName} The populated SpecialModelName instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('$special[property.name]')) { - obj['$special[property.name]'] = ApiClient.convertToType(data['$special[property.name]'], 'Number'); - } - } - return obj; - } - - /** - * @member {Number} $special[property.name] - */ - exports.prototype['$special[property.name]'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript/src/model/Tag.js b/samples/client/petstore/javascript/src/model/Tag.js deleted file mode 100644 index 64a07da1a794..000000000000 --- a/samples/client/petstore/javascript/src/model/Tag.js +++ /dev/null @@ -1,85 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.Tag = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The Tag model module. - * @module model/Tag - * @version 1.0.0 - */ - - /** - * Constructs a new Tag. - * @alias module:model/Tag - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a Tag 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/Tag} obj Optional instance to populate. - * @return {module:model/Tag} The populated Tag instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - } - return obj; - } - - /** - * @member {Number} id - */ - exports.prototype['id'] = undefined; - /** - * @member {String} name - */ - exports.prototype['name'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript/src/model/TypeHolderDefault.js b/samples/client/petstore/javascript/src/model/TypeHolderDefault.js deleted file mode 100644 index 73386a843347..000000000000 --- a/samples/client/petstore/javascript/src/model/TypeHolderDefault.js +++ /dev/null @@ -1,118 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.TypeHolderDefault = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The TypeHolderDefault model module. - * @module model/TypeHolderDefault - * @version 1.0.0 - */ - - /** - * Constructs a new TypeHolderDefault. - * @alias module:model/TypeHolderDefault - * @class - * @param stringItem {String} - * @param numberItem {Number} - * @param integerItem {Number} - * @param boolItem {Boolean} - * @param arrayItem {Array.} - */ - var exports = function(stringItem, numberItem, integerItem, boolItem, arrayItem) { - var _this = this; - - _this['string_item'] = stringItem; - _this['number_item'] = numberItem; - _this['integer_item'] = integerItem; - _this['bool_item'] = boolItem; - _this['array_item'] = arrayItem; - }; - - /** - * Constructs a TypeHolderDefault 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/TypeHolderDefault} obj Optional instance to populate. - * @return {module:model/TypeHolderDefault} The populated TypeHolderDefault instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('string_item')) { - obj['string_item'] = ApiClient.convertToType(data['string_item'], 'String'); - } - if (data.hasOwnProperty('number_item')) { - obj['number_item'] = ApiClient.convertToType(data['number_item'], 'Number'); - } - if (data.hasOwnProperty('integer_item')) { - obj['integer_item'] = ApiClient.convertToType(data['integer_item'], 'Number'); - } - if (data.hasOwnProperty('bool_item')) { - obj['bool_item'] = ApiClient.convertToType(data['bool_item'], 'Boolean'); - } - if (data.hasOwnProperty('array_item')) { - obj['array_item'] = ApiClient.convertToType(data['array_item'], ['Number']); - } - } - return obj; - } - - /** - * @member {String} string_item - * @default 'what' - */ - exports.prototype['string_item'] = 'what'; - /** - * @member {Number} number_item - */ - exports.prototype['number_item'] = undefined; - /** - * @member {Number} integer_item - */ - exports.prototype['integer_item'] = undefined; - /** - * @member {Boolean} bool_item - * @default true - */ - exports.prototype['bool_item'] = true; - /** - * @member {Array.} array_item - */ - exports.prototype['array_item'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript/src/model/TypeHolderExample.js b/samples/client/petstore/javascript/src/model/TypeHolderExample.js deleted file mode 100644 index b06faabd6631..000000000000 --- a/samples/client/petstore/javascript/src/model/TypeHolderExample.js +++ /dev/null @@ -1,125 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.TypeHolderExample = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The TypeHolderExample model module. - * @module model/TypeHolderExample - * @version 1.0.0 - */ - - /** - * Constructs a new TypeHolderExample. - * @alias module:model/TypeHolderExample - * @class - * @param stringItem {String} - * @param numberItem {Number} - * @param floatItem {Number} - * @param integerItem {Number} - * @param boolItem {Boolean} - * @param arrayItem {Array.} - */ - var exports = function(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem) { - var _this = this; - - _this['string_item'] = stringItem; - _this['number_item'] = numberItem; - _this['float_item'] = floatItem; - _this['integer_item'] = integerItem; - _this['bool_item'] = boolItem; - _this['array_item'] = arrayItem; - }; - - /** - * Constructs a TypeHolderExample 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/TypeHolderExample} obj Optional instance to populate. - * @return {module:model/TypeHolderExample} The populated TypeHolderExample instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('string_item')) { - obj['string_item'] = ApiClient.convertToType(data['string_item'], 'String'); - } - if (data.hasOwnProperty('number_item')) { - obj['number_item'] = ApiClient.convertToType(data['number_item'], 'Number'); - } - if (data.hasOwnProperty('float_item')) { - obj['float_item'] = ApiClient.convertToType(data['float_item'], 'Number'); - } - if (data.hasOwnProperty('integer_item')) { - obj['integer_item'] = ApiClient.convertToType(data['integer_item'], 'Number'); - } - if (data.hasOwnProperty('bool_item')) { - obj['bool_item'] = ApiClient.convertToType(data['bool_item'], 'Boolean'); - } - if (data.hasOwnProperty('array_item')) { - obj['array_item'] = ApiClient.convertToType(data['array_item'], ['Number']); - } - } - return obj; - } - - /** - * @member {String} string_item - */ - exports.prototype['string_item'] = undefined; - /** - * @member {Number} number_item - */ - exports.prototype['number_item'] = undefined; - /** - * @member {Number} float_item - */ - exports.prototype['float_item'] = undefined; - /** - * @member {Number} integer_item - */ - exports.prototype['integer_item'] = undefined; - /** - * @member {Boolean} bool_item - */ - exports.prototype['bool_item'] = undefined; - /** - * @member {Array.} array_item - */ - exports.prototype['array_item'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript/src/model/User.js b/samples/client/petstore/javascript/src/model/User.js deleted file mode 100644 index 967d15b018d5..000000000000 --- a/samples/client/petstore/javascript/src/model/User.js +++ /dev/null @@ -1,128 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.User = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The User model module. - * @module model/User - * @version 1.0.0 - */ - - /** - * Constructs a new User. - * @alias module:model/User - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a User 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/User} obj Optional instance to populate. - * @return {module:model/User} The populated User instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - } - if (data.hasOwnProperty('username')) { - obj['username'] = ApiClient.convertToType(data['username'], 'String'); - } - if (data.hasOwnProperty('firstName')) { - obj['firstName'] = ApiClient.convertToType(data['firstName'], 'String'); - } - if (data.hasOwnProperty('lastName')) { - obj['lastName'] = ApiClient.convertToType(data['lastName'], 'String'); - } - if (data.hasOwnProperty('email')) { - obj['email'] = ApiClient.convertToType(data['email'], 'String'); - } - if (data.hasOwnProperty('password')) { - obj['password'] = ApiClient.convertToType(data['password'], 'String'); - } - if (data.hasOwnProperty('phone')) { - obj['phone'] = ApiClient.convertToType(data['phone'], 'String'); - } - if (data.hasOwnProperty('userStatus')) { - obj['userStatus'] = ApiClient.convertToType(data['userStatus'], 'Number'); - } - } - return obj; - } - - /** - * @member {Number} id - */ - exports.prototype['id'] = undefined; - /** - * @member {String} username - */ - exports.prototype['username'] = undefined; - /** - * @member {String} firstName - */ - exports.prototype['firstName'] = undefined; - /** - * @member {String} lastName - */ - exports.prototype['lastName'] = undefined; - /** - * @member {String} email - */ - exports.prototype['email'] = undefined; - /** - * @member {String} password - */ - exports.prototype['password'] = undefined; - /** - * @member {String} phone - */ - exports.prototype['phone'] = undefined; - /** - * User Status - * @member {Number} userStatus - */ - exports.prototype['userStatus'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript/src/model/XmlItem.js b/samples/client/petstore/javascript/src/model/XmlItem.js deleted file mode 100644 index 244eb73f03a9..000000000000 --- a/samples/client/petstore/javascript/src/model/XmlItem.js +++ /dev/null @@ -1,274 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 5.0.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.OpenApiPetstore) { - root.OpenApiPetstore = {}; - } - root.OpenApiPetstore.XmlItem = factory(root.OpenApiPetstore.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - /** - * The XmlItem model module. - * @module model/XmlItem - * @version 1.0.0 - */ - - /** - * Constructs a new XmlItem. - * @alias module:model/XmlItem - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a XmlItem 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/XmlItem} obj Optional instance to populate. - * @return {module:model/XmlItem} The populated XmlItem instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - if (data.hasOwnProperty('attribute_string')) { - obj['attribute_string'] = ApiClient.convertToType(data['attribute_string'], 'String'); - } - if (data.hasOwnProperty('attribute_number')) { - obj['attribute_number'] = ApiClient.convertToType(data['attribute_number'], 'Number'); - } - if (data.hasOwnProperty('attribute_integer')) { - obj['attribute_integer'] = ApiClient.convertToType(data['attribute_integer'], 'Number'); - } - if (data.hasOwnProperty('attribute_boolean')) { - obj['attribute_boolean'] = ApiClient.convertToType(data['attribute_boolean'], 'Boolean'); - } - if (data.hasOwnProperty('wrapped_array')) { - obj['wrapped_array'] = ApiClient.convertToType(data['wrapped_array'], ['Number']); - } - if (data.hasOwnProperty('name_string')) { - obj['name_string'] = ApiClient.convertToType(data['name_string'], 'String'); - } - if (data.hasOwnProperty('name_number')) { - obj['name_number'] = ApiClient.convertToType(data['name_number'], 'Number'); - } - if (data.hasOwnProperty('name_integer')) { - obj['name_integer'] = ApiClient.convertToType(data['name_integer'], 'Number'); - } - if (data.hasOwnProperty('name_boolean')) { - obj['name_boolean'] = ApiClient.convertToType(data['name_boolean'], 'Boolean'); - } - if (data.hasOwnProperty('name_array')) { - obj['name_array'] = ApiClient.convertToType(data['name_array'], ['Number']); - } - if (data.hasOwnProperty('name_wrapped_array')) { - obj['name_wrapped_array'] = ApiClient.convertToType(data['name_wrapped_array'], ['Number']); - } - if (data.hasOwnProperty('prefix_string')) { - obj['prefix_string'] = ApiClient.convertToType(data['prefix_string'], 'String'); - } - if (data.hasOwnProperty('prefix_number')) { - obj['prefix_number'] = ApiClient.convertToType(data['prefix_number'], 'Number'); - } - if (data.hasOwnProperty('prefix_integer')) { - obj['prefix_integer'] = ApiClient.convertToType(data['prefix_integer'], 'Number'); - } - if (data.hasOwnProperty('prefix_boolean')) { - obj['prefix_boolean'] = ApiClient.convertToType(data['prefix_boolean'], 'Boolean'); - } - if (data.hasOwnProperty('prefix_array')) { - obj['prefix_array'] = ApiClient.convertToType(data['prefix_array'], ['Number']); - } - if (data.hasOwnProperty('prefix_wrapped_array')) { - obj['prefix_wrapped_array'] = ApiClient.convertToType(data['prefix_wrapped_array'], ['Number']); - } - if (data.hasOwnProperty('namespace_string')) { - obj['namespace_string'] = ApiClient.convertToType(data['namespace_string'], 'String'); - } - if (data.hasOwnProperty('namespace_number')) { - obj['namespace_number'] = ApiClient.convertToType(data['namespace_number'], 'Number'); - } - if (data.hasOwnProperty('namespace_integer')) { - obj['namespace_integer'] = ApiClient.convertToType(data['namespace_integer'], 'Number'); - } - if (data.hasOwnProperty('namespace_boolean')) { - obj['namespace_boolean'] = ApiClient.convertToType(data['namespace_boolean'], 'Boolean'); - } - if (data.hasOwnProperty('namespace_array')) { - obj['namespace_array'] = ApiClient.convertToType(data['namespace_array'], ['Number']); - } - if (data.hasOwnProperty('namespace_wrapped_array')) { - obj['namespace_wrapped_array'] = ApiClient.convertToType(data['namespace_wrapped_array'], ['Number']); - } - if (data.hasOwnProperty('prefix_ns_string')) { - obj['prefix_ns_string'] = ApiClient.convertToType(data['prefix_ns_string'], 'String'); - } - if (data.hasOwnProperty('prefix_ns_number')) { - obj['prefix_ns_number'] = ApiClient.convertToType(data['prefix_ns_number'], 'Number'); - } - if (data.hasOwnProperty('prefix_ns_integer')) { - obj['prefix_ns_integer'] = ApiClient.convertToType(data['prefix_ns_integer'], 'Number'); - } - if (data.hasOwnProperty('prefix_ns_boolean')) { - obj['prefix_ns_boolean'] = ApiClient.convertToType(data['prefix_ns_boolean'], 'Boolean'); - } - if (data.hasOwnProperty('prefix_ns_array')) { - obj['prefix_ns_array'] = ApiClient.convertToType(data['prefix_ns_array'], ['Number']); - } - if (data.hasOwnProperty('prefix_ns_wrapped_array')) { - obj['prefix_ns_wrapped_array'] = ApiClient.convertToType(data['prefix_ns_wrapped_array'], ['Number']); - } - } - return obj; - } - - /** - * @member {String} attribute_string - */ - exports.prototype['attribute_string'] = undefined; - /** - * @member {Number} attribute_number - */ - exports.prototype['attribute_number'] = undefined; - /** - * @member {Number} attribute_integer - */ - exports.prototype['attribute_integer'] = undefined; - /** - * @member {Boolean} attribute_boolean - */ - exports.prototype['attribute_boolean'] = undefined; - /** - * @member {Array.} wrapped_array - */ - exports.prototype['wrapped_array'] = undefined; - /** - * @member {String} name_string - */ - exports.prototype['name_string'] = undefined; - /** - * @member {Number} name_number - */ - exports.prototype['name_number'] = undefined; - /** - * @member {Number} name_integer - */ - exports.prototype['name_integer'] = undefined; - /** - * @member {Boolean} name_boolean - */ - exports.prototype['name_boolean'] = undefined; - /** - * @member {Array.} name_array - */ - exports.prototype['name_array'] = undefined; - /** - * @member {Array.} name_wrapped_array - */ - exports.prototype['name_wrapped_array'] = undefined; - /** - * @member {String} prefix_string - */ - exports.prototype['prefix_string'] = undefined; - /** - * @member {Number} prefix_number - */ - exports.prototype['prefix_number'] = undefined; - /** - * @member {Number} prefix_integer - */ - exports.prototype['prefix_integer'] = undefined; - /** - * @member {Boolean} prefix_boolean - */ - exports.prototype['prefix_boolean'] = undefined; - /** - * @member {Array.} prefix_array - */ - exports.prototype['prefix_array'] = undefined; - /** - * @member {Array.} prefix_wrapped_array - */ - exports.prototype['prefix_wrapped_array'] = undefined; - /** - * @member {String} namespace_string - */ - exports.prototype['namespace_string'] = undefined; - /** - * @member {Number} namespace_number - */ - exports.prototype['namespace_number'] = undefined; - /** - * @member {Number} namespace_integer - */ - exports.prototype['namespace_integer'] = undefined; - /** - * @member {Boolean} namespace_boolean - */ - exports.prototype['namespace_boolean'] = undefined; - /** - * @member {Array.} namespace_array - */ - exports.prototype['namespace_array'] = undefined; - /** - * @member {Array.} namespace_wrapped_array - */ - exports.prototype['namespace_wrapped_array'] = undefined; - /** - * @member {String} prefix_ns_string - */ - exports.prototype['prefix_ns_string'] = undefined; - /** - * @member {Number} prefix_ns_number - */ - exports.prototype['prefix_ns_number'] = undefined; - /** - * @member {Number} prefix_ns_integer - */ - exports.prototype['prefix_ns_integer'] = undefined; - /** - * @member {Boolean} prefix_ns_boolean - */ - exports.prototype['prefix_ns_boolean'] = undefined; - /** - * @member {Array.} prefix_ns_array - */ - exports.prototype['prefix_ns_array'] = undefined; - /** - * @member {Array.} prefix_ns_wrapped_array - */ - exports.prototype['prefix_ns_wrapped_array'] = undefined; - - - - return exports; -})); - - diff --git a/samples/client/petstore/javascript/test/ApiClientTest.js b/samples/client/petstore/javascript/test/ApiClientTest.js deleted file mode 100755 index 2674cf9e1359..000000000000 --- a/samples/client/petstore/javascript/test/ApiClientTest.js +++ /dev/null @@ -1,393 +0,0 @@ -if (typeof module === 'object' && module.exports) { - var expect = require('expect.js'); - var OpenAPIPetstore = require('../src/index'); - var sinon = require('sinon'); -} - -var apiClient = OpenAPIPetstore.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'}, - /* commented out the following as these fake security def (testing purpose) - * has been removed from the spec, we'll add it 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 OpenAPIPetstore.ApiClient; - expect(newClient.basePath).to.be('http://petstore.swagger.io:80/v2'); - expect(newClient.buildUrl('/abc', {})).to.be('http://petstore.swagger.io:80/v2/abc'); - - 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 OpenAPIPetstore.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 OpenAPIPetstore.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 OpenAPIPetstore.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 collectionQueryParams = opts.collectionQueryParams || {}; - 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, collectionQueryParams, - headerParams, formParams, bodyParam, authNames, contentTypes, accepts, - callback - ); -} diff --git a/samples/client/petstore/javascript/test/api/AnotherFakeApi.spec.js b/samples/client/petstore/javascript/test/api/AnotherFakeApi.spec.js deleted file mode 100644 index 4405452f9922..000000000000 --- a/samples/client/petstore/javascript/test/api/AnotherFakeApi.spec.js +++ /dev/null @@ -1,65 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.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('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(); - //}); - done(); - }); - }); - }); - -})); diff --git a/samples/client/petstore/javascript/test/api/FakeApi.spec.js b/samples/client/petstore/javascript/test/api/FakeApi.spec.js deleted file mode 100644 index 22fe0a1019e4..000000000000 --- a/samples/client/petstore/javascript/test/api/FakeApi.spec.js +++ /dev/null @@ -1,185 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.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('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(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(); - //}); - done(); - }); - }); - }); - -})); diff --git a/samples/client/petstore/javascript/test/api/FakeClassnameTags123Api.spec.js b/samples/client/petstore/javascript/test/api/FakeClassnameTags123Api.spec.js deleted file mode 100644 index 29bd5fbbaf20..000000000000 --- a/samples/client/petstore/javascript/test/api/FakeClassnameTags123Api.spec.js +++ /dev/null @@ -1,65 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.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/test/api/PetApi.spec.js b/samples/client/petstore/javascript/test/api/PetApi.spec.js deleted file mode 100644 index 360453a74bbe..000000000000 --- a/samples/client/petstore/javascript/test/api/PetApi.spec.js +++ /dev/null @@ -1,145 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.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(); - }); - }); - 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 deleted file mode 100644 index 1e1f225ef949..000000000000 --- a/samples/client/petstore/javascript/test/api/StoreApi.spec.js +++ /dev/null @@ -1,95 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.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/test/api/UserApi.spec.js b/samples/client/petstore/javascript/test/api/UserApi.spec.js deleted file mode 100644 index 71aaed5a9640..000000000000 --- a/samples/client/petstore/javascript/test/api/UserApi.spec.js +++ /dev/null @@ -1,135 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.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/test/mocha.opts b/samples/client/petstore/javascript/test/mocha.opts deleted file mode 100644 index 907011807d68..000000000000 --- a/samples/client/petstore/javascript/test/mocha.opts +++ /dev/null @@ -1 +0,0 @@ ---timeout 10000 diff --git a/samples/client/petstore/javascript/test/model/AdditionalPropertiesAnyType.spec.js b/samples/client/petstore/javascript/test/model/AdditionalPropertiesAnyType.spec.js deleted file mode 100644 index 3e9aaed718b2..000000000000 --- a/samples/client/petstore/javascript/test/model/AdditionalPropertiesAnyType.spec.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 - * - * 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', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.AdditionalPropertiesAnyType(); - }); - - 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('AdditionalPropertiesAnyType', function() { - it('should create an instance of AdditionalPropertiesAnyType', function() { - // uncomment below and update the code to test AdditionalPropertiesAnyType - //var instance = new OpenApiPetstore.AdditionalPropertiesAnyType(); - //expect(instance).to.be.a(OpenApiPetstore.AdditionalPropertiesAnyType); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new OpenApiPetstore.AdditionalPropertiesAnyType(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript/test/model/AdditionalPropertiesArray.spec.js b/samples/client/petstore/javascript/test/model/AdditionalPropertiesArray.spec.js deleted file mode 100644 index 70e2e348fb1d..000000000000 --- a/samples/client/petstore/javascript/test/model/AdditionalPropertiesArray.spec.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 - * - * 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', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.AdditionalPropertiesArray(); - }); - - 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('AdditionalPropertiesArray', function() { - it('should create an instance of AdditionalPropertiesArray', function() { - // uncomment below and update the code to test AdditionalPropertiesArray - //var instance = new OpenApiPetstore.AdditionalPropertiesArray(); - //expect(instance).to.be.a(OpenApiPetstore.AdditionalPropertiesArray); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new OpenApiPetstore.AdditionalPropertiesArray(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript/test/model/AdditionalPropertiesBoolean.spec.js b/samples/client/petstore/javascript/test/model/AdditionalPropertiesBoolean.spec.js deleted file mode 100644 index f3bca3d55fc3..000000000000 --- a/samples/client/petstore/javascript/test/model/AdditionalPropertiesBoolean.spec.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 - * - * 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', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.AdditionalPropertiesBoolean(); - }); - - 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('AdditionalPropertiesBoolean', function() { - it('should create an instance of AdditionalPropertiesBoolean', function() { - // uncomment below and update the code to test AdditionalPropertiesBoolean - //var instance = new OpenApiPetstore.AdditionalPropertiesBoolean(); - //expect(instance).to.be.a(OpenApiPetstore.AdditionalPropertiesBoolean); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new OpenApiPetstore.AdditionalPropertiesBoolean(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript/test/model/AdditionalPropertiesClass.spec.js b/samples/client/petstore/javascript/test/model/AdditionalPropertiesClass.spec.js deleted file mode 100644 index 0c6e0a15343b..000000000000 --- a/samples/client/petstore/javascript/test/model/AdditionalPropertiesClass.spec.js +++ /dev/null @@ -1,127 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.AdditionalPropertiesClass(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('AdditionalPropertiesClass', function() { - it('should create an instance of AdditionalPropertiesClass', function() { - // uncomment below and update the code to test AdditionalPropertiesClass - //var instance = new OpenApiPetstore.AdditionalPropertiesClass(); - //expect(instance).to.be.a(OpenApiPetstore.AdditionalPropertiesClass); - }); - - it('should have the property 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 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 deleted file mode 100644 index bb48c2a4dec1..000000000000 --- a/samples/client/petstore/javascript/test/model/AdditionalPropertiesInteger.spec.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 - * - * 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', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.AdditionalPropertiesInteger(); - }); - - 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('AdditionalPropertiesInteger', function() { - it('should create an instance of AdditionalPropertiesInteger', function() { - // uncomment below and update the code to test AdditionalPropertiesInteger - //var instance = new OpenApiPetstore.AdditionalPropertiesInteger(); - //expect(instance).to.be.a(OpenApiPetstore.AdditionalPropertiesInteger); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new OpenApiPetstore.AdditionalPropertiesInteger(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript/test/model/AdditionalPropertiesNumber.spec.js b/samples/client/petstore/javascript/test/model/AdditionalPropertiesNumber.spec.js deleted file mode 100644 index ab22daa2f9ce..000000000000 --- a/samples/client/petstore/javascript/test/model/AdditionalPropertiesNumber.spec.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 - * - * 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', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.AdditionalPropertiesNumber(); - }); - - 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('AdditionalPropertiesNumber', function() { - it('should create an instance of AdditionalPropertiesNumber', function() { - // uncomment below and update the code to test AdditionalPropertiesNumber - //var instance = new OpenApiPetstore.AdditionalPropertiesNumber(); - //expect(instance).to.be.a(OpenApiPetstore.AdditionalPropertiesNumber); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new OpenApiPetstore.AdditionalPropertiesNumber(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript/test/model/AdditionalPropertiesObject.spec.js b/samples/client/petstore/javascript/test/model/AdditionalPropertiesObject.spec.js deleted file mode 100644 index 97195ef4d4fe..000000000000 --- a/samples/client/petstore/javascript/test/model/AdditionalPropertiesObject.spec.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 - * - * 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', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.AdditionalPropertiesObject(); - }); - - 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('AdditionalPropertiesObject', function() { - it('should create an instance of AdditionalPropertiesObject', function() { - // uncomment below and update the code to test AdditionalPropertiesObject - //var instance = new OpenApiPetstore.AdditionalPropertiesObject(); - //expect(instance).to.be.a(OpenApiPetstore.AdditionalPropertiesObject); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new OpenApiPetstore.AdditionalPropertiesObject(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript/test/model/AdditionalPropertiesString.spec.js b/samples/client/petstore/javascript/test/model/AdditionalPropertiesString.spec.js deleted file mode 100644 index 1f2cf9ba828a..000000000000 --- a/samples/client/petstore/javascript/test/model/AdditionalPropertiesString.spec.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 - * - * 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', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.AdditionalPropertiesString(); - }); - - 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('AdditionalPropertiesString', function() { - it('should create an instance of AdditionalPropertiesString', function() { - // uncomment below and update the code to test AdditionalPropertiesString - //var instance = new OpenApiPetstore.AdditionalPropertiesString(); - //expect(instance).to.be.a(OpenApiPetstore.AdditionalPropertiesString); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new OpenApiPetstore.AdditionalPropertiesString(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript/test/model/Animal.spec.js b/samples/client/petstore/javascript/test/model/Animal.spec.js deleted file mode 100644 index dd46eeca4a85..000000000000 --- a/samples/client/petstore/javascript/test/model/Animal.spec.js +++ /dev/null @@ -1,73 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.Animal(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Animal', function() { - it('should create an instance of Animal', function() { - // uncomment below and update the code to test Animal - //var instance = new OpenApiPetstore.Animal(); - //expect(instance).to.be.a(OpenApiPetstore.Animal); - }); - - it('should have the property className (base name: "className")', function() { - // uncomment below and update the code to test the property className - //var instance = new OpenApiPetstore.Animal(); - //expect(instance).to.be(); - }); - - it('should have the property color (base name: "color")', function() { - // uncomment below and update the code to test the property color - //var instance = new OpenApiPetstore.Animal(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript/test/model/ApiResponse.spec.js b/samples/client/petstore/javascript/test/model/ApiResponse.spec.js deleted file mode 100644 index 80b54d040ba3..000000000000 --- a/samples/client/petstore/javascript/test/model/ApiResponse.spec.js +++ /dev/null @@ -1,79 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.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 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 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 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 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 deleted file mode 100644 index 30bd568fcf82..000000000000 --- a/samples/client/petstore/javascript/test/model/ArrayOfArrayOfNumberOnly.spec.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 - * - * 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', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.ArrayOfArrayOfNumberOnly(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ArrayOfArrayOfNumberOnly', function() { - it('should create an instance of ArrayOfArrayOfNumberOnly', function() { - // uncomment below and update the code to test ArrayOfArrayOfNumberOnly - //var instance = new OpenApiPetstore.ArrayOfArrayOfNumberOnly(); - //expect(instance).to.be.a(OpenApiPetstore.ArrayOfArrayOfNumberOnly); - }); - - it('should have the property arrayArrayNumber (base name: "ArrayArrayNumber")', function() { - // uncomment below and update the code to test the property arrayArrayNumber - //var instance = new OpenApiPetstore.ArrayOfArrayOfNumberOnly(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript/test/model/ArrayOfNumberOnly.spec.js b/samples/client/petstore/javascript/test/model/ArrayOfNumberOnly.spec.js deleted file mode 100644 index 2719e03ea995..000000000000 --- a/samples/client/petstore/javascript/test/model/ArrayOfNumberOnly.spec.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 - * - * 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', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.ArrayOfNumberOnly(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ArrayOfNumberOnly', function() { - it('should create an instance of ArrayOfNumberOnly', function() { - // uncomment below and update the code to test ArrayOfNumberOnly - //var instance = new OpenApiPetstore.ArrayOfNumberOnly(); - //expect(instance).to.be.a(OpenApiPetstore.ArrayOfNumberOnly); - }); - - it('should have the property arrayNumber (base name: "ArrayNumber")', function() { - // uncomment below and update the code to test the property arrayNumber - //var instance = new OpenApiPetstore.ArrayOfNumberOnly(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript/test/model/ArrayTest.spec.js b/samples/client/petstore/javascript/test/model/ArrayTest.spec.js deleted file mode 100644 index 6808eecd3fdb..000000000000 --- a/samples/client/petstore/javascript/test/model/ArrayTest.spec.js +++ /dev/null @@ -1,79 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.ArrayTest(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ArrayTest', function() { - it('should create an instance of ArrayTest', function() { - // uncomment below and update the code to test ArrayTest - //var instance = new OpenApiPetstore.ArrayTest(); - //expect(instance).to.be.a(OpenApiPetstore.ArrayTest); - }); - - it('should have the property arrayOfString (base name: "array_of_string")', function() { - // uncomment below and update the code to test the property arrayOfString - //var instance = new OpenApiPetstore.ArrayTest(); - //expect(instance).to.be(); - }); - - it('should have the property arrayArrayOfInteger (base name: "array_array_of_integer")', function() { - // uncomment below and update the code to test the property arrayArrayOfInteger - //var instance = new OpenApiPetstore.ArrayTest(); - //expect(instance).to.be(); - }); - - it('should have the property arrayArrayOfModel (base name: "array_array_of_model")', function() { - // uncomment below and update the code to test the property arrayArrayOfModel - //var instance = new OpenApiPetstore.ArrayTest(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript/test/model/BigCat.spec.js b/samples/client/petstore/javascript/test/model/BigCat.spec.js deleted file mode 100644 index 2001b0a31fc1..000000000000 --- a/samples/client/petstore/javascript/test/model/BigCat.spec.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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 4.2.2-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.BigCat(); - }); - - 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('BigCat', function() { - it('should create an instance of BigCat', function() { - // uncomment below and update the code to test BigCat - //var instance = new OpenApiPetstore.BigCat(); - //expect(instance).to.be.a(OpenApiPetstore.BigCat); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instance = new OpenApiPetstore.BigCat(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript/test/model/BigCatAllOf.spec.js b/samples/client/petstore/javascript/test/model/BigCatAllOf.spec.js deleted file mode 100644 index 50d3277f5a6e..000000000000 --- a/samples/client/petstore/javascript/test/model/BigCatAllOf.spec.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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * - * OpenAPI Generator version: 4.2.2-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.BigCatAllOf(); - }); - - 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('BigCatAllOf', function() { - it('should create an instance of BigCatAllOf', function() { - // uncomment below and update the code to test BigCatAllOf - //var instance = new OpenApiPetstore.BigCatAllOf(); - //expect(instance).to.be.a(OpenApiPetstore.BigCatAllOf); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instance = new OpenApiPetstore.BigCatAllOf(); - //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 deleted file mode 100644 index 79e02c9aeb50..000000000000 --- a/samples/client/petstore/javascript/test/model/Capitalization.spec.js +++ /dev/null @@ -1,97 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.Capitalization(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Capitalization', function() { - it('should create an instance of Capitalization', function() { - // uncomment below and update the code to test Capitalization - //var instance = new OpenApiPetstore.Capitalization(); - //expect(instance).to.be.a(OpenApiPetstore.Capitalization); - }); - - it('should have the property smallCamel (base name: "smallCamel")', function() { - // uncomment below and update the code to test the property smallCamel - //var instance = new OpenApiPetstore.Capitalization(); - //expect(instance).to.be(); - }); - - it('should have the property capitalCamel (base name: "CapitalCamel")', function() { - // uncomment below and update the code to test the property capitalCamel - //var instance = new OpenApiPetstore.Capitalization(); - //expect(instance).to.be(); - }); - - it('should have the property smallSnake (base name: "small_Snake")', function() { - // uncomment below and update the code to test the property smallSnake - //var instance = new OpenApiPetstore.Capitalization(); - //expect(instance).to.be(); - }); - - it('should have the property capitalSnake (base name: "Capital_Snake")', function() { - // uncomment below and update the code to test the property capitalSnake - //var instance = new OpenApiPetstore.Capitalization(); - //expect(instance).to.be(); - }); - - it('should have the property sCAETHFlowPoints (base name: "SCA_ETH_Flow_Points")', function() { - // uncomment below and update the code to test the property sCAETHFlowPoints - //var instance = new OpenApiPetstore.Capitalization(); - //expect(instance).to.be(); - }); - - it('should have the property ATT_NAME (base name: "ATT_NAME")', function() { - // uncomment below and update the code to test the property ATT_NAME - //var instance = new OpenApiPetstore.Capitalization(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript/test/model/Cat.spec.js b/samples/client/petstore/javascript/test/model/Cat.spec.js deleted file mode 100644 index 3dcafaebf457..000000000000 --- a/samples/client/petstore/javascript/test/model/Cat.spec.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 - * - * 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', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.Cat(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Cat', function() { - it('should create an instance of Cat', function() { - // uncomment below and update the code to test Cat - //var instance = new OpenApiPetstore.Cat(); - //expect(instance).to.be.a(OpenApiPetstore.Cat); - }); - - it('should have the property declawed (base name: "declawed")', function() { - // uncomment below and update the code to test the property declawed - //var instance = new OpenApiPetstore.Cat(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript/test/model/CatAllOf.spec.js b/samples/client/petstore/javascript/test/model/CatAllOf.spec.js deleted file mode 100644 index 0edf182d6ff1..000000000000 --- a/samples/client/petstore/javascript/test/model/CatAllOf.spec.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 - * - * 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', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.CatAllOf(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('CatAllOf', function() { - it('should create an instance of CatAllOf', function() { - // uncomment below and update the code to test CatAllOf - //var instance = new OpenApiPetstore.CatAllOf(); - //expect(instance).to.be.a(OpenApiPetstore.CatAllOf); - }); - - it('should have the property declawed (base name: "declawed")', function() { - // uncomment below and update the code to test the property declawed - //var instance = new OpenApiPetstore.CatAllOf(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript/test/model/Category.spec.js b/samples/client/petstore/javascript/test/model/Category.spec.js deleted file mode 100644 index af78800f910a..000000000000 --- a/samples/client/petstore/javascript/test/model/Category.spec.js +++ /dev/null @@ -1,73 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.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 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 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 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 deleted file mode 100644 index a87944b84b16..000000000000 --- a/samples/client/petstore/javascript/test/model/ClassModel.spec.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 - * - * 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', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.ClassModel(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ClassModel', function() { - it('should create an instance of ClassModel', function() { - // uncomment below and update the code to test ClassModel - //var instance = new OpenApiPetstore.ClassModel(); - //expect(instance).to.be.a(OpenApiPetstore.ClassModel); - }); - - it('should have the property _class (base name: "_class")', function() { - // uncomment below and update the code to test the property _class - //var instance = new OpenApiPetstore.ClassModel(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript/test/model/Client.spec.js b/samples/client/petstore/javascript/test/model/Client.spec.js deleted file mode 100644 index 2df55fe774c0..000000000000 --- a/samples/client/petstore/javascript/test/model/Client.spec.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 - * - * 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', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.Client(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Client', function() { - it('should create an instance of Client', function() { - // uncomment below and update the code to test Client - //var instance = new OpenApiPetstore.Client(); - //expect(instance).to.be.a(OpenApiPetstore.Client); - }); - - it('should have the property client (base name: "client")', function() { - // uncomment below and update the code to test the property client - //var instance = new OpenApiPetstore.Client(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript/test/model/Dog.spec.js b/samples/client/petstore/javascript/test/model/Dog.spec.js deleted file mode 100644 index b652c44fa441..000000000000 --- a/samples/client/petstore/javascript/test/model/Dog.spec.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 - * - * 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', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.Dog(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Dog', function() { - it('should create an instance of Dog', function() { - // uncomment below and update the code to test Dog - //var instance = new OpenApiPetstore.Dog(); - //expect(instance).to.be.a(OpenApiPetstore.Dog); - }); - - it('should have the property breed (base name: "breed")', function() { - // uncomment below and update the code to test the property breed - //var instance = new OpenApiPetstore.Dog(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript/test/model/DogAllOf.spec.js b/samples/client/petstore/javascript/test/model/DogAllOf.spec.js deleted file mode 100644 index 846e8f066e3b..000000000000 --- a/samples/client/petstore/javascript/test/model/DogAllOf.spec.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 - * - * 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', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.DogAllOf(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('DogAllOf', function() { - it('should create an instance of DogAllOf', function() { - // uncomment below and update the code to test DogAllOf - //var instance = new OpenApiPetstore.DogAllOf(); - //expect(instance).to.be.a(OpenApiPetstore.DogAllOf); - }); - - it('should have the property breed (base name: "breed")', function() { - // uncomment below and update the code to test the property breed - //var instance = new OpenApiPetstore.DogAllOf(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript/test/model/EnumArrays.spec.js b/samples/client/petstore/javascript/test/model/EnumArrays.spec.js deleted file mode 100644 index 7d8cc8d61c96..000000000000 --- a/samples/client/petstore/javascript/test/model/EnumArrays.spec.js +++ /dev/null @@ -1,73 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.EnumArrays(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('EnumArrays', function() { - it('should create an instance of EnumArrays', function() { - // uncomment below and update the code to test EnumArrays - //var instance = new OpenApiPetstore.EnumArrays(); - //expect(instance).to.be.a(OpenApiPetstore.EnumArrays); - }); - - it('should have the property justSymbol (base name: "just_symbol")', function() { - // uncomment below and update the code to test the property justSymbol - //var instance = new OpenApiPetstore.EnumArrays(); - //expect(instance).to.be(); - }); - - it('should have the property arrayEnum (base name: "array_enum")', function() { - // uncomment below and update the code to test the property arrayEnum - //var instance = new OpenApiPetstore.EnumArrays(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript/test/model/EnumClass.spec.js b/samples/client/petstore/javascript/test/model/EnumClass.spec.js deleted file mode 100644 index 99fc34743cb7..000000000000 --- a/samples/client/petstore/javascript/test/model/EnumClass.spec.js +++ /dev/null @@ -1,60 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('EnumClass', function() { - it('should create an instance of EnumClass', function() { - // uncomment below and update the code to test EnumClass - //var instance = new OpenApiPetstore.EnumClass(); - //expect(instance).to.be.a(OpenApiPetstore.EnumClass); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript/test/model/EnumTest.spec.js b/samples/client/petstore/javascript/test/model/EnumTest.spec.js deleted file mode 100644 index df04077b2983..000000000000 --- a/samples/client/petstore/javascript/test/model/EnumTest.spec.js +++ /dev/null @@ -1,91 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.EnumTest(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('EnumTest', function() { - it('should create an instance of EnumTest', function() { - // uncomment below and update the code to test EnumTest - //var instance = new OpenApiPetstore.EnumTest(); - //expect(instance).to.be.a(OpenApiPetstore.EnumTest); - }); - - it('should have the property enumString (base name: "enum_string")', function() { - // uncomment below and update the code to test the property enumString - //var instance = new OpenApiPetstore.EnumTest(); - //expect(instance).to.be(); - }); - - it('should have the property enumStringRequired (base name: "enum_string_required")', function() { - // uncomment below and update the code to test the property enumStringRequired - //var instance = new OpenApiPetstore.EnumTest(); - //expect(instance).to.be(); - }); - - it('should have the property enumInteger (base name: "enum_integer")', function() { - // uncomment below and update the code to test the property enumInteger - //var instance = new OpenApiPetstore.EnumTest(); - //expect(instance).to.be(); - }); - - it('should have the property enumNumber (base name: "enum_number")', function() { - // uncomment below and update the code to test the property enumNumber - //var instance = new OpenApiPetstore.EnumTest(); - //expect(instance).to.be(); - }); - - it('should have the property outerEnum (base name: "outerEnum")', function() { - // uncomment below and update the code to test the property outerEnum - //var instance = new OpenApiPetstore.EnumTest(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript/test/model/File.spec.js b/samples/client/petstore/javascript/test/model/File.spec.js deleted file mode 100644 index 6be3d7942aad..000000000000 --- a/samples/client/petstore/javascript/test/model/File.spec.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 - * - * 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', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.File(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('File', function() { - it('should create an instance of File', function() { - // uncomment below and update the code to test File - //var instance = new OpenApiPetstore.File(); - //expect(instance).to.be.a(OpenApiPetstore.File); - }); - - it('should have the property sourceURI (base name: "sourceURI")', function() { - // uncomment below and update the code to test the property sourceURI - //var instance = new OpenApiPetstore.File(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript/test/model/FileSchemaTestClass.spec.js b/samples/client/petstore/javascript/test/model/FileSchemaTestClass.spec.js deleted file mode 100644 index 52d4cddd3266..000000000000 --- a/samples/client/petstore/javascript/test/model/FileSchemaTestClass.spec.js +++ /dev/null @@ -1,73 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.FileSchemaTestClass(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('FileSchemaTestClass', function() { - it('should create an instance of FileSchemaTestClass', function() { - // uncomment below and update the code to test FileSchemaTestClass - //var instance = new OpenApiPetstore.FileSchemaTestClass(); - //expect(instance).to.be.a(OpenApiPetstore.FileSchemaTestClass); - }); - - it('should have the property file (base name: "file")', function() { - // uncomment below and update the code to test the property file - //var instance = new OpenApiPetstore.FileSchemaTestClass(); - //expect(instance).to.be(); - }); - - it('should have the property files (base name: "files")', function() { - // uncomment below and update the code to test the property files - //var instance = new OpenApiPetstore.FileSchemaTestClass(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript/test/model/FormatTest.spec.js b/samples/client/petstore/javascript/test/model/FormatTest.spec.js deleted file mode 100644 index f7255fb1f554..000000000000 --- a/samples/client/petstore/javascript/test/model/FormatTest.spec.js +++ /dev/null @@ -1,139 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.FormatTest(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('FormatTest', function() { - it('should create an instance of FormatTest', function() { - // uncomment below and update the code to test FormatTest - //var instance = new OpenApiPetstore.FormatTest(); - //expect(instance).to.be.a(OpenApiPetstore.FormatTest); - }); - - it('should have the property integer (base name: "integer")', function() { - // uncomment below and update the code to test the property integer - //var instance = new OpenApiPetstore.FormatTest(); - //expect(instance).to.be(); - }); - - it('should have the property int32 (base name: "int32")', function() { - // uncomment below and update the code to test the property int32 - //var instance = new OpenApiPetstore.FormatTest(); - //expect(instance).to.be(); - }); - - it('should have the property int64 (base name: "int64")', function() { - // uncomment below and update the code to test the property int64 - //var instance = new OpenApiPetstore.FormatTest(); - //expect(instance).to.be(); - }); - - it('should have the property _number (base name: "number")', function() { - // uncomment below and update the code to test the property _number - //var instance = new OpenApiPetstore.FormatTest(); - //expect(instance).to.be(); - }); - - it('should have the property _float (base name: "float")', function() { - // uncomment below and update the code to test the property _float - //var instance = new OpenApiPetstore.FormatTest(); - //expect(instance).to.be(); - }); - - it('should have the property _double (base name: "double")', function() { - // uncomment below and update the code to test the property _double - //var instance = new OpenApiPetstore.FormatTest(); - //expect(instance).to.be(); - }); - - it('should have the property _string (base name: "string")', function() { - // uncomment below and update the code to test the property _string - //var instance = new OpenApiPetstore.FormatTest(); - //expect(instance).to.be(); - }); - - it('should have the property _byte (base name: "byte")', function() { - // uncomment below and update the code to test the property _byte - //var instance = new OpenApiPetstore.FormatTest(); - //expect(instance).to.be(); - }); - - it('should have the property binary (base name: "binary")', function() { - // uncomment below and update the code to test the property binary - //var instance = new OpenApiPetstore.FormatTest(); - //expect(instance).to.be(); - }); - - it('should have the property _date (base name: "date")', function() { - // uncomment below and update the code to test the property _date - //var instance = new OpenApiPetstore.FormatTest(); - //expect(instance).to.be(); - }); - - it('should have the property dateTime (base name: "dateTime")', function() { - // uncomment below and update the code to test the property dateTime - //var instance = new OpenApiPetstore.FormatTest(); - //expect(instance).to.be(); - }); - - it('should have the property uuid (base name: "uuid")', function() { - // uncomment below and update the code to test the property uuid - //var instance = new OpenApiPetstore.FormatTest(); - //expect(instance).to.be(); - }); - - it('should have the property password (base name: "password")', function() { - // uncomment below and update the code to test the property password - //var instance = new OpenApiPetstore.FormatTest(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript/test/model/HasOnlyReadOnly.spec.js b/samples/client/petstore/javascript/test/model/HasOnlyReadOnly.spec.js deleted file mode 100644 index 4ae5235ec48e..000000000000 --- a/samples/client/petstore/javascript/test/model/HasOnlyReadOnly.spec.js +++ /dev/null @@ -1,73 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.HasOnlyReadOnly(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('HasOnlyReadOnly', function() { - it('should create an instance of HasOnlyReadOnly', function() { - // uncomment below and update the code to test HasOnlyReadOnly - //var instance = new OpenApiPetstore.HasOnlyReadOnly(); - //expect(instance).to.be.a(OpenApiPetstore.HasOnlyReadOnly); - }); - - it('should have the property bar (base name: "bar")', function() { - // uncomment below and update the code to test the property bar - //var instance = new OpenApiPetstore.HasOnlyReadOnly(); - //expect(instance).to.be(); - }); - - it('should have the property foo (base name: "foo")', function() { - // uncomment below and update the code to test the property foo - //var instance = new OpenApiPetstore.HasOnlyReadOnly(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript/test/model/List.spec.js b/samples/client/petstore/javascript/test/model/List.spec.js deleted file mode 100644 index ec5795971760..000000000000 --- a/samples/client/petstore/javascript/test/model/List.spec.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 - * - * 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', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.List(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('List', function() { - it('should create an instance of List', function() { - // uncomment below and update the code to test List - //var instance = new OpenApiPetstore.List(); - //expect(instance).to.be.a(OpenApiPetstore.List); - }); - - it('should have the property _123list (base name: "123-list")', function() { - // uncomment below and update the code to test the property _123list - //var instance = new OpenApiPetstore.List(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript/test/model/MapTest.spec.js b/samples/client/petstore/javascript/test/model/MapTest.spec.js deleted file mode 100644 index cefaa92b8fd9..000000000000 --- a/samples/client/petstore/javascript/test/model/MapTest.spec.js +++ /dev/null @@ -1,85 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.MapTest(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('MapTest', function() { - it('should create an instance of MapTest', function() { - // uncomment below and update the code to test MapTest - //var instance = new OpenApiPetstore.MapTest(); - //expect(instance).to.be.a(OpenApiPetstore.MapTest); - }); - - it('should have the property mapMapOfString (base name: "map_map_of_string")', function() { - // uncomment below and update the code to test the property mapMapOfString - //var instance = new OpenApiPetstore.MapTest(); - //expect(instance).to.be(); - }); - - it('should have the property mapOfEnumString (base name: "map_of_enum_string")', function() { - // uncomment below and update the code to test the property mapOfEnumString - //var instance = new OpenApiPetstore.MapTest(); - //expect(instance).to.be(); - }); - - it('should have the property directMap (base name: "direct_map")', function() { - // uncomment below and update the code to test the property directMap - //var instance = new OpenApiPetstore.MapTest(); - //expect(instance).to.be(); - }); - - it('should have the property indirectMap (base name: "indirect_map")', function() { - // uncomment below and update the code to test the property indirectMap - //var instance = new OpenApiPetstore.MapTest(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript/test/model/MixedPropertiesAndAdditionalPropertiesClass.spec.js b/samples/client/petstore/javascript/test/model/MixedPropertiesAndAdditionalPropertiesClass.spec.js deleted file mode 100644 index f5152276441f..000000000000 --- a/samples/client/petstore/javascript/test/model/MixedPropertiesAndAdditionalPropertiesClass.spec.js +++ /dev/null @@ -1,79 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.MixedPropertiesAndAdditionalPropertiesClass(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('MixedPropertiesAndAdditionalPropertiesClass', function() { - it('should create an instance of MixedPropertiesAndAdditionalPropertiesClass', function() { - // uncomment below and update the code to test MixedPropertiesAndAdditionalPropertiesClass - //var instance = new OpenApiPetstore.MixedPropertiesAndAdditionalPropertiesClass(); - //expect(instance).to.be.a(OpenApiPetstore.MixedPropertiesAndAdditionalPropertiesClass); - }); - - it('should have the property uuid (base name: "uuid")', function() { - // uncomment below and update the code to test the property uuid - //var instance = new OpenApiPetstore.MixedPropertiesAndAdditionalPropertiesClass(); - //expect(instance).to.be(); - }); - - it('should have the property dateTime (base name: "dateTime")', function() { - // uncomment below and update the code to test the property dateTime - //var instance = new OpenApiPetstore.MixedPropertiesAndAdditionalPropertiesClass(); - //expect(instance).to.be(); - }); - - it('should have the property map (base name: "map")', function() { - // uncomment below and update the code to test the property map - //var instance = new OpenApiPetstore.MixedPropertiesAndAdditionalPropertiesClass(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript/test/model/Model200Response.spec.js b/samples/client/petstore/javascript/test/model/Model200Response.spec.js deleted file mode 100644 index 4ada7bbf24a4..000000000000 --- a/samples/client/petstore/javascript/test/model/Model200Response.spec.js +++ /dev/null @@ -1,73 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.Model200Response(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Model200Response', function() { - it('should create an instance of Model200Response', function() { - // uncomment below and update the code to test Model200Response - //var instance = new OpenApiPetstore.Model200Response(); - //expect(instance).to.be.a(OpenApiPetstore.Model200Response); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new OpenApiPetstore.Model200Response(); - //expect(instance).to.be(); - }); - - it('should have the property _class (base name: "class")', function() { - // uncomment below and update the code to test the property _class - //var instance = new OpenApiPetstore.Model200Response(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript/test/model/ModelReturn.spec.js b/samples/client/petstore/javascript/test/model/ModelReturn.spec.js deleted file mode 100644 index 955895d3ec92..000000000000 --- a/samples/client/petstore/javascript/test/model/ModelReturn.spec.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 - * - * 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', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.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 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 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 deleted file mode 100644 index 2335871808e8..000000000000 --- a/samples/client/petstore/javascript/test/model/Name.spec.js +++ /dev/null @@ -1,85 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.Name(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Name', function() { - it('should create an instance of Name', function() { - // uncomment below and update the code to test Name - //var instance = new OpenApiPetstore.Name(); - //expect(instance).to.be.a(OpenApiPetstore.Name); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new OpenApiPetstore.Name(); - //expect(instance).to.be(); - }); - - it('should have the property snakeCase (base name: "snake_case")', function() { - // uncomment below and update the code to test the property snakeCase - //var instance = new OpenApiPetstore.Name(); - //expect(instance).to.be(); - }); - - it('should have the property property (base name: "property")', function() { - // uncomment below and update the code to test the property property - //var instance = new OpenApiPetstore.Name(); - //expect(instance).to.be(); - }); - - it('should have the property _123number (base name: "123Number")', function() { - // uncomment below and update the code to test the property _123number - //var instance = new OpenApiPetstore.Name(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript/test/model/NumberOnly.spec.js b/samples/client/petstore/javascript/test/model/NumberOnly.spec.js deleted file mode 100644 index 8d903c726975..000000000000 --- a/samples/client/petstore/javascript/test/model/NumberOnly.spec.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 - * - * 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', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.NumberOnly(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('NumberOnly', function() { - it('should create an instance of NumberOnly', function() { - // uncomment below and update the code to test NumberOnly - //var instance = new OpenApiPetstore.NumberOnly(); - //expect(instance).to.be.a(OpenApiPetstore.NumberOnly); - }); - - it('should have the property justNumber (base name: "JustNumber")', function() { - // uncomment below and update the code to test the property justNumber - //var instance = new OpenApiPetstore.NumberOnly(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript/test/model/Order.spec.js b/samples/client/petstore/javascript/test/model/Order.spec.js deleted file mode 100644 index 1a5765958a4a..000000000000 --- a/samples/client/petstore/javascript/test/model/Order.spec.js +++ /dev/null @@ -1,97 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.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 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 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 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 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 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 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 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 deleted file mode 100644 index ddce9fa8c9a9..000000000000 --- a/samples/client/petstore/javascript/test/model/OuterComposite.spec.js +++ /dev/null @@ -1,79 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.OuterComposite(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('OuterComposite', function() { - it('should create an instance of OuterComposite', function() { - // uncomment below and update the code to test OuterComposite - //var instance = new OpenApiPetstore.OuterComposite(); - //expect(instance).to.be.a(OpenApiPetstore.OuterComposite); - }); - - it('should have the property myNumber (base name: "my_number")', function() { - // uncomment below and update the code to test the property myNumber - //var instance = new OpenApiPetstore.OuterComposite(); - //expect(instance).to.be(); - }); - - it('should have the property myString (base name: "my_string")', function() { - // uncomment below and update the code to test the property myString - //var instance = new OpenApiPetstore.OuterComposite(); - //expect(instance).to.be(); - }); - - it('should have the property myBoolean (base name: "my_boolean")', function() { - // uncomment below and update the code to test the property myBoolean - //var instance = new OpenApiPetstore.OuterComposite(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript/test/model/OuterEnum.spec.js b/samples/client/petstore/javascript/test/model/OuterEnum.spec.js deleted file mode 100644 index a094fbd5a5d4..000000000000 --- a/samples/client/petstore/javascript/test/model/OuterEnum.spec.js +++ /dev/null @@ -1,60 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('OuterEnum', function() { - it('should create an instance of OuterEnum', function() { - // uncomment below and update the code to test OuterEnum - //var instance = new OpenApiPetstore.OuterEnum(); - //expect(instance).to.be.a(OpenApiPetstore.OuterEnum); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript/test/model/Pet.spec.js b/samples/client/petstore/javascript/test/model/Pet.spec.js deleted file mode 100644 index 16d08337b975..000000000000 --- a/samples/client/petstore/javascript/test/model/Pet.spec.js +++ /dev/null @@ -1,97 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.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 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 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 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 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 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 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 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 deleted file mode 100644 index b25f36aeb557..000000000000 --- a/samples/client/petstore/javascript/test/model/ReadOnlyFirst.spec.js +++ /dev/null @@ -1,73 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.ReadOnlyFirst(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ReadOnlyFirst', function() { - it('should create an instance of ReadOnlyFirst', function() { - // uncomment below and update the code to test ReadOnlyFirst - //var instance = new OpenApiPetstore.ReadOnlyFirst(); - //expect(instance).to.be.a(OpenApiPetstore.ReadOnlyFirst); - }); - - it('should have the property bar (base name: "bar")', function() { - // uncomment below and update the code to test the property bar - //var instance = new OpenApiPetstore.ReadOnlyFirst(); - //expect(instance).to.be(); - }); - - it('should have the property baz (base name: "baz")', function() { - // uncomment below and update the code to test the property baz - //var instance = new OpenApiPetstore.ReadOnlyFirst(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript/test/model/SpecialModelName.spec.js b/samples/client/petstore/javascript/test/model/SpecialModelName.spec.js deleted file mode 100644 index 9b9e8a128f03..000000000000 --- a/samples/client/petstore/javascript/test/model/SpecialModelName.spec.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 - * - * 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', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.SpecialModelName(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SpecialModelName', function() { - it('should create an instance of SpecialModelName', function() { - // uncomment below and update the code to test SpecialModelName - //var instance = new OpenApiPetstore.SpecialModelName(); - //expect(instance).to.be.a(OpenApiPetstore.SpecialModelName); - }); - - it('should have the property specialPropertyName (base name: "$special[property.name]")', function() { - // uncomment below and update the code to test the property specialPropertyName - //var instance = new OpenApiPetstore.SpecialModelName(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript/test/model/Tag.spec.js b/samples/client/petstore/javascript/test/model/Tag.spec.js deleted file mode 100644 index 2cfed4bd9074..000000000000 --- a/samples/client/petstore/javascript/test/model/Tag.spec.js +++ /dev/null @@ -1,73 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.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 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 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 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 deleted file mode 100644 index e6618ea65ac9..000000000000 --- a/samples/client/petstore/javascript/test/model/TypeHolderDefault.spec.js +++ /dev/null @@ -1,91 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.TypeHolderDefault(); - }); - - 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('TypeHolderDefault', function() { - it('should create an instance of TypeHolderDefault', function() { - // uncomment below and update the code to test TypeHolderDefault - //var instance = new OpenApiPetstore.TypeHolderDefault(); - //expect(instance).to.be.a(OpenApiPetstore.TypeHolderDefault); - }); - - it('should have the property stringItem (base name: "string_item")', function() { - // uncomment below and update the code to test the property stringItem - //var instance = new OpenApiPetstore.TypeHolderDefault(); - //expect(instance).to.be(); - }); - - it('should have the property numberItem (base name: "number_item")', function() { - // uncomment below and update the code to test the property numberItem - //var instance = new OpenApiPetstore.TypeHolderDefault(); - //expect(instance).to.be(); - }); - - it('should have the property integerItem (base name: "integer_item")', function() { - // uncomment below and update the code to test the property integerItem - //var instance = new OpenApiPetstore.TypeHolderDefault(); - //expect(instance).to.be(); - }); - - it('should have the property boolItem (base name: "bool_item")', function() { - // uncomment below and update the code to test the property boolItem - //var instance = new OpenApiPetstore.TypeHolderDefault(); - //expect(instance).to.be(); - }); - - it('should have the property arrayItem (base name: "array_item")', function() { - // uncomment below and update the code to test the property arrayItem - //var instance = new OpenApiPetstore.TypeHolderDefault(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript/test/model/TypeHolderExample.spec.js b/samples/client/petstore/javascript/test/model/TypeHolderExample.spec.js deleted file mode 100644 index 5f705a61a998..000000000000 --- a/samples/client/petstore/javascript/test/model/TypeHolderExample.spec.js +++ /dev/null @@ -1,91 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.TypeHolderExample(); - }); - - 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('TypeHolderExample', function() { - it('should create an instance of TypeHolderExample', function() { - // uncomment below and update the code to test TypeHolderExample - //var instance = new OpenApiPetstore.TypeHolderExample(); - //expect(instance).to.be.a(OpenApiPetstore.TypeHolderExample); - }); - - it('should have the property stringItem (base name: "string_item")', function() { - // uncomment below and update the code to test the property stringItem - //var instance = new OpenApiPetstore.TypeHolderExample(); - //expect(instance).to.be(); - }); - - it('should have the property numberItem (base name: "number_item")', function() { - // uncomment below and update the code to test the property numberItem - //var instance = new OpenApiPetstore.TypeHolderExample(); - //expect(instance).to.be(); - }); - - it('should have the property integerItem (base name: "integer_item")', function() { - // uncomment below and update the code to test the property integerItem - //var instance = new OpenApiPetstore.TypeHolderExample(); - //expect(instance).to.be(); - }); - - it('should have the property boolItem (base name: "bool_item")', function() { - // uncomment below and update the code to test the property boolItem - //var instance = new OpenApiPetstore.TypeHolderExample(); - //expect(instance).to.be(); - }); - - it('should have the property arrayItem (base name: "array_item")', function() { - // uncomment below and update the code to test the property arrayItem - //var instance = new OpenApiPetstore.TypeHolderExample(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript/test/model/User.spec.js b/samples/client/petstore/javascript/test/model/User.spec.js deleted file mode 100644 index c7b88dbe10b7..000000000000 --- a/samples/client/petstore/javascript/test/model/User.spec.js +++ /dev/null @@ -1,109 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.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 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 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 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 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 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 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 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 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 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 deleted file mode 100644 index 75d5350ebb69..000000000000 --- a/samples/client/petstore/javascript/test/model/XmlItem.spec.js +++ /dev/null @@ -1,235 +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: 4.0.0-SNAPSHOT - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.XmlItem(); - }); - - 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('XmlItem', function() { - it('should create an instance of XmlItem', function() { - // uncomment below and update the code to test XmlItem - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be.a(OpenApiPetstore.XmlItem); - }); - - it('should have the property attributeString (base name: "attribute_string")', function() { - // uncomment below and update the code to test the property attributeString - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property attributeNumber (base name: "attribute_number")', function() { - // uncomment below and update the code to test the property attributeNumber - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property attributeInteger (base name: "attribute_integer")', function() { - // uncomment below and update the code to test the property attributeInteger - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property attributeBoolean (base name: "attribute_boolean")', function() { - // uncomment below and update the code to test the property attributeBoolean - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property wrappedArray (base name: "wrapped_array")', function() { - // uncomment below and update the code to test the property wrappedArray - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property nameString (base name: "name_string")', function() { - // uncomment below and update the code to test the property nameString - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property nameNumber (base name: "name_number")', function() { - // uncomment below and update the code to test the property nameNumber - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property nameInteger (base name: "name_integer")', function() { - // uncomment below and update the code to test the property nameInteger - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property nameBoolean (base name: "name_boolean")', function() { - // uncomment below and update the code to test the property nameBoolean - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property nameArray (base name: "name_array")', function() { - // uncomment below and update the code to test the property nameArray - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property nameWrappedArray (base name: "name_wrapped_array")', function() { - // uncomment below and update the code to test the property nameWrappedArray - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property prefixString (base name: "prefix_string")', function() { - // uncomment below and update the code to test the property prefixString - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property prefixNumber (base name: "prefix_number")', function() { - // uncomment below and update the code to test the property prefixNumber - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property prefixInteger (base name: "prefix_integer")', function() { - // uncomment below and update the code to test the property prefixInteger - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property prefixBoolean (base name: "prefix_boolean")', function() { - // uncomment below and update the code to test the property prefixBoolean - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property prefixArray (base name: "prefix_array")', function() { - // uncomment below and update the code to test the property prefixArray - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property prefixWrappedArray (base name: "prefix_wrapped_array")', function() { - // uncomment below and update the code to test the property prefixWrappedArray - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property namespaceString (base name: "namespace_string")', function() { - // uncomment below and update the code to test the property namespaceString - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property namespaceNumber (base name: "namespace_number")', function() { - // uncomment below and update the code to test the property namespaceNumber - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property namespaceInteger (base name: "namespace_integer")', function() { - // uncomment below and update the code to test the property namespaceInteger - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property namespaceBoolean (base name: "namespace_boolean")', function() { - // uncomment below and update the code to test the property namespaceBoolean - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property namespaceArray (base name: "namespace_array")', function() { - // uncomment below and update the code to test the property namespaceArray - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property namespaceWrappedArray (base name: "namespace_wrapped_array")', function() { - // uncomment below and update the code to test the property namespaceWrappedArray - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property prefixNsString (base name: "prefix_ns_string")', function() { - // uncomment below and update the code to test the property prefixNsString - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property prefixNsNumber (base name: "prefix_ns_number")', function() { - // uncomment below and update the code to test the property prefixNsNumber - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property prefixNsInteger (base name: "prefix_ns_integer")', function() { - // uncomment below and update the code to test the property prefixNsInteger - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property prefixNsBoolean (base name: "prefix_ns_boolean")', function() { - // uncomment below and update the code to test the property prefixNsBoolean - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property prefixNsArray (base name: "prefix_ns_array")', function() { - // uncomment below and update the code to test the property prefixNsArray - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property prefixNsWrappedArray (base name: "prefix_ns_wrapped_array")', function() { - // uncomment below and update the code to test the property prefixNsWrappedArray - //var instance = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript/test/run_tests.html b/samples/client/petstore/javascript/test/run_tests.html deleted file mode 100644 index 059f3a112ada..000000000000 --- a/samples/client/petstore/javascript/test/run_tests.html +++ /dev/null @@ -1,45 +0,0 @@ - - - - Mocha Tests - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - From e8c9fbada92046b901755f5bb83cb2dfd0dc6c72 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Sun, 24 May 2020 17:07:28 +0800 Subject: [PATCH 05/10] update js petstore --- .../client/petstore/javascript-es6/README.md | 7 ++ .../petstore/javascript-es6/docs/FakeApi.md | 105 ++++++++++++++++ .../javascript-es6/docs/HasOnlyReadOnly.md | 4 +- .../petstore/javascript-es6/docs/Name.md | 4 +- .../javascript-es6/docs/ReadOnlyFirst.md | 2 +- .../petstore/javascript-es6/git_push.sh | 18 ++- .../petstore/javascript-es6/src/ApiClient.js | 2 +- .../javascript-es6/src/api/FakeApi.js | 112 ++++++++++++++++++ 8 files changed, 242 insertions(+), 12 deletions(-) diff --git a/samples/client/petstore/javascript-es6/README.md b/samples/client/petstore/javascript-es6/README.md index 70e6ac7a2aa2..08b186d8e0ce 100644 --- a/samples/client/petstore/javascript-es6/README.md +++ b/samples/client/petstore/javascript-es6/README.md @@ -123,6 +123,7 @@ Class | Method | HTTP request | Description *OpenApiPetstore.AnotherFakeApi* | [**call123testSpecialTags**](docs/AnotherFakeApi.md#call123testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags *OpenApiPetstore.DefaultApi* | [**fooGet**](docs/DefaultApi.md#fooGet) | **GET** /foo | *OpenApiPetstore.FakeApi* | [**fakeHealthGet**](docs/FakeApi.md#fakeHealthGet) | **GET** /fake/health | Health check endpoint +*OpenApiPetstore.FakeApi* | [**fakeHttpSignatureTest**](docs/FakeApi.md#fakeHttpSignatureTest) | **GET** /fake/http-signature-test | test http signature authentication *OpenApiPetstore.FakeApi* | [**fakeOuterBooleanSerialize**](docs/FakeApi.md#fakeOuterBooleanSerialize) | **POST** /fake/outer/boolean | *OpenApiPetstore.FakeApi* | [**fakeOuterCompositeSerialize**](docs/FakeApi.md#fakeOuterCompositeSerialize) | **POST** /fake/outer/composite | *OpenApiPetstore.FakeApi* | [**fakeOuterNumberSerialize**](docs/FakeApi.md#fakeOuterNumberSerialize) | **POST** /fake/outer/number | @@ -135,6 +136,7 @@ Class | Method | HTTP request | Description *OpenApiPetstore.FakeApi* | [**testGroupParameters**](docs/FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) *OpenApiPetstore.FakeApi* | [**testInlineAdditionalProperties**](docs/FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties *OpenApiPetstore.FakeApi* | [**testJsonFormData**](docs/FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data +*OpenApiPetstore.FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | *OpenApiPetstore.FakeClassnameTags123Api* | [**testClassname**](docs/FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case *OpenApiPetstore.PetApi* | [**addPet**](docs/PetApi.md#addPet) | **POST** /pet | Add a new pet to the store *OpenApiPetstore.PetApi* | [**deletePet**](docs/PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet @@ -246,6 +248,11 @@ Class | Method | HTTP request | Description +### http_signature_test + + + + ### petstore_auth diff --git a/samples/client/petstore/javascript-es6/docs/FakeApi.md b/samples/client/petstore/javascript-es6/docs/FakeApi.md index cc6ba6590f02..23f6e3456ba6 100644 --- a/samples/client/petstore/javascript-es6/docs/FakeApi.md +++ b/samples/client/petstore/javascript-es6/docs/FakeApi.md @@ -5,6 +5,7 @@ All URIs are relative to *http://petstore.swagger.io:80/v2* Method | HTTP request | Description ------------- | ------------- | ------------- [**fakeHealthGet**](FakeApi.md#fakeHealthGet) | **GET** /fake/health | Health check endpoint +[**fakeHttpSignatureTest**](FakeApi.md#fakeHttpSignatureTest) | **GET** /fake/http-signature-test | test http signature authentication [**fakeOuterBooleanSerialize**](FakeApi.md#fakeOuterBooleanSerialize) | **POST** /fake/outer/boolean | [**fakeOuterCompositeSerialize**](FakeApi.md#fakeOuterCompositeSerialize) | **POST** /fake/outer/composite | [**fakeOuterNumberSerialize**](FakeApi.md#fakeOuterNumberSerialize) | **POST** /fake/outer/number | @@ -17,6 +18,7 @@ Method | HTTP request | Description [**testGroupParameters**](FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) [**testInlineAdditionalProperties**](FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties [**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data +[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | @@ -59,6 +61,56 @@ No authorization required - **Accept**: application/json +## fakeHttpSignatureTest + +> fakeHttpSignatureTest(pet, opts) + +test http signature authentication + +### Example + +```javascript +import OpenApiPetstore from 'open_api_petstore'; +let defaultClient = OpenApiPetstore.ApiClient.instance; + +let apiInstance = new OpenApiPetstore.FakeApi(); +let pet = new OpenApiPetstore.Pet(); // Pet | Pet object that needs to be added to the store +let opts = { + 'query1': "query1_example", // String | query parameter + 'header1': "header1_example" // String | header parameter +}; +apiInstance.fakeHttpSignatureTest(pet, opts, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | + **query1** | **String**| query parameter | [optional] + **header1** | **String**| header parameter | [optional] + +### Return type + +null (empty response body) + +### Authorization + +[http_signature_test](../README.md#http_signature_test) + +### HTTP request headers + +- **Content-Type**: application/json, application/xml +- **Accept**: Not defined + + ## fakeOuterBooleanSerialize > Boolean fakeOuterBooleanSerialize(opts) @@ -669,3 +721,56 @@ No authorization required - **Content-Type**: application/x-www-form-urlencoded - **Accept**: Not defined + +## testQueryParameterCollectionFormat + +> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context) + + + +To test the collection format in query parameters + +### Example + +```javascript +import OpenApiPetstore from 'open_api_petstore'; + +let apiInstance = new OpenApiPetstore.FakeApi(); +let pipe = ["null"]; // [String] | +let ioutil = ["null"]; // [String] | +let http = ["null"]; // [String] | +let url = ["null"]; // [String] | +let context = ["null"]; // [String] | +apiInstance.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, (error, data, response) => { + if (error) { + console.error(error); + } else { + console.log('API called successfully.'); + } +}); +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pipe** | [**[String]**](String.md)| | + **ioutil** | [**[String]**](String.md)| | + **http** | [**[String]**](String.md)| | + **url** | [**[String]**](String.md)| | + **context** | [**[String]**](String.md)| | + +### Return type + +null (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + diff --git a/samples/client/petstore/javascript-es6/docs/HasOnlyReadOnly.md b/samples/client/petstore/javascript-es6/docs/HasOnlyReadOnly.md index f3d71895b54b..bfe08a1baee2 100644 --- a/samples/client/petstore/javascript-es6/docs/HasOnlyReadOnly.md +++ b/samples/client/petstore/javascript-es6/docs/HasOnlyReadOnly.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**bar** | **String** | | [optional] -**foo** | **String** | | [optional] +**bar** | **String** | | [optional] [readonly] +**foo** | **String** | | [optional] [readonly] diff --git a/samples/client/petstore/javascript-es6/docs/Name.md b/samples/client/petstore/javascript-es6/docs/Name.md index be2344179b47..d9f2fbeb68ba 100644 --- a/samples/client/petstore/javascript-es6/docs/Name.md +++ b/samples/client/petstore/javascript-es6/docs/Name.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **Number** | | -**snakeCase** | **Number** | | [optional] +**snakeCase** | **Number** | | [optional] [readonly] **property** | **String** | | [optional] -**_123number** | **Number** | | [optional] +**_123number** | **Number** | | [optional] [readonly] diff --git a/samples/client/petstore/javascript-es6/docs/ReadOnlyFirst.md b/samples/client/petstore/javascript-es6/docs/ReadOnlyFirst.md index 01063e61a99f..eee7a321d406 100644 --- a/samples/client/petstore/javascript-es6/docs/ReadOnlyFirst.md +++ b/samples/client/petstore/javascript-es6/docs/ReadOnlyFirst.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**bar** | **String** | | [optional] +**bar** | **String** | | [optional] [readonly] **baz** | **String** | | [optional] diff --git a/samples/client/petstore/javascript-es6/git_push.sh b/samples/client/petstore/javascript-es6/git_push.sh index 04dd5df38e83..ced3be2b0c7b 100644 --- a/samples/client/petstore/javascript-es6/git_push.sh +++ b/samples/client/petstore/javascript-es6/git_push.sh @@ -1,11 +1,17 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi if [ "$git_user_id" = "" ]; then git_user_id="GIT_USER_ID" @@ -28,7 +34,7 @@ git init # Adds the files in the local repository and stages them for commit. git add . -# Commits the tracked changes and prepares them to be pushed to a remote repository. +# Commits the tracked changes and prepares them to be pushed to a remote repository. git commit -m "$release_note" # Sets the new remote @@ -36,10 +42,10 @@ git_remote=`git remote` if [ "$git_remote" = "" ]; then # git remote not defined if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the Git credential in your environment." - git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git else - git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git + git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git fi fi @@ -47,6 +53,6 @@ fi git pull origin master # Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git" +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" git push origin master 2>&1 | grep -v 'To https' diff --git a/samples/client/petstore/javascript-es6/src/ApiClient.js b/samples/client/petstore/javascript-es6/src/ApiClient.js index 83cba1cae1a3..91fef65f79b8 100644 --- a/samples/client/petstore/javascript-es6/src/ApiClient.js +++ b/samples/client/petstore/javascript-es6/src/ApiClient.js @@ -363,7 +363,7 @@ class ApiClient { * @param {Array.} accepts An array of acceptable response MIME types. * @param {(String|Array|ObjectFunction)} returnType The required type to return; can be a string for simple types or the * constructor for a complex type. - * @param {String} apiBasePath base path defined in the operation/path level to override the default one + * @param {String} apiBasePath base path defined in the operation/path level to override the default one * @param {module:ApiClient~callApiCallback} callback The callback function. * @returns {Object} The SuperAgent request object. */ diff --git a/samples/client/petstore/javascript-es6/src/api/FakeApi.js b/samples/client/petstore/javascript-es6/src/api/FakeApi.js index b779413c5a33..83c4437a592e 100644 --- a/samples/client/petstore/javascript-es6/src/api/FakeApi.js +++ b/samples/client/petstore/javascript-es6/src/api/FakeApi.js @@ -17,6 +17,7 @@ import Client from '../model/Client'; import FileSchemaTestClass from '../model/FileSchemaTestClass'; import HealthCheckResult from '../model/HealthCheckResult'; import OuterComposite from '../model/OuterComposite'; +import Pet from '../model/Pet'; import User from '../model/User'; /** @@ -74,6 +75,52 @@ export default class FakeApi { ); } + /** + * Callback function to receive the result of the fakeHttpSignatureTest operation. + * @callback module:api/FakeApi~fakeHttpSignatureTestCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * test http signature authentication + * @param {module:model/Pet} pet Pet object that needs to be added to the store + * @param {Object} opts Optional parameters + * @param {String} opts.query1 query parameter + * @param {String} opts.header1 header parameter + * @param {module:api/FakeApi~fakeHttpSignatureTestCallback} callback The callback function, accepting three arguments: error, data, response + */ + fakeHttpSignatureTest(pet, opts, callback) { + opts = opts || {}; + let postBody = pet; + // verify the required parameter 'pet' is set + if (pet === undefined || pet === null) { + throw new Error("Missing the required parameter 'pet' when calling fakeHttpSignatureTest"); + } + + let pathParams = { + }; + let queryParams = { + 'query_1': opts['query1'] + }; + let headerParams = { + 'header_1': opts['header1'] + }; + let formParams = { + }; + + let authNames = ['http_signature_test']; + let contentTypes = ['application/json', 'application/xml']; + let accepts = []; + let returnType = null; + return this.apiClient.callApi( + '/fake/http-signature-test', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + /** * Callback function to receive the result of the fakeOuterBooleanSerialize operation. * @callback module:api/FakeApi~fakeOuterBooleanSerializeCallback @@ -642,5 +689,70 @@ export default class FakeApi { ); } + /** + * Callback function to receive the result of the testQueryParameterCollectionFormat operation. + * @callback module:api/FakeApi~testQueryParameterCollectionFormatCallback + * @param {String} error Error message, if any. + * @param data This operation does not return a value. + * @param {String} response The complete HTTP response. + */ + + /** + * To test the collection format in query parameters + * @param {Array.} pipe + * @param {Array.} ioutil + * @param {Array.} http + * @param {Array.} url + * @param {Array.} context + * @param {module:api/FakeApi~testQueryParameterCollectionFormatCallback} callback The callback function, accepting three arguments: error, data, response + */ + testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, callback) { + let postBody = null; + // verify the required parameter 'pipe' is set + if (pipe === undefined || pipe === null) { + throw new Error("Missing the required parameter 'pipe' when calling testQueryParameterCollectionFormat"); + } + // verify the required parameter 'ioutil' is set + if (ioutil === undefined || ioutil === null) { + throw new Error("Missing the required parameter 'ioutil' when calling testQueryParameterCollectionFormat"); + } + // verify the required parameter 'http' is set + if (http === undefined || http === null) { + throw new Error("Missing the required parameter 'http' when calling testQueryParameterCollectionFormat"); + } + // verify the required parameter 'url' is set + if (url === undefined || url === null) { + throw new Error("Missing the required parameter 'url' when calling testQueryParameterCollectionFormat"); + } + // verify the required parameter 'context' is set + if (context === undefined || context === null) { + throw new Error("Missing the required parameter 'context' when calling testQueryParameterCollectionFormat"); + } + + let pathParams = { + }; + let queryParams = { + 'pipe': this.apiClient.buildCollectionParam(pipe, 'multi'), + 'ioutil': this.apiClient.buildCollectionParam(ioutil, 'csv'), + 'http': this.apiClient.buildCollectionParam(http, 'space'), + 'url': this.apiClient.buildCollectionParam(url, 'csv'), + 'context': this.apiClient.buildCollectionParam(context, 'multi') + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = []; + let contentTypes = []; + let accepts = []; + let returnType = null; + return this.apiClient.callApi( + '/fake/test-query-paramters', 'PUT', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null, callback + ); + } + } From f27d7b42a77c26d2b303d9df991d88ea593596b1 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Sun, 24 May 2020 17:08:23 +0800 Subject: [PATCH 06/10] remove openapi3 js petstore --- .../client/petstore/javascript-es6/.babelrc | 33 - .../javascript-es6/.openapi-generator-ignore | 23 - .../javascript-es6/.openapi-generator/FILES | 120 --- .../javascript-es6/.openapi-generator/VERSION | 1 - .../petstore/javascript-es6/.travis.yml | 5 - .../client/petstore/javascript-es6/README.md | 265 ------ .../docs/AdditionalPropertiesClass.md | 10 - .../petstore/javascript-es6/docs/Animal.md | 10 - .../javascript-es6/docs/AnotherFakeApi.md | 54 -- .../javascript-es6/docs/ApiResponse.md | 11 - .../docs/ArrayOfArrayOfNumberOnly.md | 9 - .../javascript-es6/docs/ArrayOfNumberOnly.md | 9 - .../petstore/javascript-es6/docs/ArrayTest.md | 11 - .../javascript-es6/docs/Capitalization.md | 14 - .../petstore/javascript-es6/docs/Cat.md | 9 - .../petstore/javascript-es6/docs/CatAllOf.md | 9 - .../petstore/javascript-es6/docs/Category.md | 10 - .../javascript-es6/docs/ClassModel.md | 9 - .../petstore/javascript-es6/docs/Client.md | 9 - .../javascript-es6/docs/DefaultApi.md | 48 -- .../petstore/javascript-es6/docs/Dog.md | 9 - .../petstore/javascript-es6/docs/DogAllOf.md | 9 - .../javascript-es6/docs/EnumArrays.md | 32 - .../petstore/javascript-es6/docs/EnumClass.md | 12 - .../petstore/javascript-es6/docs/EnumTest.md | 64 -- .../petstore/javascript-es6/docs/FakeApi.md | 776 ------------------ .../docs/FakeClassnameTags123Api.md | 60 -- .../petstore/javascript-es6/docs/File.md | 9 - .../docs/FileSchemaTestClass.md | 10 - .../petstore/javascript-es6/docs/Foo.md | 9 - .../javascript-es6/docs/FormatTest.md | 23 - .../javascript-es6/docs/HasOnlyReadOnly.md | 10 - .../javascript-es6/docs/HealthCheckResult.md | 9 - .../javascript-es6/docs/InlineObject.md | 10 - .../javascript-es6/docs/InlineObject1.md | 10 - .../javascript-es6/docs/InlineObject2.md | 34 - .../javascript-es6/docs/InlineObject3.md | 22 - .../javascript-es6/docs/InlineObject4.md | 10 - .../javascript-es6/docs/InlineObject5.md | 10 - .../docs/InlineResponseDefault.md | 9 - .../petstore/javascript-es6/docs/List.md | 9 - .../petstore/javascript-es6/docs/MapTest.md | 23 - ...dPropertiesAndAdditionalPropertiesClass.md | 11 - .../javascript-es6/docs/Model200Response.md | 10 - .../javascript-es6/docs/ModelReturn.md | 9 - .../petstore/javascript-es6/docs/Name.md | 12 - .../javascript-es6/docs/NullableClass.md | 20 - .../javascript-es6/docs/NumberOnly.md | 9 - .../petstore/javascript-es6/docs/Order.md | 27 - .../javascript-es6/docs/OuterComposite.md | 11 - .../petstore/javascript-es6/docs/OuterEnum.md | 12 - .../docs/OuterEnumDefaultValue.md | 12 - .../javascript-es6/docs/OuterEnumInteger.md | 12 - .../docs/OuterEnumIntegerDefaultValue.md | 12 - .../petstore/javascript-es6/docs/Pet.md | 27 - .../petstore/javascript-es6/docs/PetApi.md | 470 ----------- .../javascript-es6/docs/ReadOnlyFirst.md | 10 - .../javascript-es6/docs/SpecialModelName.md | 9 - .../petstore/javascript-es6/docs/StoreApi.md | 192 ----- .../petstore/javascript-es6/docs/Tag.md | 10 - .../petstore/javascript-es6/docs/User.md | 16 - .../petstore/javascript-es6/docs/UserApi.md | 366 --------- .../petstore/javascript-es6/git_push.sh | 58 -- .../client/petstore/javascript-es6/mocha.opts | 1 - .../petstore/javascript-es6/package.json | 46 -- .../petstore/javascript-es6/src/ApiClient.js | 690 ---------------- .../javascript-es6/src/api/AnotherFakeApi.js | 80 -- .../javascript-es6/src/api/DefaultApi.js | 73 -- .../javascript-es6/src/api/FakeApi.js | 758 ----------------- .../src/api/FakeClassnameTags123Api.js | 80 -- .../petstore/javascript-es6/src/api/PetApi.js | 460 ----------- .../javascript-es6/src/api/StoreApi.js | 201 ----- .../javascript-es6/src/api/UserApi.js | 373 --------- .../petstore/javascript-es6/src/index.js | 447 ---------- .../src/model/AdditionalPropertiesClass.js | 79 -- .../javascript-es6/src/model/Animal.js | 82 -- .../javascript-es6/src/model/ApiResponse.js | 87 -- .../src/model/ArrayOfArrayOfNumberOnly.js | 71 -- .../src/model/ArrayOfNumberOnly.js | 71 -- .../javascript-es6/src/model/ArrayTest.js | 88 -- .../src/model/Capitalization.js | 112 --- .../petstore/javascript-es6/src/model/Cat.js | 95 --- .../javascript-es6/src/model/CatAllOf.js | 71 -- .../javascript-es6/src/model/Category.js | 82 -- .../javascript-es6/src/model/ClassModel.js | 72 -- .../javascript-es6/src/model/Client.js | 71 -- .../petstore/javascript-es6/src/model/Dog.js | 95 --- .../javascript-es6/src/model/DogAllOf.js | 71 -- .../javascript-es6/src/model/EnumArrays.js | 121 --- .../javascript-es6/src/model/EnumClass.js | 53 -- .../javascript-es6/src/model/EnumTest.js | 229 ------ .../petstore/javascript-es6/src/model/File.js | 73 -- .../src/model/FileSchemaTestClass.js | 79 -- .../petstore/javascript-es6/src/model/Foo.js | 72 -- .../javascript-es6/src/model/FormatTest.js | 193 ----- .../src/model/HasOnlyReadOnly.js | 79 -- .../src/model/HealthCheckResult.js | 72 -- .../javascript-es6/src/model/InlineObject.js | 81 -- .../javascript-es6/src/model/InlineObject1.js | 81 -- .../javascript-es6/src/model/InlineObject2.js | 130 --- .../javascript-es6/src/model/InlineObject3.js | 197 ----- .../javascript-es6/src/model/InlineObject4.js | 85 -- .../javascript-es6/src/model/InlineObject5.js | 83 -- .../src/model/InlineResponseDefault.js | 72 -- .../petstore/javascript-es6/src/model/List.js | 71 -- .../javascript-es6/src/model/MapTest.js | 116 --- ...dPropertiesAndAdditionalPropertiesClass.js | 88 -- .../src/model/Model200Response.js | 80 -- .../javascript-es6/src/model/ModelReturn.js | 72 -- .../petstore/javascript-es6/src/model/Name.js | 98 --- .../javascript-es6/src/model/NullableClass.js | 163 ---- .../javascript-es6/src/model/NumberOnly.js | 71 -- .../javascript-es6/src/model/Order.js | 140 ---- .../src/model/OuterComposite.js | 87 -- .../javascript-es6/src/model/OuterEnum.js | 53 -- .../src/model/OuterEnumDefaultValue.js | 53 -- .../src/model/OuterEnumInteger.js | 53 -- .../src/model/OuterEnumIntegerDefaultValue.js | 53 -- .../petstore/javascript-es6/src/model/Pet.js | 145 ---- .../javascript-es6/src/model/ReadOnlyFirst.js | 79 -- .../src/model/SpecialModelName.js | 71 -- .../petstore/javascript-es6/src/model/Tag.js | 79 -- .../petstore/javascript-es6/src/model/User.js | 128 --- .../test/api/AnotherFakeApi.spec.js | 63 -- .../test/api/DefaultApi.spec.js | 63 -- .../javascript-es6/test/api/FakeApi.spec.js | 203 ----- .../test/api/FakeClassnameTags123Api.spec.js | 63 -- .../javascript-es6/test/api/PetApi.spec.js | 143 ---- .../javascript-es6/test/api/StoreApi.spec.js | 93 --- .../javascript-es6/test/api/UserApi.spec.js | 133 --- .../model/AdditionalPropertiesClass.spec.js | 71 -- .../javascript-es6/test/model/Animal.spec.js | 71 -- .../test/model/ApiResponse.spec.js | 77 -- .../model/ArrayOfArrayOfNumberOnly.spec.js | 65 -- .../test/model/ArrayOfNumberOnly.spec.js | 65 -- .../test/model/ArrayTest.spec.js | 77 -- .../test/model/Capitalization.spec.js | 95 --- .../javascript-es6/test/model/Cat.spec.js | 65 -- .../test/model/CatAllOf.spec.js | 65 -- .../test/model/Category.spec.js | 71 -- .../test/model/ClassModel.spec.js | 65 -- .../javascript-es6/test/model/Client.spec.js | 65 -- .../javascript-es6/test/model/Dog.spec.js | 65 -- .../test/model/DogAllOf.spec.js | 65 -- .../test/model/EnumArrays.spec.js | 71 -- .../test/model/EnumClass.spec.js | 58 -- .../test/model/EnumTest.spec.js | 107 --- .../javascript-es6/test/model/File.spec.js | 65 -- .../test/model/FileSchemaTestClass.spec.js | 71 -- .../javascript-es6/test/model/Foo.spec.js | 65 -- .../test/model/FormatTest.spec.js | 149 ---- .../test/model/HasOnlyReadOnly.spec.js | 71 -- .../test/model/HealthCheckResult.spec.js | 65 -- .../test/model/InlineObject.spec.js | 71 -- .../test/model/InlineObject1.spec.js | 71 -- .../test/model/InlineObject2.spec.js | 71 -- .../test/model/InlineObject3.spec.js | 143 ---- .../test/model/InlineObject4.spec.js | 71 -- .../test/model/InlineObject5.spec.js | 71 -- .../test/model/InlineResponseDefault.spec.js | 65 -- .../javascript-es6/test/model/List.spec.js | 65 -- .../javascript-es6/test/model/MapTest.spec.js | 83 -- ...ertiesAndAdditionalPropertiesClass.spec.js | 77 -- .../test/model/Model200Response.spec.js | 71 -- .../test/model/ModelReturn.spec.js | 65 -- .../javascript-es6/test/model/Name.spec.js | 83 -- .../test/model/NullableClass.spec.js | 131 --- .../test/model/NumberOnly.spec.js | 65 -- .../javascript-es6/test/model/Order.spec.js | 95 --- .../test/model/OuterComposite.spec.js | 77 -- .../test/model/OuterEnum.spec.js | 58 -- .../test/model/OuterEnumDefaultValue.spec.js | 58 -- .../test/model/OuterEnumInteger.spec.js | 58 -- .../OuterEnumIntegerDefaultValue.spec.js | 58 -- .../javascript-es6/test/model/Pet.spec.js | 95 --- .../test/model/ReadOnlyFirst.spec.js | 71 -- .../test/model/SpecialModelName.spec.js | 65 -- .../javascript-es6/test/model/Tag.spec.js | 71 -- .../javascript-es6/test/model/User.spec.js | 107 --- 179 files changed, 15390 deletions(-) delete mode 100644 samples/openapi3/client/petstore/javascript-es6/.babelrc delete mode 100644 samples/openapi3/client/petstore/javascript-es6/.openapi-generator-ignore delete mode 100644 samples/openapi3/client/petstore/javascript-es6/.openapi-generator/FILES delete mode 100644 samples/openapi3/client/petstore/javascript-es6/.openapi-generator/VERSION delete mode 100644 samples/openapi3/client/petstore/javascript-es6/.travis.yml delete mode 100644 samples/openapi3/client/petstore/javascript-es6/README.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/AdditionalPropertiesClass.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/Animal.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/AnotherFakeApi.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/ApiResponse.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/ArrayOfArrayOfNumberOnly.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/ArrayOfNumberOnly.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/ArrayTest.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/Capitalization.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/Cat.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/CatAllOf.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/Category.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/ClassModel.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/Client.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/DefaultApi.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/Dog.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/DogAllOf.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/EnumArrays.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/EnumClass.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/EnumTest.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/FakeApi.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/FakeClassnameTags123Api.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/File.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/FileSchemaTestClass.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/Foo.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/FormatTest.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/HasOnlyReadOnly.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/HealthCheckResult.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/InlineObject.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/InlineObject1.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/InlineObject2.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/InlineObject3.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/InlineObject4.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/InlineObject5.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/InlineResponseDefault.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/List.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/MapTest.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/MixedPropertiesAndAdditionalPropertiesClass.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/Model200Response.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/ModelReturn.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/Name.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/NullableClass.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/NumberOnly.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/Order.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/OuterComposite.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/OuterEnum.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/OuterEnumDefaultValue.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/OuterEnumInteger.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/OuterEnumIntegerDefaultValue.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/Pet.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/PetApi.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/ReadOnlyFirst.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/SpecialModelName.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/StoreApi.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/Tag.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/User.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/docs/UserApi.md delete mode 100644 samples/openapi3/client/petstore/javascript-es6/git_push.sh delete mode 100644 samples/openapi3/client/petstore/javascript-es6/mocha.opts delete mode 100644 samples/openapi3/client/petstore/javascript-es6/package.json delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/ApiClient.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/api/AnotherFakeApi.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/api/DefaultApi.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/api/FakeApi.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/api/FakeClassnameTags123Api.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/api/PetApi.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/api/StoreApi.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/api/UserApi.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/index.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/model/AdditionalPropertiesClass.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/model/Animal.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/model/ApiResponse.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/model/ArrayOfArrayOfNumberOnly.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/model/ArrayOfNumberOnly.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/model/ArrayTest.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/model/Capitalization.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/model/Cat.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/model/CatAllOf.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/model/Category.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/model/ClassModel.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/model/Client.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/model/Dog.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/model/DogAllOf.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/model/EnumArrays.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/model/EnumClass.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/model/EnumTest.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/model/File.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/model/FileSchemaTestClass.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/model/Foo.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/model/FormatTest.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/model/HasOnlyReadOnly.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/model/HealthCheckResult.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject1.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject2.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject3.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject4.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject5.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/model/InlineResponseDefault.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/model/List.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/model/MapTest.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/model/MixedPropertiesAndAdditionalPropertiesClass.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/model/Model200Response.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/model/ModelReturn.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/model/Name.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/model/NullableClass.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/model/NumberOnly.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/model/Order.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/model/OuterComposite.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/model/OuterEnum.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/model/OuterEnumDefaultValue.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/model/OuterEnumInteger.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/model/OuterEnumIntegerDefaultValue.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/model/Pet.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/model/ReadOnlyFirst.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/model/SpecialModelName.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/model/Tag.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/src/model/User.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/api/AnotherFakeApi.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/api/DefaultApi.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/api/FakeApi.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/api/FakeClassnameTags123Api.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/api/PetApi.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/api/StoreApi.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/api/UserApi.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/model/AdditionalPropertiesClass.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/model/Animal.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/model/ApiResponse.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/model/ArrayOfArrayOfNumberOnly.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/model/ArrayOfNumberOnly.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/model/ArrayTest.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/model/Capitalization.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/model/Cat.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/model/CatAllOf.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/model/Category.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/model/ClassModel.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/model/Client.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/model/Dog.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/model/DogAllOf.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/model/EnumArrays.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/model/EnumClass.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/model/EnumTest.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/model/File.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/model/FileSchemaTestClass.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/model/Foo.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/model/FormatTest.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/model/HasOnlyReadOnly.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/model/HealthCheckResult.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/model/InlineObject.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/model/InlineObject1.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/model/InlineObject2.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/model/InlineObject3.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/model/InlineObject4.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/model/InlineObject5.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/model/InlineResponseDefault.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/model/List.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/model/MapTest.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/model/MixedPropertiesAndAdditionalPropertiesClass.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/model/Model200Response.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/model/ModelReturn.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/model/Name.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/model/NullableClass.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/model/NumberOnly.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/model/Order.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/model/OuterComposite.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/model/OuterEnum.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/model/OuterEnumDefaultValue.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/model/OuterEnumInteger.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/model/OuterEnumIntegerDefaultValue.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/model/Pet.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/model/ReadOnlyFirst.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/model/SpecialModelName.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/model/Tag.spec.js delete mode 100644 samples/openapi3/client/petstore/javascript-es6/test/model/User.spec.js diff --git a/samples/openapi3/client/petstore/javascript-es6/.babelrc b/samples/openapi3/client/petstore/javascript-es6/.babelrc deleted file mode 100644 index c73df9d50b49..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/.babelrc +++ /dev/null @@ -1,33 +0,0 @@ -{ - "presets": [ - "@babel/preset-env" - ], - "plugins": [ - "@babel/plugin-syntax-dynamic-import", - "@babel/plugin-syntax-import-meta", - "@babel/plugin-proposal-class-properties", - "@babel/plugin-proposal-json-strings", - [ - "@babel/plugin-proposal-decorators", - { - "legacy": true - } - ], - "@babel/plugin-proposal-function-sent", - "@babel/plugin-proposal-export-namespace-from", - "@babel/plugin-proposal-numeric-separator", - "@babel/plugin-proposal-throw-expressions", - "@babel/plugin-proposal-export-default-from", - "@babel/plugin-proposal-logical-assignment-operators", - "@babel/plugin-proposal-optional-chaining", - [ - "@babel/plugin-proposal-pipeline-operator", - { - "proposal": "minimal" - } - ], - "@babel/plugin-proposal-nullish-coalescing-operator", - "@babel/plugin-proposal-do-expressions", - "@babel/plugin-proposal-function-bind" - ] -} diff --git a/samples/openapi3/client/petstore/javascript-es6/.openapi-generator-ignore b/samples/openapi3/client/petstore/javascript-es6/.openapi-generator-ignore deleted file mode 100644 index 7484ee590a38..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/.openapi-generator-ignore +++ /dev/null @@ -1,23 +0,0 @@ -# OpenAPI Generator Ignore -# Generated by openapi-generator https://github.com/openapitools/openapi-generator - -# Use this file to prevent files from being overwritten by the generator. -# The patterns follow closely to .gitignore or .dockerignore. - -# As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: -#ApiClient.cs - -# You can match any string of characters against a directory, file or extension with a single asterisk (*): -#foo/*/qux -# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux - -# You can recursively match patterns against a directory, file or extension with a double asterisk (**): -#foo/**/qux -# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux - -# You can also negate patterns with an exclamation (!). -# For example, you can ignore all files in a docs folder with the file extension .md: -#docs/*.md -# Then explicitly reverse the ignore rule for a single file: -#!docs/README.md diff --git a/samples/openapi3/client/petstore/javascript-es6/.openapi-generator/FILES b/samples/openapi3/client/petstore/javascript-es6/.openapi-generator/FILES deleted file mode 100644 index 6c9983e3cca1..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/.openapi-generator/FILES +++ /dev/null @@ -1,120 +0,0 @@ -.babelrc -.travis.yml -README.md -docs/AdditionalPropertiesClass.md -docs/Animal.md -docs/AnotherFakeApi.md -docs/ApiResponse.md -docs/ArrayOfArrayOfNumberOnly.md -docs/ArrayOfNumberOnly.md -docs/ArrayTest.md -docs/Capitalization.md -docs/Cat.md -docs/CatAllOf.md -docs/Category.md -docs/ClassModel.md -docs/Client.md -docs/DefaultApi.md -docs/Dog.md -docs/DogAllOf.md -docs/EnumArrays.md -docs/EnumClass.md -docs/EnumTest.md -docs/FakeApi.md -docs/FakeClassnameTags123Api.md -docs/File.md -docs/FileSchemaTestClass.md -docs/Foo.md -docs/FormatTest.md -docs/HasOnlyReadOnly.md -docs/HealthCheckResult.md -docs/InlineObject.md -docs/InlineObject1.md -docs/InlineObject2.md -docs/InlineObject3.md -docs/InlineObject4.md -docs/InlineObject5.md -docs/InlineResponseDefault.md -docs/List.md -docs/MapTest.md -docs/MixedPropertiesAndAdditionalPropertiesClass.md -docs/Model200Response.md -docs/ModelReturn.md -docs/Name.md -docs/NullableClass.md -docs/NumberOnly.md -docs/Order.md -docs/OuterComposite.md -docs/OuterEnum.md -docs/OuterEnumDefaultValue.md -docs/OuterEnumInteger.md -docs/OuterEnumIntegerDefaultValue.md -docs/Pet.md -docs/PetApi.md -docs/ReadOnlyFirst.md -docs/SpecialModelName.md -docs/StoreApi.md -docs/Tag.md -docs/User.md -docs/UserApi.md -git_push.sh -mocha.opts -package.json -src/ApiClient.js -src/api/AnotherFakeApi.js -src/api/DefaultApi.js -src/api/FakeApi.js -src/api/FakeClassnameTags123Api.js -src/api/PetApi.js -src/api/StoreApi.js -src/api/UserApi.js -src/index.js -src/model/AdditionalPropertiesClass.js -src/model/Animal.js -src/model/ApiResponse.js -src/model/ArrayOfArrayOfNumberOnly.js -src/model/ArrayOfNumberOnly.js -src/model/ArrayTest.js -src/model/Capitalization.js -src/model/Cat.js -src/model/CatAllOf.js -src/model/Category.js -src/model/ClassModel.js -src/model/Client.js -src/model/Dog.js -src/model/DogAllOf.js -src/model/EnumArrays.js -src/model/EnumClass.js -src/model/EnumTest.js -src/model/File.js -src/model/FileSchemaTestClass.js -src/model/Foo.js -src/model/FormatTest.js -src/model/HasOnlyReadOnly.js -src/model/HealthCheckResult.js -src/model/InlineObject.js -src/model/InlineObject1.js -src/model/InlineObject2.js -src/model/InlineObject3.js -src/model/InlineObject4.js -src/model/InlineObject5.js -src/model/InlineResponseDefault.js -src/model/List.js -src/model/MapTest.js -src/model/MixedPropertiesAndAdditionalPropertiesClass.js -src/model/Model200Response.js -src/model/ModelReturn.js -src/model/Name.js -src/model/NullableClass.js -src/model/NumberOnly.js -src/model/Order.js -src/model/OuterComposite.js -src/model/OuterEnum.js -src/model/OuterEnumDefaultValue.js -src/model/OuterEnumInteger.js -src/model/OuterEnumIntegerDefaultValue.js -src/model/Pet.js -src/model/ReadOnlyFirst.js -src/model/SpecialModelName.js -src/model/Tag.js -src/model/User.js diff --git a/samples/openapi3/client/petstore/javascript-es6/.openapi-generator/VERSION b/samples/openapi3/client/petstore/javascript-es6/.openapi-generator/VERSION deleted file mode 100644 index d99e7162d01f..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -5.0.0-SNAPSHOT \ No newline at end of file diff --git a/samples/openapi3/client/petstore/javascript-es6/.travis.yml b/samples/openapi3/client/petstore/javascript-es6/.travis.yml deleted file mode 100644 index 0968f7a43333..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/.travis.yml +++ /dev/null @@ -1,5 +0,0 @@ -language: node_js -cache: npm -node_js: - - "6" - - "6.1" diff --git a/samples/openapi3/client/petstore/javascript-es6/README.md b/samples/openapi3/client/petstore/javascript-es6/README.md deleted file mode 100644 index 08b186d8e0ce..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/README.md +++ /dev/null @@ -1,265 +0,0 @@ -# open_api_petstore - -OpenApiPetstore - JavaScript client for open_api_petstore -This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ -This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - -- API version: 1.0.0 -- Package version: 1.0.0 -- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen - -## Installation - -### For [Node.js](https://nodejs.org/) - -#### npm - -To publish the library as a [npm](https://www.npmjs.com/), please follow the procedure in ["Publishing npm packages"](https://docs.npmjs.com/getting-started/publishing-npm-packages). - -Then install it via: - -```shell -npm install open_api_petstore --save -``` - -Finally, you need to build the module: - -```shell -npm run build -``` - -##### Local development - -To use the library locally without publishing to a remote npm registry, first install the dependencies by changing into the directory containing `package.json` (and this README). Let's call this `JAVASCRIPT_CLIENT_DIR`. Then run: - -```shell -npm install -``` - -Next, [link](https://docs.npmjs.com/cli/link) it globally in npm with the following, also from `JAVASCRIPT_CLIENT_DIR`: - -```shell -npm link -``` - -To use the link you just defined in your project, switch to the directory you want to use your open_api_petstore from, and run: - -```shell -npm link /path/to/ -``` - -Finally, you need to build the module: - -```shell -npm run build -``` - -#### git - -If the library is hosted at a git repository, e.g.https://github.com/GIT_USER_ID/GIT_REPO_ID -then install it via: - -```shell - npm install GIT_USER_ID/GIT_REPO_ID --save -``` - -### For browser - -The library also works in the browser environment via npm and [browserify](http://browserify.org/). After following -the above steps with Node.js and installing browserify with `npm install -g browserify`, -perform the following (assuming *main.js* is your entry file): - -```shell -browserify main.js > bundle.js -``` - -Then include *bundle.js* in the HTML pages. - -### Webpack Configuration - -Using Webpack you may encounter the following error: "Module not found: Error: -Cannot resolve module", most certainly you should disable AMD loader. Add/merge -the following section to your webpack config: - -```javascript -module: { - rules: [ - { - parser: { - amd: false - } - } - ] -} -``` - -## Getting Started - -Please follow the [installation](#installation) instruction and execute the following JS code: - -```javascript -var OpenApiPetstore = require('open_api_petstore'); - - -var api = new OpenApiPetstore.AnotherFakeApi() -var client = new OpenApiPetstore.Client(); // {Client} client model -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -api.call123testSpecialTags(client, callback); - -``` - -## Documentation for API Endpoints - -All URIs are relative to *http://petstore.swagger.io:80/v2* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*OpenApiPetstore.AnotherFakeApi* | [**call123testSpecialTags**](docs/AnotherFakeApi.md#call123testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags -*OpenApiPetstore.DefaultApi* | [**fooGet**](docs/DefaultApi.md#fooGet) | **GET** /foo | -*OpenApiPetstore.FakeApi* | [**fakeHealthGet**](docs/FakeApi.md#fakeHealthGet) | **GET** /fake/health | Health check endpoint -*OpenApiPetstore.FakeApi* | [**fakeHttpSignatureTest**](docs/FakeApi.md#fakeHttpSignatureTest) | **GET** /fake/http-signature-test | test http signature authentication -*OpenApiPetstore.FakeApi* | [**fakeOuterBooleanSerialize**](docs/FakeApi.md#fakeOuterBooleanSerialize) | **POST** /fake/outer/boolean | -*OpenApiPetstore.FakeApi* | [**fakeOuterCompositeSerialize**](docs/FakeApi.md#fakeOuterCompositeSerialize) | **POST** /fake/outer/composite | -*OpenApiPetstore.FakeApi* | [**fakeOuterNumberSerialize**](docs/FakeApi.md#fakeOuterNumberSerialize) | **POST** /fake/outer/number | -*OpenApiPetstore.FakeApi* | [**fakeOuterStringSerialize**](docs/FakeApi.md#fakeOuterStringSerialize) | **POST** /fake/outer/string | -*OpenApiPetstore.FakeApi* | [**testBodyWithFileSchema**](docs/FakeApi.md#testBodyWithFileSchema) | **PUT** /fake/body-with-file-schema | -*OpenApiPetstore.FakeApi* | [**testBodyWithQueryParams**](docs/FakeApi.md#testBodyWithQueryParams) | **PUT** /fake/body-with-query-params | -*OpenApiPetstore.FakeApi* | [**testClientModel**](docs/FakeApi.md#testClientModel) | **PATCH** /fake | To test \"client\" model -*OpenApiPetstore.FakeApi* | [**testEndpointParameters**](docs/FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 -*OpenApiPetstore.FakeApi* | [**testEnumParameters**](docs/FakeApi.md#testEnumParameters) | **GET** /fake | To test enum parameters -*OpenApiPetstore.FakeApi* | [**testGroupParameters**](docs/FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) -*OpenApiPetstore.FakeApi* | [**testInlineAdditionalProperties**](docs/FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties -*OpenApiPetstore.FakeApi* | [**testJsonFormData**](docs/FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data -*OpenApiPetstore.FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | -*OpenApiPetstore.FakeClassnameTags123Api* | [**testClassname**](docs/FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case -*OpenApiPetstore.PetApi* | [**addPet**](docs/PetApi.md#addPet) | **POST** /pet | Add a new pet to the store -*OpenApiPetstore.PetApi* | [**deletePet**](docs/PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet -*OpenApiPetstore.PetApi* | [**findPetsByStatus**](docs/PetApi.md#findPetsByStatus) | **GET** /pet/findByStatus | Finds Pets by status -*OpenApiPetstore.PetApi* | [**findPetsByTags**](docs/PetApi.md#findPetsByTags) | **GET** /pet/findByTags | Finds Pets by tags -*OpenApiPetstore.PetApi* | [**getPetById**](docs/PetApi.md#getPetById) | **GET** /pet/{petId} | Find pet by ID -*OpenApiPetstore.PetApi* | [**updatePet**](docs/PetApi.md#updatePet) | **PUT** /pet | Update an existing pet -*OpenApiPetstore.PetApi* | [**updatePetWithForm**](docs/PetApi.md#updatePetWithForm) | **POST** /pet/{petId} | Updates a pet in the store with form data -*OpenApiPetstore.PetApi* | [**uploadFile**](docs/PetApi.md#uploadFile) | **POST** /pet/{petId}/uploadImage | uploads an image -*OpenApiPetstore.PetApi* | [**uploadFileWithRequiredFile**](docs/PetApi.md#uploadFileWithRequiredFile) | **POST** /fake/{petId}/uploadImageWithRequiredFile | uploads an image (required) -*OpenApiPetstore.StoreApi* | [**deleteOrder**](docs/StoreApi.md#deleteOrder) | **DELETE** /store/order/{order_id} | Delete purchase order by ID -*OpenApiPetstore.StoreApi* | [**getInventory**](docs/StoreApi.md#getInventory) | **GET** /store/inventory | Returns pet inventories by status -*OpenApiPetstore.StoreApi* | [**getOrderById**](docs/StoreApi.md#getOrderById) | **GET** /store/order/{order_id} | Find purchase order by ID -*OpenApiPetstore.StoreApi* | [**placeOrder**](docs/StoreApi.md#placeOrder) | **POST** /store/order | Place an order for a pet -*OpenApiPetstore.UserApi* | [**createUser**](docs/UserApi.md#createUser) | **POST** /user | Create user -*OpenApiPetstore.UserApi* | [**createUsersWithArrayInput**](docs/UserApi.md#createUsersWithArrayInput) | **POST** /user/createWithArray | Creates list of users with given input array -*OpenApiPetstore.UserApi* | [**createUsersWithListInput**](docs/UserApi.md#createUsersWithListInput) | **POST** /user/createWithList | Creates list of users with given input array -*OpenApiPetstore.UserApi* | [**deleteUser**](docs/UserApi.md#deleteUser) | **DELETE** /user/{username} | Delete user -*OpenApiPetstore.UserApi* | [**getUserByName**](docs/UserApi.md#getUserByName) | **GET** /user/{username} | Get user by user name -*OpenApiPetstore.UserApi* | [**loginUser**](docs/UserApi.md#loginUser) | **GET** /user/login | Logs user into the system -*OpenApiPetstore.UserApi* | [**logoutUser**](docs/UserApi.md#logoutUser) | **GET** /user/logout | Logs out current logged in user session -*OpenApiPetstore.UserApi* | [**updateUser**](docs/UserApi.md#updateUser) | **PUT** /user/{username} | Updated user - - -## Documentation for Models - - - [OpenApiPetstore.AdditionalPropertiesClass](docs/AdditionalPropertiesClass.md) - - [OpenApiPetstore.Animal](docs/Animal.md) - - [OpenApiPetstore.ApiResponse](docs/ApiResponse.md) - - [OpenApiPetstore.ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md) - - [OpenApiPetstore.ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md) - - [OpenApiPetstore.ArrayTest](docs/ArrayTest.md) - - [OpenApiPetstore.Capitalization](docs/Capitalization.md) - - [OpenApiPetstore.Cat](docs/Cat.md) - - [OpenApiPetstore.CatAllOf](docs/CatAllOf.md) - - [OpenApiPetstore.Category](docs/Category.md) - - [OpenApiPetstore.ClassModel](docs/ClassModel.md) - - [OpenApiPetstore.Client](docs/Client.md) - - [OpenApiPetstore.Dog](docs/Dog.md) - - [OpenApiPetstore.DogAllOf](docs/DogAllOf.md) - - [OpenApiPetstore.EnumArrays](docs/EnumArrays.md) - - [OpenApiPetstore.EnumClass](docs/EnumClass.md) - - [OpenApiPetstore.EnumTest](docs/EnumTest.md) - - [OpenApiPetstore.File](docs/File.md) - - [OpenApiPetstore.FileSchemaTestClass](docs/FileSchemaTestClass.md) - - [OpenApiPetstore.Foo](docs/Foo.md) - - [OpenApiPetstore.FormatTest](docs/FormatTest.md) - - [OpenApiPetstore.HasOnlyReadOnly](docs/HasOnlyReadOnly.md) - - [OpenApiPetstore.HealthCheckResult](docs/HealthCheckResult.md) - - [OpenApiPetstore.InlineObject](docs/InlineObject.md) - - [OpenApiPetstore.InlineObject1](docs/InlineObject1.md) - - [OpenApiPetstore.InlineObject2](docs/InlineObject2.md) - - [OpenApiPetstore.InlineObject3](docs/InlineObject3.md) - - [OpenApiPetstore.InlineObject4](docs/InlineObject4.md) - - [OpenApiPetstore.InlineObject5](docs/InlineObject5.md) - - [OpenApiPetstore.InlineResponseDefault](docs/InlineResponseDefault.md) - - [OpenApiPetstore.List](docs/List.md) - - [OpenApiPetstore.MapTest](docs/MapTest.md) - - [OpenApiPetstore.MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md) - - [OpenApiPetstore.Model200Response](docs/Model200Response.md) - - [OpenApiPetstore.ModelReturn](docs/ModelReturn.md) - - [OpenApiPetstore.Name](docs/Name.md) - - [OpenApiPetstore.NullableClass](docs/NullableClass.md) - - [OpenApiPetstore.NumberOnly](docs/NumberOnly.md) - - [OpenApiPetstore.Order](docs/Order.md) - - [OpenApiPetstore.OuterComposite](docs/OuterComposite.md) - - [OpenApiPetstore.OuterEnum](docs/OuterEnum.md) - - [OpenApiPetstore.OuterEnumDefaultValue](docs/OuterEnumDefaultValue.md) - - [OpenApiPetstore.OuterEnumInteger](docs/OuterEnumInteger.md) - - [OpenApiPetstore.OuterEnumIntegerDefaultValue](docs/OuterEnumIntegerDefaultValue.md) - - [OpenApiPetstore.Pet](docs/Pet.md) - - [OpenApiPetstore.ReadOnlyFirst](docs/ReadOnlyFirst.md) - - [OpenApiPetstore.SpecialModelName](docs/SpecialModelName.md) - - [OpenApiPetstore.Tag](docs/Tag.md) - - [OpenApiPetstore.User](docs/User.md) - - -## Documentation for Authorization - - - -### api_key - - -- **Type**: API key -- **API key parameter name**: api_key -- **Location**: HTTP header - - - -### api_key_query - - -- **Type**: API key -- **API key parameter name**: api_key_query -- **Location**: URL query string - - - -### bearer_test - -- **Type**: Bearer authentication (JWT) - - - -### http_basic_test - -- **Type**: HTTP basic authentication - - - -### http_signature_test - - - - -### petstore_auth - - -- **Type**: OAuth -- **Flow**: implicit -- **Authorization URL**: http://petstore.swagger.io/api/oauth/dialog -- **Scopes**: - - write:pets: modify pets in your account - - read:pets: read your pets - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/AdditionalPropertiesClass.md b/samples/openapi3/client/petstore/javascript-es6/docs/AdditionalPropertiesClass.md deleted file mode 100644 index c85e85acd9e3..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/AdditionalPropertiesClass.md +++ /dev/null @@ -1,10 +0,0 @@ -# OpenApiPetstore.AdditionalPropertiesClass - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**mapProperty** | **{String: String}** | | [optional] -**mapOfMapProperty** | **{String: {String: String}}** | | [optional] - - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/Animal.md b/samples/openapi3/client/petstore/javascript-es6/docs/Animal.md deleted file mode 100644 index 483c89a1ab30..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/Animal.md +++ /dev/null @@ -1,10 +0,0 @@ -# OpenApiPetstore.Animal - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**className** | **String** | | -**color** | **String** | | [optional] [default to 'red'] - - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/AnotherFakeApi.md b/samples/openapi3/client/petstore/javascript-es6/docs/AnotherFakeApi.md deleted file mode 100644 index ba01bd3e2a20..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/AnotherFakeApi.md +++ /dev/null @@ -1,54 +0,0 @@ -# OpenApiPetstore.AnotherFakeApi - -All URIs are relative to *http://petstore.swagger.io:80/v2* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**call123testSpecialTags**](AnotherFakeApi.md#call123testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags - - - -## call123testSpecialTags - -> Client call123testSpecialTags(client) - -To test special tags - -To test special tags and operation ID starting with number - -### Example - -```javascript -import OpenApiPetstore from 'open_api_petstore'; - -let apiInstance = new OpenApiPetstore.AnotherFakeApi(); -let client = new OpenApiPetstore.Client(); // Client | client model -apiInstance.call123testSpecialTags(client, (error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}); -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | - -### Return type - -[**Client**](Client.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/ApiResponse.md b/samples/openapi3/client/petstore/javascript-es6/docs/ApiResponse.md deleted file mode 100644 index 0dc945d60766..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/ApiResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# OpenApiPetstore.ApiResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **Number** | | [optional] -**type** | **String** | | [optional] -**message** | **String** | | [optional] - - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/ArrayOfArrayOfNumberOnly.md b/samples/openapi3/client/petstore/javascript-es6/docs/ArrayOfArrayOfNumberOnly.md deleted file mode 100644 index c321c0985f3a..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/ArrayOfArrayOfNumberOnly.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.ArrayOfArrayOfNumberOnly - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**arrayArrayNumber** | **[[Number]]** | | [optional] - - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/ArrayOfNumberOnly.md b/samples/openapi3/client/petstore/javascript-es6/docs/ArrayOfNumberOnly.md deleted file mode 100644 index b83e136d978f..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/ArrayOfNumberOnly.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.ArrayOfNumberOnly - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**arrayNumber** | **[Number]** | | [optional] - - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/ArrayTest.md b/samples/openapi3/client/petstore/javascript-es6/docs/ArrayTest.md deleted file mode 100644 index 711b53a520f5..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/ArrayTest.md +++ /dev/null @@ -1,11 +0,0 @@ -# OpenApiPetstore.ArrayTest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**arrayOfString** | **[String]** | | [optional] -**arrayArrayOfInteger** | **[[Number]]** | | [optional] -**arrayArrayOfModel** | **[[ReadOnlyFirst]]** | | [optional] - - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/Capitalization.md b/samples/openapi3/client/petstore/javascript-es6/docs/Capitalization.md deleted file mode 100644 index 3bbc5d491fc1..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/Capitalization.md +++ /dev/null @@ -1,14 +0,0 @@ -# OpenApiPetstore.Capitalization - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**smallCamel** | **String** | | [optional] -**capitalCamel** | **String** | | [optional] -**smallSnake** | **String** | | [optional] -**capitalSnake** | **String** | | [optional] -**sCAETHFlowPoints** | **String** | | [optional] -**ATT_NAME** | **String** | Name of the pet | [optional] - - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/Cat.md b/samples/openapi3/client/petstore/javascript-es6/docs/Cat.md deleted file mode 100644 index 652bca4ed073..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/Cat.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.Cat - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**declawed** | **Boolean** | | [optional] - - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/CatAllOf.md b/samples/openapi3/client/petstore/javascript-es6/docs/CatAllOf.md deleted file mode 100644 index 3b8274c01202..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/CatAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.CatAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**declawed** | **Boolean** | | [optional] - - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/Category.md b/samples/openapi3/client/petstore/javascript-es6/docs/Category.md deleted file mode 100644 index 2de44aa03ddc..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/Category.md +++ /dev/null @@ -1,10 +0,0 @@ -# OpenApiPetstore.Category - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | | [optional] -**name** | **String** | | [default to 'default-name'] - - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/ClassModel.md b/samples/openapi3/client/petstore/javascript-es6/docs/ClassModel.md deleted file mode 100644 index dd90930dade3..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/ClassModel.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.ClassModel - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**_class** | **String** | | [optional] - - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/Client.md b/samples/openapi3/client/petstore/javascript-es6/docs/Client.md deleted file mode 100644 index 1164b7043191..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/Client.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.Client - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**client** | **String** | | [optional] - - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/DefaultApi.md b/samples/openapi3/client/petstore/javascript-es6/docs/DefaultApi.md deleted file mode 100644 index cf507abc2ffb..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/DefaultApi.md +++ /dev/null @@ -1,48 +0,0 @@ -# OpenApiPetstore.DefaultApi - -All URIs are relative to *http://petstore.swagger.io:80/v2* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**fooGet**](DefaultApi.md#fooGet) | **GET** /foo | - - - -## fooGet - -> InlineResponseDefault fooGet() - - - -### Example - -```javascript -import OpenApiPetstore from 'open_api_petstore'; - -let apiInstance = new OpenApiPetstore.DefaultApi(); -apiInstance.fooGet((error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}); -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**InlineResponseDefault**](InlineResponseDefault.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/Dog.md b/samples/openapi3/client/petstore/javascript-es6/docs/Dog.md deleted file mode 100644 index fd3b9f7c77ce..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/Dog.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.Dog - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**breed** | **String** | | [optional] - - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/DogAllOf.md b/samples/openapi3/client/petstore/javascript-es6/docs/DogAllOf.md deleted file mode 100644 index 8a6402940735..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/DogAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.DogAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**breed** | **String** | | [optional] - - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/EnumArrays.md b/samples/openapi3/client/petstore/javascript-es6/docs/EnumArrays.md deleted file mode 100644 index 4926385b3ff8..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/EnumArrays.md +++ /dev/null @@ -1,32 +0,0 @@ -# OpenApiPetstore.EnumArrays - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**justSymbol** | **String** | | [optional] -**arrayEnum** | **[String]** | | [optional] - - - -## Enum: JustSymbolEnum - - -* `GREATER_THAN_OR_EQUAL_TO` (value: `">="`) - -* `DOLLAR` (value: `"$"`) - - - - - -## Enum: [ArrayEnumEnum] - - -* `fish` (value: `"fish"`) - -* `crab` (value: `"crab"`) - - - - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/EnumClass.md b/samples/openapi3/client/petstore/javascript-es6/docs/EnumClass.md deleted file mode 100644 index cef9bb57a56c..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/EnumClass.md +++ /dev/null @@ -1,12 +0,0 @@ -# OpenApiPetstore.EnumClass - -## Enum - - -* `_abc` (value: `"_abc"`) - -* `-efg` (value: `"-efg"`) - -* `(xyz)` (value: `"(xyz)"`) - - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/EnumTest.md b/samples/openapi3/client/petstore/javascript-es6/docs/EnumTest.md deleted file mode 100644 index b56c3c4cef63..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/EnumTest.md +++ /dev/null @@ -1,64 +0,0 @@ -# OpenApiPetstore.EnumTest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**enumString** | **String** | | [optional] -**enumStringRequired** | **String** | | -**enumInteger** | **Number** | | [optional] -**enumNumber** | **Number** | | [optional] -**outerEnum** | [**OuterEnum**](OuterEnum.md) | | [optional] -**outerEnumInteger** | [**OuterEnumInteger**](OuterEnumInteger.md) | | [optional] -**outerEnumDefaultValue** | [**OuterEnumDefaultValue**](OuterEnumDefaultValue.md) | | [optional] -**outerEnumIntegerDefaultValue** | [**OuterEnumIntegerDefaultValue**](OuterEnumIntegerDefaultValue.md) | | [optional] - - - -## Enum: EnumStringEnum - - -* `UPPER` (value: `"UPPER"`) - -* `lower` (value: `"lower"`) - -* `empty` (value: `""`) - - - - - -## Enum: EnumStringRequiredEnum - - -* `UPPER` (value: `"UPPER"`) - -* `lower` (value: `"lower"`) - -* `empty` (value: `""`) - - - - - -## Enum: EnumIntegerEnum - - -* `1` (value: `1`) - -* `-1` (value: `-1`) - - - - - -## Enum: EnumNumberEnum - - -* `1.1` (value: `1.1`) - -* `-1.2` (value: `-1.2`) - - - - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/FakeApi.md b/samples/openapi3/client/petstore/javascript-es6/docs/FakeApi.md deleted file mode 100644 index 23f6e3456ba6..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/FakeApi.md +++ /dev/null @@ -1,776 +0,0 @@ -# OpenApiPetstore.FakeApi - -All URIs are relative to *http://petstore.swagger.io:80/v2* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**fakeHealthGet**](FakeApi.md#fakeHealthGet) | **GET** /fake/health | Health check endpoint -[**fakeHttpSignatureTest**](FakeApi.md#fakeHttpSignatureTest) | **GET** /fake/http-signature-test | test http signature authentication -[**fakeOuterBooleanSerialize**](FakeApi.md#fakeOuterBooleanSerialize) | **POST** /fake/outer/boolean | -[**fakeOuterCompositeSerialize**](FakeApi.md#fakeOuterCompositeSerialize) | **POST** /fake/outer/composite | -[**fakeOuterNumberSerialize**](FakeApi.md#fakeOuterNumberSerialize) | **POST** /fake/outer/number | -[**fakeOuterStringSerialize**](FakeApi.md#fakeOuterStringSerialize) | **POST** /fake/outer/string | -[**testBodyWithFileSchema**](FakeApi.md#testBodyWithFileSchema) | **PUT** /fake/body-with-file-schema | -[**testBodyWithQueryParams**](FakeApi.md#testBodyWithQueryParams) | **PUT** /fake/body-with-query-params | -[**testClientModel**](FakeApi.md#testClientModel) | **PATCH** /fake | To test \"client\" model -[**testEndpointParameters**](FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 -[**testEnumParameters**](FakeApi.md#testEnumParameters) | **GET** /fake | To test enum parameters -[**testGroupParameters**](FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) -[**testInlineAdditionalProperties**](FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties -[**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data -[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | - - - -## fakeHealthGet - -> HealthCheckResult fakeHealthGet() - -Health check endpoint - -### Example - -```javascript -import OpenApiPetstore from 'open_api_petstore'; - -let apiInstance = new OpenApiPetstore.FakeApi(); -apiInstance.fakeHealthGet((error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}); -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**HealthCheckResult**](HealthCheckResult.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## fakeHttpSignatureTest - -> fakeHttpSignatureTest(pet, opts) - -test http signature authentication - -### Example - -```javascript -import OpenApiPetstore from 'open_api_petstore'; -let defaultClient = OpenApiPetstore.ApiClient.instance; - -let apiInstance = new OpenApiPetstore.FakeApi(); -let pet = new OpenApiPetstore.Pet(); // Pet | Pet object that needs to be added to the store -let opts = { - 'query1': "query1_example", // String | query parameter - 'header1': "header1_example" // String | header parameter -}; -apiInstance.fakeHttpSignatureTest(pet, opts, (error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully.'); - } -}); -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | - **query1** | **String**| query parameter | [optional] - **header1** | **String**| header parameter | [optional] - -### Return type - -null (empty response body) - -### Authorization - -[http_signature_test](../README.md#http_signature_test) - -### HTTP request headers - -- **Content-Type**: application/json, application/xml -- **Accept**: Not defined - - -## fakeOuterBooleanSerialize - -> Boolean fakeOuterBooleanSerialize(opts) - - - -Test serialization of outer boolean types - -### Example - -```javascript -import OpenApiPetstore from 'open_api_petstore'; - -let apiInstance = new OpenApiPetstore.FakeApi(); -let opts = { - 'body': true // Boolean | Input boolean as post body -}; -apiInstance.fakeOuterBooleanSerialize(opts, (error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}); -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **Boolean**| Input boolean as post body | [optional] - -### Return type - -**Boolean** - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: */* - - -## fakeOuterCompositeSerialize - -> OuterComposite fakeOuterCompositeSerialize(opts) - - - -Test serialization of object with outer number type - -### Example - -```javascript -import OpenApiPetstore from 'open_api_petstore'; - -let apiInstance = new OpenApiPetstore.FakeApi(); -let opts = { - 'outerComposite': new OpenApiPetstore.OuterComposite() // OuterComposite | Input composite as post body -}; -apiInstance.fakeOuterCompositeSerialize(opts, (error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}); -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **outerComposite** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional] - -### Return type - -[**OuterComposite**](OuterComposite.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: */* - - -## fakeOuterNumberSerialize - -> Number fakeOuterNumberSerialize(opts) - - - -Test serialization of outer number types - -### Example - -```javascript -import OpenApiPetstore from 'open_api_petstore'; - -let apiInstance = new OpenApiPetstore.FakeApi(); -let opts = { - 'body': 3.4 // Number | Input number as post body -}; -apiInstance.fakeOuterNumberSerialize(opts, (error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}); -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **Number**| Input number as post body | [optional] - -### Return type - -**Number** - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: */* - - -## fakeOuterStringSerialize - -> String fakeOuterStringSerialize(opts) - - - -Test serialization of outer string types - -### Example - -```javascript -import OpenApiPetstore from 'open_api_petstore'; - -let apiInstance = new OpenApiPetstore.FakeApi(); -let opts = { - 'body': "body_example" // String | Input string as post body -}; -apiInstance.fakeOuterStringSerialize(opts, (error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}); -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **String**| Input string as post body | [optional] - -### Return type - -**String** - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: */* - - -## testBodyWithFileSchema - -> testBodyWithFileSchema(fileSchemaTestClass) - - - -For this test, the body for this request much reference a schema named `File`. - -### Example - -```javascript -import OpenApiPetstore from 'open_api_petstore'; - -let apiInstance = new OpenApiPetstore.FakeApi(); -let fileSchemaTestClass = new OpenApiPetstore.FileSchemaTestClass(); // FileSchemaTestClass | -apiInstance.testBodyWithFileSchema(fileSchemaTestClass, (error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully.'); - } -}); -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: Not defined - - -## testBodyWithQueryParams - -> testBodyWithQueryParams(query, user) - - - -### Example - -```javascript -import OpenApiPetstore from 'open_api_petstore'; - -let apiInstance = new OpenApiPetstore.FakeApi(); -let query = "query_example"; // String | -let user = new OpenApiPetstore.User(); // User | -apiInstance.testBodyWithQueryParams(query, user, (error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully.'); - } -}); -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **query** | **String**| | - **user** | [**User**](User.md)| | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: Not defined - - -## testClientModel - -> Client testClientModel(client) - -To test \"client\" model - -To test \"client\" model - -### Example - -```javascript -import OpenApiPetstore from 'open_api_petstore'; - -let apiInstance = new OpenApiPetstore.FakeApi(); -let client = new OpenApiPetstore.Client(); // Client | client model -apiInstance.testClientModel(client, (error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}); -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | - -### Return type - -[**Client**](Client.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## testEndpointParameters - -> testEndpointParameters(_number, _double, patternWithoutDelimiter, _byte, opts) - -Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - -Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - -### Example - -```javascript -import OpenApiPetstore from 'open_api_petstore'; -let defaultClient = OpenApiPetstore.ApiClient.instance; -// Configure HTTP basic authorization: http_basic_test -let http_basic_test = defaultClient.authentications['http_basic_test']; -http_basic_test.username = 'YOUR USERNAME'; -http_basic_test.password = 'YOUR PASSWORD'; - -let apiInstance = new OpenApiPetstore.FakeApi(); -let _number = 3.4; // Number | None -let _double = 3.4; // Number | None -let patternWithoutDelimiter = "patternWithoutDelimiter_example"; // String | None -let _byte = null; // Blob | None -let opts = { - 'integer': 56, // Number | None - 'int32': 56, // Number | None - 'int64': 789, // Number | None - '_float': 3.4, // Number | None - '_string': "_string_example", // String | None - 'binary': "/path/to/file", // File | None - '_date': new Date("2013-10-20"), // Date | None - 'dateTime': new Date("2013-10-20T19:20:30+01:00"), // Date | None - 'password': "password_example", // String | None - 'callback': "callback_example" // String | None -}; -apiInstance.testEndpointParameters(_number, _double, patternWithoutDelimiter, _byte, opts, (error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully.'); - } -}); -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **_number** | **Number**| None | - **_double** | **Number**| None | - **patternWithoutDelimiter** | **String**| None | - **_byte** | **Blob**| None | - **integer** | **Number**| None | [optional] - **int32** | **Number**| None | [optional] - **int64** | **Number**| None | [optional] - **_float** | **Number**| None | [optional] - **_string** | **String**| None | [optional] - **binary** | **File**| None | [optional] - **_date** | **Date**| None | [optional] - **dateTime** | **Date**| None | [optional] - **password** | **String**| None | [optional] - **callback** | **String**| None | [optional] - -### Return type - -null (empty response body) - -### Authorization - -[http_basic_test](../README.md#http_basic_test) - -### HTTP request headers - -- **Content-Type**: application/x-www-form-urlencoded -- **Accept**: Not defined - - -## testEnumParameters - -> testEnumParameters(opts) - -To test enum parameters - -To test enum parameters - -### Example - -```javascript -import OpenApiPetstore from 'open_api_petstore'; - -let apiInstance = new OpenApiPetstore.FakeApi(); -let opts = { - 'enumHeaderStringArray': ["'$'"], // [String] | Header parameter enum test (string array) - 'enumHeaderString': "'-efg'", // String | Header parameter enum test (string) - 'enumQueryStringArray': ["'$'"], // [String] | Query parameter enum test (string array) - 'enumQueryString': "'-efg'", // String | Query parameter enum test (string) - 'enumQueryInteger': 56, // Number | Query parameter enum test (double) - 'enumQueryDouble': 3.4, // Number | Query parameter enum test (double) - 'enumFormStringArray': "'$'", // [String] | Form parameter enum test (string array) - 'enumFormString': "'-efg'" // String | Form parameter enum test (string) -}; -apiInstance.testEnumParameters(opts, (error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully.'); - } -}); -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **enumHeaderStringArray** | [**[String]**](String.md)| Header parameter enum test (string array) | [optional] - **enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to '-efg'] - **enumQueryStringArray** | [**[String]**](String.md)| Query parameter enum test (string array) | [optional] - **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to '-efg'] - **enumQueryInteger** | **Number**| Query parameter enum test (double) | [optional] - **enumQueryDouble** | **Number**| Query parameter enum test (double) | [optional] - **enumFormStringArray** | [**[String]**](String.md)| Form parameter enum test (string array) | [optional] [default to '$'] - **enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to '-efg'] - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/x-www-form-urlencoded -- **Accept**: Not defined - - -## testGroupParameters - -> testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, opts) - -Fake endpoint to test group parameters (optional) - -Fake endpoint to test group parameters (optional) - -### Example - -```javascript -import OpenApiPetstore from 'open_api_petstore'; -let defaultClient = OpenApiPetstore.ApiClient.instance; -// Configure Bearer (JWT) access token for authorization: bearer_test -let bearer_test = defaultClient.authentications['bearer_test']; -bearer_test.accessToken = "YOUR ACCESS TOKEN" - -let apiInstance = new OpenApiPetstore.FakeApi(); -let requiredStringGroup = 56; // Number | Required String in group parameters -let requiredBooleanGroup = true; // Boolean | Required Boolean in group parameters -let requiredInt64Group = 789; // Number | Required Integer in group parameters -let opts = { - 'stringGroup': 56, // Number | String in group parameters - 'booleanGroup': true, // Boolean | Boolean in group parameters - 'int64Group': 789 // Number | Integer in group parameters -}; -apiInstance.testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, opts, (error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully.'); - } -}); -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **requiredStringGroup** | **Number**| Required String in group parameters | - **requiredBooleanGroup** | **Boolean**| Required Boolean in group parameters | - **requiredInt64Group** | **Number**| Required Integer in group parameters | - **stringGroup** | **Number**| String in group parameters | [optional] - **booleanGroup** | **Boolean**| Boolean in group parameters | [optional] - **int64Group** | **Number**| Integer in group parameters | [optional] - -### Return type - -null (empty response body) - -### Authorization - -[bearer_test](../README.md#bearer_test) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - - -## testInlineAdditionalProperties - -> testInlineAdditionalProperties(requestBody) - -test inline additionalProperties - -### Example - -```javascript -import OpenApiPetstore from 'open_api_petstore'; - -let apiInstance = new OpenApiPetstore.FakeApi(); -let requestBody = {key: "null"}; // {String: String} | request body -apiInstance.testInlineAdditionalProperties(requestBody, (error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully.'); - } -}); -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **requestBody** | [**{String: String}**](String.md)| request body | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: Not defined - - -## testJsonFormData - -> testJsonFormData(param, param2) - -test json serialization of form data - -### Example - -```javascript -import OpenApiPetstore from 'open_api_petstore'; - -let apiInstance = new OpenApiPetstore.FakeApi(); -let param = "param_example"; // String | field1 -let param2 = "param2_example"; // String | field2 -apiInstance.testJsonFormData(param, param2, (error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully.'); - } -}); -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **param** | **String**| field1 | - **param2** | **String**| field2 | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/x-www-form-urlencoded -- **Accept**: Not defined - - -## testQueryParameterCollectionFormat - -> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context) - - - -To test the collection format in query parameters - -### Example - -```javascript -import OpenApiPetstore from 'open_api_petstore'; - -let apiInstance = new OpenApiPetstore.FakeApi(); -let pipe = ["null"]; // [String] | -let ioutil = ["null"]; // [String] | -let http = ["null"]; // [String] | -let url = ["null"]; // [String] | -let context = ["null"]; // [String] | -apiInstance.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, (error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully.'); - } -}); -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pipe** | [**[String]**](String.md)| | - **ioutil** | [**[String]**](String.md)| | - **http** | [**[String]**](String.md)| | - **url** | [**[String]**](String.md)| | - **context** | [**[String]**](String.md)| | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/FakeClassnameTags123Api.md b/samples/openapi3/client/petstore/javascript-es6/docs/FakeClassnameTags123Api.md deleted file mode 100644 index 142a911a3c94..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/FakeClassnameTags123Api.md +++ /dev/null @@ -1,60 +0,0 @@ -# OpenApiPetstore.FakeClassnameTags123Api - -All URIs are relative to *http://petstore.swagger.io:80/v2* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**testClassname**](FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case - - - -## testClassname - -> Client testClassname(client) - -To test class name in snake case - -To test class name in snake case - -### Example - -```javascript -import OpenApiPetstore from 'open_api_petstore'; -let defaultClient = OpenApiPetstore.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 OpenApiPetstore.FakeClassnameTags123Api(); -let client = new OpenApiPetstore.Client(); // Client | client model -apiInstance.testClassname(client, (error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}); -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **client** | [**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/openapi3/client/petstore/javascript-es6/docs/File.md b/samples/openapi3/client/petstore/javascript-es6/docs/File.md deleted file mode 100644 index 51162c3e0da3..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/File.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.File - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**sourceURI** | **String** | Test capitalization | [optional] - - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/FileSchemaTestClass.md b/samples/openapi3/client/petstore/javascript-es6/docs/FileSchemaTestClass.md deleted file mode 100644 index 6f28c4976f10..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/FileSchemaTestClass.md +++ /dev/null @@ -1,10 +0,0 @@ -# OpenApiPetstore.FileSchemaTestClass - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**file** | **File** | | [optional] -**files** | **[File]** | | [optional] - - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/Foo.md b/samples/openapi3/client/petstore/javascript-es6/docs/Foo.md deleted file mode 100644 index 1e0c9a294c48..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/Foo.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.Foo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**bar** | **String** | | [optional] [default to 'bar'] - - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/FormatTest.md b/samples/openapi3/client/petstore/javascript-es6/docs/FormatTest.md deleted file mode 100644 index 83d751d4cdde..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/FormatTest.md +++ /dev/null @@ -1,23 +0,0 @@ -# OpenApiPetstore.FormatTest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**integer** | **Number** | | [optional] -**int32** | **Number** | | [optional] -**int64** | **Number** | | [optional] -**_number** | **Number** | | -**_float** | **Number** | | [optional] -**_double** | **Number** | | [optional] -**_string** | **String** | | [optional] -**_byte** | **Blob** | | -**binary** | **File** | | [optional] -**_date** | **Date** | | -**dateTime** | **Date** | | [optional] -**uuid** | **String** | | [optional] -**password** | **String** | | -**patternWithDigits** | **String** | A string that is a 10 digit number. Can have leading zeros. | [optional] -**patternWithDigitsAndDelimiter** | **String** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional] - - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/HasOnlyReadOnly.md b/samples/openapi3/client/petstore/javascript-es6/docs/HasOnlyReadOnly.md deleted file mode 100644 index bfe08a1baee2..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/HasOnlyReadOnly.md +++ /dev/null @@ -1,10 +0,0 @@ -# OpenApiPetstore.HasOnlyReadOnly - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**bar** | **String** | | [optional] [readonly] -**foo** | **String** | | [optional] [readonly] - - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/HealthCheckResult.md b/samples/openapi3/client/petstore/javascript-es6/docs/HealthCheckResult.md deleted file mode 100644 index bbb74ac6a0ae..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/HealthCheckResult.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.HealthCheckResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**nullableMessage** | **String** | | [optional] - - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/InlineObject.md b/samples/openapi3/client/petstore/javascript-es6/docs/InlineObject.md deleted file mode 100644 index 529c032d7a99..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/InlineObject.md +++ /dev/null @@ -1,10 +0,0 @@ -# OpenApiPetstore.InlineObject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | Updated name of the pet | [optional] -**status** | **String** | Updated status of the pet | [optional] - - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/InlineObject1.md b/samples/openapi3/client/petstore/javascript-es6/docs/InlineObject1.md deleted file mode 100644 index bd2fcd57a209..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/InlineObject1.md +++ /dev/null @@ -1,10 +0,0 @@ -# OpenApiPetstore.InlineObject1 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**additionalMetadata** | **String** | Additional data to pass to server | [optional] -**file** | **File** | file to upload | [optional] - - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/InlineObject2.md b/samples/openapi3/client/petstore/javascript-es6/docs/InlineObject2.md deleted file mode 100644 index 7d703a9086a3..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/InlineObject2.md +++ /dev/null @@ -1,34 +0,0 @@ -# OpenApiPetstore.InlineObject2 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**enumFormStringArray** | **[String]** | Form parameter enum test (string array) | [optional] -**enumFormString** | **String** | Form parameter enum test (string) | [optional] [default to '-efg'] - - - -## Enum: [EnumFormStringArrayEnum] - - -* `GREATER_THAN` (value: `">"`) - -* `DOLLAR` (value: `"$"`) - - - - - -## Enum: EnumFormStringEnum - - -* `_abc` (value: `"_abc"`) - -* `-efg` (value: `"-efg"`) - -* `(xyz)` (value: `"(xyz)"`) - - - - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/InlineObject3.md b/samples/openapi3/client/petstore/javascript-es6/docs/InlineObject3.md deleted file mode 100644 index ec8980b728e7..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/InlineObject3.md +++ /dev/null @@ -1,22 +0,0 @@ -# OpenApiPetstore.InlineObject3 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**integer** | **Number** | None | [optional] -**int32** | **Number** | None | [optional] -**int64** | **Number** | None | [optional] -**_number** | **Number** | None | -**_float** | **Number** | None | [optional] -**_double** | **Number** | None | -**_string** | **String** | None | [optional] -**patternWithoutDelimiter** | **String** | None | -**_byte** | **Blob** | None | -**binary** | **File** | None | [optional] -**_date** | **Date** | None | [optional] -**dateTime** | **Date** | None | [optional] -**password** | **String** | None | [optional] -**callback** | **String** | None | [optional] - - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/InlineObject4.md b/samples/openapi3/client/petstore/javascript-es6/docs/InlineObject4.md deleted file mode 100644 index 07ce4b0cac21..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/InlineObject4.md +++ /dev/null @@ -1,10 +0,0 @@ -# OpenApiPetstore.InlineObject4 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**param** | **String** | field1 | -**param2** | **String** | field2 | - - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/InlineObject5.md b/samples/openapi3/client/petstore/javascript-es6/docs/InlineObject5.md deleted file mode 100644 index 16547e7f52bc..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/InlineObject5.md +++ /dev/null @@ -1,10 +0,0 @@ -# OpenApiPetstore.InlineObject5 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**additionalMetadata** | **String** | Additional data to pass to server | [optional] -**requiredFile** | **File** | file to upload | - - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/InlineResponseDefault.md b/samples/openapi3/client/petstore/javascript-es6/docs/InlineResponseDefault.md deleted file mode 100644 index 19cae09524bd..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/InlineResponseDefault.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.InlineResponseDefault - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**_string** | [**Foo**](Foo.md) | | [optional] - - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/List.md b/samples/openapi3/client/petstore/javascript-es6/docs/List.md deleted file mode 100644 index aaaa082e6a5b..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/List.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.List - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**_123list** | **String** | | [optional] - - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/MapTest.md b/samples/openapi3/client/petstore/javascript-es6/docs/MapTest.md deleted file mode 100644 index 9399adf75329..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/MapTest.md +++ /dev/null @@ -1,23 +0,0 @@ -# OpenApiPetstore.MapTest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**mapMapOfString** | **{String: {String: String}}** | | [optional] -**mapOfEnumString** | **{String: String}** | | [optional] -**directMap** | **{String: Boolean}** | | [optional] -**indirectMap** | **{String: Boolean}** | | [optional] - - - -## Enum: {String: String} - - -* `UPPER` (value: `"UPPER"`) - -* `lower` (value: `"lower"`) - - - - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/openapi3/client/petstore/javascript-es6/docs/MixedPropertiesAndAdditionalPropertiesClass.md deleted file mode 100644 index 776d4b3ae052..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/MixedPropertiesAndAdditionalPropertiesClass.md +++ /dev/null @@ -1,11 +0,0 @@ -# OpenApiPetstore.MixedPropertiesAndAdditionalPropertiesClass - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**uuid** | **String** | | [optional] -**dateTime** | **Date** | | [optional] -**map** | [**{String: Animal}**](Animal.md) | | [optional] - - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/Model200Response.md b/samples/openapi3/client/petstore/javascript-es6/docs/Model200Response.md deleted file mode 100644 index 45f7932a1be7..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/Model200Response.md +++ /dev/null @@ -1,10 +0,0 @@ -# OpenApiPetstore.Model200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **Number** | | [optional] -**_class** | **String** | | [optional] - - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/ModelReturn.md b/samples/openapi3/client/petstore/javascript-es6/docs/ModelReturn.md deleted file mode 100644 index c93601692f60..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/ModelReturn.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.ModelReturn - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**_return** | **Number** | | [optional] - - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/Name.md b/samples/openapi3/client/petstore/javascript-es6/docs/Name.md deleted file mode 100644 index d9f2fbeb68ba..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/Name.md +++ /dev/null @@ -1,12 +0,0 @@ -# OpenApiPetstore.Name - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **Number** | | -**snakeCase** | **Number** | | [optional] [readonly] -**property** | **String** | | [optional] -**_123number** | **Number** | | [optional] [readonly] - - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/NullableClass.md b/samples/openapi3/client/petstore/javascript-es6/docs/NullableClass.md deleted file mode 100644 index 3460980270dd..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/NullableClass.md +++ /dev/null @@ -1,20 +0,0 @@ -# OpenApiPetstore.NullableClass - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**integerProp** | **Number** | | [optional] -**numberProp** | **Number** | | [optional] -**booleanProp** | **Boolean** | | [optional] -**stringProp** | **String** | | [optional] -**dateProp** | **Date** | | [optional] -**datetimeProp** | **Date** | | [optional] -**arrayNullableProp** | **[Object]** | | [optional] -**arrayAndItemsNullableProp** | **[Object]** | | [optional] -**arrayItemsNullable** | **[Object]** | | [optional] -**objectNullableProp** | **{String: Object}** | | [optional] -**objectAndItemsNullableProp** | **{String: Object}** | | [optional] -**objectItemsNullable** | **{String: Object}** | | [optional] - - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/NumberOnly.md b/samples/openapi3/client/petstore/javascript-es6/docs/NumberOnly.md deleted file mode 100644 index 65243600759d..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/NumberOnly.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.NumberOnly - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**justNumber** | **Number** | | [optional] - - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/Order.md b/samples/openapi3/client/petstore/javascript-es6/docs/Order.md deleted file mode 100644 index 3f63473a2394..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/Order.md +++ /dev/null @@ -1,27 +0,0 @@ -# OpenApiPetstore.Order - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | | [optional] -**petId** | **Number** | | [optional] -**quantity** | **Number** | | [optional] -**shipDate** | **Date** | | [optional] -**status** | **String** | Order Status | [optional] -**complete** | **Boolean** | | [optional] [default to false] - - - -## Enum: StatusEnum - - -* `placed` (value: `"placed"`) - -* `approved` (value: `"approved"`) - -* `delivered` (value: `"delivered"`) - - - - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/OuterComposite.md b/samples/openapi3/client/petstore/javascript-es6/docs/OuterComposite.md deleted file mode 100644 index aea253a0dfe0..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/OuterComposite.md +++ /dev/null @@ -1,11 +0,0 @@ -# OpenApiPetstore.OuterComposite - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**myNumber** | **Number** | | [optional] -**myString** | **String** | | [optional] -**myBoolean** | **Boolean** | | [optional] - - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/OuterEnum.md b/samples/openapi3/client/petstore/javascript-es6/docs/OuterEnum.md deleted file mode 100644 index 445d3f4074c8..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/OuterEnum.md +++ /dev/null @@ -1,12 +0,0 @@ -# OpenApiPetstore.OuterEnum - -## Enum - - -* `placed` (value: `"placed"`) - -* `approved` (value: `"approved"`) - -* `delivered` (value: `"delivered"`) - - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/OuterEnumDefaultValue.md b/samples/openapi3/client/petstore/javascript-es6/docs/OuterEnumDefaultValue.md deleted file mode 100644 index 6da697f63689..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/OuterEnumDefaultValue.md +++ /dev/null @@ -1,12 +0,0 @@ -# OpenApiPetstore.OuterEnumDefaultValue - -## Enum - - -* `placed` (value: `"placed"`) - -* `approved` (value: `"approved"`) - -* `delivered` (value: `"delivered"`) - - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/OuterEnumInteger.md b/samples/openapi3/client/petstore/javascript-es6/docs/OuterEnumInteger.md deleted file mode 100644 index 224989a0e6c7..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/OuterEnumInteger.md +++ /dev/null @@ -1,12 +0,0 @@ -# OpenApiPetstore.OuterEnumInteger - -## Enum - - -* `0` (value: `0`) - -* `1` (value: `1`) - -* `2` (value: `2`) - - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/OuterEnumIntegerDefaultValue.md b/samples/openapi3/client/petstore/javascript-es6/docs/OuterEnumIntegerDefaultValue.md deleted file mode 100644 index fffd3f8f315a..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/OuterEnumIntegerDefaultValue.md +++ /dev/null @@ -1,12 +0,0 @@ -# OpenApiPetstore.OuterEnumIntegerDefaultValue - -## Enum - - -* `0` (value: `0`) - -* `1` (value: `1`) - -* `2` (value: `2`) - - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/Pet.md b/samples/openapi3/client/petstore/javascript-es6/docs/Pet.md deleted file mode 100644 index 68bb1eb7a048..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/Pet.md +++ /dev/null @@ -1,27 +0,0 @@ -# OpenApiPetstore.Pet - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | | [optional] -**category** | [**Category**](Category.md) | | [optional] -**name** | **String** | | -**photoUrls** | **[String]** | | -**tags** | [**[Tag]**](Tag.md) | | [optional] -**status** | **String** | pet status in the store | [optional] - - - -## Enum: StatusEnum - - -* `available` (value: `"available"`) - -* `pending` (value: `"pending"`) - -* `sold` (value: `"sold"`) - - - - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/PetApi.md b/samples/openapi3/client/petstore/javascript-es6/docs/PetApi.md deleted file mode 100644 index 44734fbe72d3..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/PetApi.md +++ /dev/null @@ -1,470 +0,0 @@ -# OpenApiPetstore.PetApi - -All URIs are relative to *http://petstore.swagger.io:80/v2* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**addPet**](PetApi.md#addPet) | **POST** /pet | Add a new pet to the store -[**deletePet**](PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet -[**findPetsByStatus**](PetApi.md#findPetsByStatus) | **GET** /pet/findByStatus | Finds Pets by status -[**findPetsByTags**](PetApi.md#findPetsByTags) | **GET** /pet/findByTags | Finds Pets by tags -[**getPetById**](PetApi.md#getPetById) | **GET** /pet/{petId} | Find pet by ID -[**updatePet**](PetApi.md#updatePet) | **PUT** /pet | Update an existing pet -[**updatePetWithForm**](PetApi.md#updatePetWithForm) | **POST** /pet/{petId} | Updates a pet in the store with form data -[**uploadFile**](PetApi.md#uploadFile) | **POST** /pet/{petId}/uploadImage | uploads an image -[**uploadFileWithRequiredFile**](PetApi.md#uploadFileWithRequiredFile) | **POST** /fake/{petId}/uploadImageWithRequiredFile | uploads an image (required) - - - -## addPet - -> addPet(pet) - -Add a new pet to the store - -### Example - -```javascript -import OpenApiPetstore from 'open_api_petstore'; -let defaultClient = OpenApiPetstore.ApiClient.instance; -// Configure OAuth2 access token for authorization: petstore_auth -let petstore_auth = defaultClient.authentications['petstore_auth']; -petstore_auth.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new OpenApiPetstore.PetApi(); -let pet = new OpenApiPetstore.Pet(); // Pet | Pet object that needs to be added to the store -apiInstance.addPet(pet, (error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully.'); - } -}); -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | - -### Return type - -null (empty response body) - -### Authorization - -[petstore_auth](../README.md#petstore_auth) - -### HTTP request headers - -- **Content-Type**: application/json, application/xml -- **Accept**: Not defined - - -## deletePet - -> deletePet(petId, opts) - -Deletes a pet - -### Example - -```javascript -import OpenApiPetstore from 'open_api_petstore'; -let defaultClient = OpenApiPetstore.ApiClient.instance; -// Configure OAuth2 access token for authorization: petstore_auth -let petstore_auth = defaultClient.authentications['petstore_auth']; -petstore_auth.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new OpenApiPetstore.PetApi(); -let petId = 789; // Number | Pet id to delete -let opts = { - 'apiKey': "apiKey_example" // String | -}; -apiInstance.deletePet(petId, opts, (error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully.'); - } -}); -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **petId** | **Number**| Pet id to delete | - **apiKey** | **String**| | [optional] - -### Return type - -null (empty response body) - -### Authorization - -[petstore_auth](../README.md#petstore_auth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - - -## findPetsByStatus - -> [Pet] findPetsByStatus(status) - -Finds Pets by status - -Multiple status values can be provided with comma separated strings - -### Example - -```javascript -import OpenApiPetstore from 'open_api_petstore'; -let defaultClient = OpenApiPetstore.ApiClient.instance; -// Configure OAuth2 access token for authorization: petstore_auth -let petstore_auth = defaultClient.authentications['petstore_auth']; -petstore_auth.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new OpenApiPetstore.PetApi(); -let status = ["'available'"]; // [String] | Status values that need to be considered for filter -apiInstance.findPetsByStatus(status, (error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}); -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **status** | [**[String]**](String.md)| Status values that need to be considered for filter | - -### Return type - -[**[Pet]**](Pet.md) - -### Authorization - -[petstore_auth](../README.md#petstore_auth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/xml, application/json - - -## findPetsByTags - -> [Pet] findPetsByTags(tags) - -Finds Pets by tags - -Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. - -### Example - -```javascript -import OpenApiPetstore from 'open_api_petstore'; -let defaultClient = OpenApiPetstore.ApiClient.instance; -// Configure OAuth2 access token for authorization: petstore_auth -let petstore_auth = defaultClient.authentications['petstore_auth']; -petstore_auth.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new OpenApiPetstore.PetApi(); -let tags = ["null"]; // [String] | Tags to filter by -apiInstance.findPetsByTags(tags, (error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}); -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **tags** | [**[String]**](String.md)| Tags to filter by | - -### Return type - -[**[Pet]**](Pet.md) - -### Authorization - -[petstore_auth](../README.md#petstore_auth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/xml, application/json - - -## getPetById - -> Pet getPetById(petId) - -Find pet by ID - -Returns a single pet - -### Example - -```javascript -import OpenApiPetstore from 'open_api_petstore'; -let defaultClient = OpenApiPetstore.ApiClient.instance; -// Configure API key authorization: api_key -let api_key = defaultClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; - -let apiInstance = new OpenApiPetstore.PetApi(); -let petId = 789; // Number | ID of pet to return -apiInstance.getPetById(petId, (error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}); -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **petId** | **Number**| ID of pet to return | - -### Return type - -[**Pet**](Pet.md) - -### Authorization - -[api_key](../README.md#api_key) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/xml, application/json - - -## updatePet - -> updatePet(pet) - -Update an existing pet - -### Example - -```javascript -import OpenApiPetstore from 'open_api_petstore'; -let defaultClient = OpenApiPetstore.ApiClient.instance; -// Configure OAuth2 access token for authorization: petstore_auth -let petstore_auth = defaultClient.authentications['petstore_auth']; -petstore_auth.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new OpenApiPetstore.PetApi(); -let pet = new OpenApiPetstore.Pet(); // Pet | Pet object that needs to be added to the store -apiInstance.updatePet(pet, (error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully.'); - } -}); -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | - -### Return type - -null (empty response body) - -### Authorization - -[petstore_auth](../README.md#petstore_auth) - -### HTTP request headers - -- **Content-Type**: application/json, application/xml -- **Accept**: Not defined - - -## updatePetWithForm - -> updatePetWithForm(petId, opts) - -Updates a pet in the store with form data - -### Example - -```javascript -import OpenApiPetstore from 'open_api_petstore'; -let defaultClient = OpenApiPetstore.ApiClient.instance; -// Configure OAuth2 access token for authorization: petstore_auth -let petstore_auth = defaultClient.authentications['petstore_auth']; -petstore_auth.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new OpenApiPetstore.PetApi(); -let petId = 789; // Number | ID of pet that needs to be updated -let opts = { - 'name': "name_example", // String | Updated name of the pet - 'status': "status_example" // String | Updated status of the pet -}; -apiInstance.updatePetWithForm(petId, opts, (error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully.'); - } -}); -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **petId** | **Number**| ID of pet that needs to be updated | - **name** | **String**| Updated name of the pet | [optional] - **status** | **String**| Updated status of the pet | [optional] - -### Return type - -null (empty response body) - -### Authorization - -[petstore_auth](../README.md#petstore_auth) - -### HTTP request headers - -- **Content-Type**: application/x-www-form-urlencoded -- **Accept**: Not defined - - -## uploadFile - -> ApiResponse uploadFile(petId, opts) - -uploads an image - -### Example - -```javascript -import OpenApiPetstore from 'open_api_petstore'; -let defaultClient = OpenApiPetstore.ApiClient.instance; -// Configure OAuth2 access token for authorization: petstore_auth -let petstore_auth = defaultClient.authentications['petstore_auth']; -petstore_auth.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new OpenApiPetstore.PetApi(); -let petId = 789; // Number | ID of pet to update -let opts = { - 'additionalMetadata': "additionalMetadata_example", // String | Additional data to pass to server - 'file': "/path/to/file" // File | file to upload -}; -apiInstance.uploadFile(petId, opts, (error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}); -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **petId** | **Number**| ID of pet to update | - **additionalMetadata** | **String**| Additional data to pass to server | [optional] - **file** | **File**| file to upload | [optional] - -### Return type - -[**ApiResponse**](ApiResponse.md) - -### Authorization - -[petstore_auth](../README.md#petstore_auth) - -### HTTP request headers - -- **Content-Type**: multipart/form-data -- **Accept**: application/json - - -## uploadFileWithRequiredFile - -> ApiResponse uploadFileWithRequiredFile(petId, requiredFile, opts) - -uploads an image (required) - -### Example - -```javascript -import OpenApiPetstore from 'open_api_petstore'; -let defaultClient = OpenApiPetstore.ApiClient.instance; -// Configure OAuth2 access token for authorization: petstore_auth -let petstore_auth = defaultClient.authentications['petstore_auth']; -petstore_auth.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new OpenApiPetstore.PetApi(); -let petId = 789; // Number | ID of pet to update -let requiredFile = "/path/to/file"; // File | file to upload -let opts = { - 'additionalMetadata': "additionalMetadata_example" // String | Additional data to pass to server -}; -apiInstance.uploadFileWithRequiredFile(petId, requiredFile, opts, (error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}); -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **petId** | **Number**| ID of pet to update | - **requiredFile** | **File**| file to upload | - **additionalMetadata** | **String**| Additional data to pass to server | [optional] - -### Return type - -[**ApiResponse**](ApiResponse.md) - -### Authorization - -[petstore_auth](../README.md#petstore_auth) - -### HTTP request headers - -- **Content-Type**: multipart/form-data -- **Accept**: application/json - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/ReadOnlyFirst.md b/samples/openapi3/client/petstore/javascript-es6/docs/ReadOnlyFirst.md deleted file mode 100644 index eee7a321d406..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/ReadOnlyFirst.md +++ /dev/null @@ -1,10 +0,0 @@ -# OpenApiPetstore.ReadOnlyFirst - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**bar** | **String** | | [optional] [readonly] -**baz** | **String** | | [optional] - - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/SpecialModelName.md b/samples/openapi3/client/petstore/javascript-es6/docs/SpecialModelName.md deleted file mode 100644 index f33678460bf3..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/SpecialModelName.md +++ /dev/null @@ -1,9 +0,0 @@ -# OpenApiPetstore.SpecialModelName - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**specialPropertyName** | **Number** | | [optional] - - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/StoreApi.md b/samples/openapi3/client/petstore/javascript-es6/docs/StoreApi.md deleted file mode 100644 index 0f29ae4629fa..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/StoreApi.md +++ /dev/null @@ -1,192 +0,0 @@ -# OpenApiPetstore.StoreApi - -All URIs are relative to *http://petstore.swagger.io:80/v2* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**deleteOrder**](StoreApi.md#deleteOrder) | **DELETE** /store/order/{order_id} | Delete purchase order by ID -[**getInventory**](StoreApi.md#getInventory) | **GET** /store/inventory | Returns pet inventories by status -[**getOrderById**](StoreApi.md#getOrderById) | **GET** /store/order/{order_id} | Find purchase order by ID -[**placeOrder**](StoreApi.md#placeOrder) | **POST** /store/order | Place an order for a pet - - - -## deleteOrder - -> deleteOrder(orderId) - -Delete purchase order by ID - -For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors - -### Example - -```javascript -import OpenApiPetstore from 'open_api_petstore'; - -let apiInstance = new OpenApiPetstore.StoreApi(); -let orderId = "orderId_example"; // String | ID of the order that needs to be deleted -apiInstance.deleteOrder(orderId, (error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully.'); - } -}); -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **orderId** | **String**| ID of the order that needs to be deleted | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - - -## getInventory - -> {String: Number} getInventory() - -Returns pet inventories by status - -Returns a map of status codes to quantities - -### Example - -```javascript -import OpenApiPetstore from 'open_api_petstore'; -let defaultClient = OpenApiPetstore.ApiClient.instance; -// Configure API key authorization: api_key -let api_key = defaultClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; - -let apiInstance = new OpenApiPetstore.StoreApi(); -apiInstance.getInventory((error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}); -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -**{String: Number}** - -### Authorization - -[api_key](../README.md#api_key) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getOrderById - -> Order getOrderById(orderId) - -Find purchase order by ID - -For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions - -### Example - -```javascript -import OpenApiPetstore from 'open_api_petstore'; - -let apiInstance = new OpenApiPetstore.StoreApi(); -let orderId = 789; // Number | ID of pet that needs to be fetched -apiInstance.getOrderById(orderId, (error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}); -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **orderId** | **Number**| ID of pet that needs to be fetched | - -### Return type - -[**Order**](Order.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/xml, application/json - - -## placeOrder - -> Order placeOrder(order) - -Place an order for a pet - -### Example - -```javascript -import OpenApiPetstore from 'open_api_petstore'; - -let apiInstance = new OpenApiPetstore.StoreApi(); -let order = new OpenApiPetstore.Order(); // Order | order placed for purchasing the pet -apiInstance.placeOrder(order, (error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}); -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **order** | [**Order**](Order.md)| order placed for purchasing the pet | - -### Return type - -[**Order**](Order.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/xml, application/json - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/Tag.md b/samples/openapi3/client/petstore/javascript-es6/docs/Tag.md deleted file mode 100644 index ce6fec0ab93f..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/Tag.md +++ /dev/null @@ -1,10 +0,0 @@ -# OpenApiPetstore.Tag - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | | [optional] -**name** | **String** | | [optional] - - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/User.md b/samples/openapi3/client/petstore/javascript-es6/docs/User.md deleted file mode 100644 index 096f606d0b92..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/User.md +++ /dev/null @@ -1,16 +0,0 @@ -# OpenApiPetstore.User - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | | [optional] -**username** | **String** | | [optional] -**firstName** | **String** | | [optional] -**lastName** | **String** | | [optional] -**email** | **String** | | [optional] -**password** | **String** | | [optional] -**phone** | **String** | | [optional] -**userStatus** | **Number** | User Status | [optional] - - diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/UserApi.md b/samples/openapi3/client/petstore/javascript-es6/docs/UserApi.md deleted file mode 100644 index c45620854176..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/docs/UserApi.md +++ /dev/null @@ -1,366 +0,0 @@ -# OpenApiPetstore.UserApi - -All URIs are relative to *http://petstore.swagger.io:80/v2* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createUser**](UserApi.md#createUser) | **POST** /user | Create user -[**createUsersWithArrayInput**](UserApi.md#createUsersWithArrayInput) | **POST** /user/createWithArray | Creates list of users with given input array -[**createUsersWithListInput**](UserApi.md#createUsersWithListInput) | **POST** /user/createWithList | Creates list of users with given input array -[**deleteUser**](UserApi.md#deleteUser) | **DELETE** /user/{username} | Delete user -[**getUserByName**](UserApi.md#getUserByName) | **GET** /user/{username} | Get user by user name -[**loginUser**](UserApi.md#loginUser) | **GET** /user/login | Logs user into the system -[**logoutUser**](UserApi.md#logoutUser) | **GET** /user/logout | Logs out current logged in user session -[**updateUser**](UserApi.md#updateUser) | **PUT** /user/{username} | Updated user - - - -## createUser - -> createUser(user) - -Create user - -This can only be done by the logged in user. - -### Example - -```javascript -import OpenApiPetstore from 'open_api_petstore'; - -let apiInstance = new OpenApiPetstore.UserApi(); -let user = new OpenApiPetstore.User(); // User | Created user object -apiInstance.createUser(user, (error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully.'); - } -}); -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **user** | [**User**](User.md)| Created user object | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: Not defined - - -## createUsersWithArrayInput - -> createUsersWithArrayInput(user) - -Creates list of users with given input array - -### Example - -```javascript -import OpenApiPetstore from 'open_api_petstore'; - -let apiInstance = new OpenApiPetstore.UserApi(); -let user = [new OpenApiPetstore.User()]; // [User] | List of user object -apiInstance.createUsersWithArrayInput(user, (error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully.'); - } -}); -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **user** | [**[User]**](User.md)| List of user object | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: Not defined - - -## createUsersWithListInput - -> createUsersWithListInput(user) - -Creates list of users with given input array - -### Example - -```javascript -import OpenApiPetstore from 'open_api_petstore'; - -let apiInstance = new OpenApiPetstore.UserApi(); -let user = [new OpenApiPetstore.User()]; // [User] | List of user object -apiInstance.createUsersWithListInput(user, (error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully.'); - } -}); -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **user** | [**[User]**](User.md)| List of user object | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: Not defined - - -## deleteUser - -> deleteUser(username) - -Delete user - -This can only be done by the logged in user. - -### Example - -```javascript -import OpenApiPetstore from 'open_api_petstore'; - -let apiInstance = new OpenApiPetstore.UserApi(); -let username = "username_example"; // String | The name that needs to be deleted -apiInstance.deleteUser(username, (error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully.'); - } -}); -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **username** | **String**| The name that needs to be deleted | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - - -## getUserByName - -> User getUserByName(username) - -Get user by user name - -### Example - -```javascript -import OpenApiPetstore from 'open_api_petstore'; - -let apiInstance = new OpenApiPetstore.UserApi(); -let username = "username_example"; // String | The name that needs to be fetched. Use user1 for testing. -apiInstance.getUserByName(username, (error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}); -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **username** | **String**| The name that needs to be fetched. Use user1 for testing. | - -### Return type - -[**User**](User.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/xml, application/json - - -## loginUser - -> String loginUser(username, password) - -Logs user into the system - -### Example - -```javascript -import OpenApiPetstore from 'open_api_petstore'; - -let apiInstance = new OpenApiPetstore.UserApi(); -let username = "username_example"; // String | The user name for login -let password = "password_example"; // String | The password for login in clear text -apiInstance.loginUser(username, password, (error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}); -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **username** | **String**| The user name for login | - **password** | **String**| The password for login in clear text | - -### Return type - -**String** - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/xml, application/json - - -## logoutUser - -> logoutUser() - -Logs out current logged in user session - -### Example - -```javascript -import OpenApiPetstore from 'open_api_petstore'; - -let apiInstance = new OpenApiPetstore.UserApi(); -apiInstance.logoutUser((error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully.'); - } -}); -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - - -## updateUser - -> updateUser(username, user) - -Updated user - -This can only be done by the logged in user. - -### Example - -```javascript -import OpenApiPetstore from 'open_api_petstore'; - -let apiInstance = new OpenApiPetstore.UserApi(); -let username = "username_example"; // String | name that need to be deleted -let user = new OpenApiPetstore.User(); // User | Updated user object -apiInstance.updateUser(username, user, (error, data, response) => { - if (error) { - console.error(error); - } else { - console.log('API called successfully.'); - } -}); -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **username** | **String**| name that need to be deleted | - **user** | [**User**](User.md)| Updated user object | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: Not defined - diff --git a/samples/openapi3/client/petstore/javascript-es6/git_push.sh b/samples/openapi3/client/petstore/javascript-es6/git_push.sh deleted file mode 100644 index ced3be2b0c7b..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/git_push.sh +++ /dev/null @@ -1,58 +0,0 @@ -#!/bin/sh -# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ -# -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" - -git_user_id=$1 -git_repo_id=$2 -release_note=$3 -git_host=$4 - -if [ "$git_host" = "" ]; then - git_host="github.com" - echo "[INFO] No command line input provided. Set \$git_host to $git_host" -fi - -if [ "$git_user_id" = "" ]; then - git_user_id="GIT_USER_ID" - echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" -fi - -if [ "$git_repo_id" = "" ]; then - git_repo_id="GIT_REPO_ID" - echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" -fi - -if [ "$release_note" = "" ]; then - release_note="Minor update" - echo "[INFO] No command line input provided. Set \$release_note to $release_note" -fi - -# Initialize the local directory as a Git repository -git init - -# Adds the files in the local repository and stages them for commit. -git add . - -# Commits the tracked changes and prepares them to be pushed to a remote repository. -git commit -m "$release_note" - -# Sets the new remote -git_remote=`git remote` -if [ "$git_remote" = "" ]; then # git remote not defined - - if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." - git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git - else - git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git - fi - -fi - -git pull origin master - -# Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" -git push origin master 2>&1 | grep -v 'To https' - diff --git a/samples/openapi3/client/petstore/javascript-es6/mocha.opts b/samples/openapi3/client/petstore/javascript-es6/mocha.opts deleted file mode 100644 index 907011807d68..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/mocha.opts +++ /dev/null @@ -1 +0,0 @@ ---timeout 10000 diff --git a/samples/openapi3/client/petstore/javascript-es6/package.json b/samples/openapi3/client/petstore/javascript-es6/package.json deleted file mode 100644 index 0032c37d4775..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/package.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "name": "open_api_petstore", - "version": "1.0.0", - "description": "This_spec_is_mainly_for_testing_Petstore_server_and_contains_fake_endpoints_models__Please_do_not_use_this_for_any_other_purpose__Special_characters___", - "license": "Apache-2.0", - "main": "dist/index.js", - "scripts": { - "build": "babel src -d dist", - "prepack": "npm run build", - "test": "mocha --require @babel/register --recursive" - }, - "browser": { - "fs": false - }, - "dependencies": { - "@babel/cli": "^7.0.0", - "superagent": "3.7.0" - }, - "devDependencies": { - "@babel/core": "^7.0.0", - "@babel/plugin-proposal-class-properties": "^7.0.0", - "@babel/plugin-proposal-decorators": "^7.0.0", - "@babel/plugin-proposal-do-expressions": "^7.0.0", - "@babel/plugin-proposal-export-default-from": "^7.0.0", - "@babel/plugin-proposal-export-namespace-from": "^7.0.0", - "@babel/plugin-proposal-function-bind": "^7.0.0", - "@babel/plugin-proposal-function-sent": "^7.0.0", - "@babel/plugin-proposal-json-strings": "^7.0.0", - "@babel/plugin-proposal-logical-assignment-operators": "^7.0.0", - "@babel/plugin-proposal-nullish-coalescing-operator": "^7.0.0", - "@babel/plugin-proposal-numeric-separator": "^7.0.0", - "@babel/plugin-proposal-optional-chaining": "^7.0.0", - "@babel/plugin-proposal-pipeline-operator": "^7.0.0", - "@babel/plugin-proposal-throw-expressions": "^7.0.0", - "@babel/plugin-syntax-dynamic-import": "^7.0.0", - "@babel/plugin-syntax-import-meta": "^7.0.0", - "@babel/preset-env": "^7.0.0", - "@babel/register": "^7.0.0", - "expect.js": "^0.3.1", - "mocha": "^5.2.0", - "sinon": "^7.2.0" - }, - "files": [ - "dist" - ] -} diff --git a/samples/openapi3/client/petstore/javascript-es6/src/ApiClient.js b/samples/openapi3/client/petstore/javascript-es6/src/ApiClient.js deleted file mode 100644 index 91fef65f79b8..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/ApiClient.js +++ /dev/null @@ -1,690 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import superagent from "superagent"; -import querystring from "querystring"; - -/** -* @module ApiClient -* @version 1.0.0 -*/ - -/** -* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an -* application to use this class directly - the *Api and model classes provide the public API for the service. The -* contents of this file should be regarded as internal but are documented for completeness. -* @alias module:ApiClient -* @class -*/ -class ApiClient { - constructor() { - /** - * The base URL against which to resolve every API call's (relative) path. - * @type {String} - * @default http://petstore.swagger.io:80/v2 - */ - this.basePath = 'http://petstore.swagger.io:80/v2'.replace(/\/+$/, ''); - - /** - * The authentication methods to be included for all API calls. - * @type {Array.} - */ - this.authentications = { - 'api_key': {type: 'apiKey', 'in': 'header', name: 'api_key'}, - 'api_key_query': {type: 'apiKey', 'in': 'query', name: 'api_key_query'}, - 'bearer_test': {type: 'bearer'}, // JWT - 'http_basic_test': {type: 'basic'}, - 'petstore_auth': {type: 'oauth2'} - } - - /** - * The default HTTP headers to be included for all API calls. - * @type {Array.} - * @default {} - */ - this.defaultHeaders = {}; - - /** - * The default HTTP timeout for all API calls. - * @type {Number} - * @default 60000 - */ - this.timeout = 60000; - - /** - * If set to false an additional timestamp parameter is added to all API GET calls to - * prevent browser caching - * @type {Boolean} - * @default true - */ - this.cache = true; - - /** - * If set to true, the client will save the cookies from each server - * response, and return them in the next request. - * @default false - */ - this.enableCookies = false; - - /* - * Used to save and return cookies in a node.js (non-browser) setting, - * if this.enableCookies is set to true. - */ - if (typeof window === 'undefined') { - this.agent = new superagent.agent(); - } - - /* - * Allow user to override superagent agent - */ - this.requestAgent = null; - - /* - * Allow user to add superagent plugins - */ - this.plugins = null; - - } - - /** - * Returns a string representation for an actual parameter. - * @param param The actual parameter. - * @returns {String} The string representation of param. - */ - paramToString(param) { - if (param == undefined || param == null) { - return ''; - } - if (param instanceof Date) { - return param.toJSON(); - } - - return param.toString(); - } - - /** - * Builds full URL by appending the given path to the base URL and replacing path parameter place-holders with parameter values. - * NOTE: query parameters are not handled here. - * @param {String} path The path to append to the base URL. - * @param {Object} pathParams The parameter values to append. - * @param {String} apiBasePath Base path defined in the path, operation level to override the default one - * @returns {String} The encoded path with parameter values substituted. - */ - buildUrl(path, pathParams, apiBasePath) { - if (!path.match(/^\//)) { - path = '/' + path; - } - - var url = this.basePath + path; - - // use API (operation, path) base path if defined - if (apiBasePath !== null && apiBasePath !== undefined) { - url = apiBasePath + path; - } - - url = url.replace(/\{([\w-]+)\}/g, (fullMatch, key) => { - var value; - if (pathParams.hasOwnProperty(key)) { - value = this.paramToString(pathParams[key]); - } else { - value = fullMatch; - } - - return encodeURIComponent(value); - }); - - return url; - } - - /** - * Checks whether the given content type represents JSON.
- * JSON content type examples:
- *
    - *
  • application/json
  • - *
  • application/json; charset=UTF8
  • - *
  • APPLICATION/JSON
  • - *
- * @param {String} contentType The MIME content type to check. - * @returns {Boolean} true if contentType represents JSON, otherwise false. - */ - isJsonMime(contentType) { - return Boolean(contentType != null && contentType.match(/^application\/json(;.*)?$/i)); - } - - /** - * Chooses a content type from the given array, with JSON preferred; i.e. return JSON if included, otherwise return the first. - * @param {Array.} contentTypes - * @returns {String} The chosen content type, preferring JSON. - */ - jsonPreferredMime(contentTypes) { - for (var i = 0; i < contentTypes.length; i++) { - if (this.isJsonMime(contentTypes[i])) { - return contentTypes[i]; - } - } - - return contentTypes[0]; - } - - /** - * Checks whether the given parameter value represents file-like content. - * @param param The parameter to check. - * @returns {Boolean} true if param represents a file. - */ - isFileParam(param) { - // fs.ReadStream in Node.js and Electron (but not in runtime like browserify) - if (typeof require === 'function') { - let fs; - try { - fs = require('fs'); - } catch (err) {} - if (fs && fs.ReadStream && param instanceof fs.ReadStream) { - return true; - } - } - - // Buffer in Node.js - if (typeof Buffer === 'function' && param instanceof Buffer) { - return true; - } - - // Blob in browser - if (typeof Blob === 'function' && param instanceof Blob) { - return true; - } - - // File in browser (it seems File object is also instance of Blob, but keep this for safe) - if (typeof File === 'function' && param instanceof File) { - return true; - } - - return false; - } - - /** - * Normalizes parameter values: - *
    - *
  • remove nils
  • - *
  • keep files and arrays
  • - *
  • format to string with `paramToString` for other cases
  • - *
- * @param {Object.} params The parameters as object properties. - * @returns {Object.} normalized parameters. - */ - normalizeParams(params) { - var newParams = {}; - for (var key in params) { - if (params.hasOwnProperty(key) && params[key] != undefined && params[key] != null) { - var value = params[key]; - if (this.isFileParam(value) || Array.isArray(value)) { - newParams[key] = value; - } else { - newParams[key] = this.paramToString(value); - } - } - } - - return newParams; - } - - /** - * Builds a string representation of an array-type actual parameter, according to the given collection format. - * @param {Array} param An array parameter. - * @param {module:ApiClient.CollectionFormatEnum} collectionFormat The array element separator strategy. - * @returns {String|Array} A string representation of the supplied collection, using the specified delimiter. Returns - * param as is if collectionFormat is multi. - */ - buildCollectionParam(param, collectionFormat) { - if (param == null) { - return null; - } - switch (collectionFormat) { - case 'csv': - return param.map(this.paramToString).join(','); - case 'ssv': - return param.map(this.paramToString).join(' '); - case 'tsv': - return param.map(this.paramToString).join('\t'); - case 'pipes': - return param.map(this.paramToString).join('|'); - case 'multi': - //return the array directly as SuperAgent will handle it as expected - return param.map(this.paramToString); - default: - throw new Error('Unknown collection format: ' + collectionFormat); - } - } - - /** - * Applies authentication headers to the request. - * @param {Object} request The request object created by a superagent() call. - * @param {Array.} authNames An array of authentication method names. - */ - applyAuthToRequest(request, authNames) { - authNames.forEach((authName) => { - var auth = this.authentications[authName]; - switch (auth.type) { - case 'basic': - if (auth.username || auth.password) { - request.auth(auth.username || '', auth.password || ''); - } - - break; - case 'bearer': - if (auth.accessToken) { - request.set({'Authorization': 'Bearer ' + auth.accessToken}); - } - - break; - case 'apiKey': - if (auth.apiKey) { - var data = {}; - if (auth.apiKeyPrefix) { - data[auth.name] = auth.apiKeyPrefix + ' ' + auth.apiKey; - } else { - data[auth.name] = auth.apiKey; - } - - if (auth['in'] === 'header') { - request.set(data); - } else { - request.query(data); - } - } - - break; - case 'oauth2': - if (auth.accessToken) { - request.set({'Authorization': 'Bearer ' + auth.accessToken}); - } - - break; - default: - throw new Error('Unknown authentication type: ' + auth.type); - } - }); - } - - /** - * Deserializes an HTTP response body into a value of the specified type. - * @param {Object} response A SuperAgent response object. - * @param {(String|Array.|Object.|Function)} returnType The type to return. Pass a string for simple types - * or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To - * return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type: - * all properties on data will be converted to this type. - * @returns A value of the specified type. - */ - deserialize(response, returnType) { - if (response == null || returnType == null || response.status == 204) { - return null; - } - - // Rely on SuperAgent for parsing response body. - // See http://visionmedia.github.io/superagent/#parsing-response-bodies - var data = response.body; - if (data == null || (typeof data === 'object' && typeof data.length === 'undefined' && !Object.keys(data).length)) { - // SuperAgent does not always produce a body; use the unparsed response as a fallback - data = response.text; - } - - return ApiClient.convertToType(data, returnType); - } - - /** - * Callback function to receive the result of the operation. - * @callback module:ApiClient~callApiCallback - * @param {String} error Error message, if any. - * @param data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * Invokes the REST service using the supplied settings and parameters. - * @param {String} path The base URL to invoke. - * @param {String} httpMethod The HTTP method to use. - * @param {Object.} pathParams A map of path parameters and their values. - * @param {Object.} queryParams A map of query parameters and their values. - * @param {Object.} headerParams A map of header parameters and their values. - * @param {Object.} formParams A map of form parameters and their values. - * @param {Object} bodyParam The value to pass as the request body. - * @param {Array.} authNames An array of authentication type names. - * @param {Array.} contentTypes An array of request MIME types. - * @param {Array.} accepts An array of acceptable response MIME types. - * @param {(String|Array|ObjectFunction)} returnType The required type to return; can be a string for simple types or the - * constructor for a complex type. - * @param {String} apiBasePath base path defined in the operation/path level to override the default one - * @param {module:ApiClient~callApiCallback} callback The callback function. - * @returns {Object} The SuperAgent request object. - */ - callApi(path, httpMethod, pathParams, - queryParams, headerParams, formParams, bodyParam, authNames, contentTypes, accepts, - returnType, apiBasePath, callback) { - - var url = this.buildUrl(path, pathParams, apiBasePath); - var request = superagent(httpMethod, url); - - if (this.plugins !== null) { - for (var index in this.plugins) { - if (this.plugins.hasOwnProperty(index)) { - request.use(this.plugins[index]) - } - } - } - - // apply authentications - this.applyAuthToRequest(request, authNames); - - // set query parameters - if (httpMethod.toUpperCase() === 'GET' && this.cache === false) { - queryParams['_'] = new Date().getTime(); - } - - request.query(this.normalizeParams(queryParams)); - - // set header parameters - request.set(this.defaultHeaders).set(this.normalizeParams(headerParams)); - - // set requestAgent if it is set by user - if (this.requestAgent) { - request.agent(this.requestAgent); - } - - // set request timeout - request.timeout(this.timeout); - - var contentType = this.jsonPreferredMime(contentTypes); - if (contentType) { - // Issue with superagent and multipart/form-data (https://github.com/visionmedia/superagent/issues/746) - if(contentType != 'multipart/form-data') { - request.type(contentType); - } - } - - if (contentType === 'application/x-www-form-urlencoded') { - request.send(querystring.stringify(this.normalizeParams(formParams))); - } else if (contentType == 'multipart/form-data') { - var _formParams = this.normalizeParams(formParams); - for (var key in _formParams) { - if (_formParams.hasOwnProperty(key)) { - if (this.isFileParam(_formParams[key])) { - // file field - request.attach(key, _formParams[key]); - } else { - request.field(key, _formParams[key]); - } - } - } - } else if (bodyParam !== null && bodyParam !== undefined) { - if (!request.header['Content-Type']) { - request.type('application/json'); - } - request.send(bodyParam); - } - - var accept = this.jsonPreferredMime(accepts); - if (accept) { - request.accept(accept); - } - - if (returnType === 'Blob') { - request.responseType('blob'); - } else if (returnType === 'String') { - request.responseType('string'); - } - - // Attach previously saved cookies, if enabled - if (this.enableCookies){ - if (typeof window === 'undefined') { - this.agent._attachCookies(request); - } - else { - request.withCredentials(); - } - } - - request.end((error, response) => { - if (callback) { - var data = null; - if (!error) { - try { - data = this.deserialize(response, returnType); - if (this.enableCookies && typeof window === 'undefined'){ - this.agent._saveCookies(response); - } - } catch (err) { - error = err; - } - } - - callback(error, data, response); - } - }); - - return request; - } - - /** - * Parses an ISO-8601 string representation of a date value. - * @param {String} str The date value as a string. - * @returns {Date} The parsed date object. - */ - static parseDate(str) { - return new Date(str); - } - - /** - * Converts a value to the specified type. - * @param {(String|Object)} data The data to convert, as a string or object. - * @param {(String|Array.|Object.|Function)} type The type to return. Pass a string for simple types - * or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To - * return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type: - * all properties on data will be converted to this type. - * @returns An instance of the specified type or null or undefined if data is null or undefined. - */ - static convertToType(data, type) { - if (data === null || data === undefined) - return data - - switch (type) { - case 'Boolean': - return Boolean(data); - case 'Integer': - return parseInt(data, 10); - case 'Number': - return parseFloat(data); - case 'String': - return String(data); - case 'Date': - return ApiClient.parseDate(String(data)); - case 'Blob': - return data; - default: - if (type === Object) { - // generic object, return directly - return data; - } else if (typeof type.constructFromObject === 'function') { - // for model type like User and enum class - return type.constructFromObject(data); - } else if (Array.isArray(type)) { - // for array type like: ['String'] - var itemType = type[0]; - - return data.map((item) => { - return ApiClient.convertToType(item, itemType); - }); - } else if (typeof type === 'object') { - // for plain object type like: {'String': 'Integer'} - var keyType, valueType; - for (var k in type) { - if (type.hasOwnProperty(k)) { - keyType = k; - valueType = type[k]; - break; - } - } - - var result = {}; - for (var k in data) { - if (data.hasOwnProperty(k)) { - var key = ApiClient.convertToType(k, keyType); - var value = ApiClient.convertToType(data[k], valueType); - result[key] = value; - } - } - - return result; - } else { - // for unknown type, return the data directly - return data; - } - } - } - - /** - * Gets an array of host settings - * @returns An array of host settings - */ - hostSettings() { - return [ - { - 'url': "http://{server}.swagger.io:{port}/v2", - 'description': "petstore server", - 'variables': { - server: { - 'description': "No description provided", - 'default_value': "petstore", - 'enum_values': [ - "petstore", - "qa-petstore", - "dev-petstore" - ] - }, - port: { - 'description': "No description provided", - 'default_value': "80", - 'enum_values': [ - "80", - "8080" - ] - } - } - }, - { - 'url': "https://localhost:8080/{version}", - 'description': "The local server", - 'variables': { - version: { - 'description': "No description provided", - 'default_value': "v2", - 'enum_values': [ - "v1", - "v2" - ] - } - } - } - ]; - } - - getBasePathFromSettings(index, variables={}) { - var servers = this.hostSettings(); - - // check array index out of bound - if (index < 0 || index >= servers.length) { - throw new Error("Invalid index " + index + " when selecting the host settings. Must be less than " + servers.length); - } - - var server = servers[index]; - var url = server['url']; - - // go through variable and assign a value - for (var variable_name in server['variables']) { - if (variable_name in variables) { - let variable = server['variables'][variable_name]; - if ( !('enum_values' in variable) || variable['enum_values'].includes(variables[variable_name]) ) { - url = url.replace("{" + variable_name + "}", variables[variable_name]); - } else { - throw new Error("The variable `" + variable_name + "` in the host URL has invalid value " + variables[variable_name] + ". Must be " + server['variables'][variable_name]['enum_values'] + "."); - } - } else { - // use default value - url = url.replace("{" + variable_name + "}", server['variables'][variable_name]['default_value']) - } - } - return url; - } - - /** - * Constructs a new map or array model from REST data. - * @param data {Object|Array} The REST data. - * @param obj {Object|Array} The target object or array. - */ - static constructFromObject(data, obj, itemType) { - if (Array.isArray(data)) { - for (var i = 0; i < data.length; i++) { - if (data.hasOwnProperty(i)) - obj[i] = ApiClient.convertToType(data[i], itemType); - } - } else { - for (var k in data) { - if (data.hasOwnProperty(k)) - obj[k] = ApiClient.convertToType(data[k], itemType); - } - } - }; -} - -/** - * Enumeration of collection format separator strategies. - * @enum {String} - * @readonly - */ -ApiClient.CollectionFormatEnum = { - /** - * Comma-separated values. Value: csv - * @const - */ - CSV: ',', - - /** - * Space-separated values. Value: ssv - * @const - */ - SSV: ' ', - - /** - * Tab-separated values. Value: tsv - * @const - */ - TSV: '\t', - - /** - * Pipe(|)-separated values. Value: pipes - * @const - */ - PIPES: '|', - - /** - * Native array. Value: multi - * @const - */ - MULTI: 'multi' -}; - -/** -* The default API client implementation. -* @type {module:ApiClient} -*/ -ApiClient.instance = new ApiClient(); -export default ApiClient; diff --git a/samples/openapi3/client/petstore/javascript-es6/src/api/AnotherFakeApi.js b/samples/openapi3/client/petstore/javascript-es6/src/api/AnotherFakeApi.js deleted file mode 100644 index c84fc12049af..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/api/AnotherFakeApi.js +++ /dev/null @@ -1,80 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import Client from '../model/Client'; - -/** -* AnotherFake service. -* @module api/AnotherFakeApi -* @version 1.0.0 -*/ -export default class AnotherFakeApi { - - /** - * Constructs a new AnotherFakeApi. - * @alias module:api/AnotherFakeApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - } - - - /** - * Callback function to receive the result of the call123testSpecialTags operation. - * @callback module:api/AnotherFakeApi~call123testSpecialTagsCallback - * @param {String} error Error message, if any. - * @param {module:model/Client} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * To test special tags - * To test special tags and operation ID starting with number - * @param {module:model/Client} client client model - * @param {module:api/AnotherFakeApi~call123testSpecialTagsCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:model/Client} - */ - call123testSpecialTags(client, callback) { - let postBody = client; - // verify the required parameter 'client' is set - if (client === undefined || client === null) { - throw new Error("Missing the required parameter 'client' when calling call123testSpecialTags"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = Client; - return this.apiClient.callApi( - '/another-fake/dummy', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - -} diff --git a/samples/openapi3/client/petstore/javascript-es6/src/api/DefaultApi.js b/samples/openapi3/client/petstore/javascript-es6/src/api/DefaultApi.js deleted file mode 100644 index 2a586e6fc32a..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/api/DefaultApi.js +++ /dev/null @@ -1,73 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import InlineResponseDefault from '../model/InlineResponseDefault'; - -/** -* Default service. -* @module api/DefaultApi -* @version 1.0.0 -*/ -export default class DefaultApi { - - /** - * Constructs a new DefaultApi. - * @alias module:api/DefaultApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - } - - - /** - * Callback function to receive the result of the fooGet operation. - * @callback module:api/DefaultApi~fooGetCallback - * @param {String} error Error message, if any. - * @param {module:model/InlineResponseDefault} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * @param {module:api/DefaultApi~fooGetCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:model/InlineResponseDefault} - */ - fooGet(callback) { - let postBody = null; - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = InlineResponseDefault; - return this.apiClient.callApi( - '/foo', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - -} diff --git a/samples/openapi3/client/petstore/javascript-es6/src/api/FakeApi.js b/samples/openapi3/client/petstore/javascript-es6/src/api/FakeApi.js deleted file mode 100644 index 83c4437a592e..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/api/FakeApi.js +++ /dev/null @@ -1,758 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import Client from '../model/Client'; -import FileSchemaTestClass from '../model/FileSchemaTestClass'; -import HealthCheckResult from '../model/HealthCheckResult'; -import OuterComposite from '../model/OuterComposite'; -import Pet from '../model/Pet'; -import User from '../model/User'; - -/** -* Fake service. -* @module api/FakeApi -* @version 1.0.0 -*/ -export default class FakeApi { - - /** - * Constructs a new FakeApi. - * @alias module:api/FakeApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - } - - - /** - * Callback function to receive the result of the fakeHealthGet operation. - * @callback module:api/FakeApi~fakeHealthGetCallback - * @param {String} error Error message, if any. - * @param {module:model/HealthCheckResult} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * Health check endpoint - * @param {module:api/FakeApi~fakeHealthGetCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:model/HealthCheckResult} - */ - fakeHealthGet(callback) { - let postBody = null; - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = HealthCheckResult; - return this.apiClient.callApi( - '/fake/health', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the fakeHttpSignatureTest operation. - * @callback module:api/FakeApi~fakeHttpSignatureTestCallback - * @param {String} error Error message, if any. - * @param data This operation does not return a value. - * @param {String} response The complete HTTP response. - */ - - /** - * test http signature authentication - * @param {module:model/Pet} pet Pet object that needs to be added to the store - * @param {Object} opts Optional parameters - * @param {String} opts.query1 query parameter - * @param {String} opts.header1 header parameter - * @param {module:api/FakeApi~fakeHttpSignatureTestCallback} callback The callback function, accepting three arguments: error, data, response - */ - fakeHttpSignatureTest(pet, opts, callback) { - opts = opts || {}; - let postBody = pet; - // verify the required parameter 'pet' is set - if (pet === undefined || pet === null) { - throw new Error("Missing the required parameter 'pet' when calling fakeHttpSignatureTest"); - } - - let pathParams = { - }; - let queryParams = { - 'query_1': opts['query1'] - }; - let headerParams = { - 'header_1': opts['header1'] - }; - let formParams = { - }; - - let authNames = ['http_signature_test']; - let contentTypes = ['application/json', 'application/xml']; - let accepts = []; - let returnType = null; - return this.apiClient.callApi( - '/fake/http-signature-test', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the fakeOuterBooleanSerialize operation. - * @callback module:api/FakeApi~fakeOuterBooleanSerializeCallback - * @param {String} error Error message, if any. - * @param {Boolean} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * Test serialization of outer boolean types - * @param {Object} opts Optional parameters - * @param {Boolean} opts.body Input boolean as post body - * @param {module:api/FakeApi~fakeOuterBooleanSerializeCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link Boolean} - */ - fakeOuterBooleanSerialize(opts, callback) { - opts = opts || {}; - let postBody = opts['body']; - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['*/*']; - let returnType = 'Boolean'; - return this.apiClient.callApi( - '/fake/outer/boolean', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the fakeOuterCompositeSerialize operation. - * @callback module:api/FakeApi~fakeOuterCompositeSerializeCallback - * @param {String} error Error message, if any. - * @param {module:model/OuterComposite} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * Test serialization of object with outer number type - * @param {Object} opts Optional parameters - * @param {module:model/OuterComposite} opts.outerComposite Input composite as post body - * @param {module:api/FakeApi~fakeOuterCompositeSerializeCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:model/OuterComposite} - */ - fakeOuterCompositeSerialize(opts, callback) { - opts = opts || {}; - let postBody = opts['outerComposite']; - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['*/*']; - let returnType = OuterComposite; - return this.apiClient.callApi( - '/fake/outer/composite', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the fakeOuterNumberSerialize operation. - * @callback module:api/FakeApi~fakeOuterNumberSerializeCallback - * @param {String} error Error message, if any. - * @param {Number} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * Test serialization of outer number types - * @param {Object} opts Optional parameters - * @param {Number} opts.body Input number as post body - * @param {module:api/FakeApi~fakeOuterNumberSerializeCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link Number} - */ - fakeOuterNumberSerialize(opts, callback) { - opts = opts || {}; - let postBody = opts['body']; - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['*/*']; - let returnType = 'Number'; - return this.apiClient.callApi( - '/fake/outer/number', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the fakeOuterStringSerialize operation. - * @callback module:api/FakeApi~fakeOuterStringSerializeCallback - * @param {String} error Error message, if any. - * @param {String} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * Test serialization of outer string types - * @param {Object} opts Optional parameters - * @param {String} opts.body Input string as post body - * @param {module:api/FakeApi~fakeOuterStringSerializeCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link String} - */ - fakeOuterStringSerialize(opts, callback) { - opts = opts || {}; - let postBody = opts['body']; - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['*/*']; - let returnType = 'String'; - return this.apiClient.callApi( - '/fake/outer/string', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the testBodyWithFileSchema operation. - * @callback module:api/FakeApi~testBodyWithFileSchemaCallback - * @param {String} error Error message, if any. - * @param data This operation does not return a value. - * @param {String} response The complete HTTP response. - */ - - /** - * For this test, the body for this request much reference a schema named `File`. - * @param {module:model/FileSchemaTestClass} fileSchemaTestClass - * @param {module:api/FakeApi~testBodyWithFileSchemaCallback} callback The callback function, accepting three arguments: error, data, response - */ - testBodyWithFileSchema(fileSchemaTestClass, callback) { - let postBody = fileSchemaTestClass; - // verify the required parameter 'fileSchemaTestClass' is set - if (fileSchemaTestClass === undefined || fileSchemaTestClass === null) { - throw new Error("Missing the required parameter 'fileSchemaTestClass' when calling testBodyWithFileSchema"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = []; - let returnType = null; - return this.apiClient.callApi( - '/fake/body-with-file-schema', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the testBodyWithQueryParams operation. - * @callback module:api/FakeApi~testBodyWithQueryParamsCallback - * @param {String} error Error message, if any. - * @param data This operation does not return a value. - * @param {String} response The complete HTTP response. - */ - - /** - * @param {String} query - * @param {module:model/User} user - * @param {module:api/FakeApi~testBodyWithQueryParamsCallback} callback The callback function, accepting three arguments: error, data, response - */ - testBodyWithQueryParams(query, user, callback) { - let postBody = user; - // verify the required parameter 'query' is set - if (query === undefined || query === null) { - throw new Error("Missing the required parameter 'query' when calling testBodyWithQueryParams"); - } - // verify the required parameter 'user' is set - if (user === undefined || user === null) { - throw new Error("Missing the required parameter 'user' when calling testBodyWithQueryParams"); - } - - let pathParams = { - }; - let queryParams = { - 'query': query - }; - let headerParams = { - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = []; - let returnType = null; - return this.apiClient.callApi( - '/fake/body-with-query-params', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the testClientModel operation. - * @callback module:api/FakeApi~testClientModelCallback - * @param {String} error Error message, if any. - * @param {module:model/Client} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * To test \"client\" model - * To test \"client\" model - * @param {module:model/Client} client client model - * @param {module:api/FakeApi~testClientModelCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:model/Client} - */ - testClientModel(client, callback) { - let postBody = client; - // verify the required parameter 'client' is set - if (client === undefined || client === null) { - throw new Error("Missing the required parameter 'client' when calling testClientModel"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = Client; - return this.apiClient.callApi( - '/fake', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the testEndpointParameters operation. - * @callback module:api/FakeApi~testEndpointParametersCallback - * @param {String} error Error message, if any. - * @param data This operation does not return a value. - * @param {String} response The complete HTTP response. - */ - - /** - * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - * @param {Number} _number None - * @param {Number} _double None - * @param {String} patternWithoutDelimiter None - * @param {Blob} _byte None - * @param {Object} opts Optional parameters - * @param {Number} opts.integer None - * @param {Number} opts.int32 None - * @param {Number} opts.int64 None - * @param {Number} opts._float None - * @param {String} opts._string None - * @param {File} opts.binary None - * @param {Date} opts._date None - * @param {Date} opts.dateTime None - * @param {String} opts.password None - * @param {String} opts.callback None - * @param {module:api/FakeApi~testEndpointParametersCallback} callback The callback function, accepting three arguments: error, data, response - */ - testEndpointParameters(_number, _double, patternWithoutDelimiter, _byte, opts, callback) { - opts = opts || {}; - let postBody = null; - // verify the required parameter '_number' is set - if (_number === undefined || _number === null) { - throw new Error("Missing the required parameter '_number' when calling testEndpointParameters"); - } - // verify the required parameter '_double' is set - if (_double === undefined || _double === null) { - throw new Error("Missing the required parameter '_double' when calling testEndpointParameters"); - } - // verify the required parameter 'patternWithoutDelimiter' is set - if (patternWithoutDelimiter === undefined || patternWithoutDelimiter === null) { - throw new Error("Missing the required parameter 'patternWithoutDelimiter' when calling testEndpointParameters"); - } - // verify the required parameter '_byte' is set - if (_byte === undefined || _byte === null) { - throw new Error("Missing the required parameter '_byte' when calling testEndpointParameters"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - 'integer': opts['integer'], - 'int32': opts['int32'], - 'int64': opts['int64'], - 'number': _number, - 'float': opts['_float'], - 'double': _double, - 'string': opts['_string'], - 'pattern_without_delimiter': patternWithoutDelimiter, - 'byte': _byte, - 'binary': opts['binary'], - 'date': opts['_date'], - 'dateTime': opts['dateTime'], - 'password': opts['password'], - 'callback': opts['callback'] - }; - - let authNames = ['http_basic_test']; - let contentTypes = ['application/x-www-form-urlencoded']; - let accepts = []; - let returnType = null; - return this.apiClient.callApi( - '/fake', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the testEnumParameters operation. - * @callback module:api/FakeApi~testEnumParametersCallback - * @param {String} error Error message, if any. - * @param data This operation does not return a value. - * @param {String} response The complete HTTP response. - */ - - /** - * To test enum parameters - * To test enum parameters - * @param {Object} opts Optional parameters - * @param {Array.} opts.enumHeaderStringArray Header parameter enum test (string array) - * @param {module:model/String} opts.enumHeaderString Header parameter enum test (string) (default to '-efg') - * @param {Array.} opts.enumQueryStringArray Query parameter enum test (string array) - * @param {module:model/String} opts.enumQueryString Query parameter enum test (string) (default to '-efg') - * @param {module:model/Number} opts.enumQueryInteger Query parameter enum test (double) - * @param {module:model/Number} opts.enumQueryDouble Query parameter enum test (double) - * @param {Array.} opts.enumFormStringArray Form parameter enum test (string array) (default to '$') - * @param {module:model/String} opts.enumFormString Form parameter enum test (string) (default to '-efg') - * @param {module:api/FakeApi~testEnumParametersCallback} callback The callback function, accepting three arguments: error, data, response - */ - testEnumParameters(opts, callback) { - opts = opts || {}; - let postBody = null; - - let pathParams = { - }; - let queryParams = { - 'enum_query_string_array': this.apiClient.buildCollectionParam(opts['enumQueryStringArray'], 'multi'), - 'enum_query_string': opts['enumQueryString'], - 'enum_query_integer': opts['enumQueryInteger'], - 'enum_query_double': opts['enumQueryDouble'] - }; - let headerParams = { - 'enum_header_string_array': opts['enumHeaderStringArray'], - 'enum_header_string': opts['enumHeaderString'] - }; - let formParams = { - 'enum_form_string_array': this.apiClient.buildCollectionParam(opts['enumFormStringArray'], 'csv'), - 'enum_form_string': opts['enumFormString'] - }; - - let authNames = []; - let contentTypes = ['application/x-www-form-urlencoded']; - let accepts = []; - let returnType = null; - return this.apiClient.callApi( - '/fake', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the testGroupParameters operation. - * @callback module:api/FakeApi~testGroupParametersCallback - * @param {String} error Error message, if any. - * @param data This operation does not return a value. - * @param {String} response The complete HTTP response. - */ - - /** - * Fake endpoint to test group parameters (optional) - * Fake endpoint to test group parameters (optional) - * @param {Number} requiredStringGroup Required String in group parameters - * @param {Boolean} requiredBooleanGroup Required Boolean in group parameters - * @param {Number} requiredInt64Group Required Integer in group parameters - * @param {Object} opts Optional parameters - * @param {Number} opts.stringGroup String in group parameters - * @param {Boolean} opts.booleanGroup Boolean in group parameters - * @param {Number} opts.int64Group Integer in group parameters - * @param {module:api/FakeApi~testGroupParametersCallback} callback The callback function, accepting three arguments: error, data, response - */ - testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, opts, callback) { - opts = opts || {}; - let postBody = null; - // verify the required parameter 'requiredStringGroup' is set - if (requiredStringGroup === undefined || requiredStringGroup === null) { - throw new Error("Missing the required parameter 'requiredStringGroup' when calling testGroupParameters"); - } - // verify the required parameter 'requiredBooleanGroup' is set - if (requiredBooleanGroup === undefined || requiredBooleanGroup === null) { - throw new Error("Missing the required parameter 'requiredBooleanGroup' when calling testGroupParameters"); - } - // verify the required parameter 'requiredInt64Group' is set - if (requiredInt64Group === undefined || requiredInt64Group === null) { - throw new Error("Missing the required parameter 'requiredInt64Group' when calling testGroupParameters"); - } - - let pathParams = { - }; - let queryParams = { - 'required_string_group': requiredStringGroup, - 'required_int64_group': requiredInt64Group, - 'string_group': opts['stringGroup'], - 'int64_group': opts['int64Group'] - }; - let headerParams = { - 'required_boolean_group': requiredBooleanGroup, - 'boolean_group': opts['booleanGroup'] - }; - let formParams = { - }; - - let authNames = ['bearer_test']; - let contentTypes = []; - let accepts = []; - let returnType = null; - return this.apiClient.callApi( - '/fake', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the testInlineAdditionalProperties operation. - * @callback module:api/FakeApi~testInlineAdditionalPropertiesCallback - * @param {String} error Error message, if any. - * @param data This operation does not return a value. - * @param {String} response The complete HTTP response. - */ - - /** - * test inline additionalProperties - * @param {Object.} requestBody request body - * @param {module:api/FakeApi~testInlineAdditionalPropertiesCallback} callback The callback function, accepting three arguments: error, data, response - */ - testInlineAdditionalProperties(requestBody, callback) { - let postBody = requestBody; - // verify the required parameter 'requestBody' is set - if (requestBody === undefined || requestBody === null) { - throw new Error("Missing the required parameter 'requestBody' when calling testInlineAdditionalProperties"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = []; - let returnType = null; - return this.apiClient.callApi( - '/fake/inline-additionalProperties', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the testJsonFormData operation. - * @callback module:api/FakeApi~testJsonFormDataCallback - * @param {String} error Error message, if any. - * @param data This operation does not return a value. - * @param {String} response The complete HTTP response. - */ - - /** - * test json serialization of form data - * @param {String} param field1 - * @param {String} param2 field2 - * @param {module:api/FakeApi~testJsonFormDataCallback} callback The callback function, accepting three arguments: error, data, response - */ - testJsonFormData(param, param2, callback) { - let postBody = null; - // verify the required parameter 'param' is set - if (param === undefined || param === null) { - throw new Error("Missing the required parameter 'param' when calling testJsonFormData"); - } - // verify the required parameter 'param2' is set - if (param2 === undefined || param2 === null) { - throw new Error("Missing the required parameter 'param2' when calling testJsonFormData"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - 'param': param, - 'param2': param2 - }; - - let authNames = []; - let contentTypes = ['application/x-www-form-urlencoded']; - let accepts = []; - let returnType = null; - return this.apiClient.callApi( - '/fake/jsonFormData', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the testQueryParameterCollectionFormat operation. - * @callback module:api/FakeApi~testQueryParameterCollectionFormatCallback - * @param {String} error Error message, if any. - * @param data This operation does not return a value. - * @param {String} response The complete HTTP response. - */ - - /** - * To test the collection format in query parameters - * @param {Array.} pipe - * @param {Array.} ioutil - * @param {Array.} http - * @param {Array.} url - * @param {Array.} context - * @param {module:api/FakeApi~testQueryParameterCollectionFormatCallback} callback The callback function, accepting three arguments: error, data, response - */ - testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, callback) { - let postBody = null; - // verify the required parameter 'pipe' is set - if (pipe === undefined || pipe === null) { - throw new Error("Missing the required parameter 'pipe' when calling testQueryParameterCollectionFormat"); - } - // verify the required parameter 'ioutil' is set - if (ioutil === undefined || ioutil === null) { - throw new Error("Missing the required parameter 'ioutil' when calling testQueryParameterCollectionFormat"); - } - // verify the required parameter 'http' is set - if (http === undefined || http === null) { - throw new Error("Missing the required parameter 'http' when calling testQueryParameterCollectionFormat"); - } - // verify the required parameter 'url' is set - if (url === undefined || url === null) { - throw new Error("Missing the required parameter 'url' when calling testQueryParameterCollectionFormat"); - } - // verify the required parameter 'context' is set - if (context === undefined || context === null) { - throw new Error("Missing the required parameter 'context' when calling testQueryParameterCollectionFormat"); - } - - let pathParams = { - }; - let queryParams = { - 'pipe': this.apiClient.buildCollectionParam(pipe, 'multi'), - 'ioutil': this.apiClient.buildCollectionParam(ioutil, 'csv'), - 'http': this.apiClient.buildCollectionParam(http, 'space'), - 'url': this.apiClient.buildCollectionParam(url, 'csv'), - 'context': this.apiClient.buildCollectionParam(context, 'multi') - }; - let headerParams = { - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = []; - let returnType = null; - return this.apiClient.callApi( - '/fake/test-query-paramters', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - -} diff --git a/samples/openapi3/client/petstore/javascript-es6/src/api/FakeClassnameTags123Api.js b/samples/openapi3/client/petstore/javascript-es6/src/api/FakeClassnameTags123Api.js deleted file mode 100644 index 324529a59b2b..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/api/FakeClassnameTags123Api.js +++ /dev/null @@ -1,80 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import Client from '../model/Client'; - -/** -* FakeClassnameTags123 service. -* @module api/FakeClassnameTags123Api -* @version 1.0.0 -*/ -export default class FakeClassnameTags123Api { - - /** - * Constructs a new FakeClassnameTags123Api. - * @alias module:api/FakeClassnameTags123Api - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - } - - - /** - * Callback function to receive the result of the testClassname operation. - * @callback module:api/FakeClassnameTags123Api~testClassnameCallback - * @param {String} error Error message, if any. - * @param {module:model/Client} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * To test class name in snake case - * To test class name in snake case - * @param {module:model/Client} client client model - * @param {module:api/FakeClassnameTags123Api~testClassnameCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:model/Client} - */ - testClassname(client, callback) { - let postBody = client; - // verify the required parameter 'client' is set - if (client === undefined || client === null) { - throw new Error("Missing the required parameter 'client' when calling testClassname"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let authNames = ['api_key_query']; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = Client; - return this.apiClient.callApi( - '/fake_classname_test', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - -} diff --git a/samples/openapi3/client/petstore/javascript-es6/src/api/PetApi.js b/samples/openapi3/client/petstore/javascript-es6/src/api/PetApi.js deleted file mode 100644 index 0f23c0690101..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/api/PetApi.js +++ /dev/null @@ -1,460 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import ApiResponse from '../model/ApiResponse'; -import Pet from '../model/Pet'; - -/** -* Pet service. -* @module api/PetApi -* @version 1.0.0 -*/ -export default class PetApi { - - /** - * Constructs a new PetApi. - * @alias module:api/PetApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - } - - - /** - * Callback function to receive the result of the addPet operation. - * @callback module:api/PetApi~addPetCallback - * @param {String} error Error message, if any. - * @param data This operation does not return a value. - * @param {String} response The complete HTTP response. - */ - - /** - * Add a new pet to the store - * @param {module:model/Pet} pet Pet object that needs to be added to the store - * @param {module:api/PetApi~addPetCallback} callback The callback function, accepting three arguments: error, data, response - */ - addPet(pet, opts, callback) { - opts = opts || {}; - let postBody = pet; - // verify the required parameter 'pet' is set - if (pet === undefined || pet === null) { - throw new Error("Missing the required parameter 'pet' when calling addPet"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let authNames = ['petstore_auth']; - let contentTypes = ['application/json', 'application/xml']; - let accepts = []; - let returnType = null; - let basePaths = ['http://petstore.swagger.io/v2', 'http://path-server-test.petstore.local/v2']; - let basePath = basePaths[0]; // by default use the first one in "servers" defined in OpenAPI - if (typeof opts['_base_path_index'] !== 'undefined') { - if (opts['_base_path_index'] >= basePaths.length || opts['_base_path_index'] < 0) { - throw new Error("Invalid index " + opts['_base_path_index'] + " when selecting the host settings. Must be less than " + basePaths.length); - } - basePath = basePaths[opts['_base_path_index']]; - } - - return this.apiClient.callApi( - '/pet', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, basePath, callback - ); - } - - /** - * Callback function to receive the result of the deletePet operation. - * @callback module:api/PetApi~deletePetCallback - * @param {String} error Error message, if any. - * @param data This operation does not return a value. - * @param {String} response The complete HTTP response. - */ - - /** - * Deletes a pet - * @param {Number} petId Pet id to delete - * @param {Object} opts Optional parameters - * @param {String} opts.apiKey - * @param {module:api/PetApi~deletePetCallback} callback The callback function, accepting three arguments: error, data, response - */ - deletePet(petId, opts, callback) { - opts = opts || {}; - let postBody = null; - // verify the required parameter 'petId' is set - if (petId === undefined || petId === null) { - throw new Error("Missing the required parameter 'petId' when calling deletePet"); - } - - let pathParams = { - 'petId': petId - }; - let queryParams = { - }; - let headerParams = { - 'api_key': opts['apiKey'] - }; - let formParams = { - }; - - let authNames = ['petstore_auth']; - let contentTypes = []; - let accepts = []; - let returnType = null; - return this.apiClient.callApi( - '/pet/{petId}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the findPetsByStatus operation. - * @callback module:api/PetApi~findPetsByStatusCallback - * @param {String} error Error message, if any. - * @param {Array.} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * Finds Pets by status - * Multiple status values can be provided with comma separated strings - * @param {Array.} status Status values that need to be considered for filter - * @param {module:api/PetApi~findPetsByStatusCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link Array.} - */ - findPetsByStatus(status, callback) { - let postBody = null; - // verify the required parameter 'status' is set - if (status === undefined || status === null) { - throw new Error("Missing the required parameter 'status' when calling findPetsByStatus"); - } - - let pathParams = { - }; - let queryParams = { - 'status': this.apiClient.buildCollectionParam(status, 'csv') - }; - let headerParams = { - }; - let formParams = { - }; - - let authNames = ['petstore_auth']; - let contentTypes = []; - let accepts = ['application/xml', 'application/json']; - let returnType = [Pet]; - return this.apiClient.callApi( - '/pet/findByStatus', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the findPetsByTags operation. - * @callback module:api/PetApi~findPetsByTagsCallback - * @param {String} error Error message, if any. - * @param {Array.} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * Finds Pets by tags - * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. - * @param {Array.} tags Tags to filter by - * @param {module:api/PetApi~findPetsByTagsCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link Array.} - */ - findPetsByTags(tags, callback) { - let postBody = null; - // verify the required parameter 'tags' is set - if (tags === undefined || tags === null) { - throw new Error("Missing the required parameter 'tags' when calling findPetsByTags"); - } - - let pathParams = { - }; - let queryParams = { - 'tags': this.apiClient.buildCollectionParam(tags, 'csv') - }; - let headerParams = { - }; - let formParams = { - }; - - let authNames = ['petstore_auth']; - let contentTypes = []; - let accepts = ['application/xml', 'application/json']; - let returnType = [Pet]; - return this.apiClient.callApi( - '/pet/findByTags', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the getPetById operation. - * @callback module:api/PetApi~getPetByIdCallback - * @param {String} error Error message, if any. - * @param {module:model/Pet} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * Find pet by ID - * Returns a single pet - * @param {Number} petId ID of pet to return - * @param {module:api/PetApi~getPetByIdCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:model/Pet} - */ - getPetById(petId, callback) { - let postBody = null; - // verify the required parameter 'petId' is set - if (petId === undefined || petId === null) { - throw new Error("Missing the required parameter 'petId' when calling getPetById"); - } - - let pathParams = { - 'petId': petId - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let authNames = ['api_key']; - let contentTypes = []; - let accepts = ['application/xml', 'application/json']; - let returnType = Pet; - return this.apiClient.callApi( - '/pet/{petId}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the updatePet operation. - * @callback module:api/PetApi~updatePetCallback - * @param {String} error Error message, if any. - * @param data This operation does not return a value. - * @param {String} response The complete HTTP response. - */ - - /** - * Update an existing pet - * @param {module:model/Pet} pet Pet object that needs to be added to the store - * @param {module:api/PetApi~updatePetCallback} callback The callback function, accepting three arguments: error, data, response - */ - updatePet(pet, opts, callback) { - opts = opts || {}; - let postBody = pet; - // verify the required parameter 'pet' is set - if (pet === undefined || pet === null) { - throw new Error("Missing the required parameter 'pet' when calling updatePet"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let authNames = ['petstore_auth']; - let contentTypes = ['application/json', 'application/xml']; - let accepts = []; - let returnType = null; - let basePaths = ['http://petstore.swagger.io/v2', 'http://path-server-test.petstore.local/v2']; - let basePath = basePaths[0]; // by default use the first one in "servers" defined in OpenAPI - if (typeof opts['_base_path_index'] !== 'undefined') { - if (opts['_base_path_index'] >= basePaths.length || opts['_base_path_index'] < 0) { - throw new Error("Invalid index " + opts['_base_path_index'] + " when selecting the host settings. Must be less than " + basePaths.length); - } - basePath = basePaths[opts['_base_path_index']]; - } - - return this.apiClient.callApi( - '/pet', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, basePath, callback - ); - } - - /** - * Callback function to receive the result of the updatePetWithForm operation. - * @callback module:api/PetApi~updatePetWithFormCallback - * @param {String} error Error message, if any. - * @param data This operation does not return a value. - * @param {String} response The complete HTTP response. - */ - - /** - * Updates a pet in the store with form data - * @param {Number} petId ID of pet that needs to be updated - * @param {Object} opts Optional parameters - * @param {String} opts.name Updated name of the pet - * @param {String} opts.status Updated status of the pet - * @param {module:api/PetApi~updatePetWithFormCallback} callback The callback function, accepting three arguments: error, data, response - */ - updatePetWithForm(petId, opts, callback) { - opts = opts || {}; - let postBody = null; - // verify the required parameter 'petId' is set - if (petId === undefined || petId === null) { - throw new Error("Missing the required parameter 'petId' when calling updatePetWithForm"); - } - - let pathParams = { - 'petId': petId - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - 'name': opts['name'], - 'status': opts['status'] - }; - - let authNames = ['petstore_auth']; - let contentTypes = ['application/x-www-form-urlencoded']; - let accepts = []; - let returnType = null; - return this.apiClient.callApi( - '/pet/{petId}', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the uploadFile operation. - * @callback module:api/PetApi~uploadFileCallback - * @param {String} error Error message, if any. - * @param {module:model/ApiResponse} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * uploads an image - * @param {Number} petId ID of pet to update - * @param {Object} opts Optional parameters - * @param {String} opts.additionalMetadata Additional data to pass to server - * @param {File} opts.file file to upload - * @param {module:api/PetApi~uploadFileCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:model/ApiResponse} - */ - uploadFile(petId, opts, callback) { - opts = opts || {}; - let postBody = null; - // verify the required parameter 'petId' is set - if (petId === undefined || petId === null) { - throw new Error("Missing the required parameter 'petId' when calling uploadFile"); - } - - let pathParams = { - 'petId': petId - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - 'additionalMetadata': opts['additionalMetadata'], - 'file': opts['file'] - }; - - let authNames = ['petstore_auth']; - let contentTypes = ['multipart/form-data']; - let accepts = ['application/json']; - let returnType = ApiResponse; - return this.apiClient.callApi( - '/pet/{petId}/uploadImage', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the uploadFileWithRequiredFile operation. - * @callback module:api/PetApi~uploadFileWithRequiredFileCallback - * @param {String} error Error message, if any. - * @param {module:model/ApiResponse} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * uploads an image (required) - * @param {Number} petId ID of pet to update - * @param {File} requiredFile file to upload - * @param {Object} opts Optional parameters - * @param {String} opts.additionalMetadata Additional data to pass to server - * @param {module:api/PetApi~uploadFileWithRequiredFileCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:model/ApiResponse} - */ - uploadFileWithRequiredFile(petId, requiredFile, opts, callback) { - opts = opts || {}; - let postBody = null; - // verify the required parameter 'petId' is set - if (petId === undefined || petId === null) { - throw new Error("Missing the required parameter 'petId' when calling uploadFileWithRequiredFile"); - } - // verify the required parameter 'requiredFile' is set - if (requiredFile === undefined || requiredFile === null) { - throw new Error("Missing the required parameter 'requiredFile' when calling uploadFileWithRequiredFile"); - } - - let pathParams = { - 'petId': petId - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - 'additionalMetadata': opts['additionalMetadata'], - 'requiredFile': requiredFile - }; - - let authNames = ['petstore_auth']; - let contentTypes = ['multipart/form-data']; - let accepts = ['application/json']; - let returnType = ApiResponse; - return this.apiClient.callApi( - '/fake/{petId}/uploadImageWithRequiredFile', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - -} diff --git a/samples/openapi3/client/petstore/javascript-es6/src/api/StoreApi.js b/samples/openapi3/client/petstore/javascript-es6/src/api/StoreApi.js deleted file mode 100644 index 74ad1afd3efa..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/api/StoreApi.js +++ /dev/null @@ -1,201 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import Order from '../model/Order'; - -/** -* Store service. -* @module api/StoreApi -* @version 1.0.0 -*/ -export default class StoreApi { - - /** - * Constructs a new StoreApi. - * @alias module:api/StoreApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - } - - - /** - * Callback function to receive the result of the deleteOrder operation. - * @callback module:api/StoreApi~deleteOrderCallback - * @param {String} error Error message, if any. - * @param data This operation does not return a value. - * @param {String} response The complete HTTP response. - */ - - /** - * Delete purchase order by ID - * For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors - * @param {String} orderId ID of the order that needs to be deleted - * @param {module:api/StoreApi~deleteOrderCallback} callback The callback function, accepting three arguments: error, data, response - */ - deleteOrder(orderId, callback) { - let postBody = null; - // verify the required parameter 'orderId' is set - if (orderId === undefined || orderId === null) { - throw new Error("Missing the required parameter 'orderId' when calling deleteOrder"); - } - - let pathParams = { - 'order_id': orderId - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = []; - let returnType = null; - return this.apiClient.callApi( - '/store/order/{order_id}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the getInventory operation. - * @callback module:api/StoreApi~getInventoryCallback - * @param {String} error Error message, if any. - * @param {Object.} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * Returns pet inventories by status - * Returns a map of status codes to quantities - * @param {module:api/StoreApi~getInventoryCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link Object.} - */ - getInventory(callback) { - let postBody = null; - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let authNames = ['api_key']; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = {'String': 'Number'}; - return this.apiClient.callApi( - '/store/inventory', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the getOrderById operation. - * @callback module:api/StoreApi~getOrderByIdCallback - * @param {String} error Error message, if any. - * @param {module:model/Order} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * Find purchase order by ID - * For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions - * @param {Number} orderId ID of pet that needs to be fetched - * @param {module:api/StoreApi~getOrderByIdCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:model/Order} - */ - getOrderById(orderId, callback) { - let postBody = null; - // verify the required parameter 'orderId' is set - if (orderId === undefined || orderId === null) { - throw new Error("Missing the required parameter 'orderId' when calling getOrderById"); - } - - let pathParams = { - 'order_id': orderId - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/xml', 'application/json']; - let returnType = Order; - return this.apiClient.callApi( - '/store/order/{order_id}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the placeOrder operation. - * @callback module:api/StoreApi~placeOrderCallback - * @param {String} error Error message, if any. - * @param {module:model/Order} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * Place an order for a pet - * @param {module:model/Order} order order placed for purchasing the pet - * @param {module:api/StoreApi~placeOrderCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:model/Order} - */ - placeOrder(order, callback) { - let postBody = order; - // verify the required parameter 'order' is set - if (order === undefined || order === null) { - throw new Error("Missing the required parameter 'order' when calling placeOrder"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['application/xml', 'application/json']; - let returnType = Order; - return this.apiClient.callApi( - '/store/order', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - -} diff --git a/samples/openapi3/client/petstore/javascript-es6/src/api/UserApi.js b/samples/openapi3/client/petstore/javascript-es6/src/api/UserApi.js deleted file mode 100644 index 83720dd3a1dd..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/api/UserApi.js +++ /dev/null @@ -1,373 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import User from '../model/User'; - -/** -* User service. -* @module api/UserApi -* @version 1.0.0 -*/ -export default class UserApi { - - /** - * Constructs a new UserApi. - * @alias module:api/UserApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - } - - - /** - * Callback function to receive the result of the createUser operation. - * @callback module:api/UserApi~createUserCallback - * @param {String} error Error message, if any. - * @param data This operation does not return a value. - * @param {String} response The complete HTTP response. - */ - - /** - * Create user - * This can only be done by the logged in user. - * @param {module:model/User} user Created user object - * @param {module:api/UserApi~createUserCallback} callback The callback function, accepting three arguments: error, data, response - */ - createUser(user, callback) { - let postBody = user; - // verify the required parameter 'user' is set - if (user === undefined || user === null) { - throw new Error("Missing the required parameter 'user' when calling createUser"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = []; - let returnType = null; - return this.apiClient.callApi( - '/user', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the createUsersWithArrayInput operation. - * @callback module:api/UserApi~createUsersWithArrayInputCallback - * @param {String} error Error message, if any. - * @param data This operation does not return a value. - * @param {String} response The complete HTTP response. - */ - - /** - * Creates list of users with given input array - * @param {Array.} user List of user object - * @param {module:api/UserApi~createUsersWithArrayInputCallback} callback The callback function, accepting three arguments: error, data, response - */ - createUsersWithArrayInput(user, callback) { - let postBody = user; - // verify the required parameter 'user' is set - if (user === undefined || user === null) { - throw new Error("Missing the required parameter 'user' when calling createUsersWithArrayInput"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = []; - let returnType = null; - return this.apiClient.callApi( - '/user/createWithArray', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the createUsersWithListInput operation. - * @callback module:api/UserApi~createUsersWithListInputCallback - * @param {String} error Error message, if any. - * @param data This operation does not return a value. - * @param {String} response The complete HTTP response. - */ - - /** - * Creates list of users with given input array - * @param {Array.} user List of user object - * @param {module:api/UserApi~createUsersWithListInputCallback} callback The callback function, accepting three arguments: error, data, response - */ - createUsersWithListInput(user, callback) { - let postBody = user; - // verify the required parameter 'user' is set - if (user === undefined || user === null) { - throw new Error("Missing the required parameter 'user' when calling createUsersWithListInput"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = []; - let returnType = null; - return this.apiClient.callApi( - '/user/createWithList', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the deleteUser operation. - * @callback module:api/UserApi~deleteUserCallback - * @param {String} error Error message, if any. - * @param data This operation does not return a value. - * @param {String} response The complete HTTP response. - */ - - /** - * Delete user - * This can only be done by the logged in user. - * @param {String} username The name that needs to be deleted - * @param {module:api/UserApi~deleteUserCallback} callback The callback function, accepting three arguments: error, data, response - */ - deleteUser(username, callback) { - let postBody = null; - // verify the required parameter 'username' is set - if (username === undefined || username === null) { - throw new Error("Missing the required parameter 'username' when calling deleteUser"); - } - - let pathParams = { - 'username': username - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = []; - let returnType = null; - return this.apiClient.callApi( - '/user/{username}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the getUserByName operation. - * @callback module:api/UserApi~getUserByNameCallback - * @param {String} error Error message, if any. - * @param {module:model/User} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * Get user by user name - * @param {String} username The name that needs to be fetched. Use user1 for testing. - * @param {module:api/UserApi~getUserByNameCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:model/User} - */ - getUserByName(username, callback) { - let postBody = null; - // verify the required parameter 'username' is set - if (username === undefined || username === null) { - throw new Error("Missing the required parameter 'username' when calling getUserByName"); - } - - let pathParams = { - 'username': username - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/xml', 'application/json']; - let returnType = User; - return this.apiClient.callApi( - '/user/{username}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the loginUser operation. - * @callback module:api/UserApi~loginUserCallback - * @param {String} error Error message, if any. - * @param {String} data The data returned by the service call. - * @param {String} response The complete HTTP response. - */ - - /** - * Logs user into the system - * @param {String} username The user name for login - * @param {String} password The password for login in clear text - * @param {module:api/UserApi~loginUserCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link String} - */ - loginUser(username, password, callback) { - let postBody = null; - // verify the required parameter 'username' is set - if (username === undefined || username === null) { - throw new Error("Missing the required parameter 'username' when calling loginUser"); - } - // verify the required parameter 'password' is set - if (password === undefined || password === null) { - throw new Error("Missing the required parameter 'password' when calling loginUser"); - } - - let pathParams = { - }; - let queryParams = { - 'username': username, - 'password': password - }; - let headerParams = { - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/xml', 'application/json']; - let returnType = 'String'; - return this.apiClient.callApi( - '/user/login', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the logoutUser operation. - * @callback module:api/UserApi~logoutUserCallback - * @param {String} error Error message, if any. - * @param data This operation does not return a value. - * @param {String} response The complete HTTP response. - */ - - /** - * Logs out current logged in user session - * @param {module:api/UserApi~logoutUserCallback} callback The callback function, accepting three arguments: error, data, response - */ - logoutUser(callback) { - let postBody = null; - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = []; - let returnType = null; - return this.apiClient.callApi( - '/user/logout', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - /** - * Callback function to receive the result of the updateUser operation. - * @callback module:api/UserApi~updateUserCallback - * @param {String} error Error message, if any. - * @param data This operation does not return a value. - * @param {String} response The complete HTTP response. - */ - - /** - * Updated user - * This can only be done by the logged in user. - * @param {String} username name that need to be deleted - * @param {module:model/User} user Updated user object - * @param {module:api/UserApi~updateUserCallback} callback The callback function, accepting three arguments: error, data, response - */ - updateUser(username, user, callback) { - let postBody = user; - // verify the required parameter 'username' is set - if (username === undefined || username === null) { - throw new Error("Missing the required parameter 'username' when calling updateUser"); - } - // verify the required parameter 'user' is set - if (user === undefined || user === null) { - throw new Error("Missing the required parameter 'user' when calling updateUser"); - } - - let pathParams = { - 'username': username - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = []; - let returnType = null; - return this.apiClient.callApi( - '/user/{username}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null, callback - ); - } - - -} diff --git a/samples/openapi3/client/petstore/javascript-es6/src/index.js b/samples/openapi3/client/petstore/javascript-es6/src/index.js deleted file mode 100644 index 1a0cda3b1dcd..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/index.js +++ /dev/null @@ -1,447 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from './ApiClient'; -import AdditionalPropertiesClass from './model/AdditionalPropertiesClass'; -import Animal from './model/Animal'; -import ApiResponse from './model/ApiResponse'; -import ArrayOfArrayOfNumberOnly from './model/ArrayOfArrayOfNumberOnly'; -import ArrayOfNumberOnly from './model/ArrayOfNumberOnly'; -import ArrayTest from './model/ArrayTest'; -import Capitalization from './model/Capitalization'; -import Cat from './model/Cat'; -import CatAllOf from './model/CatAllOf'; -import Category from './model/Category'; -import ClassModel from './model/ClassModel'; -import Client from './model/Client'; -import Dog from './model/Dog'; -import DogAllOf from './model/DogAllOf'; -import EnumArrays from './model/EnumArrays'; -import EnumClass from './model/EnumClass'; -import EnumTest from './model/EnumTest'; -import File from './model/File'; -import FileSchemaTestClass from './model/FileSchemaTestClass'; -import Foo from './model/Foo'; -import FormatTest from './model/FormatTest'; -import HasOnlyReadOnly from './model/HasOnlyReadOnly'; -import HealthCheckResult from './model/HealthCheckResult'; -import InlineObject from './model/InlineObject'; -import InlineObject1 from './model/InlineObject1'; -import InlineObject2 from './model/InlineObject2'; -import InlineObject3 from './model/InlineObject3'; -import InlineObject4 from './model/InlineObject4'; -import InlineObject5 from './model/InlineObject5'; -import InlineResponseDefault from './model/InlineResponseDefault'; -import List from './model/List'; -import MapTest from './model/MapTest'; -import MixedPropertiesAndAdditionalPropertiesClass from './model/MixedPropertiesAndAdditionalPropertiesClass'; -import Model200Response from './model/Model200Response'; -import ModelReturn from './model/ModelReturn'; -import Name from './model/Name'; -import NullableClass from './model/NullableClass'; -import NumberOnly from './model/NumberOnly'; -import Order from './model/Order'; -import OuterComposite from './model/OuterComposite'; -import OuterEnum from './model/OuterEnum'; -import OuterEnumDefaultValue from './model/OuterEnumDefaultValue'; -import OuterEnumInteger from './model/OuterEnumInteger'; -import OuterEnumIntegerDefaultValue from './model/OuterEnumIntegerDefaultValue'; -import Pet from './model/Pet'; -import ReadOnlyFirst from './model/ReadOnlyFirst'; -import SpecialModelName from './model/SpecialModelName'; -import Tag from './model/Tag'; -import User from './model/User'; -import AnotherFakeApi from './api/AnotherFakeApi'; -import DefaultApi from './api/DefaultApi'; -import FakeApi from './api/FakeApi'; -import FakeClassnameTags123Api from './api/FakeClassnameTags123Api'; -import PetApi from './api/PetApi'; -import StoreApi from './api/StoreApi'; -import UserApi from './api/UserApi'; - - -/** -* This_spec_is_mainly_for_testing_Petstore_server_and_contains_fake_endpoints_models__Please_do_not_use_this_for_any_other_purpose__Special_characters___.
-* The index module provides access to constructors for all the classes which comprise the public API. -*

-* An AMD (recommended!) or CommonJS application will generally do something equivalent to the following: -*

-* var OpenApiPetstore = require('index'); // See note below*.
-* var xxxSvc = new OpenApiPetstore.XxxApi(); // Allocate the API class we're going to use.
-* var yyyModel = new OpenApiPetstore.Yyy(); // Construct a model instance.
-* yyyModel.someProperty = 'someValue';
-* ...
-* var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
-* ...
-* 
-* *NOTE: For a top-level AMD script, use require(['index'], function(){...}) -* and put the application logic within the callback function. -*

-*

-* A non-AMD browser application (discouraged) might do something like this: -*

-* var xxxSvc = new OpenApiPetstore.XxxApi(); // Allocate the API class we're going to use.
-* var yyy = new OpenApiPetstore.Yyy(); // Construct a model instance.
-* yyyModel.someProperty = 'someValue';
-* ...
-* var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
-* ...
-* 
-*

-* @module index -* @version 1.0.0 -*/ -export { - /** - * The ApiClient constructor. - * @property {module:ApiClient} - */ - ApiClient, - - /** - * The AdditionalPropertiesClass model constructor. - * @property {module:model/AdditionalPropertiesClass} - */ - AdditionalPropertiesClass, - - /** - * The Animal model constructor. - * @property {module:model/Animal} - */ - Animal, - - /** - * The ApiResponse model constructor. - * @property {module:model/ApiResponse} - */ - ApiResponse, - - /** - * The ArrayOfArrayOfNumberOnly model constructor. - * @property {module:model/ArrayOfArrayOfNumberOnly} - */ - ArrayOfArrayOfNumberOnly, - - /** - * The ArrayOfNumberOnly model constructor. - * @property {module:model/ArrayOfNumberOnly} - */ - ArrayOfNumberOnly, - - /** - * The ArrayTest model constructor. - * @property {module:model/ArrayTest} - */ - ArrayTest, - - /** - * The Capitalization model constructor. - * @property {module:model/Capitalization} - */ - Capitalization, - - /** - * The Cat model constructor. - * @property {module:model/Cat} - */ - Cat, - - /** - * The CatAllOf model constructor. - * @property {module:model/CatAllOf} - */ - CatAllOf, - - /** - * The Category model constructor. - * @property {module:model/Category} - */ - Category, - - /** - * The ClassModel model constructor. - * @property {module:model/ClassModel} - */ - ClassModel, - - /** - * The Client model constructor. - * @property {module:model/Client} - */ - Client, - - /** - * The Dog model constructor. - * @property {module:model/Dog} - */ - Dog, - - /** - * The DogAllOf model constructor. - * @property {module:model/DogAllOf} - */ - DogAllOf, - - /** - * The EnumArrays model constructor. - * @property {module:model/EnumArrays} - */ - EnumArrays, - - /** - * The EnumClass model constructor. - * @property {module:model/EnumClass} - */ - EnumClass, - - /** - * The EnumTest model constructor. - * @property {module:model/EnumTest} - */ - EnumTest, - - /** - * The File model constructor. - * @property {module:model/File} - */ - File, - - /** - * The FileSchemaTestClass model constructor. - * @property {module:model/FileSchemaTestClass} - */ - FileSchemaTestClass, - - /** - * The Foo model constructor. - * @property {module:model/Foo} - */ - Foo, - - /** - * The FormatTest model constructor. - * @property {module:model/FormatTest} - */ - FormatTest, - - /** - * The HasOnlyReadOnly model constructor. - * @property {module:model/HasOnlyReadOnly} - */ - HasOnlyReadOnly, - - /** - * The HealthCheckResult model constructor. - * @property {module:model/HealthCheckResult} - */ - HealthCheckResult, - - /** - * The InlineObject model constructor. - * @property {module:model/InlineObject} - */ - InlineObject, - - /** - * The InlineObject1 model constructor. - * @property {module:model/InlineObject1} - */ - InlineObject1, - - /** - * The InlineObject2 model constructor. - * @property {module:model/InlineObject2} - */ - InlineObject2, - - /** - * The InlineObject3 model constructor. - * @property {module:model/InlineObject3} - */ - InlineObject3, - - /** - * The InlineObject4 model constructor. - * @property {module:model/InlineObject4} - */ - InlineObject4, - - /** - * The InlineObject5 model constructor. - * @property {module:model/InlineObject5} - */ - InlineObject5, - - /** - * The InlineResponseDefault model constructor. - * @property {module:model/InlineResponseDefault} - */ - InlineResponseDefault, - - /** - * The List model constructor. - * @property {module:model/List} - */ - List, - - /** - * The MapTest model constructor. - * @property {module:model/MapTest} - */ - MapTest, - - /** - * The MixedPropertiesAndAdditionalPropertiesClass model constructor. - * @property {module:model/MixedPropertiesAndAdditionalPropertiesClass} - */ - MixedPropertiesAndAdditionalPropertiesClass, - - /** - * The Model200Response model constructor. - * @property {module:model/Model200Response} - */ - Model200Response, - - /** - * The ModelReturn model constructor. - * @property {module:model/ModelReturn} - */ - ModelReturn, - - /** - * The Name model constructor. - * @property {module:model/Name} - */ - Name, - - /** - * The NullableClass model constructor. - * @property {module:model/NullableClass} - */ - NullableClass, - - /** - * The NumberOnly model constructor. - * @property {module:model/NumberOnly} - */ - NumberOnly, - - /** - * The Order model constructor. - * @property {module:model/Order} - */ - Order, - - /** - * The OuterComposite model constructor. - * @property {module:model/OuterComposite} - */ - OuterComposite, - - /** - * The OuterEnum model constructor. - * @property {module:model/OuterEnum} - */ - OuterEnum, - - /** - * The OuterEnumDefaultValue model constructor. - * @property {module:model/OuterEnumDefaultValue} - */ - OuterEnumDefaultValue, - - /** - * The OuterEnumInteger model constructor. - * @property {module:model/OuterEnumInteger} - */ - OuterEnumInteger, - - /** - * The OuterEnumIntegerDefaultValue model constructor. - * @property {module:model/OuterEnumIntegerDefaultValue} - */ - OuterEnumIntegerDefaultValue, - - /** - * The Pet model constructor. - * @property {module:model/Pet} - */ - Pet, - - /** - * The ReadOnlyFirst model constructor. - * @property {module:model/ReadOnlyFirst} - */ - ReadOnlyFirst, - - /** - * The SpecialModelName model constructor. - * @property {module:model/SpecialModelName} - */ - SpecialModelName, - - /** - * The Tag model constructor. - * @property {module:model/Tag} - */ - Tag, - - /** - * The User model constructor. - * @property {module:model/User} - */ - User, - - /** - * The AnotherFakeApi service constructor. - * @property {module:api/AnotherFakeApi} - */ - AnotherFakeApi, - - /** - * The DefaultApi service constructor. - * @property {module:api/DefaultApi} - */ - DefaultApi, - - /** - * The FakeApi service constructor. - * @property {module:api/FakeApi} - */ - FakeApi, - - /** - * The FakeClassnameTags123Api service constructor. - * @property {module:api/FakeClassnameTags123Api} - */ - FakeClassnameTags123Api, - - /** - * The PetApi service constructor. - * @property {module:api/PetApi} - */ - PetApi, - - /** - * The StoreApi service constructor. - * @property {module:api/StoreApi} - */ - StoreApi, - - /** - * The UserApi service constructor. - * @property {module:api/UserApi} - */ - UserApi -}; diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/AdditionalPropertiesClass.js b/samples/openapi3/client/petstore/javascript-es6/src/model/AdditionalPropertiesClass.js deleted file mode 100644 index d6d83cca284f..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/AdditionalPropertiesClass.js +++ /dev/null @@ -1,79 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The AdditionalPropertiesClass model module. - * @module model/AdditionalPropertiesClass - * @version 1.0.0 - */ -class AdditionalPropertiesClass { - /** - * Constructs a new AdditionalPropertiesClass. - * @alias module:model/AdditionalPropertiesClass - */ - constructor() { - - AdditionalPropertiesClass.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 AdditionalPropertiesClass 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/AdditionalPropertiesClass} obj Optional instance to populate. - * @return {module:model/AdditionalPropertiesClass} The populated AdditionalPropertiesClass instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AdditionalPropertiesClass(); - - if (data.hasOwnProperty('map_property')) { - obj['map_property'] = ApiClient.convertToType(data['map_property'], {'String': 'String'}); - } - if (data.hasOwnProperty('map_of_map_property')) { - obj['map_of_map_property'] = ApiClient.convertToType(data['map_of_map_property'], {'String': {'String': 'String'}}); - } - } - return obj; - } - - -} - -/** - * @member {Object.} map_property - */ -AdditionalPropertiesClass.prototype['map_property'] = undefined; - -/** - * @member {Object.>} map_of_map_property - */ -AdditionalPropertiesClass.prototype['map_of_map_property'] = undefined; - - - - - - -export default AdditionalPropertiesClass; - diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/Animal.js b/samples/openapi3/client/petstore/javascript-es6/src/model/Animal.js deleted file mode 100644 index 7cb9017160b2..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/Animal.js +++ /dev/null @@ -1,82 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The Animal model module. - * @module model/Animal - * @version 1.0.0 - */ -class Animal { - /** - * Constructs a new Animal. - * @alias module:model/Animal - * @param className {String} - */ - constructor(className) { - - Animal.initialize(this, className); - } - - /** - * 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, className) { - obj['className'] = className; - } - - /** - * Constructs a Animal 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/Animal} obj Optional instance to populate. - * @return {module:model/Animal} The populated Animal instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new Animal(); - - if (data.hasOwnProperty('className')) { - obj['className'] = ApiClient.convertToType(data['className'], 'String'); - } - if (data.hasOwnProperty('color')) { - obj['color'] = ApiClient.convertToType(data['color'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {String} className - */ -Animal.prototype['className'] = undefined; - -/** - * @member {String} color - * @default 'red' - */ -Animal.prototype['color'] = 'red'; - - - - - - -export default Animal; - diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/ApiResponse.js b/samples/openapi3/client/petstore/javascript-es6/src/model/ApiResponse.js deleted file mode 100644 index f5af17fdf82d..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/ApiResponse.js +++ /dev/null @@ -1,87 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ApiResponse model module. - * @module model/ApiResponse - * @version 1.0.0 - */ -class ApiResponse { - /** - * Constructs a new ApiResponse. - * @alias module:model/ApiResponse - */ - constructor() { - - ApiResponse.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 ApiResponse 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/ApiResponse} obj Optional instance to populate. - * @return {module:model/ApiResponse} The populated ApiResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ApiResponse(); - - if (data.hasOwnProperty('code')) { - obj['code'] = ApiClient.convertToType(data['code'], 'Number'); - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - } - if (data.hasOwnProperty('message')) { - obj['message'] = ApiClient.convertToType(data['message'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {Number} code - */ -ApiResponse.prototype['code'] = undefined; - -/** - * @member {String} type - */ -ApiResponse.prototype['type'] = undefined; - -/** - * @member {String} message - */ -ApiResponse.prototype['message'] = undefined; - - - - - - -export default ApiResponse; - diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/ArrayOfArrayOfNumberOnly.js b/samples/openapi3/client/petstore/javascript-es6/src/model/ArrayOfArrayOfNumberOnly.js deleted file mode 100644 index eadd7db414b1..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/ArrayOfArrayOfNumberOnly.js +++ /dev/null @@ -1,71 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ArrayOfArrayOfNumberOnly model module. - * @module model/ArrayOfArrayOfNumberOnly - * @version 1.0.0 - */ -class ArrayOfArrayOfNumberOnly { - /** - * Constructs a new ArrayOfArrayOfNumberOnly. - * @alias module:model/ArrayOfArrayOfNumberOnly - */ - constructor() { - - ArrayOfArrayOfNumberOnly.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 ArrayOfArrayOfNumberOnly from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ArrayOfArrayOfNumberOnly} obj Optional instance to populate. - * @return {module:model/ArrayOfArrayOfNumberOnly} The populated ArrayOfArrayOfNumberOnly instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ArrayOfArrayOfNumberOnly(); - - if (data.hasOwnProperty('ArrayArrayNumber')) { - obj['ArrayArrayNumber'] = ApiClient.convertToType(data['ArrayArrayNumber'], [['Number']]); - } - } - return obj; - } - - -} - -/** - * @member {Array.>} ArrayArrayNumber - */ -ArrayOfArrayOfNumberOnly.prototype['ArrayArrayNumber'] = undefined; - - - - - - -export default ArrayOfArrayOfNumberOnly; - diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/ArrayOfNumberOnly.js b/samples/openapi3/client/petstore/javascript-es6/src/model/ArrayOfNumberOnly.js deleted file mode 100644 index 1145a62630d2..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/ArrayOfNumberOnly.js +++ /dev/null @@ -1,71 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ArrayOfNumberOnly model module. - * @module model/ArrayOfNumberOnly - * @version 1.0.0 - */ -class ArrayOfNumberOnly { - /** - * Constructs a new ArrayOfNumberOnly. - * @alias module:model/ArrayOfNumberOnly - */ - constructor() { - - ArrayOfNumberOnly.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 ArrayOfNumberOnly from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ArrayOfNumberOnly} obj Optional instance to populate. - * @return {module:model/ArrayOfNumberOnly} The populated ArrayOfNumberOnly instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ArrayOfNumberOnly(); - - if (data.hasOwnProperty('ArrayNumber')) { - obj['ArrayNumber'] = ApiClient.convertToType(data['ArrayNumber'], ['Number']); - } - } - return obj; - } - - -} - -/** - * @member {Array.} ArrayNumber - */ -ArrayOfNumberOnly.prototype['ArrayNumber'] = undefined; - - - - - - -export default ArrayOfNumberOnly; - diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/ArrayTest.js b/samples/openapi3/client/petstore/javascript-es6/src/model/ArrayTest.js deleted file mode 100644 index 18bc925308a3..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/ArrayTest.js +++ /dev/null @@ -1,88 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ReadOnlyFirst from './ReadOnlyFirst'; - -/** - * The ArrayTest model module. - * @module model/ArrayTest - * @version 1.0.0 - */ -class ArrayTest { - /** - * Constructs a new ArrayTest. - * @alias module:model/ArrayTest - */ - constructor() { - - ArrayTest.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 ArrayTest 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/ArrayTest} obj Optional instance to populate. - * @return {module:model/ArrayTest} The populated ArrayTest instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ArrayTest(); - - if (data.hasOwnProperty('array_of_string')) { - obj['array_of_string'] = ApiClient.convertToType(data['array_of_string'], ['String']); - } - if (data.hasOwnProperty('array_array_of_integer')) { - obj['array_array_of_integer'] = ApiClient.convertToType(data['array_array_of_integer'], [['Number']]); - } - if (data.hasOwnProperty('array_array_of_model')) { - obj['array_array_of_model'] = ApiClient.convertToType(data['array_array_of_model'], [[ReadOnlyFirst]]); - } - } - return obj; - } - - -} - -/** - * @member {Array.} array_of_string - */ -ArrayTest.prototype['array_of_string'] = undefined; - -/** - * @member {Array.>} array_array_of_integer - */ -ArrayTest.prototype['array_array_of_integer'] = undefined; - -/** - * @member {Array.>} array_array_of_model - */ -ArrayTest.prototype['array_array_of_model'] = undefined; - - - - - - -export default ArrayTest; - diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/Capitalization.js b/samples/openapi3/client/petstore/javascript-es6/src/model/Capitalization.js deleted file mode 100644 index 63b14361fee4..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/Capitalization.js +++ /dev/null @@ -1,112 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The Capitalization model module. - * @module model/Capitalization - * @version 1.0.0 - */ -class Capitalization { - /** - * Constructs a new Capitalization. - * @alias module:model/Capitalization - */ - constructor() { - - Capitalization.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 Capitalization 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/Capitalization} obj Optional instance to populate. - * @return {module:model/Capitalization} The populated Capitalization instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new Capitalization(); - - if (data.hasOwnProperty('smallCamel')) { - obj['smallCamel'] = ApiClient.convertToType(data['smallCamel'], 'String'); - } - if (data.hasOwnProperty('CapitalCamel')) { - obj['CapitalCamel'] = ApiClient.convertToType(data['CapitalCamel'], 'String'); - } - if (data.hasOwnProperty('small_Snake')) { - obj['small_Snake'] = ApiClient.convertToType(data['small_Snake'], 'String'); - } - if (data.hasOwnProperty('Capital_Snake')) { - obj['Capital_Snake'] = ApiClient.convertToType(data['Capital_Snake'], 'String'); - } - if (data.hasOwnProperty('SCA_ETH_Flow_Points')) { - obj['SCA_ETH_Flow_Points'] = ApiClient.convertToType(data['SCA_ETH_Flow_Points'], 'String'); - } - if (data.hasOwnProperty('ATT_NAME')) { - obj['ATT_NAME'] = ApiClient.convertToType(data['ATT_NAME'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {String} smallCamel - */ -Capitalization.prototype['smallCamel'] = undefined; - -/** - * @member {String} CapitalCamel - */ -Capitalization.prototype['CapitalCamel'] = undefined; - -/** - * @member {String} small_Snake - */ -Capitalization.prototype['small_Snake'] = undefined; - -/** - * @member {String} Capital_Snake - */ -Capitalization.prototype['Capital_Snake'] = undefined; - -/** - * @member {String} SCA_ETH_Flow_Points - */ -Capitalization.prototype['SCA_ETH_Flow_Points'] = undefined; - -/** - * Name of the pet - * @member {String} ATT_NAME - */ -Capitalization.prototype['ATT_NAME'] = undefined; - - - - - - -export default Capitalization; - diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/Cat.js b/samples/openapi3/client/petstore/javascript-es6/src/model/Cat.js deleted file mode 100644 index d18ce94e70e7..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/Cat.js +++ /dev/null @@ -1,95 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import Animal from './Animal'; -import CatAllOf from './CatAllOf'; - -/** - * The Cat model module. - * @module model/Cat - * @version 1.0.0 - */ -class Cat { - /** - * Constructs a new Cat. - * @alias module:model/Cat - * @extends module:model/Animal - * @implements module:model/Animal - * @implements module:model/CatAllOf - * @param className {String} - */ - constructor(className) { - Animal.initialize(this, className);CatAllOf.initialize(this); - Cat.initialize(this, className); - } - - /** - * 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, className) { - } - - /** - * Constructs a Cat 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/Cat} obj Optional instance to populate. - * @return {module:model/Cat} The populated Cat instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new Cat(); - Animal.constructFromObject(data, obj); - Animal.constructFromObject(data, obj); - CatAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('declawed')) { - obj['declawed'] = ApiClient.convertToType(data['declawed'], 'Boolean'); - } - } - return obj; - } - - -} - -/** - * @member {Boolean} declawed - */ -Cat.prototype['declawed'] = undefined; - - -// Implement Animal interface: -/** - * @member {String} className - */ -Animal.prototype['className'] = undefined; -/** - * @member {String} color - * @default 'red' - */ -Animal.prototype['color'] = 'red'; -// Implement CatAllOf interface: -/** - * @member {Boolean} declawed - */ -CatAllOf.prototype['declawed'] = undefined; - - - - -export default Cat; - diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/CatAllOf.js b/samples/openapi3/client/petstore/javascript-es6/src/model/CatAllOf.js deleted file mode 100644 index c71ea7129b05..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/CatAllOf.js +++ /dev/null @@ -1,71 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The CatAllOf model module. - * @module model/CatAllOf - * @version 1.0.0 - */ -class CatAllOf { - /** - * Constructs a new CatAllOf. - * @alias module:model/CatAllOf - */ - constructor() { - - CatAllOf.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 CatAllOf 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/CatAllOf} obj Optional instance to populate. - * @return {module:model/CatAllOf} The populated CatAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new CatAllOf(); - - if (data.hasOwnProperty('declawed')) { - obj['declawed'] = ApiClient.convertToType(data['declawed'], 'Boolean'); - } - } - return obj; - } - - -} - -/** - * @member {Boolean} declawed - */ -CatAllOf.prototype['declawed'] = undefined; - - - - - - -export default CatAllOf; - diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/Category.js b/samples/openapi3/client/petstore/javascript-es6/src/model/Category.js deleted file mode 100644 index 00d86502a632..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/Category.js +++ /dev/null @@ -1,82 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The Category model module. - * @module model/Category - * @version 1.0.0 - */ -class Category { - /** - * Constructs a new Category. - * @alias module:model/Category - * @param name {String} - */ - constructor(name) { - - Category.initialize(this, name); - } - - /** - * 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, name) { - obj['name'] = name; - } - - /** - * Constructs a Category 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/Category} obj Optional instance to populate. - * @return {module:model/Category} The populated Category instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new Category(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {Number} id - */ -Category.prototype['id'] = undefined; - -/** - * @member {String} name - * @default 'default-name' - */ -Category.prototype['name'] = 'default-name'; - - - - - - -export default Category; - diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/ClassModel.js b/samples/openapi3/client/petstore/javascript-es6/src/model/ClassModel.js deleted file mode 100644 index ee1f14177778..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/ClassModel.js +++ /dev/null @@ -1,72 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ClassModel model module. - * @module model/ClassModel - * @version 1.0.0 - */ -class ClassModel { - /** - * Constructs a new ClassModel. - * Model for testing model with \"_class\" property - * @alias module:model/ClassModel - */ - constructor() { - - ClassModel.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 ClassModel 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/ClassModel} obj Optional instance to populate. - * @return {module:model/ClassModel} The populated ClassModel instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ClassModel(); - - if (data.hasOwnProperty('_class')) { - obj['_class'] = ApiClient.convertToType(data['_class'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {String} _class - */ -ClassModel.prototype['_class'] = undefined; - - - - - - -export default ClassModel; - diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/Client.js b/samples/openapi3/client/petstore/javascript-es6/src/model/Client.js deleted file mode 100644 index 8521c85043bb..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/Client.js +++ /dev/null @@ -1,71 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The Client model module. - * @module model/Client - * @version 1.0.0 - */ -class Client { - /** - * Constructs a new Client. - * @alias module:model/Client - */ - constructor() { - - Client.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 Client 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/Client} obj Optional instance to populate. - * @return {module:model/Client} The populated Client instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new Client(); - - if (data.hasOwnProperty('client')) { - obj['client'] = ApiClient.convertToType(data['client'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {String} client - */ -Client.prototype['client'] = undefined; - - - - - - -export default Client; - diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/Dog.js b/samples/openapi3/client/petstore/javascript-es6/src/model/Dog.js deleted file mode 100644 index b101feecd321..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/Dog.js +++ /dev/null @@ -1,95 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import Animal from './Animal'; -import DogAllOf from './DogAllOf'; - -/** - * The Dog model module. - * @module model/Dog - * @version 1.0.0 - */ -class Dog { - /** - * Constructs a new Dog. - * @alias module:model/Dog - * @extends module:model/Animal - * @implements module:model/Animal - * @implements module:model/DogAllOf - * @param className {String} - */ - constructor(className) { - Animal.initialize(this, className);DogAllOf.initialize(this); - Dog.initialize(this, className); - } - - /** - * 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, className) { - } - - /** - * Constructs a Dog 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/Dog} obj Optional instance to populate. - * @return {module:model/Dog} The populated Dog instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new Dog(); - Animal.constructFromObject(data, obj); - Animal.constructFromObject(data, obj); - DogAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('breed')) { - obj['breed'] = ApiClient.convertToType(data['breed'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {String} breed - */ -Dog.prototype['breed'] = undefined; - - -// Implement Animal interface: -/** - * @member {String} className - */ -Animal.prototype['className'] = undefined; -/** - * @member {String} color - * @default 'red' - */ -Animal.prototype['color'] = 'red'; -// Implement DogAllOf interface: -/** - * @member {String} breed - */ -DogAllOf.prototype['breed'] = undefined; - - - - -export default Dog; - diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/DogAllOf.js b/samples/openapi3/client/petstore/javascript-es6/src/model/DogAllOf.js deleted file mode 100644 index 58ecede61267..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/DogAllOf.js +++ /dev/null @@ -1,71 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DogAllOf model module. - * @module model/DogAllOf - * @version 1.0.0 - */ -class DogAllOf { - /** - * Constructs a new DogAllOf. - * @alias module:model/DogAllOf - */ - constructor() { - - DogAllOf.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 DogAllOf 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/DogAllOf} obj Optional instance to populate. - * @return {module:model/DogAllOf} The populated DogAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DogAllOf(); - - if (data.hasOwnProperty('breed')) { - obj['breed'] = ApiClient.convertToType(data['breed'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {String} breed - */ -DogAllOf.prototype['breed'] = undefined; - - - - - - -export default DogAllOf; - diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/EnumArrays.js b/samples/openapi3/client/petstore/javascript-es6/src/model/EnumArrays.js deleted file mode 100644 index 7fe64e3111a5..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/EnumArrays.js +++ /dev/null @@ -1,121 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The EnumArrays model module. - * @module model/EnumArrays - * @version 1.0.0 - */ -class EnumArrays { - /** - * Constructs a new EnumArrays. - * @alias module:model/EnumArrays - */ - constructor() { - - EnumArrays.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 EnumArrays 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/EnumArrays} obj Optional instance to populate. - * @return {module:model/EnumArrays} The populated EnumArrays instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new EnumArrays(); - - if (data.hasOwnProperty('just_symbol')) { - obj['just_symbol'] = ApiClient.convertToType(data['just_symbol'], 'String'); - } - if (data.hasOwnProperty('array_enum')) { - obj['array_enum'] = ApiClient.convertToType(data['array_enum'], ['String']); - } - } - return obj; - } - - -} - -/** - * @member {module:model/EnumArrays.JustSymbolEnum} just_symbol - */ -EnumArrays.prototype['just_symbol'] = undefined; - -/** - * @member {Array.} array_enum - */ -EnumArrays.prototype['array_enum'] = undefined; - - - - - -/** - * Allowed values for the just_symbol property. - * @enum {String} - * @readonly - */ -EnumArrays['JustSymbolEnum'] = { - - /** - * value: ">=" - * @const - */ - "GREATER_THAN_OR_EQUAL_TO": ">=", - - /** - * value: "$" - * @const - */ - "DOLLAR": "$" -}; - - -/** - * Allowed values for the arrayEnum property. - * @enum {String} - * @readonly - */ -EnumArrays['ArrayEnumEnum'] = { - - /** - * value: "fish" - * @const - */ - "fish": "fish", - - /** - * value: "crab" - * @const - */ - "crab": "crab" -}; - - - -export default EnumArrays; - diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/EnumClass.js b/samples/openapi3/client/petstore/javascript-es6/src/model/EnumClass.js deleted file mode 100644 index f0888e52d5ba..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/EnumClass.js +++ /dev/null @@ -1,53 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -/** -* Enum class EnumClass. -* @enum {} -* @readonly -*/ -export default class EnumClass { - - /** - * value: "_abc" - * @const - */ - "_abc" = "_abc"; - - - /** - * value: "-efg" - * @const - */ - "-efg" = "-efg"; - - - /** - * value: "(xyz)" - * @const - */ - "(xyz)" = "(xyz)"; - - - - /** - * Returns a EnumClass enum value from a Javascript object name. - * @param {Object} data The plain JavaScript object containing the name of the enum value. - * @return {module:model/EnumClass} The enum EnumClass value. - */ - static constructFromObject(object) { - return object; - } -} - diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/EnumTest.js b/samples/openapi3/client/petstore/javascript-es6/src/model/EnumTest.js deleted file mode 100644 index dc684b7c26b1..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/EnumTest.js +++ /dev/null @@ -1,229 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import OuterEnum from './OuterEnum'; -import OuterEnumDefaultValue from './OuterEnumDefaultValue'; -import OuterEnumInteger from './OuterEnumInteger'; -import OuterEnumIntegerDefaultValue from './OuterEnumIntegerDefaultValue'; - -/** - * The EnumTest model module. - * @module model/EnumTest - * @version 1.0.0 - */ -class EnumTest { - /** - * Constructs a new EnumTest. - * @alias module:model/EnumTest - * @param enumStringRequired {module:model/EnumTest.EnumStringRequiredEnum} - */ - constructor(enumStringRequired) { - - EnumTest.initialize(this, enumStringRequired); - } - - /** - * 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, enumStringRequired) { - obj['enum_string_required'] = enumStringRequired; - } - - /** - * Constructs a EnumTest 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/EnumTest} obj Optional instance to populate. - * @return {module:model/EnumTest} The populated EnumTest instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new EnumTest(); - - if (data.hasOwnProperty('enum_string')) { - obj['enum_string'] = ApiClient.convertToType(data['enum_string'], 'String'); - } - if (data.hasOwnProperty('enum_string_required')) { - obj['enum_string_required'] = ApiClient.convertToType(data['enum_string_required'], 'String'); - } - if (data.hasOwnProperty('enum_integer')) { - obj['enum_integer'] = ApiClient.convertToType(data['enum_integer'], 'Number'); - } - if (data.hasOwnProperty('enum_number')) { - obj['enum_number'] = ApiClient.convertToType(data['enum_number'], 'Number'); - } - if (data.hasOwnProperty('outerEnum')) { - obj['outerEnum'] = OuterEnum.constructFromObject(data['outerEnum']); - } - if (data.hasOwnProperty('outerEnumInteger')) { - obj['outerEnumInteger'] = OuterEnumInteger.constructFromObject(data['outerEnumInteger']); - } - if (data.hasOwnProperty('outerEnumDefaultValue')) { - obj['outerEnumDefaultValue'] = OuterEnumDefaultValue.constructFromObject(data['outerEnumDefaultValue']); - } - if (data.hasOwnProperty('outerEnumIntegerDefaultValue')) { - obj['outerEnumIntegerDefaultValue'] = OuterEnumIntegerDefaultValue.constructFromObject(data['outerEnumIntegerDefaultValue']); - } - } - return obj; - } - - -} - -/** - * @member {module:model/EnumTest.EnumStringEnum} enum_string - */ -EnumTest.prototype['enum_string'] = undefined; - -/** - * @member {module:model/EnumTest.EnumStringRequiredEnum} enum_string_required - */ -EnumTest.prototype['enum_string_required'] = undefined; - -/** - * @member {module:model/EnumTest.EnumIntegerEnum} enum_integer - */ -EnumTest.prototype['enum_integer'] = undefined; - -/** - * @member {module:model/EnumTest.EnumNumberEnum} enum_number - */ -EnumTest.prototype['enum_number'] = undefined; - -/** - * @member {module:model/OuterEnum} outerEnum - */ -EnumTest.prototype['outerEnum'] = undefined; - -/** - * @member {module:model/OuterEnumInteger} outerEnumInteger - */ -EnumTest.prototype['outerEnumInteger'] = undefined; - -/** - * @member {module:model/OuterEnumDefaultValue} outerEnumDefaultValue - */ -EnumTest.prototype['outerEnumDefaultValue'] = undefined; - -/** - * @member {module:model/OuterEnumIntegerDefaultValue} outerEnumIntegerDefaultValue - */ -EnumTest.prototype['outerEnumIntegerDefaultValue'] = undefined; - - - - - -/** - * Allowed values for the enum_string property. - * @enum {String} - * @readonly - */ -EnumTest['EnumStringEnum'] = { - - /** - * value: "UPPER" - * @const - */ - "UPPER": "UPPER", - - /** - * value: "lower" - * @const - */ - "lower": "lower", - - /** - * value: "" - * @const - */ - "empty": "" -}; - - -/** - * Allowed values for the enum_string_required property. - * @enum {String} - * @readonly - */ -EnumTest['EnumStringRequiredEnum'] = { - - /** - * value: "UPPER" - * @const - */ - "UPPER": "UPPER", - - /** - * value: "lower" - * @const - */ - "lower": "lower", - - /** - * value: "" - * @const - */ - "empty": "" -}; - - -/** - * Allowed values for the enum_integer property. - * @enum {Number} - * @readonly - */ -EnumTest['EnumIntegerEnum'] = { - - /** - * value: 1 - * @const - */ - "1": 1, - - /** - * value: -1 - * @const - */ - "-1": -1 -}; - - -/** - * Allowed values for the enum_number property. - * @enum {Number} - * @readonly - */ -EnumTest['EnumNumberEnum'] = { - - /** - * value: 1.1 - * @const - */ - "1.1": 1.1, - - /** - * value: -1.2 - * @const - */ - "-1.2": -1.2 -}; - - - -export default EnumTest; - diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/File.js b/samples/openapi3/client/petstore/javascript-es6/src/model/File.js deleted file mode 100644 index 12b51b87d897..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/File.js +++ /dev/null @@ -1,73 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The File model module. - * @module model/File - * @version 1.0.0 - */ -class File { - /** - * Constructs a new File. - * Must be named `File` for test. - * @alias module:model/File - */ - constructor() { - - File.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 File 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/File} obj Optional instance to populate. - * @return {module:model/File} The populated File instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new File(); - - if (data.hasOwnProperty('sourceURI')) { - obj['sourceURI'] = ApiClient.convertToType(data['sourceURI'], 'String'); - } - } - return obj; - } - - -} - -/** - * Test capitalization - * @member {String} sourceURI - */ -File.prototype['sourceURI'] = undefined; - - - - - - -export default File; - diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/FileSchemaTestClass.js b/samples/openapi3/client/petstore/javascript-es6/src/model/FileSchemaTestClass.js deleted file mode 100644 index b6fe9e90ece2..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/FileSchemaTestClass.js +++ /dev/null @@ -1,79 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The FileSchemaTestClass model module. - * @module model/FileSchemaTestClass - * @version 1.0.0 - */ -class FileSchemaTestClass { - /** - * Constructs a new FileSchemaTestClass. - * @alias module:model/FileSchemaTestClass - */ - constructor() { - - FileSchemaTestClass.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 FileSchemaTestClass 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/FileSchemaTestClass} obj Optional instance to populate. - * @return {module:model/FileSchemaTestClass} The populated FileSchemaTestClass instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new FileSchemaTestClass(); - - if (data.hasOwnProperty('file')) { - obj['file'] = File.constructFromObject(data['file']); - } - if (data.hasOwnProperty('files')) { - obj['files'] = ApiClient.convertToType(data['files'], [File]); - } - } - return obj; - } - - -} - -/** - * @member {File} file - */ -FileSchemaTestClass.prototype['file'] = undefined; - -/** - * @member {Array.} files - */ -FileSchemaTestClass.prototype['files'] = undefined; - - - - - - -export default FileSchemaTestClass; - diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/Foo.js b/samples/openapi3/client/petstore/javascript-es6/src/model/Foo.js deleted file mode 100644 index 3e4477b805b9..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/Foo.js +++ /dev/null @@ -1,72 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The Foo model module. - * @module model/Foo - * @version 1.0.0 - */ -class Foo { - /** - * Constructs a new Foo. - * @alias module:model/Foo - */ - constructor() { - - Foo.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 Foo 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/Foo} obj Optional instance to populate. - * @return {module:model/Foo} The populated Foo instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new Foo(); - - if (data.hasOwnProperty('bar')) { - obj['bar'] = ApiClient.convertToType(data['bar'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {String} bar - * @default 'bar' - */ -Foo.prototype['bar'] = 'bar'; - - - - - - -export default Foo; - diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/FormatTest.js b/samples/openapi3/client/petstore/javascript-es6/src/model/FormatTest.js deleted file mode 100644 index 0c5fccb9072b..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/FormatTest.js +++ /dev/null @@ -1,193 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The FormatTest model module. - * @module model/FormatTest - * @version 1.0.0 - */ -class FormatTest { - /** - * Constructs a new FormatTest. - * @alias module:model/FormatTest - * @param _number {Number} - * @param _byte {Blob} - * @param _date {Date} - * @param password {String} - */ - constructor(_number, _byte, _date, password) { - - FormatTest.initialize(this, _number, _byte, _date, password); - } - - /** - * 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, _number, _byte, _date, password) { - obj['number'] = _number; - obj['byte'] = _byte; - obj['date'] = _date; - obj['password'] = password; - } - - /** - * Constructs a FormatTest 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/FormatTest} obj Optional instance to populate. - * @return {module:model/FormatTest} The populated FormatTest instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new FormatTest(); - - if (data.hasOwnProperty('integer')) { - obj['integer'] = ApiClient.convertToType(data['integer'], 'Number'); - } - if (data.hasOwnProperty('int32')) { - obj['int32'] = ApiClient.convertToType(data['int32'], 'Number'); - } - if (data.hasOwnProperty('int64')) { - obj['int64'] = ApiClient.convertToType(data['int64'], 'Number'); - } - if (data.hasOwnProperty('number')) { - obj['number'] = ApiClient.convertToType(data['number'], 'Number'); - } - if (data.hasOwnProperty('float')) { - obj['float'] = ApiClient.convertToType(data['float'], 'Number'); - } - if (data.hasOwnProperty('double')) { - obj['double'] = ApiClient.convertToType(data['double'], 'Number'); - } - if (data.hasOwnProperty('string')) { - obj['string'] = ApiClient.convertToType(data['string'], 'String'); - } - if (data.hasOwnProperty('byte')) { - obj['byte'] = ApiClient.convertToType(data['byte'], 'Blob'); - } - if (data.hasOwnProperty('binary')) { - obj['binary'] = ApiClient.convertToType(data['binary'], File); - } - if (data.hasOwnProperty('date')) { - obj['date'] = ApiClient.convertToType(data['date'], 'Date'); - } - if (data.hasOwnProperty('dateTime')) { - obj['dateTime'] = ApiClient.convertToType(data['dateTime'], 'Date'); - } - if (data.hasOwnProperty('uuid')) { - obj['uuid'] = ApiClient.convertToType(data['uuid'], 'String'); - } - if (data.hasOwnProperty('password')) { - obj['password'] = ApiClient.convertToType(data['password'], 'String'); - } - if (data.hasOwnProperty('pattern_with_digits')) { - obj['pattern_with_digits'] = ApiClient.convertToType(data['pattern_with_digits'], 'String'); - } - if (data.hasOwnProperty('pattern_with_digits_and_delimiter')) { - obj['pattern_with_digits_and_delimiter'] = ApiClient.convertToType(data['pattern_with_digits_and_delimiter'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {Number} integer - */ -FormatTest.prototype['integer'] = undefined; - -/** - * @member {Number} int32 - */ -FormatTest.prototype['int32'] = undefined; - -/** - * @member {Number} int64 - */ -FormatTest.prototype['int64'] = undefined; - -/** - * @member {Number} number - */ -FormatTest.prototype['number'] = undefined; - -/** - * @member {Number} float - */ -FormatTest.prototype['float'] = undefined; - -/** - * @member {Number} double - */ -FormatTest.prototype['double'] = undefined; - -/** - * @member {String} string - */ -FormatTest.prototype['string'] = undefined; - -/** - * @member {Blob} byte - */ -FormatTest.prototype['byte'] = undefined; - -/** - * @member {File} binary - */ -FormatTest.prototype['binary'] = undefined; - -/** - * @member {Date} date - */ -FormatTest.prototype['date'] = undefined; - -/** - * @member {Date} dateTime - */ -FormatTest.prototype['dateTime'] = undefined; - -/** - * @member {String} uuid - */ -FormatTest.prototype['uuid'] = undefined; - -/** - * @member {String} password - */ -FormatTest.prototype['password'] = undefined; - -/** - * A string that is a 10 digit number. Can have leading zeros. - * @member {String} pattern_with_digits - */ -FormatTest.prototype['pattern_with_digits'] = undefined; - -/** - * A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. - * @member {String} pattern_with_digits_and_delimiter - */ -FormatTest.prototype['pattern_with_digits_and_delimiter'] = undefined; - - - - - - -export default FormatTest; - diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/HasOnlyReadOnly.js b/samples/openapi3/client/petstore/javascript-es6/src/model/HasOnlyReadOnly.js deleted file mode 100644 index 57c9173723e7..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/HasOnlyReadOnly.js +++ /dev/null @@ -1,79 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The HasOnlyReadOnly model module. - * @module model/HasOnlyReadOnly - * @version 1.0.0 - */ -class HasOnlyReadOnly { - /** - * Constructs a new HasOnlyReadOnly. - * @alias module:model/HasOnlyReadOnly - */ - constructor() { - - HasOnlyReadOnly.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 HasOnlyReadOnly from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/HasOnlyReadOnly} obj Optional instance to populate. - * @return {module:model/HasOnlyReadOnly} The populated HasOnlyReadOnly instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new HasOnlyReadOnly(); - - if (data.hasOwnProperty('bar')) { - obj['bar'] = ApiClient.convertToType(data['bar'], 'String'); - } - if (data.hasOwnProperty('foo')) { - obj['foo'] = ApiClient.convertToType(data['foo'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {String} bar - */ -HasOnlyReadOnly.prototype['bar'] = undefined; - -/** - * @member {String} foo - */ -HasOnlyReadOnly.prototype['foo'] = undefined; - - - - - - -export default HasOnlyReadOnly; - diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/HealthCheckResult.js b/samples/openapi3/client/petstore/javascript-es6/src/model/HealthCheckResult.js deleted file mode 100644 index 2dd62c2a267b..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/HealthCheckResult.js +++ /dev/null @@ -1,72 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The HealthCheckResult model module. - * @module model/HealthCheckResult - * @version 1.0.0 - */ -class HealthCheckResult { - /** - * Constructs a new HealthCheckResult. - * Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model. - * @alias module:model/HealthCheckResult - */ - constructor() { - - HealthCheckResult.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 HealthCheckResult 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/HealthCheckResult} obj Optional instance to populate. - * @return {module:model/HealthCheckResult} The populated HealthCheckResult instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new HealthCheckResult(); - - if (data.hasOwnProperty('NullableMessage')) { - obj['NullableMessage'] = ApiClient.convertToType(data['NullableMessage'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {String} NullableMessage - */ -HealthCheckResult.prototype['NullableMessage'] = undefined; - - - - - - -export default HealthCheckResult; - diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject.js b/samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject.js deleted file mode 100644 index 6815bc809cf6..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject.js +++ /dev/null @@ -1,81 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The InlineObject model module. - * @module model/InlineObject - * @version 1.0.0 - */ -class InlineObject { - /** - * Constructs a new InlineObject. - * @alias module:model/InlineObject - */ - constructor() { - - InlineObject.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 InlineObject 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/InlineObject} obj Optional instance to populate. - * @return {module:model/InlineObject} The populated InlineObject instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new InlineObject(); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - } - } - return obj; - } - - -} - -/** - * Updated name of the pet - * @member {String} name - */ -InlineObject.prototype['name'] = undefined; - -/** - * Updated status of the pet - * @member {String} status - */ -InlineObject.prototype['status'] = undefined; - - - - - - -export default InlineObject; - diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject1.js b/samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject1.js deleted file mode 100644 index 947877256fb2..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject1.js +++ /dev/null @@ -1,81 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The InlineObject1 model module. - * @module model/InlineObject1 - * @version 1.0.0 - */ -class InlineObject1 { - /** - * Constructs a new InlineObject1. - * @alias module:model/InlineObject1 - */ - constructor() { - - InlineObject1.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 InlineObject1 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/InlineObject1} obj Optional instance to populate. - * @return {module:model/InlineObject1} The populated InlineObject1 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new InlineObject1(); - - if (data.hasOwnProperty('additionalMetadata')) { - obj['additionalMetadata'] = ApiClient.convertToType(data['additionalMetadata'], 'String'); - } - if (data.hasOwnProperty('file')) { - obj['file'] = ApiClient.convertToType(data['file'], File); - } - } - return obj; - } - - -} - -/** - * Additional data to pass to server - * @member {String} additionalMetadata - */ -InlineObject1.prototype['additionalMetadata'] = undefined; - -/** - * file to upload - * @member {File} file - */ -InlineObject1.prototype['file'] = undefined; - - - - - - -export default InlineObject1; - diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject2.js b/samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject2.js deleted file mode 100644 index e6ed9044568b..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject2.js +++ /dev/null @@ -1,130 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The InlineObject2 model module. - * @module model/InlineObject2 - * @version 1.0.0 - */ -class InlineObject2 { - /** - * Constructs a new InlineObject2. - * @alias module:model/InlineObject2 - */ - constructor() { - - InlineObject2.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 InlineObject2 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/InlineObject2} obj Optional instance to populate. - * @return {module:model/InlineObject2} The populated InlineObject2 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new InlineObject2(); - - if (data.hasOwnProperty('enum_form_string_array')) { - obj['enum_form_string_array'] = ApiClient.convertToType(data['enum_form_string_array'], ['String']); - } - if (data.hasOwnProperty('enum_form_string')) { - obj['enum_form_string'] = ApiClient.convertToType(data['enum_form_string'], 'String'); - } - } - return obj; - } - - -} - -/** - * Form parameter enum test (string array) - * @member {Array.} enum_form_string_array - */ -InlineObject2.prototype['enum_form_string_array'] = undefined; - -/** - * Form parameter enum test (string) - * @member {module:model/InlineObject2.EnumFormStringEnum} enum_form_string - * @default '-efg' - */ -InlineObject2.prototype['enum_form_string'] = '-efg'; - - - - - -/** - * Allowed values for the enumFormStringArray property. - * @enum {String} - * @readonly - */ -InlineObject2['EnumFormStringArrayEnum'] = { - - /** - * value: ">" - * @const - */ - "GREATER_THAN": ">", - - /** - * value: "$" - * @const - */ - "DOLLAR": "$" -}; - - -/** - * Allowed values for the enum_form_string property. - * @enum {String} - * @readonly - */ -InlineObject2['EnumFormStringEnum'] = { - - /** - * value: "_abc" - * @const - */ - "_abc": "_abc", - - /** - * value: "-efg" - * @const - */ - "-efg": "-efg", - - /** - * value: "(xyz)" - * @const - */ - "(xyz)": "(xyz)" -}; - - - -export default InlineObject2; - diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject3.js b/samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject3.js deleted file mode 100644 index 6a14f67109c8..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject3.js +++ /dev/null @@ -1,197 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The InlineObject3 model module. - * @module model/InlineObject3 - * @version 1.0.0 - */ -class InlineObject3 { - /** - * Constructs a new InlineObject3. - * @alias module:model/InlineObject3 - * @param _number {Number} None - * @param _double {Number} None - * @param patternWithoutDelimiter {String} None - * @param _byte {Blob} None - */ - constructor(_number, _double, patternWithoutDelimiter, _byte) { - - InlineObject3.initialize(this, _number, _double, patternWithoutDelimiter, _byte); - } - - /** - * 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, _number, _double, patternWithoutDelimiter, _byte) { - obj['number'] = _number; - obj['double'] = _double; - obj['pattern_without_delimiter'] = patternWithoutDelimiter; - obj['byte'] = _byte; - } - - /** - * Constructs a InlineObject3 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/InlineObject3} obj Optional instance to populate. - * @return {module:model/InlineObject3} The populated InlineObject3 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new InlineObject3(); - - if (data.hasOwnProperty('integer')) { - obj['integer'] = ApiClient.convertToType(data['integer'], 'Number'); - } - if (data.hasOwnProperty('int32')) { - obj['int32'] = ApiClient.convertToType(data['int32'], 'Number'); - } - if (data.hasOwnProperty('int64')) { - obj['int64'] = ApiClient.convertToType(data['int64'], 'Number'); - } - if (data.hasOwnProperty('number')) { - obj['number'] = ApiClient.convertToType(data['number'], 'Number'); - } - if (data.hasOwnProperty('float')) { - obj['float'] = ApiClient.convertToType(data['float'], 'Number'); - } - if (data.hasOwnProperty('double')) { - obj['double'] = ApiClient.convertToType(data['double'], 'Number'); - } - if (data.hasOwnProperty('string')) { - obj['string'] = ApiClient.convertToType(data['string'], 'String'); - } - if (data.hasOwnProperty('pattern_without_delimiter')) { - obj['pattern_without_delimiter'] = ApiClient.convertToType(data['pattern_without_delimiter'], 'String'); - } - if (data.hasOwnProperty('byte')) { - obj['byte'] = ApiClient.convertToType(data['byte'], 'Blob'); - } - if (data.hasOwnProperty('binary')) { - obj['binary'] = ApiClient.convertToType(data['binary'], File); - } - if (data.hasOwnProperty('date')) { - obj['date'] = ApiClient.convertToType(data['date'], 'Date'); - } - if (data.hasOwnProperty('dateTime')) { - obj['dateTime'] = ApiClient.convertToType(data['dateTime'], 'Date'); - } - if (data.hasOwnProperty('password')) { - obj['password'] = ApiClient.convertToType(data['password'], 'String'); - } - if (data.hasOwnProperty('callback')) { - obj['callback'] = ApiClient.convertToType(data['callback'], 'String'); - } - } - return obj; - } - - -} - -/** - * None - * @member {Number} integer - */ -InlineObject3.prototype['integer'] = undefined; - -/** - * None - * @member {Number} int32 - */ -InlineObject3.prototype['int32'] = undefined; - -/** - * None - * @member {Number} int64 - */ -InlineObject3.prototype['int64'] = undefined; - -/** - * None - * @member {Number} number - */ -InlineObject3.prototype['number'] = undefined; - -/** - * None - * @member {Number} float - */ -InlineObject3.prototype['float'] = undefined; - -/** - * None - * @member {Number} double - */ -InlineObject3.prototype['double'] = undefined; - -/** - * None - * @member {String} string - */ -InlineObject3.prototype['string'] = undefined; - -/** - * None - * @member {String} pattern_without_delimiter - */ -InlineObject3.prototype['pattern_without_delimiter'] = undefined; - -/** - * None - * @member {Blob} byte - */ -InlineObject3.prototype['byte'] = undefined; - -/** - * None - * @member {File} binary - */ -InlineObject3.prototype['binary'] = undefined; - -/** - * None - * @member {Date} date - */ -InlineObject3.prototype['date'] = undefined; - -/** - * None - * @member {Date} dateTime - */ -InlineObject3.prototype['dateTime'] = undefined; - -/** - * None - * @member {String} password - */ -InlineObject3.prototype['password'] = undefined; - -/** - * None - * @member {String} callback - */ -InlineObject3.prototype['callback'] = undefined; - - - - - - -export default InlineObject3; - diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject4.js b/samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject4.js deleted file mode 100644 index 9d5d5715c66f..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject4.js +++ /dev/null @@ -1,85 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The InlineObject4 model module. - * @module model/InlineObject4 - * @version 1.0.0 - */ -class InlineObject4 { - /** - * Constructs a new InlineObject4. - * @alias module:model/InlineObject4 - * @param param {String} field1 - * @param param2 {String} field2 - */ - constructor(param, param2) { - - InlineObject4.initialize(this, param, param2); - } - - /** - * 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, param, param2) { - obj['param'] = param; - obj['param2'] = param2; - } - - /** - * Constructs a InlineObject4 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/InlineObject4} obj Optional instance to populate. - * @return {module:model/InlineObject4} The populated InlineObject4 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new InlineObject4(); - - if (data.hasOwnProperty('param')) { - obj['param'] = ApiClient.convertToType(data['param'], 'String'); - } - if (data.hasOwnProperty('param2')) { - obj['param2'] = ApiClient.convertToType(data['param2'], 'String'); - } - } - return obj; - } - - -} - -/** - * field1 - * @member {String} param - */ -InlineObject4.prototype['param'] = undefined; - -/** - * field2 - * @member {String} param2 - */ -InlineObject4.prototype['param2'] = undefined; - - - - - - -export default InlineObject4; - diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject5.js b/samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject5.js deleted file mode 100644 index 1969e9b2ef3a..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject5.js +++ /dev/null @@ -1,83 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The InlineObject5 model module. - * @module model/InlineObject5 - * @version 1.0.0 - */ -class InlineObject5 { - /** - * Constructs a new InlineObject5. - * @alias module:model/InlineObject5 - * @param requiredFile {File} file to upload - */ - constructor(requiredFile) { - - InlineObject5.initialize(this, requiredFile); - } - - /** - * 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, requiredFile) { - obj['requiredFile'] = requiredFile; - } - - /** - * Constructs a InlineObject5 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/InlineObject5} obj Optional instance to populate. - * @return {module:model/InlineObject5} The populated InlineObject5 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new InlineObject5(); - - if (data.hasOwnProperty('additionalMetadata')) { - obj['additionalMetadata'] = ApiClient.convertToType(data['additionalMetadata'], 'String'); - } - if (data.hasOwnProperty('requiredFile')) { - obj['requiredFile'] = ApiClient.convertToType(data['requiredFile'], File); - } - } - return obj; - } - - -} - -/** - * Additional data to pass to server - * @member {String} additionalMetadata - */ -InlineObject5.prototype['additionalMetadata'] = undefined; - -/** - * file to upload - * @member {File} requiredFile - */ -InlineObject5.prototype['requiredFile'] = undefined; - - - - - - -export default InlineObject5; - diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/InlineResponseDefault.js b/samples/openapi3/client/petstore/javascript-es6/src/model/InlineResponseDefault.js deleted file mode 100644 index 2f66d888ec94..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/InlineResponseDefault.js +++ /dev/null @@ -1,72 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import Foo from './Foo'; - -/** - * The InlineResponseDefault model module. - * @module model/InlineResponseDefault - * @version 1.0.0 - */ -class InlineResponseDefault { - /** - * Constructs a new InlineResponseDefault. - * @alias module:model/InlineResponseDefault - */ - constructor() { - - InlineResponseDefault.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 InlineResponseDefault 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/InlineResponseDefault} obj Optional instance to populate. - * @return {module:model/InlineResponseDefault} The populated InlineResponseDefault instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new InlineResponseDefault(); - - if (data.hasOwnProperty('string')) { - obj['string'] = Foo.constructFromObject(data['string']); - } - } - return obj; - } - - -} - -/** - * @member {module:model/Foo} string - */ -InlineResponseDefault.prototype['string'] = undefined; - - - - - - -export default InlineResponseDefault; - diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/List.js b/samples/openapi3/client/petstore/javascript-es6/src/model/List.js deleted file mode 100644 index 18d6a258491a..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/List.js +++ /dev/null @@ -1,71 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The List model module. - * @module model/List - * @version 1.0.0 - */ -class List { - /** - * Constructs a new List. - * @alias module:model/List - */ - constructor() { - - List.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 List 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/List} obj Optional instance to populate. - * @return {module:model/List} The populated List instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new List(); - - if (data.hasOwnProperty('123-list')) { - obj['123-list'] = ApiClient.convertToType(data['123-list'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {String} 123-list - */ -List.prototype['123-list'] = undefined; - - - - - - -export default List; - diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/MapTest.js b/samples/openapi3/client/petstore/javascript-es6/src/model/MapTest.js deleted file mode 100644 index 3113ad56bd4e..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/MapTest.js +++ /dev/null @@ -1,116 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The MapTest model module. - * @module model/MapTest - * @version 1.0.0 - */ -class MapTest { - /** - * Constructs a new MapTest. - * @alias module:model/MapTest - */ - constructor() { - - MapTest.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 MapTest from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MapTest} obj Optional instance to populate. - * @return {module:model/MapTest} The populated MapTest instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new MapTest(); - - if (data.hasOwnProperty('map_map_of_string')) { - obj['map_map_of_string'] = ApiClient.convertToType(data['map_map_of_string'], {'String': {'String': 'String'}}); - } - if (data.hasOwnProperty('map_of_enum_string')) { - obj['map_of_enum_string'] = ApiClient.convertToType(data['map_of_enum_string'], {'String': 'String'}); - } - if (data.hasOwnProperty('direct_map')) { - obj['direct_map'] = ApiClient.convertToType(data['direct_map'], {'String': 'Boolean'}); - } - if (data.hasOwnProperty('indirect_map')) { - obj['indirect_map'] = ApiClient.convertToType(data['indirect_map'], {'String': 'Boolean'}); - } - } - return obj; - } - - -} - -/** - * @member {Object.>} map_map_of_string - */ -MapTest.prototype['map_map_of_string'] = undefined; - -/** - * @member {Object.} map_of_enum_string - */ -MapTest.prototype['map_of_enum_string'] = undefined; - -/** - * @member {Object.} direct_map - */ -MapTest.prototype['direct_map'] = undefined; - -/** - * @member {Object.} indirect_map - */ -MapTest.prototype['indirect_map'] = undefined; - - - - - -/** - * Allowed values for the inner property. - * @enum {String} - * @readonly - */ -MapTest['InnerEnum'] = { - - /** - * value: "UPPER" - * @const - */ - "UPPER": "UPPER", - - /** - * value: "lower" - * @const - */ - "lower": "lower" -}; - - - -export default MapTest; - diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/MixedPropertiesAndAdditionalPropertiesClass.js b/samples/openapi3/client/petstore/javascript-es6/src/model/MixedPropertiesAndAdditionalPropertiesClass.js deleted file mode 100644 index 7cd9ca844f9e..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/MixedPropertiesAndAdditionalPropertiesClass.js +++ /dev/null @@ -1,88 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import Animal from './Animal'; - -/** - * The MixedPropertiesAndAdditionalPropertiesClass model module. - * @module model/MixedPropertiesAndAdditionalPropertiesClass - * @version 1.0.0 - */ -class MixedPropertiesAndAdditionalPropertiesClass { - /** - * Constructs a new MixedPropertiesAndAdditionalPropertiesClass. - * @alias module:model/MixedPropertiesAndAdditionalPropertiesClass - */ - constructor() { - - MixedPropertiesAndAdditionalPropertiesClass.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 MixedPropertiesAndAdditionalPropertiesClass 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/MixedPropertiesAndAdditionalPropertiesClass} obj Optional instance to populate. - * @return {module:model/MixedPropertiesAndAdditionalPropertiesClass} The populated MixedPropertiesAndAdditionalPropertiesClass instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new MixedPropertiesAndAdditionalPropertiesClass(); - - if (data.hasOwnProperty('uuid')) { - obj['uuid'] = ApiClient.convertToType(data['uuid'], 'String'); - } - if (data.hasOwnProperty('dateTime')) { - obj['dateTime'] = ApiClient.convertToType(data['dateTime'], 'Date'); - } - if (data.hasOwnProperty('map')) { - obj['map'] = ApiClient.convertToType(data['map'], {'String': Animal}); - } - } - return obj; - } - - -} - -/** - * @member {String} uuid - */ -MixedPropertiesAndAdditionalPropertiesClass.prototype['uuid'] = undefined; - -/** - * @member {Date} dateTime - */ -MixedPropertiesAndAdditionalPropertiesClass.prototype['dateTime'] = undefined; - -/** - * @member {Object.} map - */ -MixedPropertiesAndAdditionalPropertiesClass.prototype['map'] = undefined; - - - - - - -export default MixedPropertiesAndAdditionalPropertiesClass; - diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/Model200Response.js b/samples/openapi3/client/petstore/javascript-es6/src/model/Model200Response.js deleted file mode 100644 index 88daaba2ebb0..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/Model200Response.js +++ /dev/null @@ -1,80 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The Model200Response model module. - * @module model/Model200Response - * @version 1.0.0 - */ -class Model200Response { - /** - * Constructs a new Model200Response. - * Model for testing model name starting with number - * @alias module:model/Model200Response - */ - constructor() { - - Model200Response.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 Model200Response 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/Model200Response} obj Optional instance to populate. - * @return {module:model/Model200Response} The populated Model200Response instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new Model200Response(); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'Number'); - } - if (data.hasOwnProperty('class')) { - obj['class'] = ApiClient.convertToType(data['class'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {Number} name - */ -Model200Response.prototype['name'] = undefined; - -/** - * @member {String} class - */ -Model200Response.prototype['class'] = undefined; - - - - - - -export default Model200Response; - diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/ModelReturn.js b/samples/openapi3/client/petstore/javascript-es6/src/model/ModelReturn.js deleted file mode 100644 index bdfe578288a2..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/ModelReturn.js +++ /dev/null @@ -1,72 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ModelReturn model module. - * @module model/ModelReturn - * @version 1.0.0 - */ -class ModelReturn { - /** - * Constructs a new ModelReturn. - * Model for testing reserved words - * @alias module:model/ModelReturn - */ - constructor() { - - ModelReturn.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 ModelReturn 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/ModelReturn} obj Optional instance to populate. - * @return {module:model/ModelReturn} The populated ModelReturn instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ModelReturn(); - - if (data.hasOwnProperty('return')) { - obj['return'] = ApiClient.convertToType(data['return'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {Number} return - */ -ModelReturn.prototype['return'] = undefined; - - - - - - -export default ModelReturn; - diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/Name.js b/samples/openapi3/client/petstore/javascript-es6/src/model/Name.js deleted file mode 100644 index 740d4bad15b3..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/Name.js +++ /dev/null @@ -1,98 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The Name model module. - * @module model/Name - * @version 1.0.0 - */ -class Name { - /** - * Constructs a new Name. - * Model for testing model name same as property name - * @alias module:model/Name - * @param name {Number} - */ - constructor(name) { - - Name.initialize(this, name); - } - - /** - * 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, name) { - obj['name'] = name; - } - - /** - * Constructs a Name 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/Name} obj Optional instance to populate. - * @return {module:model/Name} The populated Name instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new Name(); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'Number'); - } - if (data.hasOwnProperty('snake_case')) { - obj['snake_case'] = ApiClient.convertToType(data['snake_case'], 'Number'); - } - if (data.hasOwnProperty('property')) { - obj['property'] = ApiClient.convertToType(data['property'], 'String'); - } - if (data.hasOwnProperty('123Number')) { - obj['123Number'] = ApiClient.convertToType(data['123Number'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {Number} name - */ -Name.prototype['name'] = undefined; - -/** - * @member {Number} snake_case - */ -Name.prototype['snake_case'] = undefined; - -/** - * @member {String} property - */ -Name.prototype['property'] = undefined; - -/** - * @member {Number} 123Number - */ -Name.prototype['123Number'] = undefined; - - - - - - -export default Name; - diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/NullableClass.js b/samples/openapi3/client/petstore/javascript-es6/src/model/NullableClass.js deleted file mode 100644 index 12a0f2509b6c..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/NullableClass.js +++ /dev/null @@ -1,163 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The NullableClass model module. - * @module model/NullableClass - * @version 1.0.0 - */ -class NullableClass { - /** - * Constructs a new NullableClass. - * @alias module:model/NullableClass - * @extends Object - */ - constructor() { - - NullableClass.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 NullableClass 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/NullableClass} obj Optional instance to populate. - * @return {module:model/NullableClass} The populated NullableClass instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new NullableClass(); - - ApiClient.constructFromObject(data, obj, 'Object'); - - - if (data.hasOwnProperty('integer_prop')) { - obj['integer_prop'] = ApiClient.convertToType(data['integer_prop'], 'Number'); - } - if (data.hasOwnProperty('number_prop')) { - obj['number_prop'] = ApiClient.convertToType(data['number_prop'], 'Number'); - } - if (data.hasOwnProperty('boolean_prop')) { - obj['boolean_prop'] = ApiClient.convertToType(data['boolean_prop'], 'Boolean'); - } - if (data.hasOwnProperty('string_prop')) { - obj['string_prop'] = ApiClient.convertToType(data['string_prop'], 'String'); - } - if (data.hasOwnProperty('date_prop')) { - obj['date_prop'] = ApiClient.convertToType(data['date_prop'], 'Date'); - } - if (data.hasOwnProperty('datetime_prop')) { - obj['datetime_prop'] = ApiClient.convertToType(data['datetime_prop'], 'Date'); - } - if (data.hasOwnProperty('array_nullable_prop')) { - obj['array_nullable_prop'] = ApiClient.convertToType(data['array_nullable_prop'], [Object]); - } - if (data.hasOwnProperty('array_and_items_nullable_prop')) { - obj['array_and_items_nullable_prop'] = ApiClient.convertToType(data['array_and_items_nullable_prop'], [Object]); - } - if (data.hasOwnProperty('array_items_nullable')) { - obj['array_items_nullable'] = ApiClient.convertToType(data['array_items_nullable'], [Object]); - } - if (data.hasOwnProperty('object_nullable_prop')) { - obj['object_nullable_prop'] = ApiClient.convertToType(data['object_nullable_prop'], {'String': Object}); - } - if (data.hasOwnProperty('object_and_items_nullable_prop')) { - obj['object_and_items_nullable_prop'] = ApiClient.convertToType(data['object_and_items_nullable_prop'], {'String': Object}); - } - if (data.hasOwnProperty('object_items_nullable')) { - obj['object_items_nullable'] = ApiClient.convertToType(data['object_items_nullable'], {'String': Object}); - } - } - return obj; - } - - -} - -/** - * @member {Number} integer_prop - */ -NullableClass.prototype['integer_prop'] = undefined; - -/** - * @member {Number} number_prop - */ -NullableClass.prototype['number_prop'] = undefined; - -/** - * @member {Boolean} boolean_prop - */ -NullableClass.prototype['boolean_prop'] = undefined; - -/** - * @member {String} string_prop - */ -NullableClass.prototype['string_prop'] = undefined; - -/** - * @member {Date} date_prop - */ -NullableClass.prototype['date_prop'] = undefined; - -/** - * @member {Date} datetime_prop - */ -NullableClass.prototype['datetime_prop'] = undefined; - -/** - * @member {Array.} array_nullable_prop - */ -NullableClass.prototype['array_nullable_prop'] = undefined; - -/** - * @member {Array.} array_and_items_nullable_prop - */ -NullableClass.prototype['array_and_items_nullable_prop'] = undefined; - -/** - * @member {Array.} array_items_nullable - */ -NullableClass.prototype['array_items_nullable'] = undefined; - -/** - * @member {Object.} object_nullable_prop - */ -NullableClass.prototype['object_nullable_prop'] = undefined; - -/** - * @member {Object.} object_and_items_nullable_prop - */ -NullableClass.prototype['object_and_items_nullable_prop'] = undefined; - -/** - * @member {Object.} object_items_nullable - */ -NullableClass.prototype['object_items_nullable'] = undefined; - - - - - - -export default NullableClass; - diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/NumberOnly.js b/samples/openapi3/client/petstore/javascript-es6/src/model/NumberOnly.js deleted file mode 100644 index 449e08bd9a98..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/NumberOnly.js +++ /dev/null @@ -1,71 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The NumberOnly model module. - * @module model/NumberOnly - * @version 1.0.0 - */ -class NumberOnly { - /** - * Constructs a new NumberOnly. - * @alias module:model/NumberOnly - */ - constructor() { - - NumberOnly.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 NumberOnly from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/NumberOnly} obj Optional instance to populate. - * @return {module:model/NumberOnly} The populated NumberOnly instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new NumberOnly(); - - if (data.hasOwnProperty('JustNumber')) { - obj['JustNumber'] = ApiClient.convertToType(data['JustNumber'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {Number} JustNumber - */ -NumberOnly.prototype['JustNumber'] = undefined; - - - - - - -export default NumberOnly; - diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/Order.js b/samples/openapi3/client/petstore/javascript-es6/src/model/Order.js deleted file mode 100644 index 1d28748e822c..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/Order.js +++ /dev/null @@ -1,140 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The Order model module. - * @module model/Order - * @version 1.0.0 - */ -class Order { - /** - * Constructs a new Order. - * @alias module:model/Order - */ - constructor() { - - Order.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 Order 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/Order} obj Optional instance to populate. - * @return {module:model/Order} The populated Order instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new Order(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - } - if (data.hasOwnProperty('petId')) { - obj['petId'] = ApiClient.convertToType(data['petId'], 'Number'); - } - if (data.hasOwnProperty('quantity')) { - obj['quantity'] = ApiClient.convertToType(data['quantity'], 'Number'); - } - if (data.hasOwnProperty('shipDate')) { - obj['shipDate'] = ApiClient.convertToType(data['shipDate'], 'Date'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - } - if (data.hasOwnProperty('complete')) { - obj['complete'] = ApiClient.convertToType(data['complete'], 'Boolean'); - } - } - return obj; - } - - -} - -/** - * @member {Number} id - */ -Order.prototype['id'] = undefined; - -/** - * @member {Number} petId - */ -Order.prototype['petId'] = undefined; - -/** - * @member {Number} quantity - */ -Order.prototype['quantity'] = undefined; - -/** - * @member {Date} shipDate - */ -Order.prototype['shipDate'] = undefined; - -/** - * Order Status - * @member {module:model/Order.StatusEnum} status - */ -Order.prototype['status'] = undefined; - -/** - * @member {Boolean} complete - * @default false - */ -Order.prototype['complete'] = false; - - - - - -/** - * Allowed values for the status property. - * @enum {String} - * @readonly - */ -Order['StatusEnum'] = { - - /** - * value: "placed" - * @const - */ - "placed": "placed", - - /** - * value: "approved" - * @const - */ - "approved": "approved", - - /** - * value: "delivered" - * @const - */ - "delivered": "delivered" -}; - - - -export default Order; - diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/OuterComposite.js b/samples/openapi3/client/petstore/javascript-es6/src/model/OuterComposite.js deleted file mode 100644 index cc4ed6c172d9..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/OuterComposite.js +++ /dev/null @@ -1,87 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The OuterComposite model module. - * @module model/OuterComposite - * @version 1.0.0 - */ -class OuterComposite { - /** - * Constructs a new OuterComposite. - * @alias module:model/OuterComposite - */ - constructor() { - - OuterComposite.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 OuterComposite 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/OuterComposite} obj Optional instance to populate. - * @return {module:model/OuterComposite} The populated OuterComposite instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OuterComposite(); - - if (data.hasOwnProperty('my_number')) { - obj['my_number'] = ApiClient.convertToType(data['my_number'], 'Number'); - } - if (data.hasOwnProperty('my_string')) { - obj['my_string'] = ApiClient.convertToType(data['my_string'], 'String'); - } - if (data.hasOwnProperty('my_boolean')) { - obj['my_boolean'] = ApiClient.convertToType(data['my_boolean'], 'Boolean'); - } - } - return obj; - } - - -} - -/** - * @member {Number} my_number - */ -OuterComposite.prototype['my_number'] = undefined; - -/** - * @member {String} my_string - */ -OuterComposite.prototype['my_string'] = undefined; - -/** - * @member {Boolean} my_boolean - */ -OuterComposite.prototype['my_boolean'] = undefined; - - - - - - -export default OuterComposite; - diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/OuterEnum.js b/samples/openapi3/client/petstore/javascript-es6/src/model/OuterEnum.js deleted file mode 100644 index 12fdff98026b..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/OuterEnum.js +++ /dev/null @@ -1,53 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -/** -* Enum class OuterEnum. -* @enum {} -* @readonly -*/ -export default class OuterEnum { - - /** - * value: "placed" - * @const - */ - "placed" = "placed"; - - - /** - * value: "approved" - * @const - */ - "approved" = "approved"; - - - /** - * value: "delivered" - * @const - */ - "delivered" = "delivered"; - - - - /** - * Returns a OuterEnum enum value from a Javascript object name. - * @param {Object} data The plain JavaScript object containing the name of the enum value. - * @return {module:model/OuterEnum} The enum OuterEnum value. - */ - static constructFromObject(object) { - return object; - } -} - diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/OuterEnumDefaultValue.js b/samples/openapi3/client/petstore/javascript-es6/src/model/OuterEnumDefaultValue.js deleted file mode 100644 index a65b1dd0a6be..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/OuterEnumDefaultValue.js +++ /dev/null @@ -1,53 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -/** -* Enum class OuterEnumDefaultValue. -* @enum {} -* @readonly -*/ -export default class OuterEnumDefaultValue { - - /** - * value: "placed" - * @const - */ - "placed" = "placed"; - - - /** - * value: "approved" - * @const - */ - "approved" = "approved"; - - - /** - * value: "delivered" - * @const - */ - "delivered" = "delivered"; - - - - /** - * Returns a OuterEnumDefaultValue enum value from a Javascript object name. - * @param {Object} data The plain JavaScript object containing the name of the enum value. - * @return {module:model/OuterEnumDefaultValue} The enum OuterEnumDefaultValue value. - */ - static constructFromObject(object) { - return object; - } -} - diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/OuterEnumInteger.js b/samples/openapi3/client/petstore/javascript-es6/src/model/OuterEnumInteger.js deleted file mode 100644 index b6fc29568a02..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/OuterEnumInteger.js +++ /dev/null @@ -1,53 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -/** -* Enum class OuterEnumInteger. -* @enum {} -* @readonly -*/ -export default class OuterEnumInteger { - - /** - * value: 0 - * @const - */ - "0" = 0; - - - /** - * value: 1 - * @const - */ - "1" = 1; - - - /** - * value: 2 - * @const - */ - "2" = 2; - - - - /** - * Returns a OuterEnumInteger enum value from a Javascript object name. - * @param {Object} data The plain JavaScript object containing the name of the enum value. - * @return {module:model/OuterEnumInteger} The enum OuterEnumInteger value. - */ - static constructFromObject(object) { - return object; - } -} - diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/OuterEnumIntegerDefaultValue.js b/samples/openapi3/client/petstore/javascript-es6/src/model/OuterEnumIntegerDefaultValue.js deleted file mode 100644 index 86a9d6b9467e..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/OuterEnumIntegerDefaultValue.js +++ /dev/null @@ -1,53 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -/** -* Enum class OuterEnumIntegerDefaultValue. -* @enum {} -* @readonly -*/ -export default class OuterEnumIntegerDefaultValue { - - /** - * value: 0 - * @const - */ - "0" = 0; - - - /** - * value: 1 - * @const - */ - "1" = 1; - - - /** - * value: 2 - * @const - */ - "2" = 2; - - - - /** - * Returns a OuterEnumIntegerDefaultValue enum value from a Javascript object name. - * @param {Object} data The plain JavaScript object containing the name of the enum value. - * @return {module:model/OuterEnumIntegerDefaultValue} The enum OuterEnumIntegerDefaultValue value. - */ - static constructFromObject(object) { - return object; - } -} - diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/Pet.js b/samples/openapi3/client/petstore/javascript-es6/src/model/Pet.js deleted file mode 100644 index b88e5d869f62..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/Pet.js +++ /dev/null @@ -1,145 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import Category from './Category'; -import Tag from './Tag'; - -/** - * The Pet model module. - * @module model/Pet - * @version 1.0.0 - */ -class Pet { - /** - * Constructs a new Pet. - * @alias module:model/Pet - * @param name {String} - * @param photoUrls {Array.} - */ - constructor(name, photoUrls) { - - Pet.initialize(this, name, photoUrls); - } - - /** - * 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, name, photoUrls) { - obj['name'] = name; - obj['photoUrls'] = photoUrls; - } - - /** - * Constructs a Pet 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/Pet} obj Optional instance to populate. - * @return {module:model/Pet} The populated Pet instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new Pet(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - } - if (data.hasOwnProperty('category')) { - obj['category'] = Category.constructFromObject(data['category']); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('photoUrls')) { - obj['photoUrls'] = ApiClient.convertToType(data['photoUrls'], ['String']); - } - if (data.hasOwnProperty('tags')) { - obj['tags'] = ApiClient.convertToType(data['tags'], [Tag]); - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {Number} id - */ -Pet.prototype['id'] = undefined; - -/** - * @member {module:model/Category} category - */ -Pet.prototype['category'] = undefined; - -/** - * @member {String} name - */ -Pet.prototype['name'] = undefined; - -/** - * @member {Array.} photoUrls - */ -Pet.prototype['photoUrls'] = undefined; - -/** - * @member {Array.} tags - */ -Pet.prototype['tags'] = undefined; - -/** - * pet status in the store - * @member {module:model/Pet.StatusEnum} status - */ -Pet.prototype['status'] = undefined; - - - - - -/** - * Allowed values for the status property. - * @enum {String} - * @readonly - */ -Pet['StatusEnum'] = { - - /** - * value: "available" - * @const - */ - "available": "available", - - /** - * value: "pending" - * @const - */ - "pending": "pending", - - /** - * value: "sold" - * @const - */ - "sold": "sold" -}; - - - -export default Pet; - diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/ReadOnlyFirst.js b/samples/openapi3/client/petstore/javascript-es6/src/model/ReadOnlyFirst.js deleted file mode 100644 index 8e2a39cf2aeb..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/ReadOnlyFirst.js +++ /dev/null @@ -1,79 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ReadOnlyFirst model module. - * @module model/ReadOnlyFirst - * @version 1.0.0 - */ -class ReadOnlyFirst { - /** - * Constructs a new ReadOnlyFirst. - * @alias module:model/ReadOnlyFirst - */ - constructor() { - - ReadOnlyFirst.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 ReadOnlyFirst 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/ReadOnlyFirst} obj Optional instance to populate. - * @return {module:model/ReadOnlyFirst} The populated ReadOnlyFirst instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ReadOnlyFirst(); - - if (data.hasOwnProperty('bar')) { - obj['bar'] = ApiClient.convertToType(data['bar'], 'String'); - } - if (data.hasOwnProperty('baz')) { - obj['baz'] = ApiClient.convertToType(data['baz'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {String} bar - */ -ReadOnlyFirst.prototype['bar'] = undefined; - -/** - * @member {String} baz - */ -ReadOnlyFirst.prototype['baz'] = undefined; - - - - - - -export default ReadOnlyFirst; - diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/SpecialModelName.js b/samples/openapi3/client/petstore/javascript-es6/src/model/SpecialModelName.js deleted file mode 100644 index 45ba7d7ea09c..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/SpecialModelName.js +++ /dev/null @@ -1,71 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The SpecialModelName model module. - * @module model/SpecialModelName - * @version 1.0.0 - */ -class SpecialModelName { - /** - * Constructs a new SpecialModelName. - * @alias module:model/SpecialModelName - */ - constructor() { - - SpecialModelName.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 SpecialModelName 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/SpecialModelName} obj Optional instance to populate. - * @return {module:model/SpecialModelName} The populated SpecialModelName instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SpecialModelName(); - - if (data.hasOwnProperty('$special[property.name]')) { - obj['$special[property.name]'] = ApiClient.convertToType(data['$special[property.name]'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {Number} $special[property.name] - */ -SpecialModelName.prototype['$special[property.name]'] = undefined; - - - - - - -export default SpecialModelName; - diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/Tag.js b/samples/openapi3/client/petstore/javascript-es6/src/model/Tag.js deleted file mode 100644 index 3330530c0c23..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/Tag.js +++ /dev/null @@ -1,79 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The Tag model module. - * @module model/Tag - * @version 1.0.0 - */ -class Tag { - /** - * Constructs a new Tag. - * @alias module:model/Tag - */ - constructor() { - - Tag.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 Tag 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/Tag} obj Optional instance to populate. - * @return {module:model/Tag} The populated Tag instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new Tag(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {Number} id - */ -Tag.prototype['id'] = undefined; - -/** - * @member {String} name - */ -Tag.prototype['name'] = undefined; - - - - - - -export default Tag; - diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/User.js b/samples/openapi3/client/petstore/javascript-es6/src/model/User.js deleted file mode 100644 index 473bf7c78bc4..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/User.js +++ /dev/null @@ -1,128 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The User model module. - * @module model/User - * @version 1.0.0 - */ -class User { - /** - * Constructs a new User. - * @alias module:model/User - */ - constructor() { - - User.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 User 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/User} obj Optional instance to populate. - * @return {module:model/User} The populated User instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new User(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - } - if (data.hasOwnProperty('username')) { - obj['username'] = ApiClient.convertToType(data['username'], 'String'); - } - if (data.hasOwnProperty('firstName')) { - obj['firstName'] = ApiClient.convertToType(data['firstName'], 'String'); - } - if (data.hasOwnProperty('lastName')) { - obj['lastName'] = ApiClient.convertToType(data['lastName'], 'String'); - } - if (data.hasOwnProperty('email')) { - obj['email'] = ApiClient.convertToType(data['email'], 'String'); - } - if (data.hasOwnProperty('password')) { - obj['password'] = ApiClient.convertToType(data['password'], 'String'); - } - if (data.hasOwnProperty('phone')) { - obj['phone'] = ApiClient.convertToType(data['phone'], 'String'); - } - if (data.hasOwnProperty('userStatus')) { - obj['userStatus'] = ApiClient.convertToType(data['userStatus'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {Number} id - */ -User.prototype['id'] = undefined; - -/** - * @member {String} username - */ -User.prototype['username'] = undefined; - -/** - * @member {String} firstName - */ -User.prototype['firstName'] = undefined; - -/** - * @member {String} lastName - */ -User.prototype['lastName'] = undefined; - -/** - * @member {String} email - */ -User.prototype['email'] = undefined; - -/** - * @member {String} password - */ -User.prototype['password'] = undefined; - -/** - * @member {String} phone - */ -User.prototype['phone'] = undefined; - -/** - * User Status - * @member {Number} userStatus - */ -User.prototype['userStatus'] = undefined; - - - - - - -export default User; - diff --git a/samples/openapi3/client/petstore/javascript-es6/test/api/AnotherFakeApi.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/api/AnotherFakeApi.spec.js deleted file mode 100644 index 3212de66056c..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/api/AnotherFakeApi.spec.js +++ /dev/null @@ -1,63 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.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('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(); - //}); - done(); - }); - }); - }); - -})); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/api/DefaultApi.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/api/DefaultApi.spec.js deleted file mode 100644 index 34ef8d5c2e0c..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/api/DefaultApi.spec.js +++ /dev/null @@ -1,63 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.DefaultApi(); - }); - - 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('DefaultApi', function() { - describe('fooGet', function() { - it('should call fooGet successfully', function(done) { - //uncomment below and update the code to test fooGet - //instance.fooGet(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/api/FakeApi.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/api/FakeApi.spec.js deleted file mode 100644 index 7c9f5a71e55e..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/api/FakeApi.spec.js +++ /dev/null @@ -1,203 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.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('fakeHealthGet', function() { - it('should call fakeHealthGet successfully', function(done) { - //uncomment below and update the code to test fakeHealthGet - //instance.fakeHealthGet(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('fakeHttpSignatureTest', function() { - it('should call fakeHttpSignatureTest successfully', function(done) { - //uncomment below and update the code to test fakeHttpSignatureTest - //instance.fakeHttpSignatureTest(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(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(); - //}); - done(); - }); - }); - describe('testQueryParameterCollectionFormat', function() { - it('should call testQueryParameterCollectionFormat successfully', function(done) { - //uncomment below and update the code to test testQueryParameterCollectionFormat - //instance.testQueryParameterCollectionFormat(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/api/FakeClassnameTags123Api.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/api/FakeClassnameTags123Api.spec.js deleted file mode 100644 index ebe401b08d9a..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/api/FakeClassnameTags123Api.spec.js +++ /dev/null @@ -1,63 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.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/openapi3/client/petstore/javascript-es6/test/api/PetApi.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/api/PetApi.spec.js deleted file mode 100644 index 16591a407d97..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/api/PetApi.spec.js +++ /dev/null @@ -1,143 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.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(); - }); - }); - 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/openapi3/client/petstore/javascript-es6/test/api/StoreApi.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/api/StoreApi.spec.js deleted file mode 100644 index 2ad9823032b7..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/api/StoreApi.spec.js +++ /dev/null @@ -1,93 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.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/openapi3/client/petstore/javascript-es6/test/api/UserApi.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/api/UserApi.spec.js deleted file mode 100644 index feab9370b16f..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/api/UserApi.spec.js +++ /dev/null @@ -1,133 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.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/openapi3/client/petstore/javascript-es6/test/model/AdditionalPropertiesClass.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/AdditionalPropertiesClass.spec.js deleted file mode 100644 index d316c448dd51..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/AdditionalPropertiesClass.spec.js +++ /dev/null @@ -1,71 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.AdditionalPropertiesClass(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('AdditionalPropertiesClass', function() { - it('should create an instance of AdditionalPropertiesClass', function() { - // uncomment below and update the code to test AdditionalPropertiesClass - //var 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 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(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/Animal.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/Animal.spec.js deleted file mode 100644 index cc729e13ba08..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/Animal.spec.js +++ /dev/null @@ -1,71 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.Animal(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Animal', function() { - it('should create an instance of Animal', function() { - // uncomment below and update the code to test Animal - //var 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 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(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/ApiResponse.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/ApiResponse.spec.js deleted file mode 100644 index e9da1c397490..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/ApiResponse.spec.js +++ /dev/null @@ -1,77 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.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 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(); - //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(); - //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(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/ArrayOfArrayOfNumberOnly.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/ArrayOfArrayOfNumberOnly.spec.js deleted file mode 100644 index 8c1cdf356fc6..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/ArrayOfArrayOfNumberOnly.spec.js +++ /dev/null @@ -1,65 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.ArrayOfArrayOfNumberOnly(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ArrayOfArrayOfNumberOnly', function() { - it('should create an instance of ArrayOfArrayOfNumberOnly', function() { - // uncomment below and update the code to test ArrayOfArrayOfNumberOnly - //var 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 OpenApiPetstore.ArrayOfArrayOfNumberOnly(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/ArrayOfNumberOnly.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/ArrayOfNumberOnly.spec.js deleted file mode 100644 index 70dc490e4584..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/ArrayOfNumberOnly.spec.js +++ /dev/null @@ -1,65 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.ArrayOfNumberOnly(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ArrayOfNumberOnly', function() { - it('should create an instance of ArrayOfNumberOnly', function() { - // uncomment below and update the code to test ArrayOfNumberOnly - //var 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 OpenApiPetstore.ArrayOfNumberOnly(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/ArrayTest.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/ArrayTest.spec.js deleted file mode 100644 index 3df2ea0d575a..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/ArrayTest.spec.js +++ /dev/null @@ -1,77 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.ArrayTest(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ArrayTest', function() { - it('should create an instance of ArrayTest', function() { - // uncomment below and update the code to test ArrayTest - //var 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 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(); - //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(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/Capitalization.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/Capitalization.spec.js deleted file mode 100644 index dcb9d6d182e0..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/Capitalization.spec.js +++ /dev/null @@ -1,95 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.Capitalization(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Capitalization', function() { - it('should create an instance of Capitalization', function() { - // uncomment below and update the code to test Capitalization - //var 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 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(); - //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(); - //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(); - //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(); - //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(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/Cat.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/Cat.spec.js deleted file mode 100644 index 1b7182a13022..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/Cat.spec.js +++ /dev/null @@ -1,65 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.Cat(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Cat', function() { - it('should create an instance of Cat', function() { - // uncomment below and update the code to test Cat - //var 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 OpenApiPetstore.Cat(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/CatAllOf.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/CatAllOf.spec.js deleted file mode 100644 index be4cf8b972ae..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/CatAllOf.spec.js +++ /dev/null @@ -1,65 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.CatAllOf(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('CatAllOf', function() { - it('should create an instance of CatAllOf', function() { - // uncomment below and update the code to test CatAllOf - //var instane = new OpenApiPetstore.CatAllOf(); - //expect(instance).to.be.a(OpenApiPetstore.CatAllOf); - }); - - it('should have the property declawed (base name: "declawed")', function() { - // uncomment below and update the code to test the property declawed - //var instane = new OpenApiPetstore.CatAllOf(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/Category.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/Category.spec.js deleted file mode 100644 index e0a992aa512a..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/Category.spec.js +++ /dev/null @@ -1,71 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.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 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(); - //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(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/ClassModel.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/ClassModel.spec.js deleted file mode 100644 index 0f2d200d0ba2..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/ClassModel.spec.js +++ /dev/null @@ -1,65 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.ClassModel(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ClassModel', function() { - it('should create an instance of ClassModel', function() { - // uncomment below and update the code to test ClassModel - //var 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 OpenApiPetstore.ClassModel(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/Client.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/Client.spec.js deleted file mode 100644 index 49a4400987bc..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/Client.spec.js +++ /dev/null @@ -1,65 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.Client(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Client', function() { - it('should create an instance of Client', function() { - // uncomment below and update the code to test Client - //var 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 OpenApiPetstore.Client(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/Dog.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/Dog.spec.js deleted file mode 100644 index eb919428d2fa..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/Dog.spec.js +++ /dev/null @@ -1,65 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.Dog(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Dog', function() { - it('should create an instance of Dog', function() { - // uncomment below and update the code to test Dog - //var 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 OpenApiPetstore.Dog(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/DogAllOf.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/DogAllOf.spec.js deleted file mode 100644 index 767e3b0071b9..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/DogAllOf.spec.js +++ /dev/null @@ -1,65 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.DogAllOf(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('DogAllOf', function() { - it('should create an instance of DogAllOf', function() { - // uncomment below and update the code to test DogAllOf - //var instane = new OpenApiPetstore.DogAllOf(); - //expect(instance).to.be.a(OpenApiPetstore.DogAllOf); - }); - - it('should have the property breed (base name: "breed")', function() { - // uncomment below and update the code to test the property breed - //var instane = new OpenApiPetstore.DogAllOf(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/EnumArrays.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/EnumArrays.spec.js deleted file mode 100644 index d176bddbafd1..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/EnumArrays.spec.js +++ /dev/null @@ -1,71 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.EnumArrays(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('EnumArrays', function() { - it('should create an instance of EnumArrays', function() { - // uncomment below and update the code to test EnumArrays - //var 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 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(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/EnumClass.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/EnumClass.spec.js deleted file mode 100644 index 92ceee37ad30..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/EnumClass.spec.js +++ /dev/null @@ -1,58 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('EnumClass', function() { - it('should create an instance of EnumClass', function() { - // uncomment below and update the code to test EnumClass - //var instane = new OpenApiPetstore.EnumClass(); - //expect(instance).to.be.a(OpenApiPetstore.EnumClass); - }); - - }); - -})); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/EnumTest.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/EnumTest.spec.js deleted file mode 100644 index fdfd70a772ee..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/EnumTest.spec.js +++ /dev/null @@ -1,107 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.EnumTest(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('EnumTest', function() { - it('should create an instance of EnumTest', function() { - // uncomment below and update the code to test EnumTest - //var 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 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 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(); - //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 OpenApiPetstore.EnumTest(); - //expect(instance).to.be(); - }); - - it('should have the property outerEnumInteger (base name: "outerEnumInteger")', function() { - // uncomment below and update the code to test the property outerEnumInteger - //var instane = new OpenApiPetstore.EnumTest(); - //expect(instance).to.be(); - }); - - it('should have the property outerEnumDefaultValue (base name: "outerEnumDefaultValue")', function() { - // uncomment below and update the code to test the property outerEnumDefaultValue - //var instane = new OpenApiPetstore.EnumTest(); - //expect(instance).to.be(); - }); - - it('should have the property outerEnumIntegerDefaultValue (base name: "outerEnumIntegerDefaultValue")', function() { - // uncomment below and update the code to test the property outerEnumIntegerDefaultValue - //var instane = new OpenApiPetstore.EnumTest(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/File.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/File.spec.js deleted file mode 100644 index 4be82b5b488d..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/File.spec.js +++ /dev/null @@ -1,65 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.File(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('File', function() { - it('should create an instance of File', function() { - // uncomment below and update the code to test File - //var instane = new OpenApiPetstore.File(); - //expect(instance).to.be.a(OpenApiPetstore.File); - }); - - it('should have the property sourceURI (base name: "sourceURI")', function() { - // uncomment below and update the code to test the property sourceURI - //var instane = new OpenApiPetstore.File(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/FileSchemaTestClass.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/FileSchemaTestClass.spec.js deleted file mode 100644 index 31c80909bff9..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/FileSchemaTestClass.spec.js +++ /dev/null @@ -1,71 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.FileSchemaTestClass(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('FileSchemaTestClass', function() { - it('should create an instance of FileSchemaTestClass', function() { - // uncomment below and update the code to test FileSchemaTestClass - //var instane = new OpenApiPetstore.FileSchemaTestClass(); - //expect(instance).to.be.a(OpenApiPetstore.FileSchemaTestClass); - }); - - it('should have the property file (base name: "file")', function() { - // uncomment below and update the code to test the property file - //var instane = new OpenApiPetstore.FileSchemaTestClass(); - //expect(instance).to.be(); - }); - - it('should have the property files (base name: "files")', function() { - // uncomment below and update the code to test the property files - //var instane = new OpenApiPetstore.FileSchemaTestClass(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/Foo.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/Foo.spec.js deleted file mode 100644 index 7460803792c8..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/Foo.spec.js +++ /dev/null @@ -1,65 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.Foo(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Foo', function() { - it('should create an instance of Foo', function() { - // uncomment below and update the code to test Foo - //var instane = new OpenApiPetstore.Foo(); - //expect(instance).to.be.a(OpenApiPetstore.Foo); - }); - - it('should have the property bar (base name: "bar")', function() { - // uncomment below and update the code to test the property bar - //var instane = new OpenApiPetstore.Foo(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/FormatTest.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/FormatTest.spec.js deleted file mode 100644 index cdff66632dc7..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/FormatTest.spec.js +++ /dev/null @@ -1,149 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.FormatTest(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('FormatTest', function() { - it('should create an instance of FormatTest', function() { - // uncomment below and update the code to test FormatTest - //var 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 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(); - //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(); - //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(); - //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(); - //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(); - //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(); - //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(); - //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(); - //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(); - //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(); - //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(); - //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(); - //expect(instance).to.be(); - }); - - it('should have the property patternWithDigits (base name: "pattern_with_digits")', function() { - // uncomment below and update the code to test the property patternWithDigits - //var instane = new OpenApiPetstore.FormatTest(); - //expect(instance).to.be(); - }); - - it('should have the property patternWithDigitsAndDelimiter (base name: "pattern_with_digits_and_delimiter")', function() { - // uncomment below and update the code to test the property patternWithDigitsAndDelimiter - //var instane = new OpenApiPetstore.FormatTest(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/HasOnlyReadOnly.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/HasOnlyReadOnly.spec.js deleted file mode 100644 index 05235ef7b594..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/HasOnlyReadOnly.spec.js +++ /dev/null @@ -1,71 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.HasOnlyReadOnly(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('HasOnlyReadOnly', function() { - it('should create an instance of HasOnlyReadOnly', function() { - // uncomment below and update the code to test HasOnlyReadOnly - //var 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 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(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/HealthCheckResult.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/HealthCheckResult.spec.js deleted file mode 100644 index 7399370b1461..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/HealthCheckResult.spec.js +++ /dev/null @@ -1,65 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.HealthCheckResult(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('HealthCheckResult', function() { - it('should create an instance of HealthCheckResult', function() { - // uncomment below and update the code to test HealthCheckResult - //var instane = new OpenApiPetstore.HealthCheckResult(); - //expect(instance).to.be.a(OpenApiPetstore.HealthCheckResult); - }); - - it('should have the property nullableMessage (base name: "NullableMessage")', function() { - // uncomment below and update the code to test the property nullableMessage - //var instane = new OpenApiPetstore.HealthCheckResult(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/InlineObject.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/InlineObject.spec.js deleted file mode 100644 index 9dd0a26e7607..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/InlineObject.spec.js +++ /dev/null @@ -1,71 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.InlineObject(); - }); - - 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('InlineObject', function() { - it('should create an instance of InlineObject', function() { - // uncomment below and update the code to test InlineObject - //var instane = new OpenApiPetstore.InlineObject(); - //expect(instance).to.be.a(OpenApiPetstore.InlineObject); - }); - - 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.InlineObject(); - //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.InlineObject(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/InlineObject1.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/InlineObject1.spec.js deleted file mode 100644 index 6a31acb18fb6..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/InlineObject1.spec.js +++ /dev/null @@ -1,71 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.InlineObject1(); - }); - - 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('InlineObject1', function() { - it('should create an instance of InlineObject1', function() { - // uncomment below and update the code to test InlineObject1 - //var instane = new OpenApiPetstore.InlineObject1(); - //expect(instance).to.be.a(OpenApiPetstore.InlineObject1); - }); - - it('should have the property additionalMetadata (base name: "additionalMetadata")', function() { - // uncomment below and update the code to test the property additionalMetadata - //var instane = new OpenApiPetstore.InlineObject1(); - //expect(instance).to.be(); - }); - - it('should have the property file (base name: "file")', function() { - // uncomment below and update the code to test the property file - //var instane = new OpenApiPetstore.InlineObject1(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/InlineObject2.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/InlineObject2.spec.js deleted file mode 100644 index 1d7da6eb6b36..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/InlineObject2.spec.js +++ /dev/null @@ -1,71 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.InlineObject2(); - }); - - 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('InlineObject2', function() { - it('should create an instance of InlineObject2', function() { - // uncomment below and update the code to test InlineObject2 - //var instane = new OpenApiPetstore.InlineObject2(); - //expect(instance).to.be.a(OpenApiPetstore.InlineObject2); - }); - - it('should have the property enumFormStringArray (base name: "enum_form_string_array")', function() { - // uncomment below and update the code to test the property enumFormStringArray - //var instane = new OpenApiPetstore.InlineObject2(); - //expect(instance).to.be(); - }); - - it('should have the property enumFormString (base name: "enum_form_string")', function() { - // uncomment below and update the code to test the property enumFormString - //var instane = new OpenApiPetstore.InlineObject2(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/InlineObject3.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/InlineObject3.spec.js deleted file mode 100644 index 5265e4462902..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/InlineObject3.spec.js +++ /dev/null @@ -1,143 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.InlineObject3(); - }); - - 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('InlineObject3', function() { - it('should create an instance of InlineObject3', function() { - // uncomment below and update the code to test InlineObject3 - //var instane = new OpenApiPetstore.InlineObject3(); - //expect(instance).to.be.a(OpenApiPetstore.InlineObject3); - }); - - 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.InlineObject3(); - //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.InlineObject3(); - //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.InlineObject3(); - //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.InlineObject3(); - //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.InlineObject3(); - //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.InlineObject3(); - //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.InlineObject3(); - //expect(instance).to.be(); - }); - - it('should have the property patternWithoutDelimiter (base name: "pattern_without_delimiter")', function() { - // uncomment below and update the code to test the property patternWithoutDelimiter - //var instane = new OpenApiPetstore.InlineObject3(); - //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.InlineObject3(); - //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.InlineObject3(); - //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.InlineObject3(); - //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.InlineObject3(); - //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.InlineObject3(); - //expect(instance).to.be(); - }); - - it('should have the property callback (base name: "callback")', function() { - // uncomment below and update the code to test the property callback - //var instane = new OpenApiPetstore.InlineObject3(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/InlineObject4.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/InlineObject4.spec.js deleted file mode 100644 index 0324721e117b..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/InlineObject4.spec.js +++ /dev/null @@ -1,71 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.InlineObject4(); - }); - - 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('InlineObject4', function() { - it('should create an instance of InlineObject4', function() { - // uncomment below and update the code to test InlineObject4 - //var instane = new OpenApiPetstore.InlineObject4(); - //expect(instance).to.be.a(OpenApiPetstore.InlineObject4); - }); - - it('should have the property param (base name: "param")', function() { - // uncomment below and update the code to test the property param - //var instane = new OpenApiPetstore.InlineObject4(); - //expect(instance).to.be(); - }); - - it('should have the property param2 (base name: "param2")', function() { - // uncomment below and update the code to test the property param2 - //var instane = new OpenApiPetstore.InlineObject4(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/InlineObject5.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/InlineObject5.spec.js deleted file mode 100644 index cabcbb1404c3..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/InlineObject5.spec.js +++ /dev/null @@ -1,71 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.InlineObject5(); - }); - - 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('InlineObject5', function() { - it('should create an instance of InlineObject5', function() { - // uncomment below and update the code to test InlineObject5 - //var instane = new OpenApiPetstore.InlineObject5(); - //expect(instance).to.be.a(OpenApiPetstore.InlineObject5); - }); - - it('should have the property additionalMetadata (base name: "additionalMetadata")', function() { - // uncomment below and update the code to test the property additionalMetadata - //var instane = new OpenApiPetstore.InlineObject5(); - //expect(instance).to.be(); - }); - - it('should have the property requiredFile (base name: "requiredFile")', function() { - // uncomment below and update the code to test the property requiredFile - //var instane = new OpenApiPetstore.InlineObject5(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/InlineResponseDefault.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/InlineResponseDefault.spec.js deleted file mode 100644 index bec91c162342..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/InlineResponseDefault.spec.js +++ /dev/null @@ -1,65 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.InlineResponseDefault(); - }); - - 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('InlineResponseDefault', function() { - it('should create an instance of InlineResponseDefault', function() { - // uncomment below and update the code to test InlineResponseDefault - //var instane = new OpenApiPetstore.InlineResponseDefault(); - //expect(instance).to.be.a(OpenApiPetstore.InlineResponseDefault); - }); - - 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.InlineResponseDefault(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/List.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/List.spec.js deleted file mode 100644 index 7609a9420d1a..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/List.spec.js +++ /dev/null @@ -1,65 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.List(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('List', function() { - it('should create an instance of List', function() { - // uncomment below and update the code to test List - //var 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 OpenApiPetstore.List(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/MapTest.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/MapTest.spec.js deleted file mode 100644 index 9b1016b7cc69..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/MapTest.spec.js +++ /dev/null @@ -1,83 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.MapTest(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('MapTest', function() { - it('should create an instance of MapTest', function() { - // uncomment below and update the code to test MapTest - //var 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 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(); - //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/openapi3/client/petstore/javascript-es6/test/model/MixedPropertiesAndAdditionalPropertiesClass.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/MixedPropertiesAndAdditionalPropertiesClass.spec.js deleted file mode 100644 index 60243bf3892a..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/MixedPropertiesAndAdditionalPropertiesClass.spec.js +++ /dev/null @@ -1,77 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.MixedPropertiesAndAdditionalPropertiesClass(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('MixedPropertiesAndAdditionalPropertiesClass', function() { - it('should create an instance of MixedPropertiesAndAdditionalPropertiesClass', function() { - // uncomment below and update the code to test MixedPropertiesAndAdditionalPropertiesClass - //var 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 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(); - //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(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/Model200Response.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/Model200Response.spec.js deleted file mode 100644 index f966a55a5b26..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/Model200Response.spec.js +++ /dev/null @@ -1,71 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.Model200Response(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Model200Response', function() { - it('should create an instance of Model200Response', function() { - // uncomment below and update the code to test Model200Response - //var 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 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 OpenApiPetstore.Model200Response(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/ModelReturn.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/ModelReturn.spec.js deleted file mode 100644 index 5c995def36fb..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/ModelReturn.spec.js +++ /dev/null @@ -1,65 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.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 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(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/Name.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/Name.spec.js deleted file mode 100644 index feed4e8f2906..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/Name.spec.js +++ /dev/null @@ -1,83 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.Name(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Name', function() { - it('should create an instance of Name', function() { - // uncomment below and update the code to test Name - //var 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 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(); - //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(); - //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(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/NullableClass.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/NullableClass.spec.js deleted file mode 100644 index 89cd2821d42b..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/NullableClass.spec.js +++ /dev/null @@ -1,131 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.NullableClass(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('NullableClass', function() { - it('should create an instance of NullableClass', function() { - // uncomment below and update the code to test NullableClass - //var instane = new OpenApiPetstore.NullableClass(); - //expect(instance).to.be.a(OpenApiPetstore.NullableClass); - }); - - it('should have the property integerProp (base name: "integer_prop")', function() { - // uncomment below and update the code to test the property integerProp - //var instane = new OpenApiPetstore.NullableClass(); - //expect(instance).to.be(); - }); - - it('should have the property numberProp (base name: "number_prop")', function() { - // uncomment below and update the code to test the property numberProp - //var instane = new OpenApiPetstore.NullableClass(); - //expect(instance).to.be(); - }); - - it('should have the property booleanProp (base name: "boolean_prop")', function() { - // uncomment below and update the code to test the property booleanProp - //var instane = new OpenApiPetstore.NullableClass(); - //expect(instance).to.be(); - }); - - it('should have the property stringProp (base name: "string_prop")', function() { - // uncomment below and update the code to test the property stringProp - //var instane = new OpenApiPetstore.NullableClass(); - //expect(instance).to.be(); - }); - - it('should have the property dateProp (base name: "date_prop")', function() { - // uncomment below and update the code to test the property dateProp - //var instane = new OpenApiPetstore.NullableClass(); - //expect(instance).to.be(); - }); - - it('should have the property datetimeProp (base name: "datetime_prop")', function() { - // uncomment below and update the code to test the property datetimeProp - //var instane = new OpenApiPetstore.NullableClass(); - //expect(instance).to.be(); - }); - - it('should have the property arrayNullableProp (base name: "array_nullable_prop")', function() { - // uncomment below and update the code to test the property arrayNullableProp - //var instane = new OpenApiPetstore.NullableClass(); - //expect(instance).to.be(); - }); - - it('should have the property arrayAndItemsNullableProp (base name: "array_and_items_nullable_prop")', function() { - // uncomment below and update the code to test the property arrayAndItemsNullableProp - //var instane = new OpenApiPetstore.NullableClass(); - //expect(instance).to.be(); - }); - - it('should have the property arrayItemsNullable (base name: "array_items_nullable")', function() { - // uncomment below and update the code to test the property arrayItemsNullable - //var instane = new OpenApiPetstore.NullableClass(); - //expect(instance).to.be(); - }); - - it('should have the property objectNullableProp (base name: "object_nullable_prop")', function() { - // uncomment below and update the code to test the property objectNullableProp - //var instane = new OpenApiPetstore.NullableClass(); - //expect(instance).to.be(); - }); - - it('should have the property objectAndItemsNullableProp (base name: "object_and_items_nullable_prop")', function() { - // uncomment below and update the code to test the property objectAndItemsNullableProp - //var instane = new OpenApiPetstore.NullableClass(); - //expect(instance).to.be(); - }); - - it('should have the property objectItemsNullable (base name: "object_items_nullable")', function() { - // uncomment below and update the code to test the property objectItemsNullable - //var instane = new OpenApiPetstore.NullableClass(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/NumberOnly.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/NumberOnly.spec.js deleted file mode 100644 index cbbd3d6124c5..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/NumberOnly.spec.js +++ /dev/null @@ -1,65 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.NumberOnly(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('NumberOnly', function() { - it('should create an instance of NumberOnly', function() { - // uncomment below and update the code to test NumberOnly - //var 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 OpenApiPetstore.NumberOnly(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/Order.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/Order.spec.js deleted file mode 100644 index b3e2b5a47167..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/Order.spec.js +++ /dev/null @@ -1,95 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.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 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(); - //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(); - //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(); - //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(); - //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(); - //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(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/OuterComposite.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/OuterComposite.spec.js deleted file mode 100644 index 7f772d8c3745..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/OuterComposite.spec.js +++ /dev/null @@ -1,77 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.OuterComposite(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('OuterComposite', function() { - it('should create an instance of OuterComposite', function() { - // uncomment below and update the code to test OuterComposite - //var 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 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(); - //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(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/OuterEnum.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/OuterEnum.spec.js deleted file mode 100644 index f5ec4089cc1f..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/OuterEnum.spec.js +++ /dev/null @@ -1,58 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('OuterEnum', function() { - it('should create an instance of OuterEnum', function() { - // uncomment below and update the code to test OuterEnum - //var instane = new OpenApiPetstore.OuterEnum(); - //expect(instance).to.be.a(OpenApiPetstore.OuterEnum); - }); - - }); - -})); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/OuterEnumDefaultValue.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/OuterEnumDefaultValue.spec.js deleted file mode 100644 index 9da972203e12..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/OuterEnumDefaultValue.spec.js +++ /dev/null @@ -1,58 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('OuterEnumDefaultValue', function() { - it('should create an instance of OuterEnumDefaultValue', function() { - // uncomment below and update the code to test OuterEnumDefaultValue - //var instane = new OpenApiPetstore.OuterEnumDefaultValue(); - //expect(instance).to.be.a(OpenApiPetstore.OuterEnumDefaultValue); - }); - - }); - -})); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/OuterEnumInteger.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/OuterEnumInteger.spec.js deleted file mode 100644 index 196da96a8da8..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/OuterEnumInteger.spec.js +++ /dev/null @@ -1,58 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('OuterEnumInteger', function() { - it('should create an instance of OuterEnumInteger', function() { - // uncomment below and update the code to test OuterEnumInteger - //var instane = new OpenApiPetstore.OuterEnumInteger(); - //expect(instance).to.be.a(OpenApiPetstore.OuterEnumInteger); - }); - - }); - -})); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/OuterEnumIntegerDefaultValue.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/OuterEnumIntegerDefaultValue.spec.js deleted file mode 100644 index 24829ac61213..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/OuterEnumIntegerDefaultValue.spec.js +++ /dev/null @@ -1,58 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('OuterEnumIntegerDefaultValue', function() { - it('should create an instance of OuterEnumIntegerDefaultValue', function() { - // uncomment below and update the code to test OuterEnumIntegerDefaultValue - //var instane = new OpenApiPetstore.OuterEnumIntegerDefaultValue(); - //expect(instance).to.be.a(OpenApiPetstore.OuterEnumIntegerDefaultValue); - }); - - }); - -})); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/Pet.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/Pet.spec.js deleted file mode 100644 index f33470481f10..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/Pet.spec.js +++ /dev/null @@ -1,95 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.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 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(); - //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(); - //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(); - //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(); - //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(); - //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(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/ReadOnlyFirst.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/ReadOnlyFirst.spec.js deleted file mode 100644 index 7584840104a6..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/ReadOnlyFirst.spec.js +++ /dev/null @@ -1,71 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.ReadOnlyFirst(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ReadOnlyFirst', function() { - it('should create an instance of ReadOnlyFirst', function() { - // uncomment below and update the code to test ReadOnlyFirst - //var 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 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(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/SpecialModelName.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/SpecialModelName.spec.js deleted file mode 100644 index 7cd283fa5423..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/SpecialModelName.spec.js +++ /dev/null @@ -1,65 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.SpecialModelName(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SpecialModelName', function() { - it('should create an instance of SpecialModelName', function() { - // uncomment below and update the code to test SpecialModelName - //var 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 OpenApiPetstore.SpecialModelName(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/Tag.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/Tag.spec.js deleted file mode 100644 index 749022dc3854..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/Tag.spec.js +++ /dev/null @@ -1,71 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.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 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(); - //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(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/User.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/User.spec.js deleted file mode 100644 index fb24f42d1a2a..000000000000 --- a/samples/openapi3/client/petstore/javascript-es6/test/model/User.spec.js +++ /dev/null @@ -1,107 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.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 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(); - //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(); - //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(); - //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(); - //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(); - //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(); - //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(); - //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(); - //expect(instance).to.be(); - }); - - }); - -})); From 5021491c159c31b48c272301afaf7f79e5ade3ea Mon Sep 17 00:00:00 2001 From: William Cheng Date: Sun, 24 May 2020 17:44:23 +0800 Subject: [PATCH 07/10] fix tests --- .../petstore/javascript-es6/package-lock.json | 3483 +++++++++++------ .../model/AdditionalPropertiesAnyType.spec.js | 2 +- 2 files changed, 2234 insertions(+), 1251 deletions(-) diff --git a/samples/client/petstore/javascript-es6/package-lock.json b/samples/client/petstore/javascript-es6/package-lock.json index 4b9d17d02486..801cd544c602 100644 --- a/samples/client/petstore/javascript-es6/package-lock.json +++ b/samples/client/petstore/javascript-es6/package-lock.json @@ -4,986 +4,1953 @@ "lockfileVersion": 1, "requires": true, "dependencies": { - "ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=" + "@babel/cli": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@babel/cli/-/cli-7.8.4.tgz", + "integrity": "sha512-XXLgAm6LBbaNxaGhMAznXXaxtCWfuv6PIDJ9Alsy9JYTOh+j2jJz+L/162kkfU1j/pTSxK1xGmlwI4pdIMkoag==", + "requires": { + "chokidar": "^2.1.8", + "commander": "^4.0.1", + "convert-source-map": "^1.1.0", + "fs-readdir-recursive": "^1.1.0", + "glob": "^7.0.0", + "lodash": "^4.17.13", + "make-dir": "^2.1.0", + "slash": "^2.0.0", + "source-map": "^0.5.0" + }, + "dependencies": { + "anymatch": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-2.0.0.tgz", + "integrity": "sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==", + "optional": true, + "requires": { + "micromatch": "^3.1.4", + "normalize-path": "^2.1.1" + }, + "dependencies": { + "normalize-path": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", + "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", + "optional": true, + "requires": { + "remove-trailing-separator": "^1.0.1" + } + } + } + }, + "arr-diff": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", + "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=", + "optional": true + }, + "array-unique": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", + "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=", + "optional": true + }, + "braces": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", + "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", + "optional": true, + "requires": { + "arr-flatten": "^1.1.0", + "array-unique": "^0.3.2", + "extend-shallow": "^2.0.1", + "fill-range": "^4.0.0", + "isobject": "^3.0.1", + "repeat-element": "^1.1.2", + "snapdragon": "^0.8.1", + "snapdragon-node": "^2.0.1", + "split-string": "^3.0.2", + "to-regex": "^3.0.1" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "optional": true, + "requires": { + "is-extendable": "^0.1.0" + } + } + } + }, + "chokidar": { + "version": "2.1.8", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-2.1.8.tgz", + "integrity": "sha512-ZmZUazfOzf0Nve7duiCKD23PFSCs4JPoYyccjUFF3aQkQadqBhfzhjkwBH2mNOG9cTBwhamM37EIsIkZw3nRgg==", + "optional": true, + "requires": { + "anymatch": "^2.0.0", + "async-each": "^1.0.1", + "braces": "^2.3.2", + "fsevents": "^1.2.7", + "glob-parent": "^3.1.0", + "inherits": "^2.0.3", + "is-binary-path": "^1.0.0", + "is-glob": "^4.0.0", + "normalize-path": "^3.0.0", + "path-is-absolute": "^1.0.0", + "readdirp": "^2.2.1", + "upath": "^1.1.1" + } + }, + "commander": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", + "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==" + }, + "expand-brackets": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", + "integrity": "sha1-t3c14xXOMPa27/D4OwQVGiJEliI=", + "optional": true, + "requires": { + "debug": "^2.3.3", + "define-property": "^0.2.5", + "extend-shallow": "^2.0.1", + "posix-character-classes": "^0.1.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "optional": true, + "requires": { + "is-descriptor": "^0.1.0" + } + }, + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "optional": true, + "requires": { + "is-extendable": "^0.1.0" + } + }, + "is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", + "optional": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "optional": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", + "optional": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "optional": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "optional": true, + "requires": { + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" + } + }, + "kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "optional": true + } + } + }, + "extglob": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", + "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==", + "optional": true, + "requires": { + "array-unique": "^0.3.2", + "define-property": "^1.0.0", + "expand-brackets": "^2.1.4", + "extend-shallow": "^2.0.1", + "fragment-cache": "^0.2.1", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" + }, + "dependencies": { + "define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", + "optional": true, + "requires": { + "is-descriptor": "^1.0.0" + } + }, + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "optional": true, + "requires": { + "is-extendable": "^0.1.0" + } + } + } + }, + "fill-range": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", + "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", + "optional": true, + "requires": { + "extend-shallow": "^2.0.1", + "is-number": "^3.0.0", + "repeat-string": "^1.6.1", + "to-regex-range": "^2.1.0" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "optional": true, + "requires": { + "is-extendable": "^0.1.0" + } + } + } + }, + "glob-parent": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-3.1.0.tgz", + "integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=", + "optional": true, + "requires": { + "is-glob": "^3.1.0", + "path-dirname": "^1.0.0" + }, + "dependencies": { + "is-glob": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-3.1.0.tgz", + "integrity": "sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo=", + "optional": true, + "requires": { + "is-extglob": "^2.1.0" + } + } + } + }, + "is-accessor-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", + "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "optional": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-data-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", + "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "optional": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-descriptor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", + "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "optional": true, + "requires": { + "is-accessor-descriptor": "^1.0.0", + "is-data-descriptor": "^1.0.0", + "kind-of": "^6.0.2" + } + }, + "is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", + "optional": true + }, + "is-glob": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", + "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", + "optional": true, + "requires": { + "is-extglob": "^2.1.1" + } + }, + "is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", + "optional": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "optional": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "optional": true + }, + "kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "optional": true + }, + "lodash": { + "version": "4.17.15", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", + "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==" + }, + "micromatch": { + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", + "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", + "optional": true, + "requires": { + "arr-diff": "^4.0.0", + "array-unique": "^0.3.2", + "braces": "^2.3.1", + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "extglob": "^2.0.4", + "fragment-cache": "^0.2.1", + "kind-of": "^6.0.2", + "nanomatch": "^1.2.9", + "object.pick": "^1.3.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.2" + } + }, + "normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "optional": true + }, + "slash": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-2.0.0.tgz", + "integrity": "sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A==" + } + } + }, + "@babel/code-frame": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.8.3.tgz", + "integrity": "sha512-a9gxpmdXtZEInkCSHUJDLHZVBgb1QS0jhss4cPP93EW7s+uC5bikET2twEF3KV+7rDblJcmNvTR7VJejqd2C2g==", + "dev": true, + "requires": { + "@babel/highlight": "^7.8.3" + } + }, + "@babel/compat-data": { + "version": "7.9.6", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.9.6.tgz", + "integrity": "sha512-5QPTrNen2bm7RBc7dsOmcA5hbrS4O2Vhmk5XOL4zWW/zD/hV0iinpefDlkm+tBBy8kDtFaaeEvmAqt+nURAV2g==", + "dev": true, + "requires": { + "browserslist": "^4.11.1", + "invariant": "^2.2.4", + "semver": "^5.5.0" + }, + "dependencies": { + "browserslist": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.12.0.tgz", + "integrity": "sha512-UH2GkcEDSI0k/lRkuDSzFl9ZZ87skSy9w2XAn1MsZnL+4c4rqbBd3e82UWHbYDpztABrPBhZsTEeuxVfHppqDg==", + "dev": true, + "requires": { + "caniuse-lite": "^1.0.30001043", + "electron-to-chromium": "^1.3.413", + "node-releases": "^1.1.53", + "pkg-up": "^2.0.0" + } + }, + "caniuse-lite": { + "version": "1.0.30001064", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001064.tgz", + "integrity": "sha512-hdBcQMFvJIrOhkpAZiRXz04Cmetwc9NekeuNl0qZfHOugxOhJKxsjF1RmISMPFjIF4PPx1reliIzbfN42EiQ5A==", + "dev": true + }, + "electron-to-chromium": { + "version": "1.3.451", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.451.tgz", + "integrity": "sha512-2fvco0F2bBIgqzO8GRP0Jt/91pdrf9KfZ5FsmkYkjERmIJG585cFeFZV4+CO6oTmU3HmCTgfcZuEa7kW8VUh3A==", + "dev": true + } + } + }, + "@babel/core": { + "version": "7.9.6", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.9.6.tgz", + "integrity": "sha512-nD3deLvbsApbHAHttzIssYqgb883yU/d9roe4RZymBCDaZryMJDbptVpEpeQuRh4BJ+SYI8le9YGxKvFEvl1Wg==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.8.3", + "@babel/generator": "^7.9.6", + "@babel/helper-module-transforms": "^7.9.0", + "@babel/helpers": "^7.9.6", + "@babel/parser": "^7.9.6", + "@babel/template": "^7.8.6", + "@babel/traverse": "^7.9.6", + "@babel/types": "^7.9.6", + "convert-source-map": "^1.7.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.1", + "json5": "^2.1.2", + "lodash": "^4.17.13", + "resolve": "^1.3.2", + "semver": "^5.4.1", + "source-map": "^0.5.0" + }, + "dependencies": { + "convert-source-map": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.7.0.tgz", + "integrity": "sha512-4FJkXzKXEDB1snCFZlLP4gpC3JILicCpGbzG9f9G7tGqGCzETQ2hWPrcinA9oU4wtf2biUaEH5065UnMeR33oA==", + "dev": true, + "requires": { + "safe-buffer": "~5.1.1" + } + }, + "debug": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", + "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + }, + "json5": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.1.3.tgz", + "integrity": "sha512-KXPvOm8K9IJKFM0bmdn8QXh7udDh1g/giieX0NLCaMnb4hEiVFqnop2ImTXCc5e0/oHz3LTqmHGtExn5hfMkOA==", + "dev": true, + "requires": { + "minimist": "^1.2.5" + } + }, + "lodash": { + "version": "4.17.15", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", + "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", + "dev": true + }, + "minimist": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", + "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", + "dev": true + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + } + } + }, + "@babel/generator": { + "version": "7.9.6", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.9.6.tgz", + "integrity": "sha512-+htwWKJbH2bL72HRluF8zumBxzuX0ZZUFl3JLNyoUjM/Ho8wnVpPXM6aUz8cfKDqQ/h7zHqKt4xzJteUosckqQ==", + "dev": true, + "requires": { + "@babel/types": "^7.9.6", + "jsesc": "^2.5.1", + "lodash": "^4.17.13", + "source-map": "^0.5.0" + }, + "dependencies": { + "jsesc": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "dev": true + }, + "lodash": { + "version": "4.17.15", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", + "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", + "dev": true + } + } + }, + "@babel/helper-annotate-as-pure": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.8.3.tgz", + "integrity": "sha512-6o+mJrZBxOoEX77Ezv9zwW7WV8DdluouRKNY/IR5u/YTMuKHgugHOzYWlYvYLpLA9nPsQCAAASpCIbjI9Mv+Uw==", + "dev": true, + "requires": { + "@babel/types": "^7.8.3" + } + }, + "@babel/helper-builder-binary-assignment-operator-visitor": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.8.3.tgz", + "integrity": "sha512-5eFOm2SyFPK4Rh3XMMRDjN7lBH0orh3ss0g3rTYZnBQ+r6YPj7lgDyCvPphynHvUrobJmeMignBr6Acw9mAPlw==", + "dev": true, + "requires": { + "@babel/helper-explode-assignable-expression": "^7.8.3", + "@babel/types": "^7.8.3" + } + }, + "@babel/helper-compilation-targets": { + "version": "7.9.6", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.9.6.tgz", + "integrity": "sha512-x2Nvu0igO0ejXzx09B/1fGBxY9NXQlBW2kZsSxCJft+KHN8t9XWzIvFxtPHnBOAXpVsdxZKZFbRUC8TsNKajMw==", + "dev": true, + "requires": { + "@babel/compat-data": "^7.9.6", + "browserslist": "^4.11.1", + "invariant": "^2.2.4", + "levenary": "^1.1.1", + "semver": "^5.5.0" + }, + "dependencies": { + "browserslist": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.12.0.tgz", + "integrity": "sha512-UH2GkcEDSI0k/lRkuDSzFl9ZZ87skSy9w2XAn1MsZnL+4c4rqbBd3e82UWHbYDpztABrPBhZsTEeuxVfHppqDg==", + "dev": true, + "requires": { + "caniuse-lite": "^1.0.30001043", + "electron-to-chromium": "^1.3.413", + "node-releases": "^1.1.53", + "pkg-up": "^2.0.0" + } + }, + "caniuse-lite": { + "version": "1.0.30001064", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001064.tgz", + "integrity": "sha512-hdBcQMFvJIrOhkpAZiRXz04Cmetwc9NekeuNl0qZfHOugxOhJKxsjF1RmISMPFjIF4PPx1reliIzbfN42EiQ5A==", + "dev": true + }, + "electron-to-chromium": { + "version": "1.3.451", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.451.tgz", + "integrity": "sha512-2fvco0F2bBIgqzO8GRP0Jt/91pdrf9KfZ5FsmkYkjERmIJG585cFeFZV4+CO6oTmU3HmCTgfcZuEa7kW8VUh3A==", + "dev": true + } + } + }, + "@babel/helper-create-class-features-plugin": { + "version": "7.9.6", + "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.9.6.tgz", + "integrity": "sha512-6N9IeuyHvMBRyjNYOMJHrhwtu4WJMrYf8hVbEHD3pbbbmNOk1kmXSQs7bA4dYDUaIx4ZEzdnvo6NwC3WHd/Qow==", + "dev": true, + "requires": { + "@babel/helper-function-name": "^7.9.5", + "@babel/helper-member-expression-to-functions": "^7.8.3", + "@babel/helper-optimise-call-expression": "^7.8.3", + "@babel/helper-plugin-utils": "^7.8.3", + "@babel/helper-replace-supers": "^7.9.6", + "@babel/helper-split-export-declaration": "^7.8.3" + } + }, + "@babel/helper-create-regexp-features-plugin": { + "version": "7.8.8", + "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.8.8.tgz", + "integrity": "sha512-LYVPdwkrQEiX9+1R29Ld/wTrmQu1SSKYnuOk3g0CkcZMA1p0gsNxJFj/3gBdaJ7Cg0Fnek5z0DsMULePP7Lrqg==", + "dev": true, + "requires": { + "@babel/helper-annotate-as-pure": "^7.8.3", + "@babel/helper-regex": "^7.8.3", + "regexpu-core": "^4.7.0" + }, + "dependencies": { + "jsesc": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", + "integrity": "sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0=", + "dev": true + }, + "regexpu-core": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-4.7.0.tgz", + "integrity": "sha512-TQ4KXRnIn6tz6tjnrXEkD/sshygKH/j5KzK86X8MkeHyZ8qst/LZ89j3X4/8HEIfHANTFIP/AbXakeRhWIl5YQ==", + "dev": true, + "requires": { + "regenerate": "^1.4.0", + "regenerate-unicode-properties": "^8.2.0", + "regjsgen": "^0.5.1", + "regjsparser": "^0.6.4", + "unicode-match-property-ecmascript": "^1.0.4", + "unicode-match-property-value-ecmascript": "^1.2.0" + } + }, + "regjsgen": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.5.1.tgz", + "integrity": "sha512-5qxzGZjDs9w4tzT3TPhCJqWdCc3RLYwy9J2NB0nm5Lz+S273lvWcpjaTGHsT1dc6Hhfq41uSEOw8wBmxrKOuyg==", + "dev": true + }, + "regjsparser": { + "version": "0.6.4", + "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.6.4.tgz", + "integrity": "sha512-64O87/dPDgfk8/RQqC4gkZoGyyWFIEUTTh80CU6CWuK5vkCGyekIx+oKcEIYtP/RAxSQltCZHCNu/mdd7fqlJw==", + "dev": true, + "requires": { + "jsesc": "~0.5.0" + } + } + } + }, + "@babel/helper-define-map": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/helper-define-map/-/helper-define-map-7.8.3.tgz", + "integrity": "sha512-PoeBYtxoZGtct3md6xZOCWPcKuMuk3IHhgxsRRNtnNShebf4C8YonTSblsK4tvDbm+eJAw2HAPOfCr+Q/YRG/g==", + "dev": true, + "requires": { + "@babel/helper-function-name": "^7.8.3", + "@babel/types": "^7.8.3", + "lodash": "^4.17.13" + }, + "dependencies": { + "lodash": { + "version": "4.17.15", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", + "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", + "dev": true + } + } + }, + "@babel/helper-explode-assignable-expression": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.8.3.tgz", + "integrity": "sha512-N+8eW86/Kj147bO9G2uclsg5pwfs/fqqY5rwgIL7eTBklgXjcOJ3btzS5iM6AitJcftnY7pm2lGsrJVYLGjzIw==", + "dev": true, + "requires": { + "@babel/traverse": "^7.8.3", + "@babel/types": "^7.8.3" + } + }, + "@babel/helper-function-name": { + "version": "7.9.5", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.9.5.tgz", + "integrity": "sha512-JVcQZeXM59Cd1qanDUxv9fgJpt3NeKUaqBqUEvfmQ+BCOKq2xUgaWZW2hr0dkbyJgezYuplEoh5knmrnS68efw==", + "dev": true, + "requires": { + "@babel/helper-get-function-arity": "^7.8.3", + "@babel/template": "^7.8.3", + "@babel/types": "^7.9.5" + } + }, + "@babel/helper-get-function-arity": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.8.3.tgz", + "integrity": "sha512-FVDR+Gd9iLjUMY1fzE2SR0IuaJToR4RkCDARVfsBBPSP53GEqSFjD8gNyxg246VUyc/ALRxFaAK8rVG7UT7xRA==", + "dev": true, + "requires": { + "@babel/types": "^7.8.3" + } + }, + "@babel/helper-hoist-variables": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.8.3.tgz", + "integrity": "sha512-ky1JLOjcDUtSc+xkt0xhYff7Z6ILTAHKmZLHPxAhOP0Nd77O+3nCsd6uSVYur6nJnCI029CrNbYlc0LoPfAPQg==", + "dev": true, + "requires": { + "@babel/types": "^7.8.3" + } + }, + "@babel/helper-member-expression-to-functions": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.8.3.tgz", + "integrity": "sha512-fO4Egq88utkQFjbPrSHGmGLFqmrshs11d46WI+WZDESt7Wu7wN2G2Iu+NMMZJFDOVRHAMIkB5SNh30NtwCA7RA==", + "dev": true, + "requires": { + "@babel/types": "^7.8.3" + } + }, + "@babel/helper-module-imports": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.8.3.tgz", + "integrity": "sha512-R0Bx3jippsbAEtzkpZ/6FIiuzOURPcMjHp+Z6xPe6DtApDJx+w7UYyOLanZqO8+wKR9G10s/FmHXvxaMd9s6Kg==", + "dev": true, + "requires": { + "@babel/types": "^7.8.3" + } + }, + "@babel/helper-module-transforms": { + "version": "7.9.0", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.9.0.tgz", + "integrity": "sha512-0FvKyu0gpPfIQ8EkxlrAydOWROdHpBmiCiRwLkUiBGhCUPRRbVD2/tm3sFr/c/GWFrQ/ffutGUAnx7V0FzT2wA==", + "dev": true, + "requires": { + "@babel/helper-module-imports": "^7.8.3", + "@babel/helper-replace-supers": "^7.8.6", + "@babel/helper-simple-access": "^7.8.3", + "@babel/helper-split-export-declaration": "^7.8.3", + "@babel/template": "^7.8.6", + "@babel/types": "^7.9.0", + "lodash": "^4.17.13" + }, + "dependencies": { + "lodash": { + "version": "4.17.15", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", + "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", + "dev": true + } + } }, - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=" + "@babel/helper-optimise-call-expression": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.8.3.tgz", + "integrity": "sha512-Kag20n86cbO2AvHca6EJsvqAd82gc6VMGule4HwebwMlwkpXuVqrNRj6CkCV2sKxgi9MyAUnZVnZ6lJ1/vKhHQ==", + "dev": true, + "requires": { + "@babel/types": "^7.8.3" + } }, - "anymatch": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-1.3.2.tgz", - "integrity": "sha512-0XNayC8lTHQ2OI8aljNCN3sSx6hsr/1+rlcDAotXJR7C1oZZHCNsfpbKwMjRA3Uqb5tF1Rae2oloTr4xpq+WjA==", - "optional": true, + "@babel/helper-plugin-utils": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.8.3.tgz", + "integrity": "sha512-j+fq49Xds2smCUNYmEHF9kGNkhbet6yVIBp4e6oeQpH1RUs/Ir06xUKzDjDkGcaaokPiTNs2JBWHjaE4csUkZQ==", + "dev": true + }, + "@babel/helper-regex": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/helper-regex/-/helper-regex-7.8.3.tgz", + "integrity": "sha512-BWt0QtYv/cg/NecOAZMdcn/waj/5P26DR4mVLXfFtDokSR6fyuG0Pj+e2FqtSME+MqED1khnSMulkmGl8qWiUQ==", + "dev": true, "requires": { - "micromatch": "^2.1.5", - "normalize-path": "^2.0.0" + "lodash": "^4.17.13" + }, + "dependencies": { + "lodash": { + "version": "4.17.15", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", + "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", + "dev": true + } } }, - "arr-diff": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-2.0.0.tgz", - "integrity": "sha1-jzuCf5Vai9ZpaX5KQlasPOrjVs8=", - "optional": true, + "@babel/helper-remap-async-to-generator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.8.3.tgz", + "integrity": "sha512-kgwDmw4fCg7AVgS4DukQR/roGp+jP+XluJE5hsRZwxCYGg+Rv9wSGErDWhlI90FODdYfd4xG4AQRiMDjjN0GzA==", + "dev": true, "requires": { - "arr-flatten": "^1.0.1" + "@babel/helper-annotate-as-pure": "^7.8.3", + "@babel/helper-wrap-function": "^7.8.3", + "@babel/template": "^7.8.3", + "@babel/traverse": "^7.8.3", + "@babel/types": "^7.8.3" } }, - "arr-flatten": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", - "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==" + "@babel/helper-replace-supers": { + "version": "7.9.6", + "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.9.6.tgz", + "integrity": "sha512-qX+chbxkbArLyCImk3bWV+jB5gTNU/rsze+JlcF6Nf8tVTigPJSI1o1oBow/9Resa1yehUO9lIipsmu9oG4RzA==", + "dev": true, + "requires": { + "@babel/helper-member-expression-to-functions": "^7.8.3", + "@babel/helper-optimise-call-expression": "^7.8.3", + "@babel/traverse": "^7.9.6", + "@babel/types": "^7.9.6" + } }, - "arr-union": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz", - "integrity": "sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=" + "@babel/helper-simple-access": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.8.3.tgz", + "integrity": "sha512-VNGUDjx5cCWg4vvCTR8qQ7YJYZ+HBjxOgXEl7ounz+4Sn7+LMD3CFrCTEU6/qXKbA2nKg21CwhhBzO0RpRbdCw==", + "dev": true, + "requires": { + "@babel/template": "^7.8.3", + "@babel/types": "^7.8.3" + } }, - "array-unique": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.2.1.tgz", - "integrity": "sha1-odl8yvy8JiXMcPrc6zalDFiwGlM=", - "optional": true + "@babel/helper-split-export-declaration": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.8.3.tgz", + "integrity": "sha512-3x3yOeyBhW851hroze7ElzdkeRXQYQbFIb7gLK1WQYsw2GWDay5gAJNw1sWJ0VFP6z5J1whqeXH/WCdCjZv6dA==", + "dev": true, + "requires": { + "@babel/types": "^7.8.3" + } }, - "assign-symbols": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz", - "integrity": "sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=" + "@babel/helper-validator-identifier": { + "version": "7.9.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.9.5.tgz", + "integrity": "sha512-/8arLKUFq882w4tWGj9JYzRpAlZgiWUJ+dtteNTDqrRBz9Iguck9Rn3ykuBDoUwh2TO4tSAJlrxDUOXWklJe4g==", + "dev": true }, - "async-each": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/async-each/-/async-each-1.0.1.tgz", - "integrity": "sha1-GdOGodntxufByF04iu28xW0zYC0=", - "optional": true + "@babel/helper-wrap-function": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.8.3.tgz", + "integrity": "sha512-LACJrbUET9cQDzb6kG7EeD7+7doC3JNvUgTEQOx2qaO1fKlzE/Bf05qs9w1oXQMmXlPO65lC3Tq9S6gZpTErEQ==", + "dev": true, + "requires": { + "@babel/helper-function-name": "^7.8.3", + "@babel/template": "^7.8.3", + "@babel/traverse": "^7.8.3", + "@babel/types": "^7.8.3" + } }, - "asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" + "@babel/helpers": { + "version": "7.9.6", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.9.6.tgz", + "integrity": "sha512-tI4bUbldloLcHWoRUMAj4g1bF313M/o6fBKhIsb3QnGVPwRm9JsNf/gqMkQ7zjqReABiffPV6RWj7hEglID5Iw==", + "dev": true, + "requires": { + "@babel/template": "^7.8.3", + "@babel/traverse": "^7.9.6", + "@babel/types": "^7.9.6" + } }, - "atob": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", - "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==" - }, - "babel": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel/-/babel-6.23.0.tgz", - "integrity": "sha1-0NHn2APpdHZb7qMjLU4VPA77kPQ=" - }, - "babel-cli": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-cli/-/babel-cli-6.26.0.tgz", - "integrity": "sha1-UCq1SHTX24itALiHoGODzgPQAvE=", - "requires": { - "babel-core": "^6.26.0", - "babel-polyfill": "^6.26.0", - "babel-register": "^6.26.0", - "babel-runtime": "^6.26.0", - "chokidar": "^1.6.1", - "commander": "^2.11.0", - "convert-source-map": "^1.5.0", - "fs-readdir-recursive": "^1.0.0", - "glob": "^7.1.2", - "lodash": "^4.17.4", - "output-file-sync": "^1.1.2", - "path-is-absolute": "^1.0.1", - "slash": "^1.0.0", - "source-map": "^0.5.6", - "v8flags": "^2.1.1" + "@babel/highlight": { + "version": "7.9.0", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.9.0.tgz", + "integrity": "sha512-lJZPilxX7Op3Nv/2cvFdnlepPXDxi29wxteT57Q965oc5R9v86ztx0jfxVrTcBk8C2kcPkkDa2Z4T3ZsPPVWsQ==", + "dev": true, + "requires": { + "@babel/helper-validator-identifier": "^7.9.0", + "chalk": "^2.0.0", + "js-tokens": "^4.0.0" }, "dependencies": { - "babel-core": { - "version": "6.26.3", - "resolved": "https://registry.npmjs.org/babel-core/-/babel-core-6.26.3.tgz", - "integrity": "sha512-6jyFLuDmeidKmUEb3NM+/yawG0M2bDZ9Z1qbZP59cyHLz8kYGKYwpJP0UwUKKUiTRNvxfLesJnTedqczP7cTDA==", - "requires": { - "babel-code-frame": "^6.26.0", - "babel-generator": "^6.26.0", - "babel-helpers": "^6.24.1", - "babel-messages": "^6.23.0", - "babel-register": "^6.26.0", - "babel-runtime": "^6.26.0", - "babel-template": "^6.26.0", - "babel-traverse": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "convert-source-map": "^1.5.1", - "debug": "^2.6.9", - "json5": "^0.5.1", - "lodash": "^4.17.4", - "minimatch": "^3.0.4", - "path-is-absolute": "^1.0.1", - "private": "^0.1.8", - "slash": "^1.0.0", - "source-map": "^0.5.7" + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" } } } }, - "babel-code-frame": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.26.0.tgz", - "integrity": "sha1-Y/1D99weO7fONZR9uP42mj9Yx0s=", - "requires": { - "chalk": "^1.1.3", - "esutils": "^2.0.2", - "js-tokens": "^3.0.2" - } - }, - "babel-core": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-core/-/babel-core-6.26.0.tgz", - "integrity": "sha1-rzL3izGm/O8RnIew/Y2XU/A6C7g=", - "dev": true, - "requires": { - "babel-code-frame": "^6.26.0", - "babel-generator": "^6.26.0", - "babel-helpers": "^6.24.1", - "babel-messages": "^6.23.0", - "babel-register": "^6.26.0", - "babel-runtime": "^6.26.0", - "babel-template": "^6.26.0", - "babel-traverse": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "convert-source-map": "^1.5.0", - "debug": "^2.6.8", - "json5": "^0.5.1", - "lodash": "^4.17.4", - "minimatch": "^3.0.4", - "path-is-absolute": "^1.0.1", - "private": "^0.1.7", - "slash": "^1.0.0", - "source-map": "^0.5.6" + "@babel/parser": { + "version": "7.9.6", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.9.6.tgz", + "integrity": "sha512-AoeIEJn8vt+d/6+PXDRPaksYhnlbMIiejioBZvvMQsOjW/JYK6k/0dKnvvP3EhK5GfMBWDPtrxRtegWdAcdq9Q==", + "dev": true + }, + "@babel/plugin-proposal-async-generator-functions": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.8.3.tgz", + "integrity": "sha512-NZ9zLv848JsV3hs8ryEh7Uaz/0KsmPLqv0+PdkDJL1cJy0K4kOCFa8zc1E3mp+RHPQcpdfb/6GovEsW4VDrOMw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3", + "@babel/helper-remap-async-to-generator": "^7.8.3", + "@babel/plugin-syntax-async-generators": "^7.8.0" } }, - "babel-generator": { - "version": "6.26.1", - "resolved": "https://registry.npmjs.org/babel-generator/-/babel-generator-6.26.1.tgz", - "integrity": "sha512-HyfwY6ApZj7BYTcJURpM5tznulaBvyio7/0d4zFOeMPUmfxkCjHocCuoLa2SAGzBI8AREcH3eP3758F672DppA==", + "@babel/plugin-proposal-class-properties": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.8.3.tgz", + "integrity": "sha512-EqFhbo7IosdgPgZggHaNObkmO1kNUe3slaKu54d5OWvy+p9QIKOzK1GAEpAIsZtWVtPXUHSMcT4smvDrCfY4AA==", + "dev": true, "requires": { - "babel-messages": "^6.23.0", - "babel-runtime": "^6.26.0", - "babel-types": "^6.26.0", - "detect-indent": "^4.0.0", - "jsesc": "^1.3.0", - "lodash": "^4.17.4", - "source-map": "^0.5.7", - "trim-right": "^1.0.1" + "@babel/helper-create-class-features-plugin": "^7.8.3", + "@babel/helper-plugin-utils": "^7.8.3" } }, - "babel-helper-bindify-decorators": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-bindify-decorators/-/babel-helper-bindify-decorators-6.24.1.tgz", - "integrity": "sha1-FMGeXxQte0fxmlJDHlKxzLxAozA=", + "@babel/plugin-proposal-decorators": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-decorators/-/plugin-proposal-decorators-7.8.3.tgz", + "integrity": "sha512-e3RvdvS4qPJVTe288DlXjwKflpfy1hr0j5dz5WpIYYeP7vQZg2WfAEIp8k5/Lwis/m5REXEteIz6rrcDtXXG7w==", "dev": true, "requires": { - "babel-runtime": "^6.22.0", - "babel-traverse": "^6.24.1", - "babel-types": "^6.24.1" + "@babel/helper-create-class-features-plugin": "^7.8.3", + "@babel/helper-plugin-utils": "^7.8.3", + "@babel/plugin-syntax-decorators": "^7.8.3" } }, - "babel-helper-builder-binary-assignment-operator-visitor": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-builder-binary-assignment-operator-visitor/-/babel-helper-builder-binary-assignment-operator-visitor-6.24.1.tgz", - "integrity": "sha1-zORReto1b0IgvK6KAsKzRvmlZmQ=", + "@babel/plugin-proposal-do-expressions": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-do-expressions/-/plugin-proposal-do-expressions-7.8.3.tgz", + "integrity": "sha512-NoMcN+0+SS1DVswjDCfz+Jfm9ViOYuFtv1lm0QInEugbEXK2iH3jeSq38WmIiTP+2QKqo2zt8xku77gqHINZkw==", "dev": true, "requires": { - "babel-helper-explode-assignable-expression": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-types": "^6.24.1" + "@babel/helper-plugin-utils": "^7.8.3", + "@babel/plugin-syntax-do-expressions": "^7.8.3" } }, - "babel-helper-call-delegate": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-call-delegate/-/babel-helper-call-delegate-6.24.1.tgz", - "integrity": "sha1-7Oaqzdx25Bw0YfiL/Fdb0Nqi340=", + "@babel/plugin-proposal-dynamic-import": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.8.3.tgz", + "integrity": "sha512-NyaBbyLFXFLT9FP+zk0kYlUlA8XtCUbehs67F0nnEg7KICgMc2mNkIeu9TYhKzyXMkrapZFwAhXLdnt4IYHy1w==", "dev": true, "requires": { - "babel-helper-hoist-variables": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-traverse": "^6.24.1", - "babel-types": "^6.24.1" + "@babel/helper-plugin-utils": "^7.8.3", + "@babel/plugin-syntax-dynamic-import": "^7.8.0" } }, - "babel-helper-define-map": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-helper-define-map/-/babel-helper-define-map-6.26.0.tgz", - "integrity": "sha1-pfVtq0GiX5fstJjH66ypgZ+Vvl8=", + "@babel/plugin-proposal-export-default-from": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-export-default-from/-/plugin-proposal-export-default-from-7.8.3.tgz", + "integrity": "sha512-PYtv2S2OdCdp7GSPDg5ndGZFm9DmWFvuLoS5nBxZCgOBggluLnhTScspJxng96alHQzPyrrHxvC9/w4bFuspeA==", "dev": true, "requires": { - "babel-helper-function-name": "^6.24.1", - "babel-runtime": "^6.26.0", - "babel-types": "^6.26.0", - "lodash": "^4.17.4" + "@babel/helper-plugin-utils": "^7.8.3", + "@babel/plugin-syntax-export-default-from": "^7.8.3" } }, - "babel-helper-explode-assignable-expression": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-explode-assignable-expression/-/babel-helper-explode-assignable-expression-6.24.1.tgz", - "integrity": "sha1-8luCz33BBDPFX3BZLVdGQArCLKo=", + "@babel/plugin-proposal-export-namespace-from": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.8.3.tgz", + "integrity": "sha512-WKK+9jz6TWUTX1uej9/EUVOmM1sK7aHv6bZyxbUV3NJjbiIZRqJITeXGMo7D631J72PEnIORh5VOlFCSlrLicg==", "dev": true, "requires": { - "babel-runtime": "^6.22.0", - "babel-traverse": "^6.24.1", - "babel-types": "^6.24.1" + "@babel/helper-plugin-utils": "^7.8.3", + "@babel/plugin-syntax-export-namespace-from": "^7.8.3" } }, - "babel-helper-explode-class": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-explode-class/-/babel-helper-explode-class-6.24.1.tgz", - "integrity": "sha1-fcKjkQ3uAHBW4eMdZAztPVTqqes=", + "@babel/plugin-proposal-function-bind": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-function-bind/-/plugin-proposal-function-bind-7.8.3.tgz", + "integrity": "sha512-6q7VAHJQa9x4P6Lm6h6KHoJUEhx2r1buFKseHICe0ogb1LWxducO4tsQp3hd/7BVBo485YBsn6tJnpuwWm/9cA==", "dev": true, "requires": { - "babel-helper-bindify-decorators": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-traverse": "^6.24.1", - "babel-types": "^6.24.1" + "@babel/helper-plugin-utils": "^7.8.3", + "@babel/plugin-syntax-function-bind": "^7.8.3" } }, - "babel-helper-function-name": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-function-name/-/babel-helper-function-name-6.24.1.tgz", - "integrity": "sha1-00dbjAPtmCQqJbSDUasYOZ01gKk=", + "@babel/plugin-proposal-function-sent": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-function-sent/-/plugin-proposal-function-sent-7.8.3.tgz", + "integrity": "sha512-lu9wQjLnXd6Zy6eBKr0gE175xfD+da1rv2wOWEnZlD5KIxl894Tg34ppZ7ANR0jzQJMn+7pGuzSdy6JK4zGtKg==", "dev": true, "requires": { - "babel-helper-get-function-arity": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1", - "babel-traverse": "^6.24.1", - "babel-types": "^6.24.1" + "@babel/helper-plugin-utils": "^7.8.3", + "@babel/helper-wrap-function": "^7.8.3", + "@babel/plugin-syntax-function-sent": "^7.8.3" } }, - "babel-helper-get-function-arity": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-get-function-arity/-/babel-helper-get-function-arity-6.24.1.tgz", - "integrity": "sha1-j3eCqpNAfEHTqlCQj4mwMbG2hT0=", + "@babel/plugin-proposal-json-strings": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.8.3.tgz", + "integrity": "sha512-KGhQNZ3TVCQG/MjRbAUwuH+14y9q0tpxs1nWWs3pbSleRdDro9SAMMDyye8HhY1gqZ7/NqIc8SKhya0wRDgP1Q==", "dev": true, "requires": { - "babel-runtime": "^6.22.0", - "babel-types": "^6.24.1" + "@babel/helper-plugin-utils": "^7.8.3", + "@babel/plugin-syntax-json-strings": "^7.8.0" } }, - "babel-helper-hoist-variables": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-hoist-variables/-/babel-helper-hoist-variables-6.24.1.tgz", - "integrity": "sha1-HssnaJydJVE+rbyZFKc/VAi+enY=", + "@babel/plugin-proposal-logical-assignment-operators": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-logical-assignment-operators/-/plugin-proposal-logical-assignment-operators-7.8.3.tgz", + "integrity": "sha512-TLPLojGZYBeeoesO2NQIMLUJKD9N5oJlxG6iHLx7l7EvNQP5DfzeyxdI2lMPo5I7ih4Jv/vxrlwIPf6aJw422Q==", "dev": true, "requires": { - "babel-runtime": "^6.22.0", - "babel-types": "^6.24.1" + "@babel/helper-plugin-utils": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3" } }, - "babel-helper-optimise-call-expression": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-optimise-call-expression/-/babel-helper-optimise-call-expression-6.24.1.tgz", - "integrity": "sha1-96E0J7qfc/j0+pk8VKl4gtEkQlc=", + "@babel/plugin-proposal-nullish-coalescing-operator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-TS9MlfzXpXKt6YYomudb/KU7nQI6/xnapG6in1uZxoxDghuSMZsPb6D2fyUwNYSAp4l1iR7QtFOjkqcRYcUsfw==", "dev": true, "requires": { - "babel-runtime": "^6.22.0", - "babel-types": "^6.24.1" + "@babel/helper-plugin-utils": "^7.8.3", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.0" } }, - "babel-helper-regex": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-helper-regex/-/babel-helper-regex-6.26.0.tgz", - "integrity": "sha1-MlxZ+QL4LyS3T6zu0DY5VPZJXnI=", + "@babel/plugin-proposal-numeric-separator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.8.3.tgz", + "integrity": "sha512-jWioO1s6R/R+wEHizfaScNsAx+xKgwTLNXSh7tTC4Usj3ItsPEhYkEpU4h+lpnBwq7NBVOJXfO6cRFYcX69JUQ==", "dev": true, "requires": { - "babel-runtime": "^6.26.0", - "babel-types": "^6.26.0", - "lodash": "^4.17.4" + "@babel/helper-plugin-utils": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.8.3" } }, - "babel-helper-remap-async-to-generator": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-remap-async-to-generator/-/babel-helper-remap-async-to-generator-6.24.1.tgz", - "integrity": "sha1-XsWBgnrXI/7N04HxySg5BnbkVRs=", + "@babel/plugin-proposal-object-rest-spread": { + "version": "7.9.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.9.6.tgz", + "integrity": "sha512-Ga6/fhGqA9Hj+y6whNpPv8psyaK5xzrQwSPsGPloVkvmH+PqW1ixdnfJ9uIO06OjQNYol3PMnfmJ8vfZtkzF+A==", "dev": true, "requires": { - "babel-helper-function-name": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1", - "babel-traverse": "^6.24.1", - "babel-types": "^6.24.1" + "@babel/helper-plugin-utils": "^7.8.3", + "@babel/plugin-syntax-object-rest-spread": "^7.8.0", + "@babel/plugin-transform-parameters": "^7.9.5" } }, - "babel-helper-replace-supers": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-replace-supers/-/babel-helper-replace-supers-6.24.1.tgz", - "integrity": "sha1-v22/5Dk40XNpohPKiov3S2qQqxo=", + "@babel/plugin-proposal-optional-catch-binding": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.8.3.tgz", + "integrity": "sha512-0gkX7J7E+AtAw9fcwlVQj8peP61qhdg/89D5swOkjYbkboA2CVckn3kiyum1DE0wskGb7KJJxBdyEBApDLLVdw==", "dev": true, "requires": { - "babel-helper-optimise-call-expression": "^6.24.1", - "babel-messages": "^6.23.0", - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1", - "babel-traverse": "^6.24.1", - "babel-types": "^6.24.1" + "@babel/helper-plugin-utils": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.0" } }, - "babel-helpers": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helpers/-/babel-helpers-6.24.1.tgz", - "integrity": "sha1-NHHenK7DiOXIUOWX5Yom3fN2ArI=", + "@babel/plugin-proposal-optional-chaining": { + "version": "7.9.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.9.0.tgz", + "integrity": "sha512-NDn5tu3tcv4W30jNhmc2hyD5c56G6cXx4TesJubhxrJeCvuuMpttxr0OnNCqbZGhFjLrg+NIhxxC+BK5F6yS3w==", + "dev": true, "requires": { - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1" + "@babel/helper-plugin-utils": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.0" } }, - "babel-messages": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-messages/-/babel-messages-6.23.0.tgz", - "integrity": "sha1-8830cDhYA1sqKVHG7F7fbGLyYw4=", + "@babel/plugin-proposal-pipeline-operator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-pipeline-operator/-/plugin-proposal-pipeline-operator-7.8.3.tgz", + "integrity": "sha512-Z0qV3aUYoLUAnVLdfLTlz/GJYfcrbX7Mhrp897Twik29wQseAFAAXQ4TPvN1oswVBHdN74sLPIn9HVfTXtjuQA==", + "dev": true, "requires": { - "babel-runtime": "^6.22.0" + "@babel/helper-plugin-utils": "^7.8.3", + "@babel/plugin-syntax-pipeline-operator": "^7.8.3" } }, - "babel-plugin-check-es2015-constants": { - "version": "6.22.0", - "resolved": "https://registry.npmjs.org/babel-plugin-check-es2015-constants/-/babel-plugin-check-es2015-constants-6.22.0.tgz", - "integrity": "sha1-NRV7EBQm/S/9PaP3XH0ekYNbv4o=", + "@babel/plugin-proposal-throw-expressions": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-throw-expressions/-/plugin-proposal-throw-expressions-7.8.3.tgz", + "integrity": "sha512-tH40s9JnoR+r45ZXKWW+PC5xzPQfVJix3pR1D8Ty5l9sn5NnrbZUzw8MtnNxu/Bz7p0imyeSYj9FQVccEymOEg==", "dev": true, "requires": { - "babel-runtime": "^6.22.0" + "@babel/helper-plugin-utils": "^7.8.3", + "@babel/plugin-syntax-throw-expressions": "^7.8.3" } }, - "babel-plugin-syntax-async-functions": { - "version": "6.13.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz", - "integrity": "sha1-ytnK0RkbWtY0vzCuCHI5HgZHvpU=", - "dev": true + "@babel/plugin-proposal-unicode-property-regex": { + "version": "7.8.8", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.8.8.tgz", + "integrity": "sha512-EVhjVsMpbhLw9ZfHWSx2iy13Q8Z/eg8e8ccVWt23sWQK5l1UdkoLJPN5w69UA4uITGBnEZD2JOe4QOHycYKv8A==", + "dev": true, + "requires": { + "@babel/helper-create-regexp-features-plugin": "^7.8.8", + "@babel/helper-plugin-utils": "^7.8.3" + } }, - "babel-plugin-syntax-async-generators": { - "version": "6.13.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-async-generators/-/babel-plugin-syntax-async-generators-6.13.0.tgz", - "integrity": "sha1-a8lj67FuzLrmuStZbrfzXDQqi5o=", - "dev": true + "@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", + "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } }, - "babel-plugin-syntax-class-constructor-call": { - "version": "6.18.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-class-constructor-call/-/babel-plugin-syntax-class-constructor-call-6.18.0.tgz", - "integrity": "sha1-nLnTn+Q8hgC+yBRkVt3L1OGnZBY=", - "dev": true + "@babel/plugin-syntax-decorators": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-decorators/-/plugin-syntax-decorators-7.8.3.tgz", + "integrity": "sha512-8Hg4dNNT9/LcA1zQlfwuKR8BUc/if7Q7NkTam9sGTcJphLwpf2g4S42uhspQrIrR+dpzE0dtTqBVFoHl8GtnnQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3" + } }, - "babel-plugin-syntax-class-properties": { - "version": "6.13.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-class-properties/-/babel-plugin-syntax-class-properties-6.13.0.tgz", - "integrity": "sha1-1+sjt5oxf4VDlixQW4J8fWysJ94=", - "dev": true + "@babel/plugin-syntax-do-expressions": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-do-expressions/-/plugin-syntax-do-expressions-7.8.3.tgz", + "integrity": "sha512-puRiUTVDQ69iRX41eeVWqOftZK31waWqZfwKB/TGzPfgi7097twx/DpwfOfyqEGqYtvpQF3jpHwT6UBzvSyAjw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3" + } }, - "babel-plugin-syntax-decorators": { - "version": "6.13.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-decorators/-/babel-plugin-syntax-decorators-6.13.0.tgz", - "integrity": "sha1-MSVjtNvePMgGzuPkFszurd0RrAs=", - "dev": true + "@babel/plugin-syntax-dynamic-import": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz", + "integrity": "sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } }, - "babel-plugin-syntax-do-expressions": { - "version": "6.13.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-do-expressions/-/babel-plugin-syntax-do-expressions-6.13.0.tgz", - "integrity": "sha1-V0d1YTmqJtOQ0JQQsDdEugfkeW0=", - "dev": true + "@babel/plugin-syntax-export-default-from": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-default-from/-/plugin-syntax-export-default-from-7.8.3.tgz", + "integrity": "sha512-a1qnnsr73KLNIQcQlcQ4ZHxqqfBKM6iNQZW2OMTyxNbA2WC7SHWHtGVpFzWtQAuS2pspkWVzdEBXXx8Ik0Za4w==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3" + } }, - "babel-plugin-syntax-dynamic-import": { - "version": "6.18.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-dynamic-import/-/babel-plugin-syntax-dynamic-import-6.18.0.tgz", - "integrity": "sha1-jWomIpyDdFqZgqRBBRVyyqF5sdo=", - "dev": true + "@babel/plugin-syntax-export-namespace-from": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz", + "integrity": "sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3" + } }, - "babel-plugin-syntax-exponentiation-operator": { - "version": "6.13.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-exponentiation-operator/-/babel-plugin-syntax-exponentiation-operator-6.13.0.tgz", - "integrity": "sha1-nufoM3KQ2pUoggGmpX9BcDF4MN4=", - "dev": true + "@babel/plugin-syntax-function-bind": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-function-bind/-/plugin-syntax-function-bind-7.8.3.tgz", + "integrity": "sha512-gEYag4Q3CfqlQcJQQw/KSWdV2husGOnIsOsRlyzkoaNqj2V/V/CSdSJDCGSl67oJ1bdIYP6TjORWPH561dSJpA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3" + } }, - "babel-plugin-syntax-export-extensions": { - "version": "6.13.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-export-extensions/-/babel-plugin-syntax-export-extensions-6.13.0.tgz", - "integrity": "sha1-cKFITw+QiaToStRLrDU8lbmxJyE=", - "dev": true + "@babel/plugin-syntax-function-sent": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-function-sent/-/plugin-syntax-function-sent-7.8.3.tgz", + "integrity": "sha512-NNEutF0x2PdWYij2bmf/i50dSq4SUdgFij4BZwj3I4qDZgql3dlFJRyvwGHAhwKYElUKHaP0wQ/yO1d/enpJaw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3" + } }, - "babel-plugin-syntax-function-bind": { - "version": "6.13.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-function-bind/-/babel-plugin-syntax-function-bind-6.13.0.tgz", - "integrity": "sha1-SMSV8Xe98xqYHnMvVa3AvdJgH0Y=", - "dev": true + "@babel/plugin-syntax-import-meta": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.8.3.tgz", + "integrity": "sha512-vYiGd4wQ9gx0Lngb7+bPCwQXGK/PR6FeTIJ+TIOlq+OfOKG/kCAOO2+IBac3oMM9qV7/fU76hfcqxUaLKZf1hQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3" + } }, - "babel-plugin-syntax-object-rest-spread": { - "version": "6.13.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz", - "integrity": "sha1-/WU28rzhODb/o6VFjEkDpZe7O/U=", - "dev": true + "@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", + "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } }, - "babel-plugin-syntax-trailing-function-commas": { - "version": "6.22.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-6.22.0.tgz", - "integrity": "sha1-ugNgk3+NBuQBgKQ/4NVhb/9TLPM=", - "dev": true + "@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.8.3.tgz", + "integrity": "sha512-Zpg2Sgc++37kuFl6ppq2Q7Awc6E6AIW671x5PY8E/f7MCIyPPGK/EoeZXvvY3P42exZ3Q4/t3YOzP/HiN79jDg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3" + } + }, + "@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-numeric-separator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.8.3.tgz", + "integrity": "sha512-H7dCMAdN83PcCmqmkHB5dtp+Xa9a6LKSvA2hiFBC/5alSHxM5VgWZXFqDi0YFe8XNGT6iCa+z4V4zSt/PdZ7Dw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3" + } + }, + "@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", + "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", + "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", + "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } }, - "babel-plugin-transform-async-generator-functions": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-async-generator-functions/-/babel-plugin-transform-async-generator-functions-6.24.1.tgz", - "integrity": "sha1-8FiQAUX9PpkHpt3yjaWfIVJYpds=", + "@babel/plugin-syntax-pipeline-operator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-pipeline-operator/-/plugin-syntax-pipeline-operator-7.8.3.tgz", + "integrity": "sha512-GhiBvlXZLWeP+MjKaEv33KmiR/QMCv4iCwz1AuuAp7pHxBvOxxyQmIPukh+N/py6PRLYG10bvRCNeenG34QbDA==", "dev": true, "requires": { - "babel-helper-remap-async-to-generator": "^6.24.1", - "babel-plugin-syntax-async-generators": "^6.5.0", - "babel-runtime": "^6.22.0" + "@babel/helper-plugin-utils": "^7.8.3" } }, - "babel-plugin-transform-async-to-generator": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-async-to-generator/-/babel-plugin-transform-async-to-generator-6.24.1.tgz", - "integrity": "sha1-ZTbjeK/2yx1VF6wOQOs+n8jQh2E=", + "@babel/plugin-syntax-throw-expressions": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-throw-expressions/-/plugin-syntax-throw-expressions-7.8.3.tgz", + "integrity": "sha512-Mv3shY1i7ZssY4OY+eLZJAmNCwqTcpv2qOKO9x6irELSygfKWVSMXk0igJsA9UhU4hOdw0qMGkjj9TAk4MqzwQ==", "dev": true, "requires": { - "babel-helper-remap-async-to-generator": "^6.24.1", - "babel-plugin-syntax-async-functions": "^6.8.0", - "babel-runtime": "^6.22.0" + "@babel/helper-plugin-utils": "^7.8.3" } }, - "babel-plugin-transform-class-constructor-call": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-class-constructor-call/-/babel-plugin-transform-class-constructor-call-6.24.1.tgz", - "integrity": "sha1-gNwoVQWsBn3LjWxl4vbxGrd2Xvk=", + "@babel/plugin-syntax-top-level-await": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.8.3.tgz", + "integrity": "sha512-kwj1j9lL/6Wd0hROD3b/OZZ7MSrZLqqn9RAZ5+cYYsflQ9HZBIKCUkr3+uL1MEJ1NePiUbf98jjiMQSv0NMR9g==", "dev": true, "requires": { - "babel-plugin-syntax-class-constructor-call": "^6.18.0", - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1" + "@babel/helper-plugin-utils": "^7.8.3" } }, - "babel-plugin-transform-class-properties": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-class-properties/-/babel-plugin-transform-class-properties-6.24.1.tgz", - "integrity": "sha1-anl2PqYdM9NvN7YRqp3vgagbRqw=", + "@babel/plugin-transform-arrow-functions": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.8.3.tgz", + "integrity": "sha512-0MRF+KC8EqH4dbuITCWwPSzsyO3HIWWlm30v8BbbpOrS1B++isGxPnnuq/IZvOX5J2D/p7DQalQm+/2PnlKGxg==", "dev": true, "requires": { - "babel-helper-function-name": "^6.24.1", - "babel-plugin-syntax-class-properties": "^6.8.0", - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1" + "@babel/helper-plugin-utils": "^7.8.3" } }, - "babel-plugin-transform-decorators": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-decorators/-/babel-plugin-transform-decorators-6.24.1.tgz", - "integrity": "sha1-eIAT2PjGtSIr33s0Q5Df13Vp4k0=", + "@babel/plugin-transform-async-to-generator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.8.3.tgz", + "integrity": "sha512-imt9tFLD9ogt56Dd5CI/6XgpukMwd/fLGSrix2httihVe7LOGVPhyhMh1BU5kDM7iHD08i8uUtmV2sWaBFlHVQ==", "dev": true, "requires": { - "babel-helper-explode-class": "^6.24.1", - "babel-plugin-syntax-decorators": "^6.13.0", - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1", - "babel-types": "^6.24.1" + "@babel/helper-module-imports": "^7.8.3", + "@babel/helper-plugin-utils": "^7.8.3", + "@babel/helper-remap-async-to-generator": "^7.8.3" } }, - "babel-plugin-transform-do-expressions": { - "version": "6.22.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-do-expressions/-/babel-plugin-transform-do-expressions-6.22.0.tgz", - "integrity": "sha1-KMyvkoEtlJws0SgfaQyP3EaK6bs=", + "@babel/plugin-transform-block-scoped-functions": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.8.3.tgz", + "integrity": "sha512-vo4F2OewqjbB1+yaJ7k2EJFHlTP3jR634Z9Cj9itpqNjuLXvhlVxgnjsHsdRgASR8xYDrx6onw4vW5H6We0Jmg==", "dev": true, "requires": { - "babel-plugin-syntax-do-expressions": "^6.8.0", - "babel-runtime": "^6.22.0" + "@babel/helper-plugin-utils": "^7.8.3" } }, - "babel-plugin-transform-es2015-arrow-functions": { - "version": "6.22.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-arrow-functions/-/babel-plugin-transform-es2015-arrow-functions-6.22.0.tgz", - "integrity": "sha1-RSaSy3EdX3ncf4XkQM5BufJE0iE=", + "@babel/plugin-transform-block-scoping": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.8.3.tgz", + "integrity": "sha512-pGnYfm7RNRgYRi7bids5bHluENHqJhrV4bCZRwc5GamaWIIs07N4rZECcmJL6ZClwjDz1GbdMZFtPs27hTB06w==", "dev": true, "requires": { - "babel-runtime": "^6.22.0" + "@babel/helper-plugin-utils": "^7.8.3", + "lodash": "^4.17.13" + }, + "dependencies": { + "lodash": { + "version": "4.17.15", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", + "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", + "dev": true + } } }, - "babel-plugin-transform-es2015-block-scoped-functions": { - "version": "6.22.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-block-scoped-functions/-/babel-plugin-transform-es2015-block-scoped-functions-6.22.0.tgz", - "integrity": "sha1-u8UbSflk1wy42OC5ToICRs46YUE=", + "@babel/plugin-transform-classes": { + "version": "7.9.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.9.5.tgz", + "integrity": "sha512-x2kZoIuLC//O5iA7PEvecB105o7TLzZo8ofBVhP79N+DO3jaX+KYfww9TQcfBEZD0nikNyYcGB1IKtRq36rdmg==", "dev": true, "requires": { - "babel-runtime": "^6.22.0" + "@babel/helper-annotate-as-pure": "^7.8.3", + "@babel/helper-define-map": "^7.8.3", + "@babel/helper-function-name": "^7.9.5", + "@babel/helper-optimise-call-expression": "^7.8.3", + "@babel/helper-plugin-utils": "^7.8.3", + "@babel/helper-replace-supers": "^7.8.6", + "@babel/helper-split-export-declaration": "^7.8.3", + "globals": "^11.1.0" + }, + "dependencies": { + "globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true + } } }, - "babel-plugin-transform-es2015-block-scoping": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-block-scoping/-/babel-plugin-transform-es2015-block-scoping-6.26.0.tgz", - "integrity": "sha1-1w9SmcEwjQXBL0Y4E7CgnnOxiV8=", + "@babel/plugin-transform-computed-properties": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.8.3.tgz", + "integrity": "sha512-O5hiIpSyOGdrQZRQ2ccwtTVkgUDBBiCuK//4RJ6UfePllUTCENOzKxfh6ulckXKc0DixTFLCfb2HVkNA7aDpzA==", "dev": true, "requires": { - "babel-runtime": "^6.26.0", - "babel-template": "^6.26.0", - "babel-traverse": "^6.26.0", - "babel-types": "^6.26.0", - "lodash": "^4.17.4" + "@babel/helper-plugin-utils": "^7.8.3" } }, - "babel-plugin-transform-es2015-classes": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-classes/-/babel-plugin-transform-es2015-classes-6.24.1.tgz", - "integrity": "sha1-WkxYpQyclGHlZLSyo7+ryXolhNs=", + "@babel/plugin-transform-destructuring": { + "version": "7.9.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.9.5.tgz", + "integrity": "sha512-j3OEsGel8nHL/iusv/mRd5fYZ3DrOxWC82x0ogmdN/vHfAP4MYw+AFKYanzWlktNwikKvlzUV//afBW5FTp17Q==", "dev": true, "requires": { - "babel-helper-define-map": "^6.24.1", - "babel-helper-function-name": "^6.24.1", - "babel-helper-optimise-call-expression": "^6.24.1", - "babel-helper-replace-supers": "^6.24.1", - "babel-messages": "^6.23.0", - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1", - "babel-traverse": "^6.24.1", - "babel-types": "^6.24.1" + "@babel/helper-plugin-utils": "^7.8.3" } }, - "babel-plugin-transform-es2015-computed-properties": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-computed-properties/-/babel-plugin-transform-es2015-computed-properties-6.24.1.tgz", - "integrity": "sha1-b+Ko0WiV1WNPTNmZttNICjCBWbM=", + "@babel/plugin-transform-dotall-regex": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.8.3.tgz", + "integrity": "sha512-kLs1j9Nn4MQoBYdRXH6AeaXMbEJFaFu/v1nQkvib6QzTj8MZI5OQzqmD83/2jEM1z0DLilra5aWO5YpyC0ALIw==", "dev": true, "requires": { - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1" + "@babel/helper-create-regexp-features-plugin": "^7.8.3", + "@babel/helper-plugin-utils": "^7.8.3" } }, - "babel-plugin-transform-es2015-destructuring": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-destructuring/-/babel-plugin-transform-es2015-destructuring-6.23.0.tgz", - "integrity": "sha1-mXux8auWf2gtKwh2/jWNYOdlxW0=", + "@babel/plugin-transform-duplicate-keys": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.8.3.tgz", + "integrity": "sha512-s8dHiBUbcbSgipS4SMFuWGqCvyge5V2ZeAWzR6INTVC3Ltjig/Vw1G2Gztv0vU/hRG9X8IvKvYdoksnUfgXOEQ==", "dev": true, "requires": { - "babel-runtime": "^6.22.0" + "@babel/helper-plugin-utils": "^7.8.3" } }, - "babel-plugin-transform-es2015-duplicate-keys": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-duplicate-keys/-/babel-plugin-transform-es2015-duplicate-keys-6.24.1.tgz", - "integrity": "sha1-c+s9MQypaePvnskcU3QabxV2Qj4=", + "@babel/plugin-transform-exponentiation-operator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.8.3.tgz", + "integrity": "sha512-zwIpuIymb3ACcInbksHaNcR12S++0MDLKkiqXHl3AzpgdKlFNhog+z/K0+TGW+b0w5pgTq4H6IwV/WhxbGYSjQ==", "dev": true, "requires": { - "babel-runtime": "^6.22.0", - "babel-types": "^6.24.1" + "@babel/helper-builder-binary-assignment-operator-visitor": "^7.8.3", + "@babel/helper-plugin-utils": "^7.8.3" } }, - "babel-plugin-transform-es2015-for-of": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-for-of/-/babel-plugin-transform-es2015-for-of-6.23.0.tgz", - "integrity": "sha1-9HyVsrYT3x0+zC/bdXNiPHUkhpE=", + "@babel/plugin-transform-for-of": { + "version": "7.9.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.9.0.tgz", + "integrity": "sha512-lTAnWOpMwOXpyDx06N+ywmF3jNbafZEqZ96CGYabxHrxNX8l5ny7dt4bK/rGwAh9utyP2b2Hv7PlZh1AAS54FQ==", "dev": true, "requires": { - "babel-runtime": "^6.22.0" + "@babel/helper-plugin-utils": "^7.8.3" } }, - "babel-plugin-transform-es2015-function-name": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-function-name/-/babel-plugin-transform-es2015-function-name-6.24.1.tgz", - "integrity": "sha1-g0yJhTvDaxrw86TF26qU/Y6sqos=", + "@babel/plugin-transform-function-name": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.8.3.tgz", + "integrity": "sha512-rO/OnDS78Eifbjn5Py9v8y0aR+aSYhDhqAwVfsTl0ERuMZyr05L1aFSCJnbv2mmsLkit/4ReeQ9N2BgLnOcPCQ==", "dev": true, "requires": { - "babel-helper-function-name": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-types": "^6.24.1" + "@babel/helper-function-name": "^7.8.3", + "@babel/helper-plugin-utils": "^7.8.3" } }, - "babel-plugin-transform-es2015-literals": { - "version": "6.22.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-literals/-/babel-plugin-transform-es2015-literals-6.22.0.tgz", - "integrity": "sha1-T1SgLWzWbPkVKAAZox0xklN3yi4=", + "@babel/plugin-transform-literals": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.8.3.tgz", + "integrity": "sha512-3Tqf8JJ/qB7TeldGl+TT55+uQei9JfYaregDcEAyBZ7akutriFrt6C/wLYIer6OYhleVQvH/ntEhjE/xMmy10A==", "dev": true, "requires": { - "babel-runtime": "^6.22.0" + "@babel/helper-plugin-utils": "^7.8.3" } }, - "babel-plugin-transform-es2015-modules-amd": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-modules-amd/-/babel-plugin-transform-es2015-modules-amd-6.24.1.tgz", - "integrity": "sha1-Oz5UAXI5hC1tGcMBHEvS8AoA0VQ=", + "@babel/plugin-transform-member-expression-literals": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.8.3.tgz", + "integrity": "sha512-3Wk2EXhnw+rP+IDkK6BdtPKsUE5IeZ6QOGrPYvw52NwBStw9V1ZVzxgK6fSKSxqUvH9eQPR3tm3cOq79HlsKYA==", "dev": true, "requires": { - "babel-plugin-transform-es2015-modules-commonjs": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1" + "@babel/helper-plugin-utils": "^7.8.3" } }, - "babel-plugin-transform-es2015-modules-commonjs": { - "version": "6.26.2", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.26.2.tgz", - "integrity": "sha512-CV9ROOHEdrjcwhIaJNBGMBCodN+1cfkwtM1SbUHmvyy35KGT7fohbpOxkE2uLz1o6odKK2Ck/tz47z+VqQfi9Q==", + "@babel/plugin-transform-modules-amd": { + "version": "7.9.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.9.6.tgz", + "integrity": "sha512-zoT0kgC3EixAyIAU+9vfaUVKTv9IxBDSabgHoUCBP6FqEJ+iNiN7ip7NBKcYqbfUDfuC2mFCbM7vbu4qJgOnDw==", "dev": true, "requires": { - "babel-plugin-transform-strict-mode": "^6.24.1", - "babel-runtime": "^6.26.0", - "babel-template": "^6.26.0", - "babel-types": "^6.26.0" + "@babel/helper-module-transforms": "^7.9.0", + "@babel/helper-plugin-utils": "^7.8.3", + "babel-plugin-dynamic-import-node": "^2.3.3" } }, - "babel-plugin-transform-es2015-modules-systemjs": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-modules-systemjs/-/babel-plugin-transform-es2015-modules-systemjs-6.24.1.tgz", - "integrity": "sha1-/4mhQrkRmpBhlfXxBuzzBdlAfSM=", + "@babel/plugin-transform-modules-commonjs": { + "version": "7.9.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.9.6.tgz", + "integrity": "sha512-7H25fSlLcn+iYimmsNe3uK1at79IE6SKW9q0/QeEHTMC9MdOZ+4bA+T1VFB5fgOqBWoqlifXRzYD0JPdmIrgSQ==", "dev": true, "requires": { - "babel-helper-hoist-variables": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1" + "@babel/helper-module-transforms": "^7.9.0", + "@babel/helper-plugin-utils": "^7.8.3", + "@babel/helper-simple-access": "^7.8.3", + "babel-plugin-dynamic-import-node": "^2.3.3" } }, - "babel-plugin-transform-es2015-modules-umd": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-modules-umd/-/babel-plugin-transform-es2015-modules-umd-6.24.1.tgz", - "integrity": "sha1-rJl+YoXNGO1hdq22B9YCNErThGg=", + "@babel/plugin-transform-modules-systemjs": { + "version": "7.9.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.9.6.tgz", + "integrity": "sha512-NW5XQuW3N2tTHim8e1b7qGy7s0kZ2OH3m5octc49K1SdAKGxYxeIx7hiIz05kS1R2R+hOWcsr1eYwcGhrdHsrg==", "dev": true, "requires": { - "babel-plugin-transform-es2015-modules-amd": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1" + "@babel/helper-hoist-variables": "^7.8.3", + "@babel/helper-module-transforms": "^7.9.0", + "@babel/helper-plugin-utils": "^7.8.3", + "babel-plugin-dynamic-import-node": "^2.3.3" } }, - "babel-plugin-transform-es2015-object-super": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-object-super/-/babel-plugin-transform-es2015-object-super-6.24.1.tgz", - "integrity": "sha1-JM72muIcuDp/hgPa0CH1cusnj40=", + "@babel/plugin-transform-modules-umd": { + "version": "7.9.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.9.0.tgz", + "integrity": "sha512-uTWkXkIVtg/JGRSIABdBoMsoIeoHQHPTL0Y2E7xf5Oj7sLqwVsNXOkNk0VJc7vF0IMBsPeikHxFjGe+qmwPtTQ==", "dev": true, "requires": { - "babel-helper-replace-supers": "^6.24.1", - "babel-runtime": "^6.22.0" + "@babel/helper-module-transforms": "^7.9.0", + "@babel/helper-plugin-utils": "^7.8.3" } }, - "babel-plugin-transform-es2015-parameters": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-parameters/-/babel-plugin-transform-es2015-parameters-6.24.1.tgz", - "integrity": "sha1-V6w1GrScrxSpfNE7CfZv3wpiXys=", + "@babel/plugin-transform-named-capturing-groups-regex": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.8.3.tgz", + "integrity": "sha512-f+tF/8UVPU86TrCb06JoPWIdDpTNSGGcAtaD9mLP0aYGA0OS0j7j7DHJR0GTFrUZPUU6loZhbsVZgTh0N+Qdnw==", "dev": true, "requires": { - "babel-helper-call-delegate": "^6.24.1", - "babel-helper-get-function-arity": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1", - "babel-traverse": "^6.24.1", - "babel-types": "^6.24.1" + "@babel/helper-create-regexp-features-plugin": "^7.8.3" } }, - "babel-plugin-transform-es2015-shorthand-properties": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-shorthand-properties/-/babel-plugin-transform-es2015-shorthand-properties-6.24.1.tgz", - "integrity": "sha1-JPh11nIch2YbvZmkYi5R8U3jiqA=", + "@babel/plugin-transform-new-target": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.8.3.tgz", + "integrity": "sha512-QuSGysibQpyxexRyui2vca+Cmbljo8bcRckgzYV4kRIsHpVeyeC3JDO63pY+xFZ6bWOBn7pfKZTqV4o/ix9sFw==", "dev": true, "requires": { - "babel-runtime": "^6.22.0", - "babel-types": "^6.24.1" + "@babel/helper-plugin-utils": "^7.8.3" } }, - "babel-plugin-transform-es2015-spread": { - "version": "6.22.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-spread/-/babel-plugin-transform-es2015-spread-6.22.0.tgz", - "integrity": "sha1-1taKmfia7cRTbIGlQujdnxdG+NE=", + "@babel/plugin-transform-object-super": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.8.3.tgz", + "integrity": "sha512-57FXk+gItG/GejofIyLIgBKTas4+pEU47IXKDBWFTxdPd7F80H8zybyAY7UoblVfBhBGs2EKM+bJUu2+iUYPDQ==", "dev": true, "requires": { - "babel-runtime": "^6.22.0" + "@babel/helper-plugin-utils": "^7.8.3", + "@babel/helper-replace-supers": "^7.8.3" } }, - "babel-plugin-transform-es2015-sticky-regex": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-sticky-regex/-/babel-plugin-transform-es2015-sticky-regex-6.24.1.tgz", - "integrity": "sha1-AMHNsaynERLN8M9hJsLta0V8zbw=", + "@babel/plugin-transform-parameters": { + "version": "7.9.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.9.5.tgz", + "integrity": "sha512-0+1FhHnMfj6lIIhVvS4KGQJeuhe1GI//h5uptK4PvLt+BGBxsoUJbd3/IW002yk//6sZPlFgsG1hY6OHLcy6kA==", "dev": true, "requires": { - "babel-helper-regex": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-types": "^6.24.1" + "@babel/helper-get-function-arity": "^7.8.3", + "@babel/helper-plugin-utils": "^7.8.3" } }, - "babel-plugin-transform-es2015-template-literals": { - "version": "6.22.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-template-literals/-/babel-plugin-transform-es2015-template-literals-6.22.0.tgz", - "integrity": "sha1-qEs0UPfp+PH2g51taH2oS7EjbY0=", + "@babel/plugin-transform-property-literals": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.8.3.tgz", + "integrity": "sha512-uGiiXAZMqEoQhRWMK17VospMZh5sXWg+dlh2soffpkAl96KAm+WZuJfa6lcELotSRmooLqg0MWdH6UUq85nmmg==", "dev": true, "requires": { - "babel-runtime": "^6.22.0" + "@babel/helper-plugin-utils": "^7.8.3" } }, - "babel-plugin-transform-es2015-typeof-symbol": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-typeof-symbol/-/babel-plugin-transform-es2015-typeof-symbol-6.23.0.tgz", - "integrity": "sha1-3sCfHN3/lLUqxz1QXITfWdzOs3I=", + "@babel/plugin-transform-regenerator": { + "version": "7.8.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.8.7.tgz", + "integrity": "sha512-TIg+gAl4Z0a3WmD3mbYSk+J9ZUH6n/Yc57rtKRnlA/7rcCvpekHXe0CMZHP1gYp7/KLe9GHTuIba0vXmls6drA==", "dev": true, "requires": { - "babel-runtime": "^6.22.0" + "regenerator-transform": "^0.14.2" + }, + "dependencies": { + "regenerator-transform": { + "version": "0.14.4", + "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.14.4.tgz", + "integrity": "sha512-EaJaKPBI9GvKpvUz2mz4fhx7WPgvwRLY9v3hlNHWmAuJHI13T4nwKnNvm5RWJzEdnI5g5UwtOww+S8IdoUC2bw==", + "dev": true, + "requires": { + "@babel/runtime": "^7.8.4", + "private": "^0.1.8" + } + } } }, - "babel-plugin-transform-es2015-unicode-regex": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-unicode-regex/-/babel-plugin-transform-es2015-unicode-regex-6.24.1.tgz", - "integrity": "sha1-04sS9C6nMj9yk4fxinxa4frrNek=", + "@babel/plugin-transform-reserved-words": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.8.3.tgz", + "integrity": "sha512-mwMxcycN3omKFDjDQUl+8zyMsBfjRFr0Zn/64I41pmjv4NJuqcYlEtezwYtw9TFd9WR1vN5kiM+O0gMZzO6L0A==", "dev": true, "requires": { - "babel-helper-regex": "^6.24.1", - "babel-runtime": "^6.22.0", - "regexpu-core": "^2.0.0" + "@babel/helper-plugin-utils": "^7.8.3" } }, - "babel-plugin-transform-exponentiation-operator": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-exponentiation-operator/-/babel-plugin-transform-exponentiation-operator-6.24.1.tgz", - "integrity": "sha1-KrDJx/MJj6SJB3cruBP+QejeOg4=", + "@babel/plugin-transform-shorthand-properties": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.8.3.tgz", + "integrity": "sha512-I9DI6Odg0JJwxCHzbzW08ggMdCezoWcuQRz3ptdudgwaHxTjxw5HgdFJmZIkIMlRymL6YiZcped4TTCB0JcC8w==", "dev": true, "requires": { - "babel-helper-builder-binary-assignment-operator-visitor": "^6.24.1", - "babel-plugin-syntax-exponentiation-operator": "^6.8.0", - "babel-runtime": "^6.22.0" + "@babel/helper-plugin-utils": "^7.8.3" } }, - "babel-plugin-transform-export-extensions": { - "version": "6.22.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-export-extensions/-/babel-plugin-transform-export-extensions-6.22.0.tgz", - "integrity": "sha1-U3OLR+deghhYnuqUbLvTkQm75lM=", + "@babel/plugin-transform-spread": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.8.3.tgz", + "integrity": "sha512-CkuTU9mbmAoFOI1tklFWYYbzX5qCIZVXPVy0jpXgGwkplCndQAa58s2jr66fTeQnA64bDox0HL4U56CFYoyC7g==", "dev": true, "requires": { - "babel-plugin-syntax-export-extensions": "^6.8.0", - "babel-runtime": "^6.22.0" + "@babel/helper-plugin-utils": "^7.8.3" } }, - "babel-plugin-transform-function-bind": { - "version": "6.22.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-function-bind/-/babel-plugin-transform-function-bind-6.22.0.tgz", - "integrity": "sha1-xvuOlqwpajELjPjqQBRiQH3fapc=", + "@babel/plugin-transform-sticky-regex": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.8.3.tgz", + "integrity": "sha512-9Spq0vGCD5Bb4Z/ZXXSK5wbbLFMG085qd2vhL1JYu1WcQ5bXqZBAYRzU1d+p79GcHs2szYv5pVQCX13QgldaWw==", "dev": true, "requires": { - "babel-plugin-syntax-function-bind": "^6.8.0", - "babel-runtime": "^6.22.0" + "@babel/helper-plugin-utils": "^7.8.3", + "@babel/helper-regex": "^7.8.3" } }, - "babel-plugin-transform-object-rest-spread": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-object-rest-spread/-/babel-plugin-transform-object-rest-spread-6.26.0.tgz", - "integrity": "sha1-DzZpLVD+9rfi1LOsFHgTepY7ewY=", + "@babel/plugin-transform-template-literals": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.8.3.tgz", + "integrity": "sha512-820QBtykIQOLFT8NZOcTRJ1UNuztIELe4p9DCgvj4NK+PwluSJ49we7s9FB1HIGNIYT7wFUJ0ar2QpCDj0escQ==", "dev": true, "requires": { - "babel-plugin-syntax-object-rest-spread": "^6.8.0", - "babel-runtime": "^6.26.0" + "@babel/helper-annotate-as-pure": "^7.8.3", + "@babel/helper-plugin-utils": "^7.8.3" } }, - "babel-plugin-transform-regenerator": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-regenerator/-/babel-plugin-transform-regenerator-6.26.0.tgz", - "integrity": "sha1-4HA2lvveJ/Cj78rPi03KL3s6jy8=", + "@babel/plugin-transform-typeof-symbol": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.8.4.tgz", + "integrity": "sha512-2QKyfjGdvuNfHsb7qnBBlKclbD4CfshH2KvDabiijLMGXPHJXGxtDzwIF7bQP+T0ysw8fYTtxPafgfs/c1Lrqg==", "dev": true, "requires": { - "regenerator-transform": "^0.10.0" + "@babel/helper-plugin-utils": "^7.8.3" } }, - "babel-plugin-transform-strict-mode": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-strict-mode/-/babel-plugin-transform-strict-mode-6.24.1.tgz", - "integrity": "sha1-1fr3qleKZbvlkc9e2uBKDGcCB1g=", + "@babel/plugin-transform-unicode-regex": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.8.3.tgz", + "integrity": "sha512-+ufgJjYdmWfSQ+6NS9VGUR2ns8cjJjYbrbi11mZBTaWm+Fui/ncTLFF28Ei1okavY+xkojGr1eJxNsWYeA5aZw==", "dev": true, "requires": { - "babel-runtime": "^6.22.0", - "babel-types": "^6.24.1" + "@babel/helper-create-regexp-features-plugin": "^7.8.3", + "@babel/helper-plugin-utils": "^7.8.3" } }, - "babel-polyfill": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-polyfill/-/babel-polyfill-6.26.0.tgz", - "integrity": "sha1-N5k3q8Z9eJWXCtxiHyhM2WbPIVM=", + "@babel/preset-env": { + "version": "7.9.6", + "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.9.6.tgz", + "integrity": "sha512-0gQJ9RTzO0heXOhzftog+a/WyOuqMrAIugVYxMYf83gh1CQaQDjMtsOpqOwXyDL/5JcWsrCm8l4ju8QC97O7EQ==", + "dev": true, "requires": { - "babel-runtime": "^6.26.0", - "core-js": "^2.5.0", - "regenerator-runtime": "^0.10.5" + "@babel/compat-data": "^7.9.6", + "@babel/helper-compilation-targets": "^7.9.6", + "@babel/helper-module-imports": "^7.8.3", + "@babel/helper-plugin-utils": "^7.8.3", + "@babel/plugin-proposal-async-generator-functions": "^7.8.3", + "@babel/plugin-proposal-dynamic-import": "^7.8.3", + "@babel/plugin-proposal-json-strings": "^7.8.3", + "@babel/plugin-proposal-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-proposal-numeric-separator": "^7.8.3", + "@babel/plugin-proposal-object-rest-spread": "^7.9.6", + "@babel/plugin-proposal-optional-catch-binding": "^7.8.3", + "@babel/plugin-proposal-optional-chaining": "^7.9.0", + "@babel/plugin-proposal-unicode-property-regex": "^7.8.3", + "@babel/plugin-syntax-async-generators": "^7.8.0", + "@babel/plugin-syntax-dynamic-import": "^7.8.0", + "@babel/plugin-syntax-json-strings": "^7.8.0", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.0", + "@babel/plugin-syntax-numeric-separator": "^7.8.0", + "@babel/plugin-syntax-object-rest-spread": "^7.8.0", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.0", + "@babel/plugin-syntax-optional-chaining": "^7.8.0", + "@babel/plugin-syntax-top-level-await": "^7.8.3", + "@babel/plugin-transform-arrow-functions": "^7.8.3", + "@babel/plugin-transform-async-to-generator": "^7.8.3", + "@babel/plugin-transform-block-scoped-functions": "^7.8.3", + "@babel/plugin-transform-block-scoping": "^7.8.3", + "@babel/plugin-transform-classes": "^7.9.5", + "@babel/plugin-transform-computed-properties": "^7.8.3", + "@babel/plugin-transform-destructuring": "^7.9.5", + "@babel/plugin-transform-dotall-regex": "^7.8.3", + "@babel/plugin-transform-duplicate-keys": "^7.8.3", + "@babel/plugin-transform-exponentiation-operator": "^7.8.3", + "@babel/plugin-transform-for-of": "^7.9.0", + "@babel/plugin-transform-function-name": "^7.8.3", + "@babel/plugin-transform-literals": "^7.8.3", + "@babel/plugin-transform-member-expression-literals": "^7.8.3", + "@babel/plugin-transform-modules-amd": "^7.9.6", + "@babel/plugin-transform-modules-commonjs": "^7.9.6", + "@babel/plugin-transform-modules-systemjs": "^7.9.6", + "@babel/plugin-transform-modules-umd": "^7.9.0", + "@babel/plugin-transform-named-capturing-groups-regex": "^7.8.3", + "@babel/plugin-transform-new-target": "^7.8.3", + "@babel/plugin-transform-object-super": "^7.8.3", + "@babel/plugin-transform-parameters": "^7.9.5", + "@babel/plugin-transform-property-literals": "^7.8.3", + "@babel/plugin-transform-regenerator": "^7.8.7", + "@babel/plugin-transform-reserved-words": "^7.8.3", + "@babel/plugin-transform-shorthand-properties": "^7.8.3", + "@babel/plugin-transform-spread": "^7.8.3", + "@babel/plugin-transform-sticky-regex": "^7.8.3", + "@babel/plugin-transform-template-literals": "^7.8.3", + "@babel/plugin-transform-typeof-symbol": "^7.8.4", + "@babel/plugin-transform-unicode-regex": "^7.8.3", + "@babel/preset-modules": "^0.1.3", + "@babel/types": "^7.9.6", + "browserslist": "^4.11.1", + "core-js-compat": "^3.6.2", + "invariant": "^2.2.2", + "levenary": "^1.1.1", + "semver": "^5.5.0" }, "dependencies": { - "regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=" + "browserslist": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.12.0.tgz", + "integrity": "sha512-UH2GkcEDSI0k/lRkuDSzFl9ZZ87skSy9w2XAn1MsZnL+4c4rqbBd3e82UWHbYDpztABrPBhZsTEeuxVfHppqDg==", + "dev": true, + "requires": { + "caniuse-lite": "^1.0.30001043", + "electron-to-chromium": "^1.3.413", + "node-releases": "^1.1.53", + "pkg-up": "^2.0.0" + } + }, + "caniuse-lite": { + "version": "1.0.30001064", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001064.tgz", + "integrity": "sha512-hdBcQMFvJIrOhkpAZiRXz04Cmetwc9NekeuNl0qZfHOugxOhJKxsjF1RmISMPFjIF4PPx1reliIzbfN42EiQ5A==", + "dev": true + }, + "electron-to-chromium": { + "version": "1.3.451", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.451.tgz", + "integrity": "sha512-2fvco0F2bBIgqzO8GRP0Jt/91pdrf9KfZ5FsmkYkjERmIJG585cFeFZV4+CO6oTmU3HmCTgfcZuEa7kW8VUh3A==", + "dev": true } } }, - "babel-preset-env": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/babel-preset-env/-/babel-preset-env-1.7.0.tgz", - "integrity": "sha512-9OR2afuKDneX2/q2EurSftUYM0xGu4O2D9adAhVfADDhrYDaxXV0rBbevVYoY9n6nyX1PmQW/0jtpJvUNr9CHg==", - "dev": true, - "requires": { - "babel-plugin-check-es2015-constants": "^6.22.0", - "babel-plugin-syntax-trailing-function-commas": "^6.22.0", - "babel-plugin-transform-async-to-generator": "^6.22.0", - "babel-plugin-transform-es2015-arrow-functions": "^6.22.0", - "babel-plugin-transform-es2015-block-scoped-functions": "^6.22.0", - "babel-plugin-transform-es2015-block-scoping": "^6.23.0", - "babel-plugin-transform-es2015-classes": "^6.23.0", - "babel-plugin-transform-es2015-computed-properties": "^6.22.0", - "babel-plugin-transform-es2015-destructuring": "^6.23.0", - "babel-plugin-transform-es2015-duplicate-keys": "^6.22.0", - "babel-plugin-transform-es2015-for-of": "^6.23.0", - "babel-plugin-transform-es2015-function-name": "^6.22.0", - "babel-plugin-transform-es2015-literals": "^6.22.0", - "babel-plugin-transform-es2015-modules-amd": "^6.22.0", - "babel-plugin-transform-es2015-modules-commonjs": "^6.23.0", - "babel-plugin-transform-es2015-modules-systemjs": "^6.23.0", - "babel-plugin-transform-es2015-modules-umd": "^6.23.0", - "babel-plugin-transform-es2015-object-super": "^6.22.0", - "babel-plugin-transform-es2015-parameters": "^6.23.0", - "babel-plugin-transform-es2015-shorthand-properties": "^6.22.0", - "babel-plugin-transform-es2015-spread": "^6.22.0", - "babel-plugin-transform-es2015-sticky-regex": "^6.22.0", - "babel-plugin-transform-es2015-template-literals": "^6.22.0", - "babel-plugin-transform-es2015-typeof-symbol": "^6.23.0", - "babel-plugin-transform-es2015-unicode-regex": "^6.22.0", - "babel-plugin-transform-exponentiation-operator": "^6.22.0", - "babel-plugin-transform-regenerator": "^6.22.0", - "browserslist": "^3.2.6", - "invariant": "^2.2.2", - "semver": "^5.3.0" + "@babel/preset-modules": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.3.tgz", + "integrity": "sha512-Ra3JXOHBq2xd56xSF7lMKXdjBn3T772Y1Wet3yWnkDly9zHvJki029tAFzvAAK5cf4YV3yoxuP61crYRol6SVg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/plugin-proposal-unicode-property-regex": "^7.4.4", + "@babel/plugin-transform-dotall-regex": "^7.4.4", + "@babel/types": "^7.4.4", + "esutils": "^2.0.2" } }, - "babel-preset-stage-0": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-preset-stage-0/-/babel-preset-stage-0-6.24.1.tgz", - "integrity": "sha1-VkLRUEL5E4TX5a+LyIsduVsDnmo=", + "@babel/register": { + "version": "7.9.0", + "resolved": "https://registry.npmjs.org/@babel/register/-/register-7.9.0.tgz", + "integrity": "sha512-Tv8Zyi2J2VRR8g7pC5gTeIN8Ihultbmk0ocyNz8H2nEZbmhp1N6q0A1UGsQbDvGP/sNinQKUHf3SqXwqjtFv4Q==", "dev": true, "requires": { - "babel-plugin-transform-do-expressions": "^6.22.0", - "babel-plugin-transform-function-bind": "^6.22.0", - "babel-preset-stage-1": "^6.24.1" + "find-cache-dir": "^2.0.0", + "lodash": "^4.17.13", + "make-dir": "^2.1.0", + "pirates": "^4.0.0", + "source-map-support": "^0.5.16" + }, + "dependencies": { + "lodash": { + "version": "4.17.15", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", + "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", + "dev": true + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + }, + "source-map-support": { + "version": "0.5.19", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.19.tgz", + "integrity": "sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw==", + "dev": true, + "requires": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + } } }, - "babel-preset-stage-1": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-preset-stage-1/-/babel-preset-stage-1-6.24.1.tgz", - "integrity": "sha1-dpLNfc1oSZB+auSgqFWJz7niv7A=", + "@babel/runtime": { + "version": "7.9.6", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.9.6.tgz", + "integrity": "sha512-64AF1xY3OAkFHqOb9s4jpgk1Mm5vDZ4L3acHvAml+53nO1XbXLuDodsVpO4OIUsmemlUHMxNdYMNJmsvOwLrvQ==", "dev": true, "requires": { - "babel-plugin-transform-class-constructor-call": "^6.24.1", - "babel-plugin-transform-export-extensions": "^6.22.0", - "babel-preset-stage-2": "^6.24.1" + "regenerator-runtime": "^0.13.4" + }, + "dependencies": { + "regenerator-runtime": { + "version": "0.13.5", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.5.tgz", + "integrity": "sha512-ZS5w8CpKFinUzOwW3c83oPeVXoNsrLsaCoLtJvAClH135j/R77RuymhiSErhm2lKcwSCIpmvIWSbDkIfAqKQlA==", + "dev": true + } } }, - "babel-preset-stage-2": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-preset-stage-2/-/babel-preset-stage-2-6.24.1.tgz", - "integrity": "sha1-2eKWD7PXEYfw5k7sYrwHdnIZvcE=", + "@babel/template": { + "version": "7.8.6", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.8.6.tgz", + "integrity": "sha512-zbMsPMy/v0PWFZEhQJ66bqjhH+z0JgMoBWuikXybgG3Gkd/3t5oQ1Rw2WQhnSrsOmsKXnZOx15tkC4qON/+JPg==", "dev": true, "requires": { - "babel-plugin-syntax-dynamic-import": "^6.18.0", - "babel-plugin-transform-class-properties": "^6.24.1", - "babel-plugin-transform-decorators": "^6.24.1", - "babel-preset-stage-3": "^6.24.1" + "@babel/code-frame": "^7.8.3", + "@babel/parser": "^7.8.6", + "@babel/types": "^7.8.6" } }, - "babel-preset-stage-3": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-preset-stage-3/-/babel-preset-stage-3-6.24.1.tgz", - "integrity": "sha1-g2raCp56f6N8sTj7kyb4eTSkg5U=", + "@babel/traverse": { + "version": "7.9.6", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.9.6.tgz", + "integrity": "sha512-b3rAHSjbxy6VEAvlxM8OV/0X4XrG72zoxme6q1MOoe2vd0bEc+TwayhuC1+Dfgqh1QEG+pj7atQqvUprHIccsg==", "dev": true, "requires": { - "babel-plugin-syntax-trailing-function-commas": "^6.22.0", - "babel-plugin-transform-async-generator-functions": "^6.24.1", - "babel-plugin-transform-async-to-generator": "^6.24.1", - "babel-plugin-transform-exponentiation-operator": "^6.24.1", - "babel-plugin-transform-object-rest-spread": "^6.22.0" + "@babel/code-frame": "^7.8.3", + "@babel/generator": "^7.9.6", + "@babel/helper-function-name": "^7.9.5", + "@babel/helper-split-export-declaration": "^7.8.3", + "@babel/parser": "^7.9.6", + "@babel/types": "^7.9.6", + "debug": "^4.1.0", + "globals": "^11.1.0", + "lodash": "^4.17.13" + }, + "dependencies": { + "debug": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", + "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + }, + "globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true + }, + "lodash": { + "version": "4.17.15", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", + "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", + "dev": true + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + } } }, - "babel-register": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-register/-/babel-register-6.26.0.tgz", - "integrity": "sha1-btAhFz4vy0htestFxgCahW9kcHE=", + "@babel/types": { + "version": "7.9.6", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.9.6.tgz", + "integrity": "sha512-qxXzvBO//jO9ZnoasKF1uJzHd2+M6Q2ZPIVfnFps8JJvXy0ZBbwbNOmE6SGIY5XOY6d1Bo5lb9d9RJ8nv3WSeA==", + "dev": true, "requires": { - "babel-core": "^6.26.0", - "babel-runtime": "^6.26.0", - "core-js": "^2.5.0", - "home-or-tmp": "^2.0.0", - "lodash": "^4.17.4", - "mkdirp": "^0.5.1", - "source-map-support": "^0.4.15" + "@babel/helper-validator-identifier": "^7.9.5", + "lodash": "^4.17.13", + "to-fast-properties": "^2.0.0" }, "dependencies": { - "babel-core": { - "version": "6.26.3", - "resolved": "https://registry.npmjs.org/babel-core/-/babel-core-6.26.3.tgz", - "integrity": "sha512-6jyFLuDmeidKmUEb3NM+/yawG0M2bDZ9Z1qbZP59cyHLz8kYGKYwpJP0UwUKKUiTRNvxfLesJnTedqczP7cTDA==", - "requires": { - "babel-code-frame": "^6.26.0", - "babel-generator": "^6.26.0", - "babel-helpers": "^6.24.1", - "babel-messages": "^6.23.0", - "babel-register": "^6.26.0", - "babel-runtime": "^6.26.0", - "babel-template": "^6.26.0", - "babel-traverse": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "convert-source-map": "^1.5.1", - "debug": "^2.6.9", - "json5": "^0.5.1", - "lodash": "^4.17.4", - "minimatch": "^3.0.4", - "path-is-absolute": "^1.0.1", - "private": "^0.1.8", - "slash": "^1.0.0", - "source-map": "^0.5.7" - } + "lodash": { + "version": "4.17.15", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", + "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", + "dev": true + }, + "to-fast-properties": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", + "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=", + "dev": true } } }, - "babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", + "@sinonjs/commons": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.0.tgz", + "integrity": "sha512-wEj54PfsZ5jGSwMX68G8ZXFawcSglQSXqCftWX3ec8MDUzQdHgcKvw97awHbY0efQEL5iKUOAmmVtoYgmrSG4Q==", + "dev": true, + "requires": { + "type-detect": "4.0.8" + } + }, + "@sinonjs/formatio": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/@sinonjs/formatio/-/formatio-3.2.2.tgz", + "integrity": "sha512-B8SEsgd8gArBLMD6zpRw3juQ2FVSsmdd7qlevyDqzS9WTCtvF55/gAL+h6gue8ZvPYcdiPdvueM/qm//9XzyTQ==", + "dev": true, + "requires": { + "@sinonjs/commons": "^1", + "@sinonjs/samsam": "^3.1.0" + } + }, + "@sinonjs/samsam": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/@sinonjs/samsam/-/samsam-3.3.3.tgz", + "integrity": "sha512-bKCMKZvWIjYD0BLGnNrxVuw4dkWCYsLqFOUWw8VgKF/+5Y+mE7LfHWPIYoDXowH+3a9LsWDMo0uAP8YDosPvHQ==", + "dev": true, "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" + "@sinonjs/commons": "^1.3.0", + "array-from": "^2.1.1", + "lodash": "^4.17.15" + }, + "dependencies": { + "lodash": { + "version": "4.17.15", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", + "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", + "dev": true + } } }, - "babel-template": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-template/-/babel-template-6.26.0.tgz", - "integrity": "sha1-3gPi0WOWsGn0bdn/+FIfsaDjXgI=", - "requires": { - "babel-runtime": "^6.26.0", - "babel-traverse": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "lodash": "^4.17.4" - } + "@sinonjs/text-encoding": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/@sinonjs/text-encoding/-/text-encoding-0.7.1.tgz", + "integrity": "sha512-+iTbntw2IZPb/anVDbypzfQa+ay64MW0Zo8aJ8gZPWMMK6/OubMVb6lUPMagqjOPnmtauXnFCACVl3O7ogjeqQ==", + "dev": true + }, + "arr-flatten": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", + "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", + "optional": true + }, + "arr-union": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz", + "integrity": "sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=", + "optional": true + }, + "array-from": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/array-from/-/array-from-2.1.1.tgz", + "integrity": "sha1-z+nYwmYoudxa7MYqn12PHzUsEZU=", + "dev": true + }, + "assign-symbols": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz", + "integrity": "sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=", + "optional": true + }, + "async-each": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/async-each/-/async-each-1.0.1.tgz", + "integrity": "sha1-GdOGodntxufByF04iu28xW0zYC0=", + "optional": true + }, + "asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" }, - "babel-traverse": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-traverse/-/babel-traverse-6.26.0.tgz", - "integrity": "sha1-RqnL1+3MYsjlwGTi0tjQ9ANXZu4=", - "requires": { - "babel-code-frame": "^6.26.0", - "babel-messages": "^6.23.0", - "babel-runtime": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "debug": "^2.6.8", - "globals": "^9.18.0", - "invariant": "^2.2.2", - "lodash": "^4.17.4" - } + "atob": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", + "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==", + "optional": true }, - "babel-types": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.26.0.tgz", - "integrity": "sha1-o7Bz+Uq0nrb6Vc1lInozQ4BjJJc=", + "babel-plugin-dynamic-import-node": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-2.3.3.tgz", + "integrity": "sha512-jZVI+s9Zg3IqA/kdi0i6UDCybUI3aSBLnglhYbSSjKlV7yF1F/5LWv8MakQmvYpnbJDS6fcBL2KzHSxNCMtWSQ==", + "dev": true, "requires": { - "babel-runtime": "^6.26.0", - "esutils": "^2.0.2", - "lodash": "^4.17.4", - "to-fast-properties": "^1.0.3" + "object.assign": "^4.1.0" } }, - "babylon": { - "version": "6.18.0", - "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz", - "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==" - }, "balanced-match": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", @@ -993,6 +1960,7 @@ "version": "0.11.2", "resolved": "https://registry.npmjs.org/base/-/base-0.11.2.tgz", "integrity": "sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg==", + "optional": true, "requires": { "cache-base": "^1.0.1", "class-utils": "^0.3.5", @@ -1007,6 +1975,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", + "optional": true, "requires": { "is-descriptor": "^1.0.0" } @@ -1015,6 +1984,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "optional": true, "requires": { "kind-of": "^6.0.0" } @@ -1023,6 +1993,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "optional": true, "requires": { "kind-of": "^6.0.0" } @@ -1031,6 +2002,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "optional": true, "requires": { "is-accessor-descriptor": "^1.0.0", "is-data-descriptor": "^1.0.0", @@ -1040,12 +2012,14 @@ "isobject": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=" + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "optional": true }, "kind-of": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", - "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==" + "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", + "optional": true } } }, @@ -1064,37 +2038,23 @@ "concat-map": "0.0.1" } }, - "braces": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/braces/-/braces-1.8.5.tgz", - "integrity": "sha1-uneWLhLf+WnWt2cR6RS3N4V79qc=", - "optional": true, - "requires": { - "expand-range": "^1.8.1", - "preserve": "^0.2.0", - "repeat-element": "^1.1.2" - } - }, "browser-stdout": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", "dev": true }, - "browserslist": { - "version": "3.2.8", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-3.2.8.tgz", - "integrity": "sha512-WHVocJYavUwVgVViC0ORikPHQquXwVh939TaelZ4WDqpWgTX/FsGhl/+P4qBUAGcRvtOgDgC+xftNWWp2RUTAQ==", - "dev": true, - "requires": { - "caniuse-lite": "^1.0.30000844", - "electron-to-chromium": "^1.3.47" - } + "buffer-from": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", + "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", + "dev": true }, "cache-base": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/cache-base/-/cache-base-1.0.1.tgz", "integrity": "sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==", + "optional": true, "requires": { "collection-visit": "^1.0.0", "component-emitter": "^1.2.1", @@ -1110,49 +2070,16 @@ "isobject": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=" + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "optional": true } } }, - "caniuse-lite": { - "version": "1.0.30000930", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30000930.tgz", - "integrity": "sha512-KD+pw9DderBLB8CGqBzYyFWpnrPVOEjsjargU/CvkNyg60od3cxSPTcTeMPhxJhDbkQPWvOz5BAyBzNl/St9vg==", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - } - }, - "chokidar": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-1.7.0.tgz", - "integrity": "sha1-eY5ol3gVHIB2tLNg5e3SjNortGg=", - "optional": true, - "requires": { - "anymatch": "^1.3.0", - "async-each": "^1.0.0", - "fsevents": "^1.0.0", - "glob-parent": "^2.0.0", - "inherits": "^2.0.1", - "is-binary-path": "^1.0.0", - "is-glob": "^2.0.0", - "path-is-absolute": "^1.0.0", - "readdirp": "^2.0.0" - } - }, "class-utils": { "version": "0.3.6", "resolved": "https://registry.npmjs.org/class-utils/-/class-utils-0.3.6.tgz", "integrity": "sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==", + "optional": true, "requires": { "arr-union": "^3.1.0", "define-property": "^0.2.5", @@ -1164,6 +2091,7 @@ "version": "0.2.5", "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "optional": true, "requires": { "is-descriptor": "^0.1.0" } @@ -1171,7 +2099,8 @@ "isobject": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=" + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "optional": true } } }, @@ -1179,11 +2108,27 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz", "integrity": "sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA=", + "optional": true, "requires": { "map-visit": "^1.0.0", "object-visit": "^1.0.0" } }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + }, "combined-stream": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.7.tgz", @@ -1192,10 +2137,11 @@ "delayed-stream": "~1.0.0" } }, - "commander": { - "version": "2.19.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.19.0.tgz", - "integrity": "sha512-6tvAOO+D6OENvRAh524Dh9jcfKTYDQAqvqezbCW82xj5X0pSrcpxtvRKHLG0yBY6SD7PSDrJaj+0AiOcKVd1Xg==" + "commondir": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", + "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=", + "dev": true }, "component-emitter": { "version": "1.2.1", @@ -1223,12 +2169,50 @@ "copy-descriptor": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz", - "integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=" + "integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=", + "optional": true }, - "core-js": { - "version": "2.6.3", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.3.tgz", - "integrity": "sha512-l00tmFFZOBHtYhN4Cz7k32VM7vTn3rE2ANjQDxdEN6zmXZ/xq1jQuutnmHvMG1ZJ7xd72+TA5YpUK8wz3rWsfQ==" + "core-js-compat": { + "version": "3.6.5", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.6.5.tgz", + "integrity": "sha512-7ItTKOhOZbznhXAQ2g/slGg1PJV5zDO/WdkTwi7UEOJmkvsE32PWvx6mKtDjiMpjnR2CNf6BAD6sSxIlv7ptng==", + "dev": true, + "requires": { + "browserslist": "^4.8.5", + "semver": "7.0.0" + }, + "dependencies": { + "browserslist": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.12.0.tgz", + "integrity": "sha512-UH2GkcEDSI0k/lRkuDSzFl9ZZ87skSy9w2XAn1MsZnL+4c4rqbBd3e82UWHbYDpztABrPBhZsTEeuxVfHppqDg==", + "dev": true, + "requires": { + "caniuse-lite": "^1.0.30001043", + "electron-to-chromium": "^1.3.413", + "node-releases": "^1.1.53", + "pkg-up": "^2.0.0" + } + }, + "caniuse-lite": { + "version": "1.0.30001064", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001064.tgz", + "integrity": "sha512-hdBcQMFvJIrOhkpAZiRXz04Cmetwc9NekeuNl0qZfHOugxOhJKxsjF1RmISMPFjIF4PPx1reliIzbfN42EiQ5A==", + "dev": true + }, + "electron-to-chromium": { + "version": "1.3.451", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.451.tgz", + "integrity": "sha512-2fvco0F2bBIgqzO8GRP0Jt/91pdrf9KfZ5FsmkYkjERmIJG585cFeFZV4+CO6oTmU3HmCTgfcZuEa7kW8VUh3A==", + "dev": true + }, + "semver": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.0.0.tgz", + "integrity": "sha512-+GB6zVA9LWh6zovYQLALHwv5rb2PHGlJi3lfiqIHxR0uuwCgefcOJc59v9fv1w8GbStwxuuqqAjI9NMAOOgq1A==", + "dev": true + } + } }, "core-util-is": { "version": "1.0.2", @@ -1239,6 +2223,7 @@ "version": "2.6.9", "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "optional": true, "requires": { "ms": "2.0.0" } @@ -1246,12 +2231,23 @@ "decode-uri-component": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz", - "integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=" + "integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=", + "optional": true + }, + "define-properties": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", + "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", + "dev": true, + "requires": { + "object-keys": "^1.0.12" + } }, "define-property": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz", "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==", + "optional": true, "requires": { "is-descriptor": "^1.0.2", "isobject": "^3.0.1" @@ -1261,6 +2257,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "optional": true, "requires": { "kind-of": "^6.0.0" } @@ -1269,6 +2266,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "optional": true, "requires": { "kind-of": "^6.0.0" } @@ -1277,6 +2275,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "optional": true, "requires": { "is-accessor-descriptor": "^1.0.0", "is-data-descriptor": "^1.0.0", @@ -1286,12 +2285,14 @@ "isobject": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=" + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "optional": true }, "kind-of": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", - "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==" + "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", + "optional": true } } }, @@ -1300,53 +2301,23 @@ "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=" }, - "detect-indent": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-4.0.0.tgz", - "integrity": "sha1-920GQ1LN9Docts5hnE7jqUdd4gg=", - "requires": { - "repeating": "^2.0.0" - } - }, "diff": { "version": "3.5.0", "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", "dev": true }, - "electron-to-chromium": { - "version": "1.3.106", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.106.tgz", - "integrity": "sha512-eXX45p4q9CRxG0G8D3ZBZYSdN3DnrcZfrFvt6VUr1u7aKITEtRY/xwWzJ/UZcWXa7DMqPu/pYwuZ6Nm+bl0GmA==", - "dev": true - }, "escape-string-regexp": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true }, "esutils": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.2.tgz", - "integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=" - }, - "expand-brackets": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-0.1.5.tgz", - "integrity": "sha1-3wcoTjQqgHzXM6xa9yQR5YHRF3s=", - "optional": true, - "requires": { - "is-posix-bracket": "^0.1.0" - } - }, - "expand-range": { - "version": "1.8.2", - "resolved": "https://registry.npmjs.org/expand-range/-/expand-range-1.8.2.tgz", - "integrity": "sha1-opnv/TNf4nIeuujiV+x5ZE/IUzc=", - "optional": true, - "requires": { - "fill-range": "^2.1.0" - } + "integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=", + "dev": true }, "expect.js": { "version": "0.3.1", @@ -1363,6 +2334,7 @@ "version": "3.0.2", "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", + "optional": true, "requires": { "assign-symbols": "^1.0.0", "is-extendable": "^1.0.1" @@ -1372,53 +2344,38 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "optional": true, "requires": { "is-plain-object": "^2.0.4" } } } }, - "extglob": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/extglob/-/extglob-0.3.2.tgz", - "integrity": "sha1-Lhj/PS9JqydlzskCPwEdqo2DSaE=", - "optional": true, + "find-cache-dir": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-2.1.0.tgz", + "integrity": "sha512-Tq6PixE0w/VMFfCgbONnkiQIVol/JJL7nRMi20fqzA4NRs9AfeqMGeRdPi3wIhYkxjeBaWh2rxwapn5Tu3IqOQ==", + "dev": true, "requires": { - "is-extglob": "^1.0.0" + "commondir": "^1.0.1", + "make-dir": "^2.0.0", + "pkg-dir": "^3.0.0" } }, - "filename-regex": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/filename-regex/-/filename-regex-2.0.1.tgz", - "integrity": "sha1-wcS5vuPglyXdsQa3XB4wH+LxiyY=", - "optional": true - }, - "fill-range": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-2.2.4.tgz", - "integrity": "sha512-cnrcCbj01+j2gTG921VZPnHbjmdAf8oQV/iGeV2kZxGSyfYjjTyY79ErsK1WJWMpw6DaApEX72binqJE+/d+5Q==", - "optional": true, + "find-up": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", + "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", + "dev": true, "requires": { - "is-number": "^2.1.0", - "isobject": "^2.0.0", - "randomatic": "^3.0.0", - "repeat-element": "^1.1.2", - "repeat-string": "^1.5.2" + "locate-path": "^2.0.0" } }, "for-in": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", - "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=" - }, - "for-own": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/for-own/-/for-own-0.1.5.tgz", - "integrity": "sha1-UmXGgaTylNq78XyVCbZ2OqhFEM4=", - "optional": true, - "requires": { - "for-in": "^1.0.1" - } + "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=", + "optional": true }, "form-data": { "version": "2.3.3", @@ -1430,15 +2387,6 @@ "mime-types": "^2.1.12" } }, - "formatio": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/formatio/-/formatio-1.1.1.tgz", - "integrity": "sha1-XtPM1jZVEJc4NGXZlhmRAOhhYek=", - "dev": true, - "requires": { - "samsam": "~1.1" - } - }, "formidable": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/formidable/-/formidable-1.2.1.tgz", @@ -1448,6 +2396,7 @@ "version": "0.2.1", "resolved": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz", "integrity": "sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk=", + "optional": true, "requires": { "map-cache": "^0.2.2" } @@ -1479,7 +2428,8 @@ }, "ansi-regex": { "version": "2.1.1", - "bundled": true + "bundled": true, + "optional": true }, "aproba": { "version": "1.2.0", @@ -1497,11 +2447,13 @@ }, "balanced-match": { "version": "1.0.0", - "bundled": true + "bundled": true, + "optional": true }, "brace-expansion": { "version": "1.1.11", "bundled": true, + "optional": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -1514,15 +2466,18 @@ }, "code-point-at": { "version": "1.1.0", - "bundled": true + "bundled": true, + "optional": true }, "concat-map": { "version": "0.0.1", - "bundled": true + "bundled": true, + "optional": true }, "console-control-strings": { "version": "1.1.0", - "bundled": true + "bundled": true, + "optional": true }, "core-util-is": { "version": "1.0.2", @@ -1625,7 +2580,8 @@ }, "inherits": { "version": "2.0.3", - "bundled": true + "bundled": true, + "optional": true }, "ini": { "version": "1.3.5", @@ -1635,6 +2591,7 @@ "is-fullwidth-code-point": { "version": "1.0.0", "bundled": true, + "optional": true, "requires": { "number-is-nan": "^1.0.0" } @@ -1647,17 +2604,20 @@ "minimatch": { "version": "3.0.4", "bundled": true, + "optional": true, "requires": { "brace-expansion": "^1.1.7" } }, "minimist": { "version": "0.0.8", - "bundled": true + "bundled": true, + "optional": true }, "minipass": { "version": "2.3.5", "bundled": true, + "optional": true, "requires": { "safe-buffer": "^5.1.2", "yallist": "^3.0.0" @@ -1674,6 +2634,7 @@ "mkdirp": { "version": "0.5.1", "bundled": true, + "optional": true, "requires": { "minimist": "0.0.8" } @@ -1746,7 +2707,8 @@ }, "number-is-nan": { "version": "1.0.1", - "bundled": true + "bundled": true, + "optional": true }, "object-assign": { "version": "4.1.1", @@ -1756,6 +2718,7 @@ "once": { "version": "1.4.0", "bundled": true, + "optional": true, "requires": { "wrappy": "1" } @@ -1831,7 +2794,8 @@ }, "safe-buffer": { "version": "5.1.2", - "bundled": true + "bundled": true, + "optional": true }, "safer-buffer": { "version": "2.1.2", @@ -1861,6 +2825,7 @@ "string-width": { "version": "1.0.2", "bundled": true, + "optional": true, "requires": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", @@ -1878,6 +2843,7 @@ "strip-ansi": { "version": "3.0.1", "bundled": true, + "optional": true, "requires": { "ansi-regex": "^2.0.0" } @@ -1916,18 +2882,33 @@ }, "wrappy": { "version": "1.0.2", - "bundled": true + "bundled": true, + "optional": true }, "yallist": { "version": "3.0.3", - "bundled": true + "bundled": true, + "optional": true } } }, + "function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", + "dev": true + }, + "gensync": { + "version": "1.0.0-beta.1", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.1.tgz", + "integrity": "sha512-r8EC6NO1sngH/zdD9fiRDLdcgnbayXah+mLgManTaIZJqEC1MZstmnox8KpnI2/fxQwrp5OpCOYWLp4rBl4Jcg==", + "dev": true + }, "get-value": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz", - "integrity": "sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=" + "integrity": "sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=", + "optional": true }, "glob": { "version": "7.1.3", @@ -1942,33 +2923,11 @@ "path-is-absolute": "^1.0.0" } }, - "glob-base": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/glob-base/-/glob-base-0.3.0.tgz", - "integrity": "sha1-27Fk9iIbHAscz4Kuoyi0l98Oo8Q=", - "optional": true, - "requires": { - "glob-parent": "^2.0.0", - "is-glob": "^2.0.0" - } - }, - "glob-parent": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-2.0.0.tgz", - "integrity": "sha1-gTg9ctsFT8zPUzbaqQLxgvbtuyg=", - "requires": { - "is-glob": "^2.0.0" - } - }, - "globals": { - "version": "9.18.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-9.18.0.tgz", - "integrity": "sha512-S0nG3CLEQiY/ILxqtztTWH/3iRRdyBLw6KMDxnKMchrtbj2OFmehVh0WUCfW3DUrIgx/qFrJPICrq4Z4sTR9UQ==" - }, "graceful-fs": { "version": "4.1.15", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.15.tgz", - "integrity": "sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA==" + "integrity": "sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA==", + "optional": true }, "growl": { "version": "1.10.5", @@ -1976,24 +2935,23 @@ "integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==", "dev": true }, - "has-ansi": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", - "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", - "requires": { - "ansi-regex": "^2.0.0" - } - }, "has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", "dev": true }, + "has-symbols": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.1.tgz", + "integrity": "sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg==", + "dev": true + }, "has-value": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/has-value/-/has-value-1.0.0.tgz", "integrity": "sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc=", + "optional": true, "requires": { "get-value": "^2.0.6", "has-values": "^1.0.0", @@ -2003,7 +2961,8 @@ "isobject": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=" + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "optional": true } } }, @@ -2011,6 +2970,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/has-values/-/has-values-1.0.0.tgz", "integrity": "sha1-lbC2P+whRmGab+V/51Yo1aOe/k8=", + "optional": true, "requires": { "is-number": "^3.0.0", "kind-of": "^4.0.0" @@ -2020,6 +2980,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", + "optional": true, "requires": { "kind-of": "^3.0.2" }, @@ -2028,6 +2989,7 @@ "version": "3.2.2", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "optional": true, "requires": { "is-buffer": "^1.1.5" } @@ -2038,6 +3000,7 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz", "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=", + "optional": true, "requires": { "is-buffer": "^1.1.5" } @@ -2050,15 +3013,6 @@ "integrity": "sha1-k0EP0hsAlzUVH4howvJx80J+I/0=", "dev": true }, - "home-or-tmp": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/home-or-tmp/-/home-or-tmp-2.0.0.tgz", - "integrity": "sha1-42w/LSyufXRqhX440Y1fMqeILbg=", - "requires": { - "os-homedir": "^1.0.0", - "os-tmpdir": "^1.0.1" - } - }, "inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", @@ -2077,6 +3031,7 @@ "version": "2.2.4", "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", + "dev": true, "requires": { "loose-envify": "^1.0.0" } @@ -2085,6 +3040,7 @@ "version": "0.1.6", "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", + "optional": true, "requires": { "kind-of": "^3.0.2" } @@ -2101,12 +3057,14 @@ "is-buffer": { "version": "1.1.6", "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", - "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==" + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", + "optional": true }, "is-data-descriptor": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", + "optional": true, "requires": { "kind-of": "^3.0.2" } @@ -2115,6 +3073,7 @@ "version": "0.1.6", "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "optional": true, "requires": { "is-accessor-descriptor": "^0.1.6", "is-data-descriptor": "^0.1.4", @@ -2124,64 +3083,22 @@ "kind-of": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", - "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==" + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "optional": true } } }, - "is-dotfile": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/is-dotfile/-/is-dotfile-1.0.3.tgz", - "integrity": "sha1-pqLzL/0t+wT1yiXs0Pa4PPeYoeE=", - "optional": true - }, - "is-equal-shallow": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz", - "integrity": "sha1-IjgJj8Ih3gvPpdnqxMRdY4qhxTQ=", - "optional": true, - "requires": { - "is-primitive": "^2.0.0" - } - }, "is-extendable": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=" - }, - "is-extglob": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", - "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=" - }, - "is-finite": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-finite/-/is-finite-1.0.2.tgz", - "integrity": "sha1-zGZ3aVYCvlUO8R6LSqYwU0K20Ko=", - "requires": { - "number-is-nan": "^1.0.0" - } - }, - "is-glob": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", - "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", - "requires": { - "is-extglob": "^1.0.0" - } - }, - "is-number": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz", - "integrity": "sha1-Afy7s5NGOlSPL0ZszhbezknbkI8=", - "optional": true, - "requires": { - "kind-of": "^3.0.2" - } + "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", + "optional": true }, "is-plain-object": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "optional": true, "requires": { "isobject": "^3.0.1" }, @@ -2189,22 +3106,11 @@ "isobject": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=" + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "optional": true } } }, - "is-posix-bracket": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz", - "integrity": "sha1-MzTceXdDaOkvAW5vvAqI9c1ua8Q=", - "optional": true - }, - "is-primitive": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-primitive/-/is-primitive-2.0.0.tgz", - "integrity": "sha1-IHurkWOEmcB7Kt8kCkGochADRXU=", - "optional": true - }, "is-windows": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", @@ -2216,102 +3122,96 @@ "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" }, - "isobject": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", - "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", - "optional": true, - "requires": { - "isarray": "1.0.0" - } - }, "js-tokens": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz", - "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=" - }, - "jsesc": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-1.3.0.tgz", - "integrity": "sha1-RsP+yMGJKxKwgz25vHYiF226s0s=" + "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=", + "dev": true }, - "json5": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-0.5.1.tgz", - "integrity": "sha1-Hq3nrMASA0rYTiOWdn6tn6VJWCE=" + "just-extend": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/just-extend/-/just-extend-4.1.0.tgz", + "integrity": "sha512-ApcjaOdVTJ7y4r08xI5wIqpvwS48Q0PBG4DJROcEkH1f8MdAiNFyFxz3xoL0LWAVwjrwPYZdVHHxhRHcx/uGLA==", + "dev": true }, "kind-of": { "version": "3.2.2", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "optional": true, + "requires": { + "is-buffer": "^1.1.5" + } + }, + "leven": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", + "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", + "dev": true + }, + "levenary": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/levenary/-/levenary-1.1.1.tgz", + "integrity": "sha512-mkAdOIt79FD6irqjYSs4rdbnlT5vRonMEvBVPVb3XmevfS8kgRXwfes0dhPdEtzTWD/1eNE/Bm/G1iRt6DcnQQ==", + "dev": true, "requires": { - "is-buffer": "^1.1.5" + "leven": "^3.1.0" } }, - "lodash": { - "version": "4.17.11", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", - "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==" + "locate-path": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", + "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", + "dev": true, + "requires": { + "p-locate": "^2.0.0", + "path-exists": "^3.0.0" + } }, "lolex": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/lolex/-/lolex-1.3.2.tgz", - "integrity": "sha1-fD2mL/yzDw9agKJWbKJORdigHzE=", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/lolex/-/lolex-4.2.0.tgz", + "integrity": "sha512-gKO5uExCXvSm6zbF562EvM+rd1kQDnB9AZBbiQVzf1ZmdDpxUSvpnAaVOP83N/31mRK8Ml8/VE8DMvsAZQ+7wg==", "dev": true }, "loose-envify": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "dev": true, "requires": { "js-tokens": "^3.0.0 || ^4.0.0" } }, + "make-dir": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz", + "integrity": "sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==", + "requires": { + "pify": "^4.0.1", + "semver": "^5.6.0" + } + }, "map-cache": { "version": "0.2.2", "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz", - "integrity": "sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8=" + "integrity": "sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8=", + "optional": true }, "map-visit": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/map-visit/-/map-visit-1.0.0.tgz", "integrity": "sha1-7Nyo8TFE5mDxtb1B8S80edmN+48=", + "optional": true, "requires": { "object-visit": "^1.0.0" } }, - "math-random": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/math-random/-/math-random-1.0.4.tgz", - "integrity": "sha512-rUxjysqif/BZQH2yhd5Aaq7vXMSx9NdEsQcyA07uEzIvxgI7zIr33gGsh+RU0/XjmQpCW7RsVof1vlkvQVCK5A==", - "optional": true - }, "methods": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=" }, - "micromatch": { - "version": "2.3.11", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-2.3.11.tgz", - "integrity": "sha1-hmd8l9FyCzY0MdBNDRUpO9OMFWU=", - "optional": true, - "requires": { - "arr-diff": "^2.0.0", - "array-unique": "^0.2.1", - "braces": "^1.8.2", - "expand-brackets": "^0.1.4", - "extglob": "^0.3.1", - "filename-regex": "^2.0.0", - "is-extglob": "^1.0.0", - "is-glob": "^2.0.1", - "kind-of": "^3.0.2", - "normalize-path": "^2.0.1", - "object.omit": "^2.0.0", - "parse-glob": "^3.0.4", - "regex-cache": "^0.4.2" - } - }, "mime": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", @@ -2341,12 +3241,14 @@ "minimist": { "version": "0.0.8", "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=" + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", + "dev": true }, "mixin-deep": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.1.tgz", "integrity": "sha512-8ZItLHeEgaqEvd5lYBXfm4EZSFCX29Jb9K+lAHhDKzReKBQKj3R+7NOF6tjqYi9t4oI8VUfaWITJQm86wnXGNQ==", + "optional": true, "requires": { "for-in": "^1.0.2", "is-extendable": "^1.0.1" @@ -2356,6 +3258,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "optional": true, "requires": { "is-plain-object": "^2.0.4" } @@ -2366,6 +3269,7 @@ "version": "0.5.1", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "dev": true, "requires": { "minimist": "0.0.8" } @@ -2479,28 +3383,47 @@ } } }, - "normalize-path": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", - "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", + "nise": { + "version": "1.5.3", + "resolved": "https://registry.npmjs.org/nise/-/nise-1.5.3.tgz", + "integrity": "sha512-Ymbac/94xeIrMf59REBPOv0thr+CJVFMhrlAkW/gjCIE58BGQdCj0x7KRCb3yz+Ga2Rz3E9XXSvUyyxqqhjQAQ==", + "dev": true, "requires": { - "remove-trailing-separator": "^1.0.1" + "@sinonjs/formatio": "^3.2.1", + "@sinonjs/text-encoding": "^0.7.1", + "just-extend": "^4.0.2", + "lolex": "^5.0.1", + "path-to-regexp": "^1.7.0" + }, + "dependencies": { + "lolex": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/lolex/-/lolex-5.1.2.tgz", + "integrity": "sha512-h4hmjAvHTmd+25JSwrtTIuwbKdwg5NzZVRMLn9saij4SZaepCrTCxPr35H/3bjwfMJtN+t3CX8672UIkglz28A==", + "dev": true, + "requires": { + "@sinonjs/commons": "^1.7.0" + } + } } }, - "number-is-nan": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", - "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=" + "node-modules-regexp": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/node-modules-regexp/-/node-modules-regexp-1.0.0.tgz", + "integrity": "sha1-jZ2+KJZKSsVxLpExZCEHxx6Q7EA=", + "dev": true }, - "object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" + "node-releases": { + "version": "1.1.56", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-1.1.56.tgz", + "integrity": "sha512-EVo605FhWLygH8a64TjgpjyHYOihkxECwX1bHHr8tETJKWEiWS2YJjPbvsX2jFjnjTNEgBCmk9mLjKG1Mf11cw==", + "dev": true }, "object-copy": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/object-copy/-/object-copy-0.1.0.tgz", "integrity": "sha1-fn2Fi3gb18mRpBupde04EnVOmYw=", + "optional": true, "requires": { "copy-descriptor": "^0.1.0", "define-property": "^0.2.5", @@ -2511,16 +3434,24 @@ "version": "0.2.5", "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "optional": true, "requires": { "is-descriptor": "^0.1.0" } } } }, + "object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "dev": true + }, "object-visit": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/object-visit/-/object-visit-1.0.1.tgz", "integrity": "sha1-95xEk68MU3e1n+OdOV5BBC3QRbs=", + "optional": true, "requires": { "isobject": "^3.0.0" }, @@ -2528,24 +3459,28 @@ "isobject": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=" + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "optional": true } } }, - "object.omit": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/object.omit/-/object.omit-2.0.1.tgz", - "integrity": "sha1-Gpx0SCnznbuFjHbKNXmuKlTr0fo=", - "optional": true, + "object.assign": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.0.tgz", + "integrity": "sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w==", + "dev": true, "requires": { - "for-own": "^0.1.4", - "is-extendable": "^0.1.1" + "define-properties": "^1.1.2", + "function-bind": "^1.1.1", + "has-symbols": "^1.0.0", + "object-keys": "^1.0.11" } }, "object.pick": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", "integrity": "sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c=", + "optional": true, "requires": { "isobject": "^3.0.1" }, @@ -2553,7 +3488,8 @@ "isobject": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=" + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "optional": true } } }, @@ -2565,64 +3501,164 @@ "wrappy": "1" } }, - "os-homedir": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", - "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=" - }, - "os-tmpdir": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", - "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=" - }, - "output-file-sync": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/output-file-sync/-/output-file-sync-1.1.2.tgz", - "integrity": "sha1-0KM+7+YaIF+suQCS6CZZjVJFznY=", + "p-limit": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", + "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", + "dev": true, "requires": { - "graceful-fs": "^4.1.4", - "mkdirp": "^0.5.1", - "object-assign": "^4.1.0" + "p-try": "^1.0.0" } }, - "parse-glob": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/parse-glob/-/parse-glob-3.0.4.tgz", - "integrity": "sha1-ssN2z7EfNVE7rdFz7wu246OIORw=", - "optional": true, + "p-locate": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", + "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", + "dev": true, "requires": { - "glob-base": "^0.3.0", - "is-dotfile": "^1.0.0", - "is-extglob": "^1.0.0", - "is-glob": "^2.0.0" + "p-limit": "^1.1.0" } }, + "p-try": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", + "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", + "dev": true + }, "pascalcase": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/pascalcase/-/pascalcase-0.1.1.tgz", - "integrity": "sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ=" + "integrity": "sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ=", + "optional": true + }, + "path-dirname": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/path-dirname/-/path-dirname-1.0.2.tgz", + "integrity": "sha1-zDPSTVJeCZpTiMAzbG4yuRYGCeA=", + "optional": true + }, + "path-exists": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", + "dev": true }, "path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" }, + "path-parse": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", + "dev": true + }, + "path-to-regexp": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-1.8.0.tgz", + "integrity": "sha512-n43JRhlUKUAlibEJhPeir1ncUID16QnEjNpwzNdO3Lm4ywrBpBZ5oLD0I6br9evr1Y9JTqwRtAh7JLoOzAQdVA==", + "dev": true, + "requires": { + "isarray": "0.0.1" + }, + "dependencies": { + "isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", + "dev": true + } + } + }, + "pify": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", + "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==" + }, + "pirates": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.1.tgz", + "integrity": "sha512-WuNqLTbMI3tmfef2TKxlQmAiLHKtFhlsCZnPIpuv2Ow0RDVO8lfy1Opf4NUzlMXLjPl+Men7AuVdX6TA+s+uGA==", + "dev": true, + "requires": { + "node-modules-regexp": "^1.0.0" + } + }, + "pkg-dir": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-3.0.0.tgz", + "integrity": "sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw==", + "dev": true, + "requires": { + "find-up": "^3.0.0" + }, + "dependencies": { + "find-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", + "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", + "dev": true, + "requires": { + "locate-path": "^3.0.0" + } + }, + "locate-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", + "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", + "dev": true, + "requires": { + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" + } + }, + "p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "requires": { + "p-try": "^2.0.0" + } + }, + "p-locate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", + "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", + "dev": true, + "requires": { + "p-limit": "^2.0.0" + } + }, + "p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true + } + } + }, + "pkg-up": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/pkg-up/-/pkg-up-2.0.0.tgz", + "integrity": "sha1-yBmscoBZpGHKscOImivjxJoATX8=", + "dev": true, + "requires": { + "find-up": "^2.1.0" + } + }, "posix-character-classes": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz", "integrity": "sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=", "optional": true }, - "preserve": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/preserve/-/preserve-0.2.0.tgz", - "integrity": "sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks=", - "optional": true - }, "private": { "version": "0.1.8", "resolved": "https://registry.npmjs.org/private/-/private-0.1.8.tgz", - "integrity": "sha512-VvivMrbvd2nKkiG38qjULzlc+4Vx4wm/whI9pQD35YrARNnhxeiRktSOhSukRLFNlzg6Br/cJPet5J/u19r/mg==" + "integrity": "sha512-VvivMrbvd2nKkiG38qjULzlc+4Vx4wm/whI9pQD35YrARNnhxeiRktSOhSukRLFNlzg6Br/cJPet5J/u19r/mg==", + "dev": true }, "process-nextick-args": { "version": "2.0.0", @@ -2634,31 +3670,6 @@ "resolved": "https://registry.npmjs.org/qs/-/qs-6.6.0.tgz", "integrity": "sha512-KIJqT9jQJDQx5h5uAVPimw6yVg2SekOKu959OCtktD3FjzbpvaPr8i4zzg07DOMz+igA4W/aNM7OV8H37pFYfA==" }, - "randomatic": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-3.1.1.tgz", - "integrity": "sha512-TuDE5KxZ0J461RVjrJZCJc+J+zCkTb1MbH9AQUq68sMhOMcy9jLcb3BrZKgp9q9Ncltdg4QVqWrH02W2EFFVYw==", - "optional": true, - "requires": { - "is-number": "^4.0.0", - "kind-of": "^6.0.0", - "math-random": "^1.0.1" - }, - "dependencies": { - "is-number": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-4.0.0.tgz", - "integrity": "sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ==", - "optional": true - }, - "kind-of": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", - "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", - "optional": true - } - } - }, "readable-stream": { "version": "2.3.6", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", @@ -2693,7 +3704,8 @@ "array-unique": { "version": "0.3.2", "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", - "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=" + "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=", + "optional": true }, "braces": { "version": "2.3.2", @@ -2933,7 +3945,8 @@ "kind-of": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", - "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==" + "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", + "optional": true }, "micromatch": { "version": "3.1.10", @@ -2964,106 +3977,63 @@ "integrity": "sha512-1G6jJVDWrt0rK99kBjvEtziZNCICAuvIPkSiUFIQxVP06RCVpq3dmDo2oi6ABpYaDYaTRr67BEhL8r1wgEZZKg==", "dev": true }, - "regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==" - }, - "regenerator-transform": { - "version": "0.10.1", - "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.10.1.tgz", - "integrity": "sha512-PJepbvDbuK1xgIgnau7Y90cwaAmO/LCLMI2mPvaXq2heGMR3aWW5/BQvYrhJ8jgmQjXewXvBjzfqKcVOmhjZ6Q==", + "regenerate-unicode-properties": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-8.2.0.tgz", + "integrity": "sha512-F9DjY1vKLo/tPePDycuH3dn9H1OTPIkVD9Kz4LODu+F2C75mgjAJ7x/gwy6ZcSNRAAkhNlJSOHRe8k3p+K9WhA==", "dev": true, "requires": { - "babel-runtime": "^6.18.0", - "babel-types": "^6.19.0", - "private": "^0.1.6" - } - }, - "regex-cache": { - "version": "0.4.4", - "resolved": "https://registry.npmjs.org/regex-cache/-/regex-cache-0.4.4.tgz", - "integrity": "sha512-nVIZwtCjkC9YgvWkpM55B5rBhBYRZhAaJbgcFYXXsHnbZ9UZI9nnVWYZpBlCqv9ho2eZryPnWrZGsOdPwVWXWQ==", - "optional": true, - "requires": { - "is-equal-shallow": "^0.1.3" + "regenerate": "^1.4.0" } }, "regex-not": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/regex-not/-/regex-not-1.0.2.tgz", "integrity": "sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A==", + "optional": true, "requires": { "extend-shallow": "^3.0.2", "safe-regex": "^1.1.0" } }, - "regexpu-core": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-2.0.0.tgz", - "integrity": "sha1-SdA4g3uNz4v6W5pCE5k45uoq4kA=", - "dev": true, - "requires": { - "regenerate": "^1.2.1", - "regjsgen": "^0.2.0", - "regjsparser": "^0.1.4" - } - }, - "regjsgen": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.2.0.tgz", - "integrity": "sha1-bAFq3qxVT3WCP+N6wFuS1aTtsfc=", - "dev": true - }, - "regjsparser": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.1.5.tgz", - "integrity": "sha1-fuj4Tcb6eS0/0K4ijSS9lJ6tIFw=", - "dev": true, - "requires": { - "jsesc": "~0.5.0" - }, - "dependencies": { - "jsesc": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", - "integrity": "sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0=", - "dev": true - } - } - }, "remove-trailing-separator": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", - "integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=" + "integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=", + "optional": true }, "repeat-element": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.3.tgz", - "integrity": "sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g==" + "integrity": "sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g==", + "optional": true }, "repeat-string": { "version": "1.6.1", "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", - "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=" + "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=", + "optional": true }, - "repeating": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/repeating/-/repeating-2.0.1.tgz", - "integrity": "sha1-UhTFOpJtNVJwdSf7q0FdvAjQbdo=", + "resolve": { + "version": "1.17.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.17.0.tgz", + "integrity": "sha512-ic+7JYiV8Vi2yzQGFWOkiZD5Z9z7O2Zhm9XMaTxdJExKasieFCr+yXZ/WmXsckHiKl12ar0y6XiXDx3m4RHn1w==", + "dev": true, "requires": { - "is-finite": "^1.0.0" + "path-parse": "^1.0.6" } }, "resolve-url": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz", - "integrity": "sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=" + "integrity": "sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=", + "optional": true }, "ret": { "version": "0.1.15", "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz", - "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==" + "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==", + "optional": true }, "safe-buffer": { "version": "5.1.2", @@ -3074,26 +4044,21 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", "integrity": "sha1-QKNmnzsHfR6UPURinhV91IAjvy4=", + "optional": true, "requires": { "ret": "~0.1.10" } }, - "samsam": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/samsam/-/samsam-1.1.2.tgz", - "integrity": "sha1-vsEf3IOp/aBjQBIQ5AF2wwJNFWc=", - "dev": true - }, "semver": { "version": "5.6.0", "resolved": "https://registry.npmjs.org/semver/-/semver-5.6.0.tgz", - "integrity": "sha512-RS9R6R35NYgQn++fkDWaOmqGoj4Ek9gGs+DPxNUZKuwE183xjJroKvyo1IzVFeXvUrvmALy6FWD5xrdJT25gMg==", - "dev": true + "integrity": "sha512-RS9R6R35NYgQn++fkDWaOmqGoj4Ek9gGs+DPxNUZKuwE183xjJroKvyo1IzVFeXvUrvmALy6FWD5xrdJT25gMg==" }, "set-value": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/set-value/-/set-value-2.0.0.tgz", "integrity": "sha512-hw0yxk9GT/Hr5yJEYnHNKYXkIA8mVJgd9ditYZCe16ZczcaELYYcfvaXesNACk2O8O0nTiPQcQhGUQj8JLzeeg==", + "optional": true, "requires": { "extend-shallow": "^2.0.1", "is-extendable": "^0.1.1", @@ -3105,6 +4070,7 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "optional": true, "requires": { "is-extendable": "^0.1.0" } @@ -3112,26 +4078,36 @@ } }, "sinon": { - "version": "1.17.3", - "resolved": "https://registry.npmjs.org/sinon/-/sinon-1.17.3.tgz", - "integrity": "sha1-RNZLx0jQI4gARsFUPO/Oo0xH0X4=", + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/sinon/-/sinon-7.5.0.tgz", + "integrity": "sha512-AoD0oJWerp0/rY9czP/D6hDTTUYGpObhZjMpd7Cl/A6+j0xBE+ayL/ldfggkBXUs0IkvIiM1ljM8+WkOc5k78Q==", "dev": true, "requires": { - "formatio": "1.1.1", - "lolex": "1.3.2", - "samsam": "1.1.2", - "util": ">=0.10.3 <1" + "@sinonjs/commons": "^1.4.0", + "@sinonjs/formatio": "^3.2.1", + "@sinonjs/samsam": "^3.3.3", + "diff": "^3.5.0", + "lolex": "^4.2.0", + "nise": "^1.5.2", + "supports-color": "^5.5.0" + }, + "dependencies": { + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + } } }, - "slash": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-1.0.0.tgz", - "integrity": "sha1-xB8vbDn8FtHNF61LXYlhFK5HDVU=" - }, "snapdragon": { "version": "0.8.2", "resolved": "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz", "integrity": "sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg==", + "optional": true, "requires": { "base": "^0.11.1", "debug": "^2.2.0", @@ -3147,6 +4123,7 @@ "version": "0.2.5", "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "optional": true, "requires": { "is-descriptor": "^0.1.0" } @@ -3155,6 +4132,7 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "optional": true, "requires": { "is-extendable": "^0.1.0" } @@ -3219,7 +4197,8 @@ "kind-of": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", - "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==" + "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", + "optional": true } } }, @@ -3241,6 +4220,7 @@ "version": "0.5.2", "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.2.tgz", "integrity": "sha512-MjqsvNwyz1s0k81Goz/9vRBe9SZdB09Bdw+/zYyO+3CuPk6fouTaxscHkgtE8jKvf01kVfl8riHzERQ/kefaSA==", + "optional": true, "requires": { "atob": "^2.1.1", "decode-uri-component": "^0.2.0", @@ -3249,23 +4229,17 @@ "urix": "^0.1.0" } }, - "source-map-support": { - "version": "0.4.18", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.4.18.tgz", - "integrity": "sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA==", - "requires": { - "source-map": "^0.5.6" - } - }, "source-map-url": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.0.tgz", - "integrity": "sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM=" + "integrity": "sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM=", + "optional": true }, "split-string": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz", "integrity": "sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==", + "optional": true, "requires": { "extend-shallow": "^3.0.0" } @@ -3274,6 +4248,7 @@ "version": "0.1.2", "resolved": "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz", "integrity": "sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY=", + "optional": true, "requires": { "define-property": "^0.2.5", "object-copy": "^0.1.0" @@ -3283,6 +4258,7 @@ "version": "0.2.5", "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "optional": true, "requires": { "is-descriptor": "^0.1.0" } @@ -3297,14 +4273,6 @@ "safe-buffer": "~5.1.0" } }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "requires": { - "ansi-regex": "^2.0.0" - } - }, "superagent": { "version": "3.7.0", "resolved": "https://registry.npmjs.org/superagent/-/superagent-3.7.0.tgz", @@ -3337,20 +4305,11 @@ } } }, - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=" - }, - "to-fast-properties": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.3.tgz", - "integrity": "sha1-uDVx+k2MJbguIxsG46MFXeTKGkc=" - }, "to-object-path": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", "integrity": "sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68=", + "optional": true, "requires": { "kind-of": "^3.0.2" } @@ -3359,6 +4318,7 @@ "version": "3.0.2", "resolved": "https://registry.npmjs.org/to-regex/-/to-regex-3.0.2.tgz", "integrity": "sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==", + "optional": true, "requires": { "define-property": "^2.0.2", "extend-shallow": "^3.0.2", @@ -3387,15 +4347,45 @@ } } }, - "trim-right": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/trim-right/-/trim-right-1.0.1.tgz", - "integrity": "sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM=" + "type-detect": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", + "dev": true + }, + "unicode-canonical-property-names-ecmascript": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-1.0.4.tgz", + "integrity": "sha512-jDrNnXWHd4oHiTZnx/ZG7gtUTVp+gCcTTKr8L0HjlwphROEW3+Him+IpvC+xcJEFegapiMZyZe02CyuOnRmbnQ==", + "dev": true + }, + "unicode-match-property-ecmascript": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-1.0.4.tgz", + "integrity": "sha512-L4Qoh15vTfntsn4P1zqnHulG0LdXgjSO035fEpdtp6YxXhMT51Q6vgM5lYdG/5X3MjS+k/Y9Xw4SFCY9IkR0rg==", + "dev": true, + "requires": { + "unicode-canonical-property-names-ecmascript": "^1.0.4", + "unicode-property-aliases-ecmascript": "^1.0.4" + } + }, + "unicode-match-property-value-ecmascript": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-1.2.0.tgz", + "integrity": "sha512-wjuQHGQVofmSJv1uVISKLE5zO2rNGzM/KCYZch/QQvez7C1hUhBIuZ701fYXExuufJFMPhv2SyL8CyoIfMLbIQ==", + "dev": true + }, + "unicode-property-aliases-ecmascript": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-1.1.0.tgz", + "integrity": "sha512-PqSoPh/pWetQ2phoj5RLiaqIk4kCNwoV3CI+LfGmWLKI3rE3kl1h59XpX2BjgDrmbxD9ARtQobPGU1SguCYuQg==", + "dev": true }, "union-value": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.0.tgz", "integrity": "sha1-XHHDTLW61dzr4+oM0IIHulqhrqQ=", + "optional": true, "requires": { "arr-union": "^3.1.0", "get-value": "^2.0.6", @@ -3407,6 +4397,7 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "optional": true, "requires": { "is-extendable": "^0.1.0" } @@ -3415,6 +4406,7 @@ "version": "0.4.3", "resolved": "https://registry.npmjs.org/set-value/-/set-value-0.4.3.tgz", "integrity": "sha1-fbCPnT0i3H945Trzw79GZuzfzPE=", + "optional": true, "requires": { "extend-shallow": "^2.0.1", "is-extendable": "^0.1.1", @@ -3428,6 +4420,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/unset-value/-/unset-value-1.0.0.tgz", "integrity": "sha1-g3aHP30jNRef+x5vw6jtDfyKtVk=", + "optional": true, "requires": { "has-value": "^0.3.1", "isobject": "^3.0.0" @@ -3437,6 +4430,7 @@ "version": "0.3.1", "resolved": "https://registry.npmjs.org/has-value/-/has-value-0.3.1.tgz", "integrity": "sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8=", + "optional": true, "requires": { "get-value": "^2.0.3", "has-values": "^0.1.4", @@ -3447,6 +4441,7 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", + "optional": true, "requires": { "isarray": "1.0.0" } @@ -3456,52 +4451,40 @@ "has-values": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/has-values/-/has-values-0.1.4.tgz", - "integrity": "sha1-bWHeldkd/Km5oCCJrThL/49it3E=" + "integrity": "sha1-bWHeldkd/Km5oCCJrThL/49it3E=", + "optional": true }, "isobject": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=" + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "optional": true } } }, + "upath": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/upath/-/upath-1.2.0.tgz", + "integrity": "sha512-aZwGpamFO61g3OlfT7OQCHqhGnW43ieH9WZeP7QxN/G/jS4jfqUkZxoryvJgVPEcrl5NL/ggHsSmLMHuH64Lhg==", + "optional": true + }, "urix": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/urix/-/urix-0.1.0.tgz", - "integrity": "sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=" + "integrity": "sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=", + "optional": true }, "use": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz", - "integrity": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==" - }, - "user-home": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/user-home/-/user-home-1.1.1.tgz", - "integrity": "sha1-K1viOjK2Onyd640PKNSFcko98ZA=" - }, - "util": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/util/-/util-0.11.1.tgz", - "integrity": "sha512-HShAsny+zS2TZfaXxD9tYj4HQGlBezXZMZuM/S5PKLLoZkShZiGk9o5CzukI1LVHZvjdvZ2Sj1aW/Ndn2NB/HQ==", - "dev": true, - "requires": { - "inherits": "2.0.3" - } + "integrity": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==", + "optional": true }, "util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" }, - "v8flags": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/v8flags/-/v8flags-2.1.1.tgz", - "integrity": "sha1-qrGh+jDUX4jdMhFIh1rALAtV5bQ=", - "requires": { - "user-home": "^1.1.1" - } - }, "wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 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 e15e37a473e6..391f8f985020 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 @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new OpenApiPetstore.AdditionalPropertiesAnyType(); + //instance = new OpenApiPetstore.AdditionalPropertiesAnyType(); }); var getProperty = function(object, getter, property) { From f01966bdae8ae888ad96dbaf148f4a867af0d055 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Sun, 24 May 2020 18:21:35 +0800 Subject: [PATCH 08/10] skip test/model/AdditionalPropertiesArray.spec.js --- .../petstore/javascript-promise-es6/.openapi-generator-ignore | 2 ++ .../test/model/AdditionalPropertiesArray.spec.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/samples/client/petstore/javascript-promise-es6/.openapi-generator-ignore b/samples/client/petstore/javascript-promise-es6/.openapi-generator-ignore index c5fa491b4c55..310ecba3cc30 100644 --- a/samples/client/petstore/javascript-promise-es6/.openapi-generator-ignore +++ b/samples/client/petstore/javascript-promise-es6/.openapi-generator-ignore @@ -21,3 +21,5 @@ #docs/*.md # Then explicitly reverse the ignore rule for a single file: #!docs/README.md +# +test/model/AdditionalPropertiesArray.spec.js 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 1721c4499e02..0bb55d1a05a7 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 @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new OpenApiPetstore.AdditionalPropertiesArray(); + //instance = new OpenApiPetstore.AdditionalPropertiesArray(); }); var getProperty = function(object, getter, property) { From 1da420ef3c6a9c5412eaf6029f86f5bd1c4b2f5e Mon Sep 17 00:00:00 2001 From: William Cheng Date: Sun, 24 May 2020 23:03:06 +0800 Subject: [PATCH 09/10] fix test --- bin/javascript-es6-petstore.sh | 2 +- .../resources/Javascript/model_test.mustache | 3 +- .../javascript-es6/.openapi-generator/FILES | 52 +- .../javascript-es6/.openapi-generator/VERSION | 2 +- .../.openapi-generator-ignore | 1 - .../javascript-promise-es6/package-lock.json | 3395 +++++++++++++++++ .../test/ApiClientTest.js | 1 + .../model/AdditionalPropertiesAnyType.spec.js | 65 - .../model/AdditionalPropertiesArray.spec.js | 65 - .../model/AdditionalPropertiesBoolean.spec.js | 65 - .../model/AdditionalPropertiesClass.spec.js | 64 +- .../model/AdditionalPropertiesInteger.spec.js | 65 - .../model/AdditionalPropertiesNumber.spec.js | 65 - .../model/AdditionalPropertiesObject.spec.js | 65 - .../model/AdditionalPropertiesString.spec.js | 65 - .../test/model/Animal.spec.js | 2 +- .../test/model/ApiResponse.spec.js | 2 +- .../model/ArrayOfArrayOfNumberOnly.spec.js | 2 +- .../test/model/ArrayOfNumberOnly.spec.js | 2 +- .../test/model/ArrayTest.spec.js | 2 +- .../test/model/BigCat.spec.js | 65 - .../test/model/BigCatAllOf.spec.js | 65 - .../test/model/Capitalization.spec.js | 2 +- .../test/model/Cat.spec.js | 2 +- .../test/model/CatAllOf.spec.js | 2 +- .../test/model/Category.spec.js | 2 +- .../test/model/ClassModel.spec.js | 2 +- .../test/model/Client.spec.js | 2 +- .../test/model/Dog.spec.js | 2 +- .../test/model/DogAllOf.spec.js | 2 +- .../test/model/EnumArrays.spec.js | 2 +- .../test/model/EnumClass.spec.js | 2 +- .../test/model/EnumTest.spec.js | 20 +- .../test/model/File.spec.js | 2 +- .../test/model/FileSchemaTestClass.spec.js | 2 +- .../test/model/FormatTest.spec.js | 14 +- .../test/model/HasOnlyReadOnly.spec.js | 2 +- .../test/model/List.spec.js | 2 +- .../test/model/MapTest.spec.js | 2 +- ...ertiesAndAdditionalPropertiesClass.spec.js | 2 +- .../test/model/Model200Response.spec.js | 2 +- .../test/model/ModelReturn.spec.js | 2 +- .../test/model/Name.spec.js | 2 +- .../test/model/NumberOnly.spec.js | 2 +- .../test/model/Order.spec.js | 2 +- .../test/model/OuterComposite.spec.js | 2 +- .../test/model/OuterEnum.spec.js | 2 +- .../test/model/Pet.spec.js | 2 +- .../test/model/ReadOnlyFirst.spec.js | 2 +- .../test/model/SpecialModelName.spec.js | 2 +- .../test/model/Tag.spec.js | 2 +- .../test/model/TypeHolderDefault.spec.js | 89 - .../test/model/TypeHolderExample.spec.js | 89 - .../test/model/User.spec.js | 2 +- .../test/model/XmlItem.spec.js | 233 -- 55 files changed, 3498 insertions(+), 1118 deletions(-) create mode 100644 samples/client/petstore/javascript-promise-es6/package-lock.json delete mode 100644 samples/client/petstore/javascript-promise-es6/test/model/AdditionalPropertiesAnyType.spec.js delete mode 100644 samples/client/petstore/javascript-promise-es6/test/model/AdditionalPropertiesArray.spec.js delete mode 100644 samples/client/petstore/javascript-promise-es6/test/model/AdditionalPropertiesBoolean.spec.js delete mode 100644 samples/client/petstore/javascript-promise-es6/test/model/AdditionalPropertiesInteger.spec.js delete mode 100644 samples/client/petstore/javascript-promise-es6/test/model/AdditionalPropertiesNumber.spec.js delete mode 100644 samples/client/petstore/javascript-promise-es6/test/model/AdditionalPropertiesObject.spec.js delete mode 100644 samples/client/petstore/javascript-promise-es6/test/model/AdditionalPropertiesString.spec.js delete mode 100644 samples/client/petstore/javascript-promise-es6/test/model/BigCat.spec.js delete mode 100644 samples/client/petstore/javascript-promise-es6/test/model/BigCatAllOf.spec.js delete mode 100644 samples/client/petstore/javascript-promise-es6/test/model/TypeHolderDefault.spec.js delete mode 100644 samples/client/petstore/javascript-promise-es6/test/model/TypeHolderExample.spec.js delete mode 100644 samples/client/petstore/javascript-promise-es6/test/model/XmlItem.spec.js diff --git a/bin/javascript-es6-petstore.sh b/bin/javascript-es6-petstore.sh index 96e45b4b8e74..518d3382b92a 100755 --- a/bin/javascript-es6-petstore.sh +++ b/bin/javascript-es6-petstore.sh @@ -29,6 +29,6 @@ fi export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties" ags="generate -t modules/openapi-generator/src/main/resources/Javascript/es6 \ -i modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml -g javascript \ --o samples/openapi3/client/petstore/javascript-es6 --additional-properties appName=PetstoreClient $@" +-o samples/client/petstore/javascript-es6 --additional-properties appName=PetstoreClient $@" java $JAVA_OPTS -jar $executable $ags 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 93c0ce0da13c..0680e194f15b 100644 --- a/modules/openapi-generator/src/main/resources/Javascript/model_test.mustache +++ b/modules/openapi-generator/src/main/resources/Javascript/model_test.mustache @@ -19,7 +19,8 @@ {{#models}} {{#model}} {{^isEnum}} - instance = new {{moduleName}}.{{classname}}(); + // create a new instance + //instance = new {{moduleName}}.{{classname}}(); {{/isEnum}} {{/model}} {{/models}} diff --git a/samples/client/petstore/javascript-es6/.openapi-generator/FILES b/samples/client/petstore/javascript-es6/.openapi-generator/FILES index 9ac7cfd193cd..6c9983e3cca1 100644 --- a/samples/client/petstore/javascript-es6/.openapi-generator/FILES +++ b/samples/client/petstore/javascript-es6/.openapi-generator/FILES @@ -1,28 +1,20 @@ .babelrc .travis.yml README.md -docs/AdditionalPropertiesAnyType.md -docs/AdditionalPropertiesArray.md -docs/AdditionalPropertiesBoolean.md docs/AdditionalPropertiesClass.md -docs/AdditionalPropertiesInteger.md -docs/AdditionalPropertiesNumber.md -docs/AdditionalPropertiesObject.md -docs/AdditionalPropertiesString.md docs/Animal.md docs/AnotherFakeApi.md docs/ApiResponse.md docs/ArrayOfArrayOfNumberOnly.md docs/ArrayOfNumberOnly.md docs/ArrayTest.md -docs/BigCat.md -docs/BigCatAllOf.md docs/Capitalization.md docs/Cat.md docs/CatAllOf.md docs/Category.md docs/ClassModel.md docs/Client.md +docs/DefaultApi.md docs/Dog.md docs/DogAllOf.md docs/EnumArrays.md @@ -32,55 +24,57 @@ docs/FakeApi.md docs/FakeClassnameTags123Api.md docs/File.md docs/FileSchemaTestClass.md +docs/Foo.md docs/FormatTest.md docs/HasOnlyReadOnly.md +docs/HealthCheckResult.md +docs/InlineObject.md +docs/InlineObject1.md +docs/InlineObject2.md +docs/InlineObject3.md +docs/InlineObject4.md +docs/InlineObject5.md +docs/InlineResponseDefault.md docs/List.md docs/MapTest.md docs/MixedPropertiesAndAdditionalPropertiesClass.md docs/Model200Response.md docs/ModelReturn.md docs/Name.md +docs/NullableClass.md docs/NumberOnly.md docs/Order.md docs/OuterComposite.md docs/OuterEnum.md +docs/OuterEnumDefaultValue.md +docs/OuterEnumInteger.md +docs/OuterEnumIntegerDefaultValue.md docs/Pet.md docs/PetApi.md docs/ReadOnlyFirst.md docs/SpecialModelName.md docs/StoreApi.md docs/Tag.md -docs/TypeHolderDefault.md -docs/TypeHolderExample.md docs/User.md docs/UserApi.md -docs/XmlItem.md git_push.sh mocha.opts package.json src/ApiClient.js src/api/AnotherFakeApi.js +src/api/DefaultApi.js src/api/FakeApi.js src/api/FakeClassnameTags123Api.js src/api/PetApi.js src/api/StoreApi.js src/api/UserApi.js src/index.js -src/model/AdditionalPropertiesAnyType.js -src/model/AdditionalPropertiesArray.js -src/model/AdditionalPropertiesBoolean.js src/model/AdditionalPropertiesClass.js -src/model/AdditionalPropertiesInteger.js -src/model/AdditionalPropertiesNumber.js -src/model/AdditionalPropertiesObject.js -src/model/AdditionalPropertiesString.js src/model/Animal.js src/model/ApiResponse.js src/model/ArrayOfArrayOfNumberOnly.js src/model/ArrayOfNumberOnly.js src/model/ArrayTest.js -src/model/BigCat.js -src/model/BigCatAllOf.js src/model/Capitalization.js src/model/Cat.js src/model/CatAllOf.js @@ -94,23 +88,33 @@ src/model/EnumClass.js src/model/EnumTest.js src/model/File.js src/model/FileSchemaTestClass.js +src/model/Foo.js src/model/FormatTest.js src/model/HasOnlyReadOnly.js +src/model/HealthCheckResult.js +src/model/InlineObject.js +src/model/InlineObject1.js +src/model/InlineObject2.js +src/model/InlineObject3.js +src/model/InlineObject4.js +src/model/InlineObject5.js +src/model/InlineResponseDefault.js src/model/List.js src/model/MapTest.js src/model/MixedPropertiesAndAdditionalPropertiesClass.js src/model/Model200Response.js src/model/ModelReturn.js src/model/Name.js +src/model/NullableClass.js src/model/NumberOnly.js src/model/Order.js src/model/OuterComposite.js src/model/OuterEnum.js +src/model/OuterEnumDefaultValue.js +src/model/OuterEnumInteger.js +src/model/OuterEnumIntegerDefaultValue.js src/model/Pet.js src/model/ReadOnlyFirst.js src/model/SpecialModelName.js src/model/Tag.js -src/model/TypeHolderDefault.js -src/model/TypeHolderExample.js src/model/User.js -src/model/XmlItem.js diff --git a/samples/client/petstore/javascript-es6/.openapi-generator/VERSION b/samples/client/petstore/javascript-es6/.openapi-generator/VERSION index 83a328a9227e..d99e7162d01f 100644 --- a/samples/client/petstore/javascript-es6/.openapi-generator/VERSION +++ b/samples/client/petstore/javascript-es6/.openapi-generator/VERSION @@ -1 +1 @@ -4.1.0-SNAPSHOT \ No newline at end of file +5.0.0-SNAPSHOT \ No newline at end of file diff --git a/samples/client/petstore/javascript-promise-es6/.openapi-generator-ignore b/samples/client/petstore/javascript-promise-es6/.openapi-generator-ignore index 310ecba3cc30..e9f5c30fedaa 100644 --- a/samples/client/petstore/javascript-promise-es6/.openapi-generator-ignore +++ b/samples/client/petstore/javascript-promise-es6/.openapi-generator-ignore @@ -22,4 +22,3 @@ # Then explicitly reverse the ignore rule for a single file: #!docs/README.md # -test/model/AdditionalPropertiesArray.spec.js diff --git a/samples/client/petstore/javascript-promise-es6/package-lock.json b/samples/client/petstore/javascript-promise-es6/package-lock.json new file mode 100644 index 000000000000..c00cfcc04103 --- /dev/null +++ b/samples/client/petstore/javascript-promise-es6/package-lock.json @@ -0,0 +1,3395 @@ +{ + "name": "open_api_petstore", + "version": "1.0.0", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "@babel/cli": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@babel/cli/-/cli-7.8.4.tgz", + "integrity": "sha512-XXLgAm6LBbaNxaGhMAznXXaxtCWfuv6PIDJ9Alsy9JYTOh+j2jJz+L/162kkfU1j/pTSxK1xGmlwI4pdIMkoag==", + "requires": { + "chokidar": "^2.1.8", + "commander": "^4.0.1", + "convert-source-map": "^1.1.0", + "fs-readdir-recursive": "^1.1.0", + "glob": "^7.0.0", + "lodash": "^4.17.13", + "make-dir": "^2.1.0", + "slash": "^2.0.0", + "source-map": "^0.5.0" + } + }, + "@babel/code-frame": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.8.3.tgz", + "integrity": "sha512-a9gxpmdXtZEInkCSHUJDLHZVBgb1QS0jhss4cPP93EW7s+uC5bikET2twEF3KV+7rDblJcmNvTR7VJejqd2C2g==", + "dev": true, + "requires": { + "@babel/highlight": "^7.8.3" + } + }, + "@babel/compat-data": { + "version": "7.9.6", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.9.6.tgz", + "integrity": "sha512-5QPTrNen2bm7RBc7dsOmcA5hbrS4O2Vhmk5XOL4zWW/zD/hV0iinpefDlkm+tBBy8kDtFaaeEvmAqt+nURAV2g==", + "dev": true, + "requires": { + "browserslist": "^4.11.1", + "invariant": "^2.2.4", + "semver": "^5.5.0" + } + }, + "@babel/core": { + "version": "7.9.6", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.9.6.tgz", + "integrity": "sha512-nD3deLvbsApbHAHttzIssYqgb883yU/d9roe4RZymBCDaZryMJDbptVpEpeQuRh4BJ+SYI8le9YGxKvFEvl1Wg==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.8.3", + "@babel/generator": "^7.9.6", + "@babel/helper-module-transforms": "^7.9.0", + "@babel/helpers": "^7.9.6", + "@babel/parser": "^7.9.6", + "@babel/template": "^7.8.6", + "@babel/traverse": "^7.9.6", + "@babel/types": "^7.9.6", + "convert-source-map": "^1.7.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.1", + "json5": "^2.1.2", + "lodash": "^4.17.13", + "resolve": "^1.3.2", + "semver": "^5.4.1", + "source-map": "^0.5.0" + }, + "dependencies": { + "debug": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", + "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + } + } + }, + "@babel/generator": { + "version": "7.9.6", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.9.6.tgz", + "integrity": "sha512-+htwWKJbH2bL72HRluF8zumBxzuX0ZZUFl3JLNyoUjM/Ho8wnVpPXM6aUz8cfKDqQ/h7zHqKt4xzJteUosckqQ==", + "dev": true, + "requires": { + "@babel/types": "^7.9.6", + "jsesc": "^2.5.1", + "lodash": "^4.17.13", + "source-map": "^0.5.0" + } + }, + "@babel/helper-annotate-as-pure": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.8.3.tgz", + "integrity": "sha512-6o+mJrZBxOoEX77Ezv9zwW7WV8DdluouRKNY/IR5u/YTMuKHgugHOzYWlYvYLpLA9nPsQCAAASpCIbjI9Mv+Uw==", + "dev": true, + "requires": { + "@babel/types": "^7.8.3" + } + }, + "@babel/helper-builder-binary-assignment-operator-visitor": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.8.3.tgz", + "integrity": "sha512-5eFOm2SyFPK4Rh3XMMRDjN7lBH0orh3ss0g3rTYZnBQ+r6YPj7lgDyCvPphynHvUrobJmeMignBr6Acw9mAPlw==", + "dev": true, + "requires": { + "@babel/helper-explode-assignable-expression": "^7.8.3", + "@babel/types": "^7.8.3" + } + }, + "@babel/helper-compilation-targets": { + "version": "7.9.6", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.9.6.tgz", + "integrity": "sha512-x2Nvu0igO0ejXzx09B/1fGBxY9NXQlBW2kZsSxCJft+KHN8t9XWzIvFxtPHnBOAXpVsdxZKZFbRUC8TsNKajMw==", + "dev": true, + "requires": { + "@babel/compat-data": "^7.9.6", + "browserslist": "^4.11.1", + "invariant": "^2.2.4", + "levenary": "^1.1.1", + "semver": "^5.5.0" + } + }, + "@babel/helper-create-class-features-plugin": { + "version": "7.9.6", + "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.9.6.tgz", + "integrity": "sha512-6N9IeuyHvMBRyjNYOMJHrhwtu4WJMrYf8hVbEHD3pbbbmNOk1kmXSQs7bA4dYDUaIx4ZEzdnvo6NwC3WHd/Qow==", + "dev": true, + "requires": { + "@babel/helper-function-name": "^7.9.5", + "@babel/helper-member-expression-to-functions": "^7.8.3", + "@babel/helper-optimise-call-expression": "^7.8.3", + "@babel/helper-plugin-utils": "^7.8.3", + "@babel/helper-replace-supers": "^7.9.6", + "@babel/helper-split-export-declaration": "^7.8.3" + } + }, + "@babel/helper-create-regexp-features-plugin": { + "version": "7.8.8", + "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.8.8.tgz", + "integrity": "sha512-LYVPdwkrQEiX9+1R29Ld/wTrmQu1SSKYnuOk3g0CkcZMA1p0gsNxJFj/3gBdaJ7Cg0Fnek5z0DsMULePP7Lrqg==", + "dev": true, + "requires": { + "@babel/helper-annotate-as-pure": "^7.8.3", + "@babel/helper-regex": "^7.8.3", + "regexpu-core": "^4.7.0" + } + }, + "@babel/helper-define-map": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/helper-define-map/-/helper-define-map-7.8.3.tgz", + "integrity": "sha512-PoeBYtxoZGtct3md6xZOCWPcKuMuk3IHhgxsRRNtnNShebf4C8YonTSblsK4tvDbm+eJAw2HAPOfCr+Q/YRG/g==", + "dev": true, + "requires": { + "@babel/helper-function-name": "^7.8.3", + "@babel/types": "^7.8.3", + "lodash": "^4.17.13" + } + }, + "@babel/helper-explode-assignable-expression": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.8.3.tgz", + "integrity": "sha512-N+8eW86/Kj147bO9G2uclsg5pwfs/fqqY5rwgIL7eTBklgXjcOJ3btzS5iM6AitJcftnY7pm2lGsrJVYLGjzIw==", + "dev": true, + "requires": { + "@babel/traverse": "^7.8.3", + "@babel/types": "^7.8.3" + } + }, + "@babel/helper-function-name": { + "version": "7.9.5", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.9.5.tgz", + "integrity": "sha512-JVcQZeXM59Cd1qanDUxv9fgJpt3NeKUaqBqUEvfmQ+BCOKq2xUgaWZW2hr0dkbyJgezYuplEoh5knmrnS68efw==", + "dev": true, + "requires": { + "@babel/helper-get-function-arity": "^7.8.3", + "@babel/template": "^7.8.3", + "@babel/types": "^7.9.5" + } + }, + "@babel/helper-get-function-arity": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.8.3.tgz", + "integrity": "sha512-FVDR+Gd9iLjUMY1fzE2SR0IuaJToR4RkCDARVfsBBPSP53GEqSFjD8gNyxg246VUyc/ALRxFaAK8rVG7UT7xRA==", + "dev": true, + "requires": { + "@babel/types": "^7.8.3" + } + }, + "@babel/helper-hoist-variables": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.8.3.tgz", + "integrity": "sha512-ky1JLOjcDUtSc+xkt0xhYff7Z6ILTAHKmZLHPxAhOP0Nd77O+3nCsd6uSVYur6nJnCI029CrNbYlc0LoPfAPQg==", + "dev": true, + "requires": { + "@babel/types": "^7.8.3" + } + }, + "@babel/helper-member-expression-to-functions": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.8.3.tgz", + "integrity": "sha512-fO4Egq88utkQFjbPrSHGmGLFqmrshs11d46WI+WZDESt7Wu7wN2G2Iu+NMMZJFDOVRHAMIkB5SNh30NtwCA7RA==", + "dev": true, + "requires": { + "@babel/types": "^7.8.3" + } + }, + "@babel/helper-module-imports": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.8.3.tgz", + "integrity": "sha512-R0Bx3jippsbAEtzkpZ/6FIiuzOURPcMjHp+Z6xPe6DtApDJx+w7UYyOLanZqO8+wKR9G10s/FmHXvxaMd9s6Kg==", + "dev": true, + "requires": { + "@babel/types": "^7.8.3" + } + }, + "@babel/helper-module-transforms": { + "version": "7.9.0", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.9.0.tgz", + "integrity": "sha512-0FvKyu0gpPfIQ8EkxlrAydOWROdHpBmiCiRwLkUiBGhCUPRRbVD2/tm3sFr/c/GWFrQ/ffutGUAnx7V0FzT2wA==", + "dev": true, + "requires": { + "@babel/helper-module-imports": "^7.8.3", + "@babel/helper-replace-supers": "^7.8.6", + "@babel/helper-simple-access": "^7.8.3", + "@babel/helper-split-export-declaration": "^7.8.3", + "@babel/template": "^7.8.6", + "@babel/types": "^7.9.0", + "lodash": "^4.17.13" + } + }, + "@babel/helper-optimise-call-expression": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.8.3.tgz", + "integrity": "sha512-Kag20n86cbO2AvHca6EJsvqAd82gc6VMGule4HwebwMlwkpXuVqrNRj6CkCV2sKxgi9MyAUnZVnZ6lJ1/vKhHQ==", + "dev": true, + "requires": { + "@babel/types": "^7.8.3" + } + }, + "@babel/helper-plugin-utils": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.8.3.tgz", + "integrity": "sha512-j+fq49Xds2smCUNYmEHF9kGNkhbet6yVIBp4e6oeQpH1RUs/Ir06xUKzDjDkGcaaokPiTNs2JBWHjaE4csUkZQ==", + "dev": true + }, + "@babel/helper-regex": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/helper-regex/-/helper-regex-7.8.3.tgz", + "integrity": "sha512-BWt0QtYv/cg/NecOAZMdcn/waj/5P26DR4mVLXfFtDokSR6fyuG0Pj+e2FqtSME+MqED1khnSMulkmGl8qWiUQ==", + "dev": true, + "requires": { + "lodash": "^4.17.13" + } + }, + "@babel/helper-remap-async-to-generator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.8.3.tgz", + "integrity": "sha512-kgwDmw4fCg7AVgS4DukQR/roGp+jP+XluJE5hsRZwxCYGg+Rv9wSGErDWhlI90FODdYfd4xG4AQRiMDjjN0GzA==", + "dev": true, + "requires": { + "@babel/helper-annotate-as-pure": "^7.8.3", + "@babel/helper-wrap-function": "^7.8.3", + "@babel/template": "^7.8.3", + "@babel/traverse": "^7.8.3", + "@babel/types": "^7.8.3" + } + }, + "@babel/helper-replace-supers": { + "version": "7.9.6", + "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.9.6.tgz", + "integrity": "sha512-qX+chbxkbArLyCImk3bWV+jB5gTNU/rsze+JlcF6Nf8tVTigPJSI1o1oBow/9Resa1yehUO9lIipsmu9oG4RzA==", + "dev": true, + "requires": { + "@babel/helper-member-expression-to-functions": "^7.8.3", + "@babel/helper-optimise-call-expression": "^7.8.3", + "@babel/traverse": "^7.9.6", + "@babel/types": "^7.9.6" + } + }, + "@babel/helper-simple-access": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.8.3.tgz", + "integrity": "sha512-VNGUDjx5cCWg4vvCTR8qQ7YJYZ+HBjxOgXEl7ounz+4Sn7+LMD3CFrCTEU6/qXKbA2nKg21CwhhBzO0RpRbdCw==", + "dev": true, + "requires": { + "@babel/template": "^7.8.3", + "@babel/types": "^7.8.3" + } + }, + "@babel/helper-split-export-declaration": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.8.3.tgz", + "integrity": "sha512-3x3yOeyBhW851hroze7ElzdkeRXQYQbFIb7gLK1WQYsw2GWDay5gAJNw1sWJ0VFP6z5J1whqeXH/WCdCjZv6dA==", + "dev": true, + "requires": { + "@babel/types": "^7.8.3" + } + }, + "@babel/helper-validator-identifier": { + "version": "7.9.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.9.5.tgz", + "integrity": "sha512-/8arLKUFq882w4tWGj9JYzRpAlZgiWUJ+dtteNTDqrRBz9Iguck9Rn3ykuBDoUwh2TO4tSAJlrxDUOXWklJe4g==", + "dev": true + }, + "@babel/helper-wrap-function": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.8.3.tgz", + "integrity": "sha512-LACJrbUET9cQDzb6kG7EeD7+7doC3JNvUgTEQOx2qaO1fKlzE/Bf05qs9w1oXQMmXlPO65lC3Tq9S6gZpTErEQ==", + "dev": true, + "requires": { + "@babel/helper-function-name": "^7.8.3", + "@babel/template": "^7.8.3", + "@babel/traverse": "^7.8.3", + "@babel/types": "^7.8.3" + } + }, + "@babel/helpers": { + "version": "7.9.6", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.9.6.tgz", + "integrity": "sha512-tI4bUbldloLcHWoRUMAj4g1bF313M/o6fBKhIsb3QnGVPwRm9JsNf/gqMkQ7zjqReABiffPV6RWj7hEglID5Iw==", + "dev": true, + "requires": { + "@babel/template": "^7.8.3", + "@babel/traverse": "^7.9.6", + "@babel/types": "^7.9.6" + } + }, + "@babel/highlight": { + "version": "7.9.0", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.9.0.tgz", + "integrity": "sha512-lJZPilxX7Op3Nv/2cvFdnlepPXDxi29wxteT57Q965oc5R9v86ztx0jfxVrTcBk8C2kcPkkDa2Z4T3ZsPPVWsQ==", + "dev": true, + "requires": { + "@babel/helper-validator-identifier": "^7.9.0", + "chalk": "^2.0.0", + "js-tokens": "^4.0.0" + } + }, + "@babel/parser": { + "version": "7.9.6", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.9.6.tgz", + "integrity": "sha512-AoeIEJn8vt+d/6+PXDRPaksYhnlbMIiejioBZvvMQsOjW/JYK6k/0dKnvvP3EhK5GfMBWDPtrxRtegWdAcdq9Q==", + "dev": true + }, + "@babel/plugin-proposal-async-generator-functions": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.8.3.tgz", + "integrity": "sha512-NZ9zLv848JsV3hs8ryEh7Uaz/0KsmPLqv0+PdkDJL1cJy0K4kOCFa8zc1E3mp+RHPQcpdfb/6GovEsW4VDrOMw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3", + "@babel/helper-remap-async-to-generator": "^7.8.3", + "@babel/plugin-syntax-async-generators": "^7.8.0" + } + }, + "@babel/plugin-proposal-class-properties": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.8.3.tgz", + "integrity": "sha512-EqFhbo7IosdgPgZggHaNObkmO1kNUe3slaKu54d5OWvy+p9QIKOzK1GAEpAIsZtWVtPXUHSMcT4smvDrCfY4AA==", + "dev": true, + "requires": { + "@babel/helper-create-class-features-plugin": "^7.8.3", + "@babel/helper-plugin-utils": "^7.8.3" + } + }, + "@babel/plugin-proposal-decorators": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-decorators/-/plugin-proposal-decorators-7.8.3.tgz", + "integrity": "sha512-e3RvdvS4qPJVTe288DlXjwKflpfy1hr0j5dz5WpIYYeP7vQZg2WfAEIp8k5/Lwis/m5REXEteIz6rrcDtXXG7w==", + "dev": true, + "requires": { + "@babel/helper-create-class-features-plugin": "^7.8.3", + "@babel/helper-plugin-utils": "^7.8.3", + "@babel/plugin-syntax-decorators": "^7.8.3" + } + }, + "@babel/plugin-proposal-do-expressions": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-do-expressions/-/plugin-proposal-do-expressions-7.8.3.tgz", + "integrity": "sha512-NoMcN+0+SS1DVswjDCfz+Jfm9ViOYuFtv1lm0QInEugbEXK2iH3jeSq38WmIiTP+2QKqo2zt8xku77gqHINZkw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3", + "@babel/plugin-syntax-do-expressions": "^7.8.3" + } + }, + "@babel/plugin-proposal-dynamic-import": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.8.3.tgz", + "integrity": "sha512-NyaBbyLFXFLT9FP+zk0kYlUlA8XtCUbehs67F0nnEg7KICgMc2mNkIeu9TYhKzyXMkrapZFwAhXLdnt4IYHy1w==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3", + "@babel/plugin-syntax-dynamic-import": "^7.8.0" + } + }, + "@babel/plugin-proposal-export-default-from": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-export-default-from/-/plugin-proposal-export-default-from-7.8.3.tgz", + "integrity": "sha512-PYtv2S2OdCdp7GSPDg5ndGZFm9DmWFvuLoS5nBxZCgOBggluLnhTScspJxng96alHQzPyrrHxvC9/w4bFuspeA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3", + "@babel/plugin-syntax-export-default-from": "^7.8.3" + } + }, + "@babel/plugin-proposal-export-namespace-from": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.8.3.tgz", + "integrity": "sha512-WKK+9jz6TWUTX1uej9/EUVOmM1sK7aHv6bZyxbUV3NJjbiIZRqJITeXGMo7D631J72PEnIORh5VOlFCSlrLicg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3", + "@babel/plugin-syntax-export-namespace-from": "^7.8.3" + } + }, + "@babel/plugin-proposal-function-bind": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-function-bind/-/plugin-proposal-function-bind-7.8.3.tgz", + "integrity": "sha512-6q7VAHJQa9x4P6Lm6h6KHoJUEhx2r1buFKseHICe0ogb1LWxducO4tsQp3hd/7BVBo485YBsn6tJnpuwWm/9cA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3", + "@babel/plugin-syntax-function-bind": "^7.8.3" + } + }, + "@babel/plugin-proposal-function-sent": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-function-sent/-/plugin-proposal-function-sent-7.8.3.tgz", + "integrity": "sha512-lu9wQjLnXd6Zy6eBKr0gE175xfD+da1rv2wOWEnZlD5KIxl894Tg34ppZ7ANR0jzQJMn+7pGuzSdy6JK4zGtKg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3", + "@babel/helper-wrap-function": "^7.8.3", + "@babel/plugin-syntax-function-sent": "^7.8.3" + } + }, + "@babel/plugin-proposal-json-strings": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.8.3.tgz", + "integrity": "sha512-KGhQNZ3TVCQG/MjRbAUwuH+14y9q0tpxs1nWWs3pbSleRdDro9SAMMDyye8HhY1gqZ7/NqIc8SKhya0wRDgP1Q==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3", + "@babel/plugin-syntax-json-strings": "^7.8.0" + } + }, + "@babel/plugin-proposal-logical-assignment-operators": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-logical-assignment-operators/-/plugin-proposal-logical-assignment-operators-7.8.3.tgz", + "integrity": "sha512-TLPLojGZYBeeoesO2NQIMLUJKD9N5oJlxG6iHLx7l7EvNQP5DfzeyxdI2lMPo5I7ih4Jv/vxrlwIPf6aJw422Q==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3" + } + }, + "@babel/plugin-proposal-nullish-coalescing-operator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-TS9MlfzXpXKt6YYomudb/KU7nQI6/xnapG6in1uZxoxDghuSMZsPb6D2fyUwNYSAp4l1iR7QtFOjkqcRYcUsfw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.0" + } + }, + "@babel/plugin-proposal-numeric-separator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.8.3.tgz", + "integrity": "sha512-jWioO1s6R/R+wEHizfaScNsAx+xKgwTLNXSh7tTC4Usj3ItsPEhYkEpU4h+lpnBwq7NBVOJXfO6cRFYcX69JUQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.8.3" + } + }, + "@babel/plugin-proposal-object-rest-spread": { + "version": "7.9.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.9.6.tgz", + "integrity": "sha512-Ga6/fhGqA9Hj+y6whNpPv8psyaK5xzrQwSPsGPloVkvmH+PqW1ixdnfJ9uIO06OjQNYol3PMnfmJ8vfZtkzF+A==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3", + "@babel/plugin-syntax-object-rest-spread": "^7.8.0", + "@babel/plugin-transform-parameters": "^7.9.5" + } + }, + "@babel/plugin-proposal-optional-catch-binding": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.8.3.tgz", + "integrity": "sha512-0gkX7J7E+AtAw9fcwlVQj8peP61qhdg/89D5swOkjYbkboA2CVckn3kiyum1DE0wskGb7KJJxBdyEBApDLLVdw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.0" + } + }, + "@babel/plugin-proposal-optional-chaining": { + "version": "7.9.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.9.0.tgz", + "integrity": "sha512-NDn5tu3tcv4W30jNhmc2hyD5c56G6cXx4TesJubhxrJeCvuuMpttxr0OnNCqbZGhFjLrg+NIhxxC+BK5F6yS3w==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.0" + } + }, + "@babel/plugin-proposal-pipeline-operator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-pipeline-operator/-/plugin-proposal-pipeline-operator-7.8.3.tgz", + "integrity": "sha512-Z0qV3aUYoLUAnVLdfLTlz/GJYfcrbX7Mhrp897Twik29wQseAFAAXQ4TPvN1oswVBHdN74sLPIn9HVfTXtjuQA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3", + "@babel/plugin-syntax-pipeline-operator": "^7.8.3" + } + }, + "@babel/plugin-proposal-throw-expressions": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-throw-expressions/-/plugin-proposal-throw-expressions-7.8.3.tgz", + "integrity": "sha512-tH40s9JnoR+r45ZXKWW+PC5xzPQfVJix3pR1D8Ty5l9sn5NnrbZUzw8MtnNxu/Bz7p0imyeSYj9FQVccEymOEg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3", + "@babel/plugin-syntax-throw-expressions": "^7.8.3" + } + }, + "@babel/plugin-proposal-unicode-property-regex": { + "version": "7.8.8", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.8.8.tgz", + "integrity": "sha512-EVhjVsMpbhLw9ZfHWSx2iy13Q8Z/eg8e8ccVWt23sWQK5l1UdkoLJPN5w69UA4uITGBnEZD2JOe4QOHycYKv8A==", + "dev": true, + "requires": { + "@babel/helper-create-regexp-features-plugin": "^7.8.8", + "@babel/helper-plugin-utils": "^7.8.3" + } + }, + "@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", + "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-decorators": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-decorators/-/plugin-syntax-decorators-7.8.3.tgz", + "integrity": "sha512-8Hg4dNNT9/LcA1zQlfwuKR8BUc/if7Q7NkTam9sGTcJphLwpf2g4S42uhspQrIrR+dpzE0dtTqBVFoHl8GtnnQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3" + } + }, + "@babel/plugin-syntax-do-expressions": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-do-expressions/-/plugin-syntax-do-expressions-7.8.3.tgz", + "integrity": "sha512-puRiUTVDQ69iRX41eeVWqOftZK31waWqZfwKB/TGzPfgi7097twx/DpwfOfyqEGqYtvpQF3jpHwT6UBzvSyAjw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3" + } + }, + "@babel/plugin-syntax-dynamic-import": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz", + "integrity": "sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-export-default-from": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-default-from/-/plugin-syntax-export-default-from-7.8.3.tgz", + "integrity": "sha512-a1qnnsr73KLNIQcQlcQ4ZHxqqfBKM6iNQZW2OMTyxNbA2WC7SHWHtGVpFzWtQAuS2pspkWVzdEBXXx8Ik0Za4w==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3" + } + }, + "@babel/plugin-syntax-export-namespace-from": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz", + "integrity": "sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3" + } + }, + "@babel/plugin-syntax-function-bind": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-function-bind/-/plugin-syntax-function-bind-7.8.3.tgz", + "integrity": "sha512-gEYag4Q3CfqlQcJQQw/KSWdV2husGOnIsOsRlyzkoaNqj2V/V/CSdSJDCGSl67oJ1bdIYP6TjORWPH561dSJpA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3" + } + }, + "@babel/plugin-syntax-function-sent": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-function-sent/-/plugin-syntax-function-sent-7.8.3.tgz", + "integrity": "sha512-NNEutF0x2PdWYij2bmf/i50dSq4SUdgFij4BZwj3I4qDZgql3dlFJRyvwGHAhwKYElUKHaP0wQ/yO1d/enpJaw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3" + } + }, + "@babel/plugin-syntax-import-meta": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.8.3.tgz", + "integrity": "sha512-vYiGd4wQ9gx0Lngb7+bPCwQXGK/PR6FeTIJ+TIOlq+OfOKG/kCAOO2+IBac3oMM9qV7/fU76hfcqxUaLKZf1hQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3" + } + }, + "@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", + "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.8.3.tgz", + "integrity": "sha512-Zpg2Sgc++37kuFl6ppq2Q7Awc6E6AIW671x5PY8E/f7MCIyPPGK/EoeZXvvY3P42exZ3Q4/t3YOzP/HiN79jDg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3" + } + }, + "@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-numeric-separator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.8.3.tgz", + "integrity": "sha512-H7dCMAdN83PcCmqmkHB5dtp+Xa9a6LKSvA2hiFBC/5alSHxM5VgWZXFqDi0YFe8XNGT6iCa+z4V4zSt/PdZ7Dw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3" + } + }, + "@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", + "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", + "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", + "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-pipeline-operator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-pipeline-operator/-/plugin-syntax-pipeline-operator-7.8.3.tgz", + "integrity": "sha512-GhiBvlXZLWeP+MjKaEv33KmiR/QMCv4iCwz1AuuAp7pHxBvOxxyQmIPukh+N/py6PRLYG10bvRCNeenG34QbDA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3" + } + }, + "@babel/plugin-syntax-throw-expressions": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-throw-expressions/-/plugin-syntax-throw-expressions-7.8.3.tgz", + "integrity": "sha512-Mv3shY1i7ZssY4OY+eLZJAmNCwqTcpv2qOKO9x6irELSygfKWVSMXk0igJsA9UhU4hOdw0qMGkjj9TAk4MqzwQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3" + } + }, + "@babel/plugin-syntax-top-level-await": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.8.3.tgz", + "integrity": "sha512-kwj1j9lL/6Wd0hROD3b/OZZ7MSrZLqqn9RAZ5+cYYsflQ9HZBIKCUkr3+uL1MEJ1NePiUbf98jjiMQSv0NMR9g==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3" + } + }, + "@babel/plugin-transform-arrow-functions": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.8.3.tgz", + "integrity": "sha512-0MRF+KC8EqH4dbuITCWwPSzsyO3HIWWlm30v8BbbpOrS1B++isGxPnnuq/IZvOX5J2D/p7DQalQm+/2PnlKGxg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3" + } + }, + "@babel/plugin-transform-async-to-generator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.8.3.tgz", + "integrity": "sha512-imt9tFLD9ogt56Dd5CI/6XgpukMwd/fLGSrix2httihVe7LOGVPhyhMh1BU5kDM7iHD08i8uUtmV2sWaBFlHVQ==", + "dev": true, + "requires": { + "@babel/helper-module-imports": "^7.8.3", + "@babel/helper-plugin-utils": "^7.8.3", + "@babel/helper-remap-async-to-generator": "^7.8.3" + } + }, + "@babel/plugin-transform-block-scoped-functions": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.8.3.tgz", + "integrity": "sha512-vo4F2OewqjbB1+yaJ7k2EJFHlTP3jR634Z9Cj9itpqNjuLXvhlVxgnjsHsdRgASR8xYDrx6onw4vW5H6We0Jmg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3" + } + }, + "@babel/plugin-transform-block-scoping": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.8.3.tgz", + "integrity": "sha512-pGnYfm7RNRgYRi7bids5bHluENHqJhrV4bCZRwc5GamaWIIs07N4rZECcmJL6ZClwjDz1GbdMZFtPs27hTB06w==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3", + "lodash": "^4.17.13" + } + }, + "@babel/plugin-transform-classes": { + "version": "7.9.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.9.5.tgz", + "integrity": "sha512-x2kZoIuLC//O5iA7PEvecB105o7TLzZo8ofBVhP79N+DO3jaX+KYfww9TQcfBEZD0nikNyYcGB1IKtRq36rdmg==", + "dev": true, + "requires": { + "@babel/helper-annotate-as-pure": "^7.8.3", + "@babel/helper-define-map": "^7.8.3", + "@babel/helper-function-name": "^7.9.5", + "@babel/helper-optimise-call-expression": "^7.8.3", + "@babel/helper-plugin-utils": "^7.8.3", + "@babel/helper-replace-supers": "^7.8.6", + "@babel/helper-split-export-declaration": "^7.8.3", + "globals": "^11.1.0" + } + }, + "@babel/plugin-transform-computed-properties": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.8.3.tgz", + "integrity": "sha512-O5hiIpSyOGdrQZRQ2ccwtTVkgUDBBiCuK//4RJ6UfePllUTCENOzKxfh6ulckXKc0DixTFLCfb2HVkNA7aDpzA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3" + } + }, + "@babel/plugin-transform-destructuring": { + "version": "7.9.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.9.5.tgz", + "integrity": "sha512-j3OEsGel8nHL/iusv/mRd5fYZ3DrOxWC82x0ogmdN/vHfAP4MYw+AFKYanzWlktNwikKvlzUV//afBW5FTp17Q==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3" + } + }, + "@babel/plugin-transform-dotall-regex": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.8.3.tgz", + "integrity": "sha512-kLs1j9Nn4MQoBYdRXH6AeaXMbEJFaFu/v1nQkvib6QzTj8MZI5OQzqmD83/2jEM1z0DLilra5aWO5YpyC0ALIw==", + "dev": true, + "requires": { + "@babel/helper-create-regexp-features-plugin": "^7.8.3", + "@babel/helper-plugin-utils": "^7.8.3" + } + }, + "@babel/plugin-transform-duplicate-keys": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.8.3.tgz", + "integrity": "sha512-s8dHiBUbcbSgipS4SMFuWGqCvyge5V2ZeAWzR6INTVC3Ltjig/Vw1G2Gztv0vU/hRG9X8IvKvYdoksnUfgXOEQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3" + } + }, + "@babel/plugin-transform-exponentiation-operator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.8.3.tgz", + "integrity": "sha512-zwIpuIymb3ACcInbksHaNcR12S++0MDLKkiqXHl3AzpgdKlFNhog+z/K0+TGW+b0w5pgTq4H6IwV/WhxbGYSjQ==", + "dev": true, + "requires": { + "@babel/helper-builder-binary-assignment-operator-visitor": "^7.8.3", + "@babel/helper-plugin-utils": "^7.8.3" + } + }, + "@babel/plugin-transform-for-of": { + "version": "7.9.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.9.0.tgz", + "integrity": "sha512-lTAnWOpMwOXpyDx06N+ywmF3jNbafZEqZ96CGYabxHrxNX8l5ny7dt4bK/rGwAh9utyP2b2Hv7PlZh1AAS54FQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3" + } + }, + "@babel/plugin-transform-function-name": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.8.3.tgz", + "integrity": "sha512-rO/OnDS78Eifbjn5Py9v8y0aR+aSYhDhqAwVfsTl0ERuMZyr05L1aFSCJnbv2mmsLkit/4ReeQ9N2BgLnOcPCQ==", + "dev": true, + "requires": { + "@babel/helper-function-name": "^7.8.3", + "@babel/helper-plugin-utils": "^7.8.3" + } + }, + "@babel/plugin-transform-literals": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.8.3.tgz", + "integrity": "sha512-3Tqf8JJ/qB7TeldGl+TT55+uQei9JfYaregDcEAyBZ7akutriFrt6C/wLYIer6OYhleVQvH/ntEhjE/xMmy10A==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3" + } + }, + "@babel/plugin-transform-member-expression-literals": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.8.3.tgz", + "integrity": "sha512-3Wk2EXhnw+rP+IDkK6BdtPKsUE5IeZ6QOGrPYvw52NwBStw9V1ZVzxgK6fSKSxqUvH9eQPR3tm3cOq79HlsKYA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3" + } + }, + "@babel/plugin-transform-modules-amd": { + "version": "7.9.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.9.6.tgz", + "integrity": "sha512-zoT0kgC3EixAyIAU+9vfaUVKTv9IxBDSabgHoUCBP6FqEJ+iNiN7ip7NBKcYqbfUDfuC2mFCbM7vbu4qJgOnDw==", + "dev": true, + "requires": { + "@babel/helper-module-transforms": "^7.9.0", + "@babel/helper-plugin-utils": "^7.8.3", + "babel-plugin-dynamic-import-node": "^2.3.3" + } + }, + "@babel/plugin-transform-modules-commonjs": { + "version": "7.9.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.9.6.tgz", + "integrity": "sha512-7H25fSlLcn+iYimmsNe3uK1at79IE6SKW9q0/QeEHTMC9MdOZ+4bA+T1VFB5fgOqBWoqlifXRzYD0JPdmIrgSQ==", + "dev": true, + "requires": { + "@babel/helper-module-transforms": "^7.9.0", + "@babel/helper-plugin-utils": "^7.8.3", + "@babel/helper-simple-access": "^7.8.3", + "babel-plugin-dynamic-import-node": "^2.3.3" + } + }, + "@babel/plugin-transform-modules-systemjs": { + "version": "7.9.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.9.6.tgz", + "integrity": "sha512-NW5XQuW3N2tTHim8e1b7qGy7s0kZ2OH3m5octc49K1SdAKGxYxeIx7hiIz05kS1R2R+hOWcsr1eYwcGhrdHsrg==", + "dev": true, + "requires": { + "@babel/helper-hoist-variables": "^7.8.3", + "@babel/helper-module-transforms": "^7.9.0", + "@babel/helper-plugin-utils": "^7.8.3", + "babel-plugin-dynamic-import-node": "^2.3.3" + } + }, + "@babel/plugin-transform-modules-umd": { + "version": "7.9.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.9.0.tgz", + "integrity": "sha512-uTWkXkIVtg/JGRSIABdBoMsoIeoHQHPTL0Y2E7xf5Oj7sLqwVsNXOkNk0VJc7vF0IMBsPeikHxFjGe+qmwPtTQ==", + "dev": true, + "requires": { + "@babel/helper-module-transforms": "^7.9.0", + "@babel/helper-plugin-utils": "^7.8.3" + } + }, + "@babel/plugin-transform-named-capturing-groups-regex": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.8.3.tgz", + "integrity": "sha512-f+tF/8UVPU86TrCb06JoPWIdDpTNSGGcAtaD9mLP0aYGA0OS0j7j7DHJR0GTFrUZPUU6loZhbsVZgTh0N+Qdnw==", + "dev": true, + "requires": { + "@babel/helper-create-regexp-features-plugin": "^7.8.3" + } + }, + "@babel/plugin-transform-new-target": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.8.3.tgz", + "integrity": "sha512-QuSGysibQpyxexRyui2vca+Cmbljo8bcRckgzYV4kRIsHpVeyeC3JDO63pY+xFZ6bWOBn7pfKZTqV4o/ix9sFw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3" + } + }, + "@babel/plugin-transform-object-super": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.8.3.tgz", + "integrity": "sha512-57FXk+gItG/GejofIyLIgBKTas4+pEU47IXKDBWFTxdPd7F80H8zybyAY7UoblVfBhBGs2EKM+bJUu2+iUYPDQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3", + "@babel/helper-replace-supers": "^7.8.3" + } + }, + "@babel/plugin-transform-parameters": { + "version": "7.9.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.9.5.tgz", + "integrity": "sha512-0+1FhHnMfj6lIIhVvS4KGQJeuhe1GI//h5uptK4PvLt+BGBxsoUJbd3/IW002yk//6sZPlFgsG1hY6OHLcy6kA==", + "dev": true, + "requires": { + "@babel/helper-get-function-arity": "^7.8.3", + "@babel/helper-plugin-utils": "^7.8.3" + } + }, + "@babel/plugin-transform-property-literals": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.8.3.tgz", + "integrity": "sha512-uGiiXAZMqEoQhRWMK17VospMZh5sXWg+dlh2soffpkAl96KAm+WZuJfa6lcELotSRmooLqg0MWdH6UUq85nmmg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3" + } + }, + "@babel/plugin-transform-regenerator": { + "version": "7.8.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.8.7.tgz", + "integrity": "sha512-TIg+gAl4Z0a3WmD3mbYSk+J9ZUH6n/Yc57rtKRnlA/7rcCvpekHXe0CMZHP1gYp7/KLe9GHTuIba0vXmls6drA==", + "dev": true, + "requires": { + "regenerator-transform": "^0.14.2" + } + }, + "@babel/plugin-transform-reserved-words": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.8.3.tgz", + "integrity": "sha512-mwMxcycN3omKFDjDQUl+8zyMsBfjRFr0Zn/64I41pmjv4NJuqcYlEtezwYtw9TFd9WR1vN5kiM+O0gMZzO6L0A==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3" + } + }, + "@babel/plugin-transform-shorthand-properties": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.8.3.tgz", + "integrity": "sha512-I9DI6Odg0JJwxCHzbzW08ggMdCezoWcuQRz3ptdudgwaHxTjxw5HgdFJmZIkIMlRymL6YiZcped4TTCB0JcC8w==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3" + } + }, + "@babel/plugin-transform-spread": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.8.3.tgz", + "integrity": "sha512-CkuTU9mbmAoFOI1tklFWYYbzX5qCIZVXPVy0jpXgGwkplCndQAa58s2jr66fTeQnA64bDox0HL4U56CFYoyC7g==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3" + } + }, + "@babel/plugin-transform-sticky-regex": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.8.3.tgz", + "integrity": "sha512-9Spq0vGCD5Bb4Z/ZXXSK5wbbLFMG085qd2vhL1JYu1WcQ5bXqZBAYRzU1d+p79GcHs2szYv5pVQCX13QgldaWw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3", + "@babel/helper-regex": "^7.8.3" + } + }, + "@babel/plugin-transform-template-literals": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.8.3.tgz", + "integrity": "sha512-820QBtykIQOLFT8NZOcTRJ1UNuztIELe4p9DCgvj4NK+PwluSJ49we7s9FB1HIGNIYT7wFUJ0ar2QpCDj0escQ==", + "dev": true, + "requires": { + "@babel/helper-annotate-as-pure": "^7.8.3", + "@babel/helper-plugin-utils": "^7.8.3" + } + }, + "@babel/plugin-transform-typeof-symbol": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.8.4.tgz", + "integrity": "sha512-2QKyfjGdvuNfHsb7qnBBlKclbD4CfshH2KvDabiijLMGXPHJXGxtDzwIF7bQP+T0ysw8fYTtxPafgfs/c1Lrqg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3" + } + }, + "@babel/plugin-transform-unicode-regex": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.8.3.tgz", + "integrity": "sha512-+ufgJjYdmWfSQ+6NS9VGUR2ns8cjJjYbrbi11mZBTaWm+Fui/ncTLFF28Ei1okavY+xkojGr1eJxNsWYeA5aZw==", + "dev": true, + "requires": { + "@babel/helper-create-regexp-features-plugin": "^7.8.3", + "@babel/helper-plugin-utils": "^7.8.3" + } + }, + "@babel/preset-env": { + "version": "7.9.6", + "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.9.6.tgz", + "integrity": "sha512-0gQJ9RTzO0heXOhzftog+a/WyOuqMrAIugVYxMYf83gh1CQaQDjMtsOpqOwXyDL/5JcWsrCm8l4ju8QC97O7EQ==", + "dev": true, + "requires": { + "@babel/compat-data": "^7.9.6", + "@babel/helper-compilation-targets": "^7.9.6", + "@babel/helper-module-imports": "^7.8.3", + "@babel/helper-plugin-utils": "^7.8.3", + "@babel/plugin-proposal-async-generator-functions": "^7.8.3", + "@babel/plugin-proposal-dynamic-import": "^7.8.3", + "@babel/plugin-proposal-json-strings": "^7.8.3", + "@babel/plugin-proposal-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-proposal-numeric-separator": "^7.8.3", + "@babel/plugin-proposal-object-rest-spread": "^7.9.6", + "@babel/plugin-proposal-optional-catch-binding": "^7.8.3", + "@babel/plugin-proposal-optional-chaining": "^7.9.0", + "@babel/plugin-proposal-unicode-property-regex": "^7.8.3", + "@babel/plugin-syntax-async-generators": "^7.8.0", + "@babel/plugin-syntax-dynamic-import": "^7.8.0", + "@babel/plugin-syntax-json-strings": "^7.8.0", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.0", + "@babel/plugin-syntax-numeric-separator": "^7.8.0", + "@babel/plugin-syntax-object-rest-spread": "^7.8.0", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.0", + "@babel/plugin-syntax-optional-chaining": "^7.8.0", + "@babel/plugin-syntax-top-level-await": "^7.8.3", + "@babel/plugin-transform-arrow-functions": "^7.8.3", + "@babel/plugin-transform-async-to-generator": "^7.8.3", + "@babel/plugin-transform-block-scoped-functions": "^7.8.3", + "@babel/plugin-transform-block-scoping": "^7.8.3", + "@babel/plugin-transform-classes": "^7.9.5", + "@babel/plugin-transform-computed-properties": "^7.8.3", + "@babel/plugin-transform-destructuring": "^7.9.5", + "@babel/plugin-transform-dotall-regex": "^7.8.3", + "@babel/plugin-transform-duplicate-keys": "^7.8.3", + "@babel/plugin-transform-exponentiation-operator": "^7.8.3", + "@babel/plugin-transform-for-of": "^7.9.0", + "@babel/plugin-transform-function-name": "^7.8.3", + "@babel/plugin-transform-literals": "^7.8.3", + "@babel/plugin-transform-member-expression-literals": "^7.8.3", + "@babel/plugin-transform-modules-amd": "^7.9.6", + "@babel/plugin-transform-modules-commonjs": "^7.9.6", + "@babel/plugin-transform-modules-systemjs": "^7.9.6", + "@babel/plugin-transform-modules-umd": "^7.9.0", + "@babel/plugin-transform-named-capturing-groups-regex": "^7.8.3", + "@babel/plugin-transform-new-target": "^7.8.3", + "@babel/plugin-transform-object-super": "^7.8.3", + "@babel/plugin-transform-parameters": "^7.9.5", + "@babel/plugin-transform-property-literals": "^7.8.3", + "@babel/plugin-transform-regenerator": "^7.8.7", + "@babel/plugin-transform-reserved-words": "^7.8.3", + "@babel/plugin-transform-shorthand-properties": "^7.8.3", + "@babel/plugin-transform-spread": "^7.8.3", + "@babel/plugin-transform-sticky-regex": "^7.8.3", + "@babel/plugin-transform-template-literals": "^7.8.3", + "@babel/plugin-transform-typeof-symbol": "^7.8.4", + "@babel/plugin-transform-unicode-regex": "^7.8.3", + "@babel/preset-modules": "^0.1.3", + "@babel/types": "^7.9.6", + "browserslist": "^4.11.1", + "core-js-compat": "^3.6.2", + "invariant": "^2.2.2", + "levenary": "^1.1.1", + "semver": "^5.5.0" + } + }, + "@babel/preset-modules": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.3.tgz", + "integrity": "sha512-Ra3JXOHBq2xd56xSF7lMKXdjBn3T772Y1Wet3yWnkDly9zHvJki029tAFzvAAK5cf4YV3yoxuP61crYRol6SVg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/plugin-proposal-unicode-property-regex": "^7.4.4", + "@babel/plugin-transform-dotall-regex": "^7.4.4", + "@babel/types": "^7.4.4", + "esutils": "^2.0.2" + } + }, + "@babel/register": { + "version": "7.9.0", + "resolved": "https://registry.npmjs.org/@babel/register/-/register-7.9.0.tgz", + "integrity": "sha512-Tv8Zyi2J2VRR8g7pC5gTeIN8Ihultbmk0ocyNz8H2nEZbmhp1N6q0A1UGsQbDvGP/sNinQKUHf3SqXwqjtFv4Q==", + "dev": true, + "requires": { + "find-cache-dir": "^2.0.0", + "lodash": "^4.17.13", + "make-dir": "^2.1.0", + "pirates": "^4.0.0", + "source-map-support": "^0.5.16" + } + }, + "@babel/runtime": { + "version": "7.9.6", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.9.6.tgz", + "integrity": "sha512-64AF1xY3OAkFHqOb9s4jpgk1Mm5vDZ4L3acHvAml+53nO1XbXLuDodsVpO4OIUsmemlUHMxNdYMNJmsvOwLrvQ==", + "dev": true, + "requires": { + "regenerator-runtime": "^0.13.4" + } + }, + "@babel/template": { + "version": "7.8.6", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.8.6.tgz", + "integrity": "sha512-zbMsPMy/v0PWFZEhQJ66bqjhH+z0JgMoBWuikXybgG3Gkd/3t5oQ1Rw2WQhnSrsOmsKXnZOx15tkC4qON/+JPg==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.8.3", + "@babel/parser": "^7.8.6", + "@babel/types": "^7.8.6" + } + }, + "@babel/traverse": { + "version": "7.9.6", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.9.6.tgz", + "integrity": "sha512-b3rAHSjbxy6VEAvlxM8OV/0X4XrG72zoxme6q1MOoe2vd0bEc+TwayhuC1+Dfgqh1QEG+pj7atQqvUprHIccsg==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.8.3", + "@babel/generator": "^7.9.6", + "@babel/helper-function-name": "^7.9.5", + "@babel/helper-split-export-declaration": "^7.8.3", + "@babel/parser": "^7.9.6", + "@babel/types": "^7.9.6", + "debug": "^4.1.0", + "globals": "^11.1.0", + "lodash": "^4.17.13" + }, + "dependencies": { + "debug": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", + "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + } + } + }, + "@babel/types": { + "version": "7.9.6", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.9.6.tgz", + "integrity": "sha512-qxXzvBO//jO9ZnoasKF1uJzHd2+M6Q2ZPIVfnFps8JJvXy0ZBbwbNOmE6SGIY5XOY6d1Bo5lb9d9RJ8nv3WSeA==", + "dev": true, + "requires": { + "@babel/helper-validator-identifier": "^7.9.5", + "lodash": "^4.17.13", + "to-fast-properties": "^2.0.0" + } + }, + "@sinonjs/commons": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.0.tgz", + "integrity": "sha512-wEj54PfsZ5jGSwMX68G8ZXFawcSglQSXqCftWX3ec8MDUzQdHgcKvw97awHbY0efQEL5iKUOAmmVtoYgmrSG4Q==", + "dev": true, + "requires": { + "type-detect": "4.0.8" + } + }, + "@sinonjs/formatio": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/@sinonjs/formatio/-/formatio-3.2.2.tgz", + "integrity": "sha512-B8SEsgd8gArBLMD6zpRw3juQ2FVSsmdd7qlevyDqzS9WTCtvF55/gAL+h6gue8ZvPYcdiPdvueM/qm//9XzyTQ==", + "dev": true, + "requires": { + "@sinonjs/commons": "^1", + "@sinonjs/samsam": "^3.1.0" + } + }, + "@sinonjs/samsam": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/@sinonjs/samsam/-/samsam-3.3.3.tgz", + "integrity": "sha512-bKCMKZvWIjYD0BLGnNrxVuw4dkWCYsLqFOUWw8VgKF/+5Y+mE7LfHWPIYoDXowH+3a9LsWDMo0uAP8YDosPvHQ==", + "dev": true, + "requires": { + "@sinonjs/commons": "^1.3.0", + "array-from": "^2.1.1", + "lodash": "^4.17.15" + } + }, + "@sinonjs/text-encoding": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/@sinonjs/text-encoding/-/text-encoding-0.7.1.tgz", + "integrity": "sha512-+iTbntw2IZPb/anVDbypzfQa+ay64MW0Zo8aJ8gZPWMMK6/OubMVb6lUPMagqjOPnmtauXnFCACVl3O7ogjeqQ==", + "dev": true + }, + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "anymatch": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-2.0.0.tgz", + "integrity": "sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==", + "optional": true, + "requires": { + "micromatch": "^3.1.4", + "normalize-path": "^2.1.1" + }, + "dependencies": { + "normalize-path": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", + "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", + "optional": true, + "requires": { + "remove-trailing-separator": "^1.0.1" + } + } + } + }, + "arr-diff": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", + "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=", + "optional": true + }, + "arr-flatten": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", + "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", + "optional": true + }, + "arr-union": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz", + "integrity": "sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=", + "optional": true + }, + "array-from": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/array-from/-/array-from-2.1.1.tgz", + "integrity": "sha1-z+nYwmYoudxa7MYqn12PHzUsEZU=", + "dev": true + }, + "array-unique": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", + "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=", + "optional": true + }, + "assign-symbols": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz", + "integrity": "sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=", + "optional": true + }, + "async-each": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/async-each/-/async-each-1.0.3.tgz", + "integrity": "sha512-z/WhQ5FPySLdvREByI2vZiTWwCnF0moMJ1hK9YQwDTHKh6I7/uSckMetoRGb5UBZPC1z0jlw+n/XCgjeH7y1AQ==", + "optional": true + }, + "asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" + }, + "atob": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", + "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==", + "optional": true + }, + "babel-plugin-dynamic-import-node": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-2.3.3.tgz", + "integrity": "sha512-jZVI+s9Zg3IqA/kdi0i6UDCybUI3aSBLnglhYbSSjKlV7yF1F/5LWv8MakQmvYpnbJDS6fcBL2KzHSxNCMtWSQ==", + "dev": true, + "requires": { + "object.assign": "^4.1.0" + } + }, + "balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" + }, + "base": { + "version": "0.11.2", + "resolved": "https://registry.npmjs.org/base/-/base-0.11.2.tgz", + "integrity": "sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg==", + "optional": true, + "requires": { + "cache-base": "^1.0.1", + "class-utils": "^0.3.5", + "component-emitter": "^1.2.1", + "define-property": "^1.0.0", + "isobject": "^3.0.1", + "mixin-deep": "^1.2.0", + "pascalcase": "^0.1.1" + }, + "dependencies": { + "define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", + "optional": true, + "requires": { + "is-descriptor": "^1.0.0" + } + }, + "is-accessor-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", + "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "optional": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-data-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", + "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "optional": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-descriptor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", + "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "optional": true, + "requires": { + "is-accessor-descriptor": "^1.0.0", + "is-data-descriptor": "^1.0.0", + "kind-of": "^6.0.2" + } + } + } + }, + "binary-extensions": { + "version": "1.13.1", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.13.1.tgz", + "integrity": "sha512-Un7MIEDdUC5gNpcGDV97op1Ywk748MpHcFTHoYs6qnj1Z3j7I53VG3nwZhKzoBZmbdRNnb6WRdFlwl7tSDuZGw==", + "optional": true + }, + "bindings": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz", + "integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==", + "optional": true, + "requires": { + "file-uri-to-path": "1.0.0" + } + }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "braces": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", + "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", + "optional": true, + "requires": { + "arr-flatten": "^1.1.0", + "array-unique": "^0.3.2", + "extend-shallow": "^2.0.1", + "fill-range": "^4.0.0", + "isobject": "^3.0.1", + "repeat-element": "^1.1.2", + "snapdragon": "^0.8.1", + "snapdragon-node": "^2.0.1", + "split-string": "^3.0.2", + "to-regex": "^3.0.1" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "optional": true, + "requires": { + "is-extendable": "^0.1.0" + } + } + } + }, + "browser-stdout": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", + "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", + "dev": true + }, + "browserslist": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.12.0.tgz", + "integrity": "sha512-UH2GkcEDSI0k/lRkuDSzFl9ZZ87skSy9w2XAn1MsZnL+4c4rqbBd3e82UWHbYDpztABrPBhZsTEeuxVfHppqDg==", + "dev": true, + "requires": { + "caniuse-lite": "^1.0.30001043", + "electron-to-chromium": "^1.3.413", + "node-releases": "^1.1.53", + "pkg-up": "^2.0.0" + } + }, + "buffer-from": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", + "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", + "dev": true + }, + "cache-base": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/cache-base/-/cache-base-1.0.1.tgz", + "integrity": "sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==", + "optional": true, + "requires": { + "collection-visit": "^1.0.0", + "component-emitter": "^1.2.1", + "get-value": "^2.0.6", + "has-value": "^1.0.0", + "isobject": "^3.0.1", + "set-value": "^2.0.0", + "to-object-path": "^0.3.0", + "union-value": "^1.0.0", + "unset-value": "^1.0.0" + } + }, + "caniuse-lite": { + "version": "1.0.30001064", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001064.tgz", + "integrity": "sha512-hdBcQMFvJIrOhkpAZiRXz04Cmetwc9NekeuNl0qZfHOugxOhJKxsjF1RmISMPFjIF4PPx1reliIzbfN42EiQ5A==", + "dev": true + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "chokidar": { + "version": "2.1.8", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-2.1.8.tgz", + "integrity": "sha512-ZmZUazfOzf0Nve7duiCKD23PFSCs4JPoYyccjUFF3aQkQadqBhfzhjkwBH2mNOG9cTBwhamM37EIsIkZw3nRgg==", + "optional": true, + "requires": { + "anymatch": "^2.0.0", + "async-each": "^1.0.1", + "braces": "^2.3.2", + "fsevents": "^1.2.7", + "glob-parent": "^3.1.0", + "inherits": "^2.0.3", + "is-binary-path": "^1.0.0", + "is-glob": "^4.0.0", + "normalize-path": "^3.0.0", + "path-is-absolute": "^1.0.0", + "readdirp": "^2.2.1", + "upath": "^1.1.1" + } + }, + "class-utils": { + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/class-utils/-/class-utils-0.3.6.tgz", + "integrity": "sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==", + "optional": true, + "requires": { + "arr-union": "^3.1.0", + "define-property": "^0.2.5", + "isobject": "^3.0.0", + "static-extend": "^0.1.1" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "optional": true, + "requires": { + "is-descriptor": "^0.1.0" + } + } + } + }, + "collection-visit": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz", + "integrity": "sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA=", + "optional": true, + "requires": { + "map-visit": "^1.0.0", + "object-visit": "^1.0.0" + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + }, + "combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "requires": { + "delayed-stream": "~1.0.0" + } + }, + "commander": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", + "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==" + }, + "commondir": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", + "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=", + "dev": true + }, + "component-emitter": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz", + "integrity": "sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg==" + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" + }, + "convert-source-map": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.7.0.tgz", + "integrity": "sha512-4FJkXzKXEDB1snCFZlLP4gpC3JILicCpGbzG9f9G7tGqGCzETQ2hWPrcinA9oU4wtf2biUaEH5065UnMeR33oA==", + "requires": { + "safe-buffer": "~5.1.1" + } + }, + "cookiejar": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/cookiejar/-/cookiejar-2.1.2.tgz", + "integrity": "sha512-Mw+adcfzPxcPeI+0WlvRrr/3lGVO0bD75SxX6811cxSh1Wbxx7xZBGK1eVtDf6si8rg2lhnUjsVLMFMfbRIuwA==" + }, + "copy-descriptor": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz", + "integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=", + "optional": true + }, + "core-js-compat": { + "version": "3.6.5", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.6.5.tgz", + "integrity": "sha512-7ItTKOhOZbznhXAQ2g/slGg1PJV5zDO/WdkTwi7UEOJmkvsE32PWvx6mKtDjiMpjnR2CNf6BAD6sSxIlv7ptng==", + "dev": true, + "requires": { + "browserslist": "^4.8.5", + "semver": "7.0.0" + }, + "dependencies": { + "semver": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.0.0.tgz", + "integrity": "sha512-+GB6zVA9LWh6zovYQLALHwv5rb2PHGlJi3lfiqIHxR0uuwCgefcOJc59v9fv1w8GbStwxuuqqAjI9NMAOOgq1A==", + "dev": true + } + } + }, + "core-util-is": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", + "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" + }, + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "optional": true, + "requires": { + "ms": "2.0.0" + } + }, + "decode-uri-component": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz", + "integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=", + "optional": true + }, + "define-properties": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", + "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", + "dev": true, + "requires": { + "object-keys": "^1.0.12" + } + }, + "define-property": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz", + "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==", + "optional": true, + "requires": { + "is-descriptor": "^1.0.2", + "isobject": "^3.0.1" + }, + "dependencies": { + "is-accessor-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", + "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "optional": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-data-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", + "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "optional": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-descriptor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", + "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "optional": true, + "requires": { + "is-accessor-descriptor": "^1.0.0", + "is-data-descriptor": "^1.0.0", + "kind-of": "^6.0.2" + } + } + } + }, + "delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=" + }, + "diff": { + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", + "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", + "dev": true + }, + "electron-to-chromium": { + "version": "1.3.451", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.451.tgz", + "integrity": "sha512-2fvco0F2bBIgqzO8GRP0Jt/91pdrf9KfZ5FsmkYkjERmIJG585cFeFZV4+CO6oTmU3HmCTgfcZuEa7kW8VUh3A==", + "dev": true + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true + }, + "esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true + }, + "expand-brackets": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", + "integrity": "sha1-t3c14xXOMPa27/D4OwQVGiJEliI=", + "optional": true, + "requires": { + "debug": "^2.3.3", + "define-property": "^0.2.5", + "extend-shallow": "^2.0.1", + "posix-character-classes": "^0.1.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "optional": true, + "requires": { + "is-descriptor": "^0.1.0" + } + }, + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "optional": true, + "requires": { + "is-extendable": "^0.1.0" + } + } + } + }, + "expect.js": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/expect.js/-/expect.js-0.3.1.tgz", + "integrity": "sha1-sKWaDS7/VDdUTr8M6qYBWEHQm1s=", + "dev": true + }, + "extend": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" + }, + "extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", + "optional": true, + "requires": { + "assign-symbols": "^1.0.0", + "is-extendable": "^1.0.1" + }, + "dependencies": { + "is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "optional": true, + "requires": { + "is-plain-object": "^2.0.4" + } + } + } + }, + "extglob": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", + "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==", + "optional": true, + "requires": { + "array-unique": "^0.3.2", + "define-property": "^1.0.0", + "expand-brackets": "^2.1.4", + "extend-shallow": "^2.0.1", + "fragment-cache": "^0.2.1", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" + }, + "dependencies": { + "define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", + "optional": true, + "requires": { + "is-descriptor": "^1.0.0" + } + }, + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "optional": true, + "requires": { + "is-extendable": "^0.1.0" + } + }, + "is-accessor-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", + "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "optional": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-data-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", + "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "optional": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-descriptor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", + "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "optional": true, + "requires": { + "is-accessor-descriptor": "^1.0.0", + "is-data-descriptor": "^1.0.0", + "kind-of": "^6.0.2" + } + } + } + }, + "file-uri-to-path": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz", + "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==", + "optional": true + }, + "fill-range": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", + "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", + "optional": true, + "requires": { + "extend-shallow": "^2.0.1", + "is-number": "^3.0.0", + "repeat-string": "^1.6.1", + "to-regex-range": "^2.1.0" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "optional": true, + "requires": { + "is-extendable": "^0.1.0" + } + } + } + }, + "find-cache-dir": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-2.1.0.tgz", + "integrity": "sha512-Tq6PixE0w/VMFfCgbONnkiQIVol/JJL7nRMi20fqzA4NRs9AfeqMGeRdPi3wIhYkxjeBaWh2rxwapn5Tu3IqOQ==", + "dev": true, + "requires": { + "commondir": "^1.0.1", + "make-dir": "^2.0.0", + "pkg-dir": "^3.0.0" + } + }, + "find-up": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", + "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", + "dev": true, + "requires": { + "locate-path": "^2.0.0" + } + }, + "for-in": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", + "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=", + "optional": true + }, + "form-data": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.5.1.tgz", + "integrity": "sha512-m21N3WOmEEURgk6B9GLOE4RuWOFf28Lhh9qGYeNlGq4VDXUlJy2th2slBNU8Gp8EzloYZOibZJ7t5ecIrFSjVA==", + "requires": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.6", + "mime-types": "^2.1.12" + } + }, + "formidable": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/formidable/-/formidable-1.2.2.tgz", + "integrity": "sha512-V8gLm+41I/8kguQ4/o1D3RIHRmhYFG4pnNyonvua+40rqcEmT4+V71yaZ3B457xbbgCsCfjSPi65u/W6vK1U5Q==" + }, + "fragment-cache": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz", + "integrity": "sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk=", + "optional": true, + "requires": { + "map-cache": "^0.2.2" + } + }, + "fs-readdir-recursive": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fs-readdir-recursive/-/fs-readdir-recursive-1.1.0.tgz", + "integrity": "sha512-GNanXlVr2pf02+sPN40XN8HG+ePaNcvM0q5mZBd668Obwb0yD5GiUbZOFgwn8kGMY6I3mdyDJzieUy3PTYyTRA==" + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" + }, + "fsevents": { + "version": "1.2.13", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.13.tgz", + "integrity": "sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw==", + "optional": true, + "requires": { + "bindings": "^1.5.0", + "nan": "^2.12.1" + } + }, + "function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", + "dev": true + }, + "gensync": { + "version": "1.0.0-beta.1", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.1.tgz", + "integrity": "sha512-r8EC6NO1sngH/zdD9fiRDLdcgnbayXah+mLgManTaIZJqEC1MZstmnox8KpnI2/fxQwrp5OpCOYWLp4rBl4Jcg==", + "dev": true + }, + "get-value": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz", + "integrity": "sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=", + "optional": true + }, + "glob": { + "version": "7.1.6", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", + "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "glob-parent": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-3.1.0.tgz", + "integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=", + "optional": true, + "requires": { + "is-glob": "^3.1.0", + "path-dirname": "^1.0.0" + }, + "dependencies": { + "is-glob": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-3.1.0.tgz", + "integrity": "sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo=", + "optional": true, + "requires": { + "is-extglob": "^2.1.0" + } + } + } + }, + "globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true + }, + "graceful-fs": { + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.4.tgz", + "integrity": "sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw==", + "optional": true + }, + "growl": { + "version": "1.10.5", + "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz", + "integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==", + "dev": true + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + }, + "has-symbols": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.1.tgz", + "integrity": "sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg==", + "dev": true + }, + "has-value": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-value/-/has-value-1.0.0.tgz", + "integrity": "sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc=", + "optional": true, + "requires": { + "get-value": "^2.0.6", + "has-values": "^1.0.0", + "isobject": "^3.0.0" + } + }, + "has-values": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-values/-/has-values-1.0.0.tgz", + "integrity": "sha1-lbC2P+whRmGab+V/51Yo1aOe/k8=", + "optional": true, + "requires": { + "is-number": "^3.0.0", + "kind-of": "^4.0.0" + }, + "dependencies": { + "kind-of": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz", + "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=", + "optional": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "he": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/he/-/he-1.1.1.tgz", + "integrity": "sha1-k0EP0hsAlzUVH4howvJx80J+I/0=", + "dev": true + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + }, + "invariant": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", + "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", + "dev": true, + "requires": { + "loose-envify": "^1.0.0" + } + }, + "is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", + "optional": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "optional": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "is-binary-path": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-1.0.1.tgz", + "integrity": "sha1-dfFmQrSA8YenEcgUFh/TpKdlWJg=", + "optional": true, + "requires": { + "binary-extensions": "^1.0.0" + } + }, + "is-buffer": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", + "optional": true + }, + "is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", + "optional": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "optional": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "optional": true, + "requires": { + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" + }, + "dependencies": { + "kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "optional": true + } + } + }, + "is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", + "optional": true + }, + "is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", + "optional": true + }, + "is-glob": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", + "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", + "optional": true, + "requires": { + "is-extglob": "^2.1.1" + } + }, + "is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", + "optional": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "optional": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "optional": true, + "requires": { + "isobject": "^3.0.1" + } + }, + "is-windows": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", + "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", + "optional": true + }, + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" + }, + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "optional": true + }, + "js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "jsesc": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "dev": true + }, + "json5": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.1.3.tgz", + "integrity": "sha512-KXPvOm8K9IJKFM0bmdn8QXh7udDh1g/giieX0NLCaMnb4hEiVFqnop2ImTXCc5e0/oHz3LTqmHGtExn5hfMkOA==", + "dev": true, + "requires": { + "minimist": "^1.2.5" + } + }, + "just-extend": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/just-extend/-/just-extend-4.1.0.tgz", + "integrity": "sha512-ApcjaOdVTJ7y4r08xI5wIqpvwS48Q0PBG4DJROcEkH1f8MdAiNFyFxz3xoL0LWAVwjrwPYZdVHHxhRHcx/uGLA==", + "dev": true + }, + "kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "optional": true + }, + "leven": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", + "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", + "dev": true + }, + "levenary": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/levenary/-/levenary-1.1.1.tgz", + "integrity": "sha512-mkAdOIt79FD6irqjYSs4rdbnlT5vRonMEvBVPVb3XmevfS8kgRXwfes0dhPdEtzTWD/1eNE/Bm/G1iRt6DcnQQ==", + "dev": true, + "requires": { + "leven": "^3.1.0" + } + }, + "locate-path": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", + "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", + "dev": true, + "requires": { + "p-locate": "^2.0.0", + "path-exists": "^3.0.0" + } + }, + "lodash": { + "version": "4.17.15", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", + "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==" + }, + "lolex": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/lolex/-/lolex-4.2.0.tgz", + "integrity": "sha512-gKO5uExCXvSm6zbF562EvM+rd1kQDnB9AZBbiQVzf1ZmdDpxUSvpnAaVOP83N/31mRK8Ml8/VE8DMvsAZQ+7wg==", + "dev": true + }, + "loose-envify": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", + "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "dev": true, + "requires": { + "js-tokens": "^3.0.0 || ^4.0.0" + } + }, + "make-dir": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz", + "integrity": "sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==", + "requires": { + "pify": "^4.0.1", + "semver": "^5.6.0" + } + }, + "map-cache": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz", + "integrity": "sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8=", + "optional": true + }, + "map-visit": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/map-visit/-/map-visit-1.0.0.tgz", + "integrity": "sha1-7Nyo8TFE5mDxtb1B8S80edmN+48=", + "optional": true, + "requires": { + "object-visit": "^1.0.0" + } + }, + "methods": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", + "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=" + }, + "micromatch": { + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", + "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", + "optional": true, + "requires": { + "arr-diff": "^4.0.0", + "array-unique": "^0.3.2", + "braces": "^2.3.1", + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "extglob": "^2.0.4", + "fragment-cache": "^0.2.1", + "kind-of": "^6.0.2", + "nanomatch": "^1.2.9", + "object.pick": "^1.3.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.2" + } + }, + "mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==" + }, + "mime-db": { + "version": "1.44.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.44.0.tgz", + "integrity": "sha512-/NOTfLrsPBVeH7YtFPgsVWveuL+4SjjYxaQ1xtM1KMFj7HdxlBlxeyNLzhyJVx7r4rZGJAZ/6lkKCitSc/Nmpg==" + }, + "mime-types": { + "version": "2.1.27", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.27.tgz", + "integrity": "sha512-JIhqnCasI9yD+SsmkquHBxTSEuZdQX5BuQnS2Vc7puQQQ+8yiP5AY5uWhpdv4YL4VM5c6iliiYWPgJ/nJQLp7w==", + "requires": { + "mime-db": "1.44.0" + } + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minimist": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", + "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", + "dev": true + }, + "mixin-deep": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.2.tgz", + "integrity": "sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==", + "optional": true, + "requires": { + "for-in": "^1.0.2", + "is-extendable": "^1.0.1" + }, + "dependencies": { + "is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "optional": true, + "requires": { + "is-plain-object": "^2.0.4" + } + } + } + }, + "mkdirp": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", + "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "dev": true, + "requires": { + "minimist": "0.0.8" + }, + "dependencies": { + "minimist": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", + "dev": true + } + } + }, + "mocha": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/mocha/-/mocha-5.2.0.tgz", + "integrity": "sha512-2IUgKDhc3J7Uug+FxMXuqIyYzH7gJjXECKe/w43IGgQHTSj3InJi+yAA7T24L9bQMRKiUEHxEX37G5JpVUGLcQ==", + "dev": true, + "requires": { + "browser-stdout": "1.3.1", + "commander": "2.15.1", + "debug": "3.1.0", + "diff": "3.5.0", + "escape-string-regexp": "1.0.5", + "glob": "7.1.2", + "growl": "1.10.5", + "he": "1.1.1", + "minimatch": "3.0.4", + "mkdirp": "0.5.1", + "supports-color": "5.4.0" + }, + "dependencies": { + "commander": { + "version": "2.15.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.15.1.tgz", + "integrity": "sha512-VlfT9F3V0v+jr4yxPc5gg9s62/fIVWsd2Bk2iD435um1NlGMYdVCq+MjcXnhYq2icNOizHr1kK+5TI6H0Hy0ag==", + "dev": true + }, + "debug": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", + "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "glob": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", + "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "supports-color": { + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz", + "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + } + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + }, + "nan": { + "version": "2.14.1", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.14.1.tgz", + "integrity": "sha512-isWHgVjnFjh2x2yuJ/tj3JbwoHu3UC2dX5G/88Cm24yB6YopVgxvBObDY7n5xW6ExmFhJpSEQqFPvq9zaXc8Jw==", + "optional": true + }, + "nanomatch": { + "version": "1.2.13", + "resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz", + "integrity": "sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA==", + "optional": true, + "requires": { + "arr-diff": "^4.0.0", + "array-unique": "^0.3.2", + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "fragment-cache": "^0.2.1", + "is-windows": "^1.0.2", + "kind-of": "^6.0.2", + "object.pick": "^1.3.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" + } + }, + "nise": { + "version": "1.5.3", + "resolved": "https://registry.npmjs.org/nise/-/nise-1.5.3.tgz", + "integrity": "sha512-Ymbac/94xeIrMf59REBPOv0thr+CJVFMhrlAkW/gjCIE58BGQdCj0x7KRCb3yz+Ga2Rz3E9XXSvUyyxqqhjQAQ==", + "dev": true, + "requires": { + "@sinonjs/formatio": "^3.2.1", + "@sinonjs/text-encoding": "^0.7.1", + "just-extend": "^4.0.2", + "lolex": "^5.0.1", + "path-to-regexp": "^1.7.0" + }, + "dependencies": { + "lolex": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/lolex/-/lolex-5.1.2.tgz", + "integrity": "sha512-h4hmjAvHTmd+25JSwrtTIuwbKdwg5NzZVRMLn9saij4SZaepCrTCxPr35H/3bjwfMJtN+t3CX8672UIkglz28A==", + "dev": true, + "requires": { + "@sinonjs/commons": "^1.7.0" + } + } + } + }, + "node-modules-regexp": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/node-modules-regexp/-/node-modules-regexp-1.0.0.tgz", + "integrity": "sha1-jZ2+KJZKSsVxLpExZCEHxx6Q7EA=", + "dev": true + }, + "node-releases": { + "version": "1.1.56", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-1.1.56.tgz", + "integrity": "sha512-EVo605FhWLygH8a64TjgpjyHYOihkxECwX1bHHr8tETJKWEiWS2YJjPbvsX2jFjnjTNEgBCmk9mLjKG1Mf11cw==", + "dev": true + }, + "normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "optional": true + }, + "object-copy": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/object-copy/-/object-copy-0.1.0.tgz", + "integrity": "sha1-fn2Fi3gb18mRpBupde04EnVOmYw=", + "optional": true, + "requires": { + "copy-descriptor": "^0.1.0", + "define-property": "^0.2.5", + "kind-of": "^3.0.3" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "optional": true, + "requires": { + "is-descriptor": "^0.1.0" + } + }, + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "optional": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "dev": true + }, + "object-visit": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/object-visit/-/object-visit-1.0.1.tgz", + "integrity": "sha1-95xEk68MU3e1n+OdOV5BBC3QRbs=", + "optional": true, + "requires": { + "isobject": "^3.0.0" + } + }, + "object.assign": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.0.tgz", + "integrity": "sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w==", + "dev": true, + "requires": { + "define-properties": "^1.1.2", + "function-bind": "^1.1.1", + "has-symbols": "^1.0.0", + "object-keys": "^1.0.11" + } + }, + "object.pick": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", + "integrity": "sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c=", + "optional": true, + "requires": { + "isobject": "^3.0.1" + } + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "requires": { + "wrappy": "1" + } + }, + "p-limit": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", + "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", + "dev": true, + "requires": { + "p-try": "^1.0.0" + } + }, + "p-locate": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", + "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", + "dev": true, + "requires": { + "p-limit": "^1.1.0" + } + }, + "p-try": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", + "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", + "dev": true + }, + "pascalcase": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/pascalcase/-/pascalcase-0.1.1.tgz", + "integrity": "sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ=", + "optional": true + }, + "path-dirname": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/path-dirname/-/path-dirname-1.0.2.tgz", + "integrity": "sha1-zDPSTVJeCZpTiMAzbG4yuRYGCeA=", + "optional": true + }, + "path-exists": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", + "dev": true + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" + }, + "path-parse": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", + "dev": true + }, + "path-to-regexp": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-1.8.0.tgz", + "integrity": "sha512-n43JRhlUKUAlibEJhPeir1ncUID16QnEjNpwzNdO3Lm4ywrBpBZ5oLD0I6br9evr1Y9JTqwRtAh7JLoOzAQdVA==", + "dev": true, + "requires": { + "isarray": "0.0.1" + }, + "dependencies": { + "isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", + "dev": true + } + } + }, + "pify": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", + "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==" + }, + "pirates": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.1.tgz", + "integrity": "sha512-WuNqLTbMI3tmfef2TKxlQmAiLHKtFhlsCZnPIpuv2Ow0RDVO8lfy1Opf4NUzlMXLjPl+Men7AuVdX6TA+s+uGA==", + "dev": true, + "requires": { + "node-modules-regexp": "^1.0.0" + } + }, + "pkg-dir": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-3.0.0.tgz", + "integrity": "sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw==", + "dev": true, + "requires": { + "find-up": "^3.0.0" + }, + "dependencies": { + "find-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", + "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", + "dev": true, + "requires": { + "locate-path": "^3.0.0" + } + }, + "locate-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", + "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", + "dev": true, + "requires": { + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" + } + }, + "p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "requires": { + "p-try": "^2.0.0" + } + }, + "p-locate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", + "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", + "dev": true, + "requires": { + "p-limit": "^2.0.0" + } + }, + "p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true + } + } + }, + "pkg-up": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/pkg-up/-/pkg-up-2.0.0.tgz", + "integrity": "sha1-yBmscoBZpGHKscOImivjxJoATX8=", + "dev": true, + "requires": { + "find-up": "^2.1.0" + } + }, + "posix-character-classes": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz", + "integrity": "sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=", + "optional": true + }, + "private": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/private/-/private-0.1.8.tgz", + "integrity": "sha512-VvivMrbvd2nKkiG38qjULzlc+4Vx4wm/whI9pQD35YrARNnhxeiRktSOhSukRLFNlzg6Br/cJPet5J/u19r/mg==", + "dev": true + }, + "process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" + }, + "qs": { + "version": "6.9.4", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.9.4.tgz", + "integrity": "sha512-A1kFqHekCTM7cz0udomYUoYNWjBebHm/5wzU/XqrBRBNWectVH0QIiN+NEcZ0Dte5hvzHwbr8+XQmguPhJ6WdQ==" + }, + "readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "readdirp": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-2.2.1.tgz", + "integrity": "sha512-1JU/8q+VgFZyxwrJ+SVIOsh+KywWGpds3NTqikiKpDMZWScmAYyKIgqkO+ARvNWJfXeXR1zxz7aHF4u4CyH6vQ==", + "optional": true, + "requires": { + "graceful-fs": "^4.1.11", + "micromatch": "^3.1.10", + "readable-stream": "^2.0.2" + } + }, + "regenerate": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.0.tgz", + "integrity": "sha512-1G6jJVDWrt0rK99kBjvEtziZNCICAuvIPkSiUFIQxVP06RCVpq3dmDo2oi6ABpYaDYaTRr67BEhL8r1wgEZZKg==", + "dev": true + }, + "regenerate-unicode-properties": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-8.2.0.tgz", + "integrity": "sha512-F9DjY1vKLo/tPePDycuH3dn9H1OTPIkVD9Kz4LODu+F2C75mgjAJ7x/gwy6ZcSNRAAkhNlJSOHRe8k3p+K9WhA==", + "dev": true, + "requires": { + "regenerate": "^1.4.0" + } + }, + "regenerator-runtime": { + "version": "0.13.5", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.5.tgz", + "integrity": "sha512-ZS5w8CpKFinUzOwW3c83oPeVXoNsrLsaCoLtJvAClH135j/R77RuymhiSErhm2lKcwSCIpmvIWSbDkIfAqKQlA==", + "dev": true + }, + "regenerator-transform": { + "version": "0.14.4", + "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.14.4.tgz", + "integrity": "sha512-EaJaKPBI9GvKpvUz2mz4fhx7WPgvwRLY9v3hlNHWmAuJHI13T4nwKnNvm5RWJzEdnI5g5UwtOww+S8IdoUC2bw==", + "dev": true, + "requires": { + "@babel/runtime": "^7.8.4", + "private": "^0.1.8" + } + }, + "regex-not": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/regex-not/-/regex-not-1.0.2.tgz", + "integrity": "sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A==", + "optional": true, + "requires": { + "extend-shallow": "^3.0.2", + "safe-regex": "^1.1.0" + } + }, + "regexpu-core": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-4.7.0.tgz", + "integrity": "sha512-TQ4KXRnIn6tz6tjnrXEkD/sshygKH/j5KzK86X8MkeHyZ8qst/LZ89j3X4/8HEIfHANTFIP/AbXakeRhWIl5YQ==", + "dev": true, + "requires": { + "regenerate": "^1.4.0", + "regenerate-unicode-properties": "^8.2.0", + "regjsgen": "^0.5.1", + "regjsparser": "^0.6.4", + "unicode-match-property-ecmascript": "^1.0.4", + "unicode-match-property-value-ecmascript": "^1.2.0" + } + }, + "regjsgen": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.5.1.tgz", + "integrity": "sha512-5qxzGZjDs9w4tzT3TPhCJqWdCc3RLYwy9J2NB0nm5Lz+S273lvWcpjaTGHsT1dc6Hhfq41uSEOw8wBmxrKOuyg==", + "dev": true + }, + "regjsparser": { + "version": "0.6.4", + "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.6.4.tgz", + "integrity": "sha512-64O87/dPDgfk8/RQqC4gkZoGyyWFIEUTTh80CU6CWuK5vkCGyekIx+oKcEIYtP/RAxSQltCZHCNu/mdd7fqlJw==", + "dev": true, + "requires": { + "jsesc": "~0.5.0" + }, + "dependencies": { + "jsesc": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", + "integrity": "sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0=", + "dev": true + } + } + }, + "remove-trailing-separator": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", + "integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=", + "optional": true + }, + "repeat-element": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.3.tgz", + "integrity": "sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g==", + "optional": true + }, + "repeat-string": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", + "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=", + "optional": true + }, + "resolve": { + "version": "1.17.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.17.0.tgz", + "integrity": "sha512-ic+7JYiV8Vi2yzQGFWOkiZD5Z9z7O2Zhm9XMaTxdJExKasieFCr+yXZ/WmXsckHiKl12ar0y6XiXDx3m4RHn1w==", + "dev": true, + "requires": { + "path-parse": "^1.0.6" + } + }, + "resolve-url": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz", + "integrity": "sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=", + "optional": true + }, + "ret": { + "version": "0.1.15", + "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz", + "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==", + "optional": true + }, + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, + "safe-regex": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", + "integrity": "sha1-QKNmnzsHfR6UPURinhV91IAjvy4=", + "optional": true, + "requires": { + "ret": "~0.1.10" + } + }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" + }, + "set-value": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/set-value/-/set-value-2.0.1.tgz", + "integrity": "sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw==", + "optional": true, + "requires": { + "extend-shallow": "^2.0.1", + "is-extendable": "^0.1.1", + "is-plain-object": "^2.0.3", + "split-string": "^3.0.1" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "optional": true, + "requires": { + "is-extendable": "^0.1.0" + } + } + } + }, + "sinon": { + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/sinon/-/sinon-7.5.0.tgz", + "integrity": "sha512-AoD0oJWerp0/rY9czP/D6hDTTUYGpObhZjMpd7Cl/A6+j0xBE+ayL/ldfggkBXUs0IkvIiM1ljM8+WkOc5k78Q==", + "dev": true, + "requires": { + "@sinonjs/commons": "^1.4.0", + "@sinonjs/formatio": "^3.2.1", + "@sinonjs/samsam": "^3.3.3", + "diff": "^3.5.0", + "lolex": "^4.2.0", + "nise": "^1.5.2", + "supports-color": "^5.5.0" + } + }, + "slash": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-2.0.0.tgz", + "integrity": "sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A==" + }, + "snapdragon": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz", + "integrity": "sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg==", + "optional": true, + "requires": { + "base": "^0.11.1", + "debug": "^2.2.0", + "define-property": "^0.2.5", + "extend-shallow": "^2.0.1", + "map-cache": "^0.2.2", + "source-map": "^0.5.6", + "source-map-resolve": "^0.5.0", + "use": "^3.1.0" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "optional": true, + "requires": { + "is-descriptor": "^0.1.0" + } + }, + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "optional": true, + "requires": { + "is-extendable": "^0.1.0" + } + } + } + }, + "snapdragon-node": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/snapdragon-node/-/snapdragon-node-2.1.1.tgz", + "integrity": "sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw==", + "optional": true, + "requires": { + "define-property": "^1.0.0", + "isobject": "^3.0.0", + "snapdragon-util": "^3.0.1" + }, + "dependencies": { + "define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", + "optional": true, + "requires": { + "is-descriptor": "^1.0.0" + } + }, + "is-accessor-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", + "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "optional": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-data-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", + "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "optional": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-descriptor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", + "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "optional": true, + "requires": { + "is-accessor-descriptor": "^1.0.0", + "is-data-descriptor": "^1.0.0", + "kind-of": "^6.0.2" + } + } + } + }, + "snapdragon-util": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-3.0.1.tgz", + "integrity": "sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ==", + "optional": true, + "requires": { + "kind-of": "^3.2.0" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "optional": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=" + }, + "source-map-resolve": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.3.tgz", + "integrity": "sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw==", + "optional": true, + "requires": { + "atob": "^2.1.2", + "decode-uri-component": "^0.2.0", + "resolve-url": "^0.2.1", + "source-map-url": "^0.4.0", + "urix": "^0.1.0" + } + }, + "source-map-support": { + "version": "0.5.19", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.19.tgz", + "integrity": "sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw==", + "dev": true, + "requires": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + }, + "dependencies": { + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "source-map-url": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.0.tgz", + "integrity": "sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM=", + "optional": true + }, + "split-string": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz", + "integrity": "sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==", + "optional": true, + "requires": { + "extend-shallow": "^3.0.0" + } + }, + "static-extend": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz", + "integrity": "sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY=", + "optional": true, + "requires": { + "define-property": "^0.2.5", + "object-copy": "^0.1.0" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "optional": true, + "requires": { + "is-descriptor": "^0.1.0" + } + } + } + }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "requires": { + "safe-buffer": "~5.1.0" + } + }, + "superagent": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/superagent/-/superagent-3.7.0.tgz", + "integrity": "sha512-/8trxO6NbLx4YXb7IeeFTSmsQ35pQBiTBsLNvobZx7qBzBeHYvKCyIIhW2gNcWbLzYxPAjdgFbiepd8ypwC0Gw==", + "requires": { + "component-emitter": "^1.2.0", + "cookiejar": "^2.1.0", + "debug": "^3.1.0", + "extend": "^3.0.0", + "form-data": "^2.3.1", + "formidable": "^1.1.1", + "methods": "^1.1.1", + "mime": "^1.4.1", + "qs": "^6.5.1", + "readable-stream": "^2.0.5" + }, + "dependencies": { + "debug": { + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", + "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", + "requires": { + "ms": "^2.1.1" + } + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + } + } + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + }, + "to-fast-properties": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", + "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=", + "dev": true + }, + "to-object-path": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", + "integrity": "sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68=", + "optional": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "optional": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "to-regex": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/to-regex/-/to-regex-3.0.2.tgz", + "integrity": "sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==", + "optional": true, + "requires": { + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "regex-not": "^1.0.2", + "safe-regex": "^1.1.0" + } + }, + "to-regex-range": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", + "integrity": "sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg=", + "optional": true, + "requires": { + "is-number": "^3.0.0", + "repeat-string": "^1.6.1" + } + }, + "type-detect": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", + "dev": true + }, + "unicode-canonical-property-names-ecmascript": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-1.0.4.tgz", + "integrity": "sha512-jDrNnXWHd4oHiTZnx/ZG7gtUTVp+gCcTTKr8L0HjlwphROEW3+Him+IpvC+xcJEFegapiMZyZe02CyuOnRmbnQ==", + "dev": true + }, + "unicode-match-property-ecmascript": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-1.0.4.tgz", + "integrity": "sha512-L4Qoh15vTfntsn4P1zqnHulG0LdXgjSO035fEpdtp6YxXhMT51Q6vgM5lYdG/5X3MjS+k/Y9Xw4SFCY9IkR0rg==", + "dev": true, + "requires": { + "unicode-canonical-property-names-ecmascript": "^1.0.4", + "unicode-property-aliases-ecmascript": "^1.0.4" + } + }, + "unicode-match-property-value-ecmascript": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-1.2.0.tgz", + "integrity": "sha512-wjuQHGQVofmSJv1uVISKLE5zO2rNGzM/KCYZch/QQvez7C1hUhBIuZ701fYXExuufJFMPhv2SyL8CyoIfMLbIQ==", + "dev": true + }, + "unicode-property-aliases-ecmascript": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-1.1.0.tgz", + "integrity": "sha512-PqSoPh/pWetQ2phoj5RLiaqIk4kCNwoV3CI+LfGmWLKI3rE3kl1h59XpX2BjgDrmbxD9ARtQobPGU1SguCYuQg==", + "dev": true + }, + "union-value": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.1.tgz", + "integrity": "sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg==", + "optional": true, + "requires": { + "arr-union": "^3.1.0", + "get-value": "^2.0.6", + "is-extendable": "^0.1.1", + "set-value": "^2.0.1" + } + }, + "unset-value": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unset-value/-/unset-value-1.0.0.tgz", + "integrity": "sha1-g3aHP30jNRef+x5vw6jtDfyKtVk=", + "optional": true, + "requires": { + "has-value": "^0.3.1", + "isobject": "^3.0.0" + }, + "dependencies": { + "has-value": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/has-value/-/has-value-0.3.1.tgz", + "integrity": "sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8=", + "optional": true, + "requires": { + "get-value": "^2.0.3", + "has-values": "^0.1.4", + "isobject": "^2.0.0" + }, + "dependencies": { + "isobject": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", + "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", + "optional": true, + "requires": { + "isarray": "1.0.0" + } + } + } + }, + "has-values": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/has-values/-/has-values-0.1.4.tgz", + "integrity": "sha1-bWHeldkd/Km5oCCJrThL/49it3E=", + "optional": true + } + } + }, + "upath": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/upath/-/upath-1.2.0.tgz", + "integrity": "sha512-aZwGpamFO61g3OlfT7OQCHqhGnW43ieH9WZeP7QxN/G/jS4jfqUkZxoryvJgVPEcrl5NL/ggHsSmLMHuH64Lhg==", + "optional": true + }, + "urix": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/urix/-/urix-0.1.0.tgz", + "integrity": "sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=", + "optional": true + }, + "use": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz", + "integrity": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==", + "optional": true + }, + "util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" + } + } +} diff --git a/samples/client/petstore/javascript-promise-es6/test/ApiClientTest.js b/samples/client/petstore/javascript-promise-es6/test/ApiClientTest.js index 5e98b685a911..e544d52998eb 100644 --- a/samples/client/petstore/javascript-promise-es6/test/ApiClientTest.js +++ b/samples/client/petstore/javascript-promise-es6/test/ApiClientTest.js @@ -13,6 +13,7 @@ describe('ApiClient', function() { expect(apiClient.basePath).to.be('http://petstore.swagger.io:80/v2'); expect(apiClient.authentications).to.eql({ petstore_auth: {type: 'oauth2'}, + bearer_test: {type: 'bearer'}, 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'}, 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 deleted file mode 100644 index 391f8f985020..000000000000 --- a/samples/client/petstore/javascript-promise-es6/test/model/AdditionalPropertiesAnyType.spec.js +++ /dev/null @@ -1,65 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - //instance = new OpenApiPetstore.AdditionalPropertiesAnyType(); - }); - - 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('AdditionalPropertiesAnyType', function() { - it('should create an instance of AdditionalPropertiesAnyType', function() { - // uncomment below and update the code to test AdditionalPropertiesAnyType - //var instane = new OpenApiPetstore.AdditionalPropertiesAnyType(); - //expect(instance).to.be.a(OpenApiPetstore.AdditionalPropertiesAnyType); - }); - - 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.AdditionalPropertiesAnyType(); - //expect(instance).to.be(); - }); - - }); - -})); 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 deleted file mode 100644 index 0bb55d1a05a7..000000000000 --- a/samples/client/petstore/javascript-promise-es6/test/model/AdditionalPropertiesArray.spec.js +++ /dev/null @@ -1,65 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - //instance = new OpenApiPetstore.AdditionalPropertiesArray(); - }); - - 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('AdditionalPropertiesArray', function() { - it('should create an instance of AdditionalPropertiesArray', function() { - // uncomment below and update the code to test AdditionalPropertiesArray - //var instane = new OpenApiPetstore.AdditionalPropertiesArray(); - //expect(instance).to.be.a(OpenApiPetstore.AdditionalPropertiesArray); - }); - - 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.AdditionalPropertiesArray(); - //expect(instance).to.be(); - }); - - }); - -})); 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 deleted file mode 100644 index 672c6d3b3ab0..000000000000 --- a/samples/client/petstore/javascript-promise-es6/test/model/AdditionalPropertiesBoolean.spec.js +++ /dev/null @@ -1,65 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.AdditionalPropertiesBoolean(); - }); - - 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('AdditionalPropertiesBoolean', function() { - it('should create an instance of AdditionalPropertiesBoolean', function() { - // uncomment below and update the code to test AdditionalPropertiesBoolean - //var instane = new OpenApiPetstore.AdditionalPropertiesBoolean(); - //expect(instance).to.be.a(OpenApiPetstore.AdditionalPropertiesBoolean); - }); - - 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.AdditionalPropertiesBoolean(); - //expect(instance).to.be(); - }); - - }); - -})); 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 97946110fbbb..d316c448dd51 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 @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -54,68 +54,14 @@ //expect(instance).to.be.a(OpenApiPetstore.AdditionalPropertiesClass); }); - it('should have the property mapString (base name: "map_string")', function() { - // uncomment below and update the code to test the property mapString + 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(); //expect(instance).to.be(); }); - 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 + 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(); //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 deleted file mode 100644 index 927abe7f4abe..000000000000 --- a/samples/client/petstore/javascript-promise-es6/test/model/AdditionalPropertiesInteger.spec.js +++ /dev/null @@ -1,65 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.AdditionalPropertiesInteger(); - }); - - 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('AdditionalPropertiesInteger', function() { - it('should create an instance of AdditionalPropertiesInteger', function() { - // uncomment below and update the code to test AdditionalPropertiesInteger - //var instane = new OpenApiPetstore.AdditionalPropertiesInteger(); - //expect(instance).to.be.a(OpenApiPetstore.AdditionalPropertiesInteger); - }); - - 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.AdditionalPropertiesInteger(); - //expect(instance).to.be(); - }); - - }); - -})); 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 deleted file mode 100644 index 316cda1ce0ca..000000000000 --- a/samples/client/petstore/javascript-promise-es6/test/model/AdditionalPropertiesNumber.spec.js +++ /dev/null @@ -1,65 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.AdditionalPropertiesNumber(); - }); - - 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('AdditionalPropertiesNumber', function() { - it('should create an instance of AdditionalPropertiesNumber', function() { - // uncomment below and update the code to test AdditionalPropertiesNumber - //var instane = new OpenApiPetstore.AdditionalPropertiesNumber(); - //expect(instance).to.be.a(OpenApiPetstore.AdditionalPropertiesNumber); - }); - - 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.AdditionalPropertiesNumber(); - //expect(instance).to.be(); - }); - - }); - -})); 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 deleted file mode 100644 index 0f1c32a186a4..000000000000 --- a/samples/client/petstore/javascript-promise-es6/test/model/AdditionalPropertiesObject.spec.js +++ /dev/null @@ -1,65 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.AdditionalPropertiesObject(); - }); - - 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('AdditionalPropertiesObject', function() { - it('should create an instance of AdditionalPropertiesObject', function() { - // uncomment below and update the code to test AdditionalPropertiesObject - //var instane = new OpenApiPetstore.AdditionalPropertiesObject(); - //expect(instance).to.be.a(OpenApiPetstore.AdditionalPropertiesObject); - }); - - 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.AdditionalPropertiesObject(); - //expect(instance).to.be(); - }); - - }); - -})); 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 deleted file mode 100644 index 41614af44093..000000000000 --- a/samples/client/petstore/javascript-promise-es6/test/model/AdditionalPropertiesString.spec.js +++ /dev/null @@ -1,65 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.AdditionalPropertiesString(); - }); - - 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('AdditionalPropertiesString', function() { - it('should create an instance of AdditionalPropertiesString', function() { - // uncomment below and update the code to test AdditionalPropertiesString - //var instane = new OpenApiPetstore.AdditionalPropertiesString(); - //expect(instance).to.be.a(OpenApiPetstore.AdditionalPropertiesString); - }); - - 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.AdditionalPropertiesString(); - //expect(instance).to.be(); - }); - - }); - -})); 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 541e42c052a7..cc729e13ba08 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 @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 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 6bf65ed8c27a..e9da1c397490 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 @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 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 c0e7294153c1..8c1cdf356fc6 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 @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 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 8b1a334ae4f6..70dc490e4584 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 @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 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 56e527b5af45..3df2ea0d575a 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 @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/samples/client/petstore/javascript-promise-es6/test/model/BigCat.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/BigCat.spec.js deleted file mode 100644 index c21833ff2293..000000000000 --- a/samples/client/petstore/javascript-promise-es6/test/model/BigCat.spec.js +++ /dev/null @@ -1,65 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.BigCat(); - }); - - 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('BigCat', function() { - it('should create an instance of BigCat', function() { - // uncomment below and update the code to test BigCat - //var instane = new OpenApiPetstore.BigCat(); - //expect(instance).to.be.a(OpenApiPetstore.BigCat); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new OpenApiPetstore.BigCat(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/samples/client/petstore/javascript-promise-es6/test/model/BigCatAllOf.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/BigCatAllOf.spec.js deleted file mode 100644 index c27440b42c34..000000000000 --- a/samples/client/petstore/javascript-promise-es6/test/model/BigCatAllOf.spec.js +++ /dev/null @@ -1,65 +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: \" \\ - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.BigCatAllOf(); - }); - - 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('BigCatAllOf', function() { - it('should create an instance of BigCatAllOf', function() { - // uncomment below and update the code to test BigCatAllOf - //var instane = new OpenApiPetstore.BigCatAllOf(); - //expect(instance).to.be.a(OpenApiPetstore.BigCatAllOf); - }); - - it('should have the property kind (base name: "kind")', function() { - // uncomment below and update the code to test the property kind - //var instane = new OpenApiPetstore.BigCatAllOf(); - //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 af2de38aba9f..dcb9d6d182e0 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 @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 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 538496a14dc8..1b7182a13022 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 @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/samples/client/petstore/javascript-promise-es6/test/model/CatAllOf.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/CatAllOf.spec.js index 7db37ef7e297..be4cf8b972ae 100644 --- a/samples/client/petstore/javascript-promise-es6/test/model/CatAllOf.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/model/CatAllOf.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 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 33a4e190d3a5..e0a992aa512a 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 @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 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 5a0704ce1f93..0f2d200d0ba2 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 @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 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 00c35bdf53fe..49a4400987bc 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 @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 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 5fb66ca82ac5..eb919428d2fa 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 @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/samples/client/petstore/javascript-promise-es6/test/model/DogAllOf.spec.js b/samples/client/petstore/javascript-promise-es6/test/model/DogAllOf.spec.js index cf0a7d2b9391..767e3b0071b9 100644 --- a/samples/client/petstore/javascript-promise-es6/test/model/DogAllOf.spec.js +++ b/samples/client/petstore/javascript-promise-es6/test/model/DogAllOf.spec.js @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 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 3bcca2e2f033..d176bddbafd1 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 @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 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 c5c5e6eff58a..92ceee37ad30 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 @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 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 c65804928fc2..fdfd70a772ee 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 @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -84,6 +84,24 @@ //expect(instance).to.be(); }); + it('should have the property outerEnumInteger (base name: "outerEnumInteger")', function() { + // uncomment below and update the code to test the property outerEnumInteger + //var instane = new OpenApiPetstore.EnumTest(); + //expect(instance).to.be(); + }); + + it('should have the property outerEnumDefaultValue (base name: "outerEnumDefaultValue")', function() { + // uncomment below and update the code to test the property outerEnumDefaultValue + //var instane = new OpenApiPetstore.EnumTest(); + //expect(instance).to.be(); + }); + + it('should have the property outerEnumIntegerDefaultValue (base name: "outerEnumIntegerDefaultValue")', function() { + // uncomment below and update the code to test the property outerEnumIntegerDefaultValue + //var 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 f76e2660fd08..4be82b5b488d 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 @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 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 3cdf1be6c2e3..31c80909bff9 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 @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 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 6ce03fc91985..cdff66632dc7 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 @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -132,6 +132,18 @@ //expect(instance).to.be(); }); + it('should have the property patternWithDigits (base name: "pattern_with_digits")', function() { + // uncomment below and update the code to test the property patternWithDigits + //var instane = new OpenApiPetstore.FormatTest(); + //expect(instance).to.be(); + }); + + it('should have the property patternWithDigitsAndDelimiter (base name: "pattern_with_digits_and_delimiter")', function() { + // uncomment below and update the code to test the property patternWithDigitsAndDelimiter + //var 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 ced64afe9d7d..05235ef7b594 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 @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 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 190b15174404..7609a9420d1a 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 @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 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 83fba503f2cc..9b1016b7cc69 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 @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 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 aefbd4a1e118..60243bf3892a 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 @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 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 86baa3a6e1bb..f966a55a5b26 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 @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 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 80ace52e711f..5c995def36fb 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 @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 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 8fd3787a60c2..feed4e8f2906 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 @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 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 8d9b191b8ceb..cbbd3d6124c5 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 @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 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 3cf5ee02c0b1..b3e2b5a47167 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 @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 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 e642d911b1e0..7f772d8c3745 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 @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 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 98fc8e470828..f5ec4089cc1f 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 @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 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 139b4fe0ac4a..f33470481f10 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 @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 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 13a4f7a16f42..7584840104a6 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 @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 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 ccbd26dc3f21..7cd283fa5423 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 @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 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 17c48f5c2560..749022dc3854 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 @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 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 deleted file mode 100644 index 6d918826b387..000000000000 --- a/samples/client/petstore/javascript-promise-es6/test/model/TypeHolderDefault.spec.js +++ /dev/null @@ -1,89 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.TypeHolderDefault(); - }); - - 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('TypeHolderDefault', function() { - it('should create an instance of TypeHolderDefault', function() { - // uncomment below and update the code to test TypeHolderDefault - //var instane = new OpenApiPetstore.TypeHolderDefault(); - //expect(instance).to.be.a(OpenApiPetstore.TypeHolderDefault); - }); - - it('should have the property stringItem (base name: "string_item")', function() { - // uncomment below and update the code to test the property stringItem - //var instane = new OpenApiPetstore.TypeHolderDefault(); - //expect(instance).to.be(); - }); - - it('should have the property numberItem (base name: "number_item")', function() { - // uncomment below and update the code to test the property numberItem - //var instane = new OpenApiPetstore.TypeHolderDefault(); - //expect(instance).to.be(); - }); - - it('should have the property integerItem (base name: "integer_item")', function() { - // uncomment below and update the code to test the property integerItem - //var instane = new OpenApiPetstore.TypeHolderDefault(); - //expect(instance).to.be(); - }); - - it('should have the property boolItem (base name: "bool_item")', function() { - // uncomment below and update the code to test the property boolItem - //var instane = new OpenApiPetstore.TypeHolderDefault(); - //expect(instance).to.be(); - }); - - it('should have the property arrayItem (base name: "array_item")', function() { - // uncomment below and update the code to test the property arrayItem - //var instane = new OpenApiPetstore.TypeHolderDefault(); - //expect(instance).to.be(); - }); - - }); - -})); 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 deleted file mode 100644 index 20cb2d3c8b4f..000000000000 --- a/samples/client/petstore/javascript-promise-es6/test/model/TypeHolderExample.spec.js +++ /dev/null @@ -1,89 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.TypeHolderExample(); - }); - - 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('TypeHolderExample', function() { - it('should create an instance of TypeHolderExample', function() { - // uncomment below and update the code to test TypeHolderExample - //var instane = new OpenApiPetstore.TypeHolderExample(); - //expect(instance).to.be.a(OpenApiPetstore.TypeHolderExample); - }); - - it('should have the property stringItem (base name: "string_item")', function() { - // uncomment below and update the code to test the property stringItem - //var instane = new OpenApiPetstore.TypeHolderExample(); - //expect(instance).to.be(); - }); - - it('should have the property numberItem (base name: "number_item")', function() { - // uncomment below and update the code to test the property numberItem - //var instane = new OpenApiPetstore.TypeHolderExample(); - //expect(instance).to.be(); - }); - - it('should have the property integerItem (base name: "integer_item")', function() { - // uncomment below and update the code to test the property integerItem - //var instane = new OpenApiPetstore.TypeHolderExample(); - //expect(instance).to.be(); - }); - - it('should have the property boolItem (base name: "bool_item")', function() { - // uncomment below and update the code to test the property boolItem - //var instane = new OpenApiPetstore.TypeHolderExample(); - //expect(instance).to.be(); - }); - - it('should have the property arrayItem (base name: "array_item")', function() { - // uncomment below and update the code to test the property arrayItem - //var instane = new OpenApiPetstore.TypeHolderExample(); - //expect(instance).to.be(); - }); - - }); - -})); 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 f2ce2c36ab33..fb24f42d1a2a 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 @@ -2,7 +2,7 @@ * 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 + * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 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 deleted file mode 100644 index 3775c96866b1..000000000000 --- a/samples/client/petstore/javascript-promise-es6/test/model/XmlItem.spec.js +++ /dev/null @@ -1,233 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OpenApiPetstore); - } -}(this, function(expect, OpenApiPetstore) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OpenApiPetstore.XmlItem(); - }); - - 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('XmlItem', function() { - it('should create an instance of XmlItem', function() { - // uncomment below and update the code to test XmlItem - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be.a(OpenApiPetstore.XmlItem); - }); - - it('should have the property attributeString (base name: "attribute_string")', function() { - // uncomment below and update the code to test the property attributeString - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property attributeNumber (base name: "attribute_number")', function() { - // uncomment below and update the code to test the property attributeNumber - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property attributeInteger (base name: "attribute_integer")', function() { - // uncomment below and update the code to test the property attributeInteger - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property attributeBoolean (base name: "attribute_boolean")', function() { - // uncomment below and update the code to test the property attributeBoolean - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property wrappedArray (base name: "wrapped_array")', function() { - // uncomment below and update the code to test the property wrappedArray - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property nameString (base name: "name_string")', function() { - // uncomment below and update the code to test the property nameString - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property nameNumber (base name: "name_number")', function() { - // uncomment below and update the code to test the property nameNumber - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property nameInteger (base name: "name_integer")', function() { - // uncomment below and update the code to test the property nameInteger - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property nameBoolean (base name: "name_boolean")', function() { - // uncomment below and update the code to test the property nameBoolean - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property nameArray (base name: "name_array")', function() { - // uncomment below and update the code to test the property nameArray - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property nameWrappedArray (base name: "name_wrapped_array")', function() { - // uncomment below and update the code to test the property nameWrappedArray - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property prefixString (base name: "prefix_string")', function() { - // uncomment below and update the code to test the property prefixString - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property prefixNumber (base name: "prefix_number")', function() { - // uncomment below and update the code to test the property prefixNumber - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property prefixInteger (base name: "prefix_integer")', function() { - // uncomment below and update the code to test the property prefixInteger - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property prefixBoolean (base name: "prefix_boolean")', function() { - // uncomment below and update the code to test the property prefixBoolean - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property prefixArray (base name: "prefix_array")', function() { - // uncomment below and update the code to test the property prefixArray - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property prefixWrappedArray (base name: "prefix_wrapped_array")', function() { - // uncomment below and update the code to test the property prefixWrappedArray - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property namespaceString (base name: "namespace_string")', function() { - // uncomment below and update the code to test the property namespaceString - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property namespaceNumber (base name: "namespace_number")', function() { - // uncomment below and update the code to test the property namespaceNumber - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property namespaceInteger (base name: "namespace_integer")', function() { - // uncomment below and update the code to test the property namespaceInteger - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property namespaceBoolean (base name: "namespace_boolean")', function() { - // uncomment below and update the code to test the property namespaceBoolean - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property namespaceArray (base name: "namespace_array")', function() { - // uncomment below and update the code to test the property namespaceArray - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property namespaceWrappedArray (base name: "namespace_wrapped_array")', function() { - // uncomment below and update the code to test the property namespaceWrappedArray - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property prefixNsString (base name: "prefix_ns_string")', function() { - // uncomment below and update the code to test the property prefixNsString - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property prefixNsNumber (base name: "prefix_ns_number")', function() { - // uncomment below and update the code to test the property prefixNsNumber - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property prefixNsInteger (base name: "prefix_ns_integer")', function() { - // uncomment below and update the code to test the property prefixNsInteger - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property prefixNsBoolean (base name: "prefix_ns_boolean")', function() { - // uncomment below and update the code to test the property prefixNsBoolean - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property prefixNsArray (base name: "prefix_ns_array")', function() { - // uncomment below and update the code to test the property prefixNsArray - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - it('should have the property prefixNsWrappedArray (base name: "prefix_ns_wrapped_array")', function() { - // uncomment below and update the code to test the property prefixNsWrappedArray - //var instane = new OpenApiPetstore.XmlItem(); - //expect(instance).to.be(); - }); - - }); - -})); From 6133d240ac7424c06438b06d578d226ded1e8a2e Mon Sep 17 00:00:00 2001 From: William Cheng Date: Mon, 25 May 2020 10:23:09 +0800 Subject: [PATCH 10/10] update doc --- docs/generators/javascript.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/generators/javascript.md b/docs/generators/javascript.md index 1fabca76b5b8..2fd4170f9b25 100644 --- a/docs/generators/javascript.md +++ b/docs/generators/javascript.md @@ -25,7 +25,7 @@ sidebar_label: javascript |sortModelPropertiesByRequiredFlag|Sort model properties to place required parameters before optional parameters.| |true| |sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.| |true| |sourceFolder|source folder for generated code| |src| -|useES6|use JavaScript ES6 (ECMAScript 6) (beta). Default is ES6.| |true| +|useES6|use JavaScript ES6 (ECMAScript 6). Default is ES6. (This option has been deprecated and will be removed in the 5.x release as ES5 is no longer supported)| |true| |useInheritance|use JavaScript prototype chains & delegation for inheritance| |true| |usePromises|use Promises as return values from the client API, instead of superagent callbacks| |false|