diff --git a/bin/javascript-es6-petstore.sh b/bin/javascript-es6-petstore.sh
index 7c80155bb15..518d3382b92 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/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 5471de07326..1a3a72af7ef 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 f2313a0c198..00000000000
--- 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 c953eb99dad..42a866b1d65 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 6702e60b2a3..00000000000
--- 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 96e45b4b8e7..00000000000
--- 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 6ae6e93550c..d7ef07a8400 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 efbde1ac83e..0775478ae9e 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 04abbd1837d..00000000000
--- 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 41959932277..86f71f55ce5 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/docs/generators/javascript.md b/docs/generators/javascript.md
index 1fabca76b5b..2fd4170f9b2 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|
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 1c1bea5403b..5ba759a3fd7 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 class JavascriptClientCodegen extends DefaultCodegen implements CodegenCo
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/modules/openapi-generator/src/main/resources/Javascript/model_test.mustache b/modules/openapi-generator/src/main/resources/Javascript/model_test.mustache
index 93c0ce0da13..0680e194f15 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/pom.xml b/pom.xml
index 30e17e51e64..e9595144771 100644
--- a/pom.xml
+++ b/pom.xml
@@ -787,18 +787,6 @@
AdditionalPropertiesAnyType.
- * @alias module:model/AdditionalPropertiesAnyType
- * @extends Object
- */
- constructor() {
-
- AdditionalPropertiesAnyType.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 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.
- */
- static constructFromObject(data, obj) {
- if (data) {
- obj = obj || new AdditionalPropertiesAnyType();
-
- ApiClient.constructFromObject(data, obj, 'Object');
-
-
- if (data.hasOwnProperty('name')) {
- obj['name'] = ApiClient.convertToType(data['name'], 'String');
- }
- }
- return obj;
- }
-
-
-}
-
-/**
- * @member {String} name
- */
-AdditionalPropertiesAnyType.prototype['name'] = undefined;
-
-
-
-
-
-
-export default AdditionalPropertiesAnyType;
-
diff --git a/samples/client/petstore/javascript-es6/src/model/AdditionalPropertiesArray.js b/samples/client/petstore/javascript-es6/src/model/AdditionalPropertiesArray.js
deleted file mode 100644
index d630c2f5b75..00000000000
--- a/samples/client/petstore/javascript-es6/src/model/AdditionalPropertiesArray.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 AdditionalPropertiesArray model module.
- * @module model/AdditionalPropertiesArray
- * @version 1.0.0
- */
-class AdditionalPropertiesArray {
- /**
- * Constructs a new AdditionalPropertiesArray.
- * @alias module:model/AdditionalPropertiesArray
- * @extends Object
- */
- constructor() {
-
- AdditionalPropertiesArray.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 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.
- */
- static constructFromObject(data, obj) {
- if (data) {
- obj = obj || new AdditionalPropertiesArray();
-
- ApiClient.constructFromObject(data, obj, 'Array');
-
-
- if (data.hasOwnProperty('name')) {
- obj['name'] = ApiClient.convertToType(data['name'], 'String');
- }
- }
- return obj;
- }
-
-
-}
-
-/**
- * @member {String} name
- */
-AdditionalPropertiesArray.prototype['name'] = undefined;
-
-
-
-
-
-
-export default AdditionalPropertiesArray;
-
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 57001bb1ffc..00000000000
--- 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 a6e1a88e3b4..d6d83cca284 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.AdditionalPropertiesInteger.
- * @alias module:model/AdditionalPropertiesInteger
- * @extends Object
- */
- constructor() {
-
- AdditionalPropertiesInteger.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 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.
- */
- static constructFromObject(data, obj) {
- if (data) {
- obj = obj || new AdditionalPropertiesInteger();
-
- ApiClient.constructFromObject(data, obj, 'Number');
-
-
- if (data.hasOwnProperty('name')) {
- obj['name'] = ApiClient.convertToType(data['name'], 'String');
- }
- }
- return obj;
- }
-
-
-}
-
-/**
- * @member {String} name
- */
-AdditionalPropertiesInteger.prototype['name'] = undefined;
-
-
-
-
-
-
-export default AdditionalPropertiesInteger;
-
diff --git a/samples/client/petstore/javascript-es6/src/model/AdditionalPropertiesNumber.js b/samples/client/petstore/javascript-es6/src/model/AdditionalPropertiesNumber.js
deleted file mode 100644
index 4acb6986f2d..00000000000
--- a/samples/client/petstore/javascript-es6/src/model/AdditionalPropertiesNumber.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 AdditionalPropertiesNumber model module.
- * @module model/AdditionalPropertiesNumber
- * @version 1.0.0
- */
-class AdditionalPropertiesNumber {
- /**
- * Constructs a new AdditionalPropertiesNumber.
- * @alias module:model/AdditionalPropertiesNumber
- * @extends Object
- */
- constructor() {
-
- AdditionalPropertiesNumber.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 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.
- */
- static constructFromObject(data, obj) {
- if (data) {
- obj = obj || new AdditionalPropertiesNumber();
-
- ApiClient.constructFromObject(data, obj, 'Number');
-
-
- if (data.hasOwnProperty('name')) {
- obj['name'] = ApiClient.convertToType(data['name'], 'String');
- }
- }
- return obj;
- }
-
-
-}
-
-/**
- * @member {String} name
- */
-AdditionalPropertiesNumber.prototype['name'] = undefined;
-
-
-
-
-
-
-export default AdditionalPropertiesNumber;
-
diff --git a/samples/client/petstore/javascript-es6/src/model/AdditionalPropertiesObject.js b/samples/client/petstore/javascript-es6/src/model/AdditionalPropertiesObject.js
deleted file mode 100644
index 14796a296af..00000000000
--- a/samples/client/petstore/javascript-es6/src/model/AdditionalPropertiesObject.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 AdditionalPropertiesObject model module.
- * @module model/AdditionalPropertiesObject
- * @version 1.0.0
- */
-class AdditionalPropertiesObject {
- /**
- * Constructs a new AdditionalPropertiesObject.
- * @alias module:model/AdditionalPropertiesObject
- * @extends Object
- */
- constructor() {
-
- AdditionalPropertiesObject.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 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.
- */
- static constructFromObject(data, obj) {
- if (data) {
- obj = obj || new AdditionalPropertiesObject();
-
- ApiClient.constructFromObject(data, obj, 'Object');
-
-
- if (data.hasOwnProperty('name')) {
- obj['name'] = ApiClient.convertToType(data['name'], 'String');
- }
- }
- return obj;
- }
-
-
-}
-
-/**
- * @member {String} name
- */
-AdditionalPropertiesObject.prototype['name'] = undefined;
-
-
-
-
-
-
-export default AdditionalPropertiesObject;
-
diff --git a/samples/client/petstore/javascript-es6/src/model/AdditionalPropertiesString.js b/samples/client/petstore/javascript-es6/src/model/AdditionalPropertiesString.js
deleted file mode 100644
index f5792a66c53..00000000000
--- a/samples/client/petstore/javascript-es6/src/model/AdditionalPropertiesString.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 AdditionalPropertiesString model module.
- * @module model/AdditionalPropertiesString
- * @version 1.0.0
- */
-class AdditionalPropertiesString {
- /**
- * Constructs a new AdditionalPropertiesString.
- * @alias module:model/AdditionalPropertiesString
- * @extends Object
- */
- constructor() {
-
- AdditionalPropertiesString.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 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.
- */
- static constructFromObject(data, obj) {
- if (data) {
- obj = obj || new AdditionalPropertiesString();
-
- ApiClient.constructFromObject(data, obj, 'String');
-
-
- if (data.hasOwnProperty('name')) {
- obj['name'] = ApiClient.convertToType(data['name'], 'String');
- }
- }
- return obj;
- }
-
-
-}
-
-/**
- * @member {String} name
- */
-AdditionalPropertiesString.prototype['name'] = undefined;
-
-
-
-
-
-
-export default AdditionalPropertiesString;
-
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 764e45d31dc..00000000000
--- 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 1b79f1a2849..00000000000
--- 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 458e08153a8..dc684b7c26b 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/openapi3/client/petstore/javascript-es6/src/model/Foo.js b/samples/client/petstore/javascript-es6/src/model/Foo.js
similarity index 100%
rename from samples/openapi3/client/petstore/javascript-es6/src/model/Foo.js
rename to samples/client/petstore/javascript-es6/src/model/Foo.js
diff --git a/samples/client/petstore/javascript-es6/src/model/FormatTest.js b/samples/client/petstore/javascript-es6/src/model/FormatTest.js
index 978d4d3a808..0c5fccb9072 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['BigDecimal'] = undefined;
+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;
diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/HealthCheckResult.js b/samples/client/petstore/javascript-es6/src/model/HealthCheckResult.js
similarity index 100%
rename from samples/openapi3/client/petstore/javascript-es6/src/model/HealthCheckResult.js
rename to samples/client/petstore/javascript-es6/src/model/HealthCheckResult.js
diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject.js b/samples/client/petstore/javascript-es6/src/model/InlineObject.js
similarity index 100%
rename from samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject.js
rename to samples/client/petstore/javascript-es6/src/model/InlineObject.js
diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject1.js b/samples/client/petstore/javascript-es6/src/model/InlineObject1.js
similarity index 100%
rename from samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject1.js
rename to samples/client/petstore/javascript-es6/src/model/InlineObject1.js
diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject2.js b/samples/client/petstore/javascript-es6/src/model/InlineObject2.js
similarity index 100%
rename from samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject2.js
rename to samples/client/petstore/javascript-es6/src/model/InlineObject2.js
diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject3.js b/samples/client/petstore/javascript-es6/src/model/InlineObject3.js
similarity index 100%
rename from samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject3.js
rename to samples/client/petstore/javascript-es6/src/model/InlineObject3.js
diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject4.js b/samples/client/petstore/javascript-es6/src/model/InlineObject4.js
similarity index 100%
rename from samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject4.js
rename to samples/client/petstore/javascript-es6/src/model/InlineObject4.js
diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject5.js b/samples/client/petstore/javascript-es6/src/model/InlineObject5.js
similarity index 100%
rename from samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject5.js
rename to samples/client/petstore/javascript-es6/src/model/InlineObject5.js
diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/InlineResponseDefault.js b/samples/client/petstore/javascript-es6/src/model/InlineResponseDefault.js
similarity index 100%
rename from samples/openapi3/client/petstore/javascript-es6/src/model/InlineResponseDefault.js
rename to samples/client/petstore/javascript-es6/src/model/InlineResponseDefault.js
diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/NullableClass.js b/samples/client/petstore/javascript-es6/src/model/NullableClass.js
similarity index 100%
rename from samples/openapi3/client/petstore/javascript-es6/src/model/NullableClass.js
rename to samples/client/petstore/javascript-es6/src/model/NullableClass.js
diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/OuterEnumDefaultValue.js b/samples/client/petstore/javascript-es6/src/model/OuterEnumDefaultValue.js
similarity index 100%
rename from samples/openapi3/client/petstore/javascript-es6/src/model/OuterEnumDefaultValue.js
rename to samples/client/petstore/javascript-es6/src/model/OuterEnumDefaultValue.js
diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/OuterEnumInteger.js b/samples/client/petstore/javascript-es6/src/model/OuterEnumInteger.js
similarity index 100%
rename from samples/openapi3/client/petstore/javascript-es6/src/model/OuterEnumInteger.js
rename to samples/client/petstore/javascript-es6/src/model/OuterEnumInteger.js
diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/OuterEnumIntegerDefaultValue.js b/samples/client/petstore/javascript-es6/src/model/OuterEnumIntegerDefaultValue.js
similarity index 100%
rename from samples/openapi3/client/petstore/javascript-es6/src/model/OuterEnumIntegerDefaultValue.js
rename to samples/client/petstore/javascript-es6/src/model/OuterEnumIntegerDefaultValue.js
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 4ca66c6407c..819ef864a5c 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 fa969870f8f..3eeced56961 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.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.List.
- * @alias module:model/List
+ * Constructs a new Foo.
+ * @alias module:model/Foo
*/
constructor() {
- List.initialize(this);
+ Foo.initialize(this);
}
/**
@@ -37,18 +37,18 @@ class List {
}
/**
- * Constructs a List 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/List} obj Optional instance to populate.
- * @return {module:model/List} The populated List 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 List();
+ obj = obj || new Foo();
- if (data.hasOwnProperty('123-list')) {
- obj['123-list'] = ApiClient.convertToType(data['123-list'], 'String');
+ if (data.hasOwnProperty('bar')) {
+ obj['bar'] = ApiClient.convertToType(data['bar'], 'String');
}
}
return obj;
@@ -58,14 +58,15 @@ class List {
}
/**
- * @member {String} 123-list
+ * @member {String} bar
+ * @default 'bar'
*/
-List.prototype['123-list'] = undefined;
+Foo.prototype['bar'] = 'bar';
-export default List;
+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 978d4d3a808..0c5fccb9072 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['BigDecimal'] = undefined;
+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;
diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/ArrayOfNumberOnly.js b/samples/client/petstore/javascript-promise-es6/src/model/HealthCheckResult.js
similarity index 56%
rename from samples/openapi3/client/petstore/javascript-es6/src/model/ArrayOfNumberOnly.js
rename to samples/client/petstore/javascript-promise-es6/src/model/HealthCheckResult.js
index 1145a62630d..2dd62c2a267 100644
--- a/samples/openapi3/client/petstore/javascript-es6/src/model/ArrayOfNumberOnly.js
+++ b/samples/client/petstore/javascript-promise-es6/src/model/HealthCheckResult.js
@@ -14,18 +14,19 @@
import ApiClient from '../ApiClient';
/**
- * The ArrayOfNumberOnly model module.
- * @module model/ArrayOfNumberOnly
+ * The HealthCheckResult model module.
+ * @module model/HealthCheckResult
* @version 1.0.0
*/
-class ArrayOfNumberOnly {
+class HealthCheckResult {
/**
- * Constructs a new ArrayOfNumberOnly.
- * @alias module:model/ArrayOfNumberOnly
+ * 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() {
- ArrayOfNumberOnly.initialize(this);
+ HealthCheckResult.initialize(this);
}
/**
@@ -37,18 +38,18 @@ class ArrayOfNumberOnly {
}
/**
- * Constructs a ArrayOfNumberOnly 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/ArrayOfNumberOnly} obj Optional instance to populate.
- * @return {module:model/ArrayOfNumberOnly} The populated ArrayOfNumberOnly 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 ArrayOfNumberOnly();
+ obj = obj || new HealthCheckResult();
- if (data.hasOwnProperty('ArrayNumber')) {
- obj['ArrayNumber'] = ApiClient.convertToType(data['ArrayNumber'], ['Number']);
+ if (data.hasOwnProperty('NullableMessage')) {
+ obj['NullableMessage'] = ApiClient.convertToType(data['NullableMessage'], 'String');
}
}
return obj;
@@ -58,14 +59,14 @@ class ArrayOfNumberOnly {
}
/**
- * @member {Array.Tag.
- * @alias module:model/Tag
+ * Constructs a new InlineObject.
+ * @alias module:model/InlineObject
*/
constructor() {
- Tag.initialize(this);
+ InlineObject.initialize(this);
}
/**
@@ -37,22 +37,22 @@ class Tag {
}
/**
- * Constructs a Tag 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/Tag} obj Optional instance to populate.
- * @return {module:model/Tag} The populated Tag 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 Tag();
+ obj = obj || new InlineObject();
- if (data.hasOwnProperty('id')) {
- obj['id'] = ApiClient.convertToType(data['id'], 'Number');
- }
if (data.hasOwnProperty('name')) {
obj['name'] = ApiClient.convertToType(data['name'], 'String');
}
+ if (data.hasOwnProperty('status')) {
+ obj['status'] = ApiClient.convertToType(data['status'], 'String');
+ }
}
return obj;
}
@@ -61,19 +61,21 @@ class Tag {
}
/**
- * @member {Number} id
- */
-Tag.prototype['id'] = undefined;
-
-/**
+ * Updated name of the pet
* @member {String} name
*/
-Tag.prototype['name'] = undefined;
+InlineObject.prototype['name'] = undefined;
+
+/**
+ * Updated status of the pet
+ * @member {String} status
+ */
+InlineObject.prototype['status'] = undefined;
-export default Tag;
+export default InlineObject;
diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/FileSchemaTestClass.js b/samples/client/petstore/javascript-promise-es6/src/model/InlineObject1.js
similarity index 54%
rename from samples/openapi3/client/petstore/javascript-es6/src/model/FileSchemaTestClass.js
rename to samples/client/petstore/javascript-promise-es6/src/model/InlineObject1.js
index b6fe9e90ece..947877256fb 100644
--- a/samples/openapi3/client/petstore/javascript-es6/src/model/FileSchemaTestClass.js
+++ b/samples/client/petstore/javascript-promise-es6/src/model/InlineObject1.js
@@ -14,18 +14,18 @@
import ApiClient from '../ApiClient';
/**
- * The FileSchemaTestClass model module.
- * @module model/FileSchemaTestClass
+ * The InlineObject1 model module.
+ * @module model/InlineObject1
* @version 1.0.0
*/
-class FileSchemaTestClass {
+class InlineObject1 {
/**
- * Constructs a new FileSchemaTestClass.
- * @alias module:model/FileSchemaTestClass
+ * Constructs a new InlineObject1.
+ * @alias module:model/InlineObject1
*/
constructor() {
- FileSchemaTestClass.initialize(this);
+ InlineObject1.initialize(this);
}
/**
@@ -37,21 +37,21 @@ class FileSchemaTestClass {
}
/**
- * Constructs a FileSchemaTestClass 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/FileSchemaTestClass} obj Optional instance to populate.
- * @return {module:model/FileSchemaTestClass} The populated FileSchemaTestClass 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 FileSchemaTestClass();
+ obj = obj || new InlineObject1();
- if (data.hasOwnProperty('file')) {
- obj['file'] = File.constructFromObject(data['file']);
+ if (data.hasOwnProperty('additionalMetadata')) {
+ obj['additionalMetadata'] = ApiClient.convertToType(data['additionalMetadata'], 'String');
}
- if (data.hasOwnProperty('files')) {
- obj['files'] = ApiClient.convertToType(data['files'], [File]);
+ if (data.hasOwnProperty('file')) {
+ obj['file'] = ApiClient.convertToType(data['file'], File);
}
}
return obj;
@@ -61,19 +61,21 @@ class FileSchemaTestClass {
}
/**
- * @member {File} file
+ * Additional data to pass to server
+ * @member {String} additionalMetadata
*/
-FileSchemaTestClass.prototype['file'] = undefined;
+InlineObject1.prototype['additionalMetadata'] = undefined;
/**
- * @member {Array.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.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/FormatTest.js b/samples/client/petstore/javascript-promise-es6/src/model/InlineObject3.js
similarity index 58%
rename from samples/openapi3/client/petstore/javascript-es6/src/model/FormatTest.js
rename to samples/client/petstore/javascript-promise-es6/src/model/InlineObject3.js
index 0c5fccb9072..6a14f67109c 100644
--- a/samples/openapi3/client/petstore/javascript-es6/src/model/FormatTest.js
+++ b/samples/client/petstore/javascript-promise-es6/src/model/InlineObject3.js
@@ -14,22 +14,22 @@
import ApiClient from '../ApiClient';
/**
- * The FormatTest model module.
- * @module model/FormatTest
+ * The InlineObject3 model module.
+ * @module model/InlineObject3
* @version 1.0.0
*/
-class FormatTest {
+class InlineObject3 {
/**
- * Constructs a new FormatTest.
- * @alias module:model/FormatTest
- * @param _number {Number}
- * @param _byte {Blob}
- * @param _date {Date}
- * @param password {String}
+ * 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, _byte, _date, password) {
+ constructor(_number, _double, patternWithoutDelimiter, _byte) {
- FormatTest.initialize(this, _number, _byte, _date, password);
+ InlineObject3.initialize(this, _number, _double, patternWithoutDelimiter, _byte);
}
/**
@@ -37,23 +37,23 @@ class FormatTest {
* 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) {
+ static initialize(obj, _number, _double, patternWithoutDelimiter, _byte) {
obj['number'] = _number;
+ obj['double'] = _double;
+ obj['pattern_without_delimiter'] = patternWithoutDelimiter;
obj['byte'] = _byte;
- obj['date'] = _date;
- obj['password'] = password;
}
/**
- * Constructs a FormatTest from a plain JavaScript object, optionally creating a new instance.
+ * 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/FormatTest} obj Optional instance to populate.
- * @return {module:model/FormatTest} The populated FormatTest instance.
+ * @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 FormatTest();
+ obj = obj || new InlineObject3();
if (data.hasOwnProperty('integer')) {
obj['integer'] = ApiClient.convertToType(data['integer'], 'Number');
@@ -76,6 +76,9 @@ class FormatTest {
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');
}
@@ -88,17 +91,11 @@ class FormatTest {
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');
+ if (data.hasOwnProperty('callback')) {
+ obj['callback'] = ApiClient.convertToType(data['callback'], 'String');
}
}
return obj;
@@ -108,86 +105,93 @@ class FormatTest {
}
/**
+ * None
* @member {Number} integer
*/
-FormatTest.prototype['integer'] = undefined;
+InlineObject3.prototype['integer'] = undefined;
/**
+ * None
* @member {Number} int32
*/
-FormatTest.prototype['int32'] = undefined;
+InlineObject3.prototype['int32'] = undefined;
/**
+ * None
* @member {Number} int64
*/
-FormatTest.prototype['int64'] = undefined;
+InlineObject3.prototype['int64'] = undefined;
/**
+ * None
* @member {Number} number
*/
-FormatTest.prototype['number'] = undefined;
+InlineObject3.prototype['number'] = undefined;
/**
+ * None
* @member {Number} float
*/
-FormatTest.prototype['float'] = undefined;
+InlineObject3.prototype['float'] = undefined;
/**
+ * None
* @member {Number} double
*/
-FormatTest.prototype['double'] = undefined;
+InlineObject3.prototype['double'] = undefined;
/**
+ * None
* @member {String} string
*/
-FormatTest.prototype['string'] = undefined;
+InlineObject3.prototype['string'] = undefined;
/**
+ * None
+ * @member {String} pattern_without_delimiter
+ */
+InlineObject3.prototype['pattern_without_delimiter'] = undefined;
+
+/**
+ * None
* @member {Blob} byte
*/
-FormatTest.prototype['byte'] = undefined;
+InlineObject3.prototype['byte'] = undefined;
/**
+ * None
* @member {File} binary
*/
-FormatTest.prototype['binary'] = undefined;
+InlineObject3.prototype['binary'] = undefined;
/**
+ * None
* @member {Date} date
*/
-FormatTest.prototype['date'] = undefined;
+InlineObject3.prototype['date'] = undefined;
/**
+ * None
* @member {Date} dateTime
*/
-FormatTest.prototype['dateTime'] = undefined;
-
-/**
- * @member {String} uuid
- */
-FormatTest.prototype['uuid'] = undefined;
+InlineObject3.prototype['dateTime'] = undefined;
/**
+ * None
* @member {String} password
*/
-FormatTest.prototype['password'] = undefined;
+InlineObject3.prototype['password'] = undefined;
/**
- * A string that is a 10 digit number. Can have leading zeros.
- * @member {String} pattern_with_digits
+ * None
+ * @member {String} callback
*/
-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;
+InlineObject3.prototype['callback'] = undefined;
-export default FormatTest;
+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 00000000000..9d5d5715c66
--- /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 00000000000..1969e9b2ef3
--- /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/openapi3/client/petstore/javascript-es6/src/model/Client.js b/samples/client/petstore/javascript-promise-es6/src/model/InlineResponseDefault.js
similarity index 55%
rename from samples/openapi3/client/petstore/javascript-es6/src/model/Client.js
rename to samples/client/petstore/javascript-promise-es6/src/model/InlineResponseDefault.js
index 8521c85043b..2f66d888ec9 100644
--- a/samples/openapi3/client/petstore/javascript-es6/src/model/Client.js
+++ b/samples/client/petstore/javascript-promise-es6/src/model/InlineResponseDefault.js
@@ -12,20 +12,21 @@
*/
import ApiClient from '../ApiClient';
+import Foo from './Foo';
/**
- * The Client model module.
- * @module model/Client
+ * The InlineResponseDefault model module.
+ * @module model/InlineResponseDefault
* @version 1.0.0
*/
-class Client {
+class InlineResponseDefault {
/**
- * Constructs a new Client.
- * @alias module:model/Client
+ * Constructs a new InlineResponseDefault.
+ * @alias module:model/InlineResponseDefault
*/
constructor() {
- Client.initialize(this);
+ InlineResponseDefault.initialize(this);
}
/**
@@ -37,18 +38,18 @@ class Client {
}
/**
- * Constructs a Client from a plain JavaScript object, optionally creating a new instance.
+ * 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/Client} obj Optional instance to populate.
- * @return {module:model/Client} The populated Client instance.
+ * @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 Client();
+ obj = obj || new InlineResponseDefault();
- if (data.hasOwnProperty('client')) {
- obj['client'] = ApiClient.convertToType(data['client'], 'String');
+ if (data.hasOwnProperty('string')) {
+ obj['string'] = Foo.constructFromObject(data['string']);
}
}
return obj;
@@ -58,14 +59,14 @@ class Client {
}
/**
- * @member {String} client
+ * @member {module:model/Foo} string
*/
-Client.prototype['client'] = undefined;
+InlineResponseDefault.prototype['string'] = undefined;
-export default Client;
+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 00000000000..12a0f2509b6
--- /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.
- * 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 9774ac33999..00000000000 --- 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 44c2f9b390c..00000000000
--- 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 c1ad7844f52..00000000000
--- 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 2b19a95b486..00000000000
--- 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.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 f0b20ec0bbf..00000000000
--- 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 e2194051556..00000000000
--- 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 ce82a0e752a..00000000000
--- 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 b46bc005c75..00000000000
--- 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 5e9e0b16ee8..00000000000
--- 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 13cae7cf90f..00000000000
--- 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.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.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.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 e9ee15fdc81..00000000000
--- 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 ed0dc0b616a..00000000000
--- 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 fcc9e7bf670..00000000000
--- 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 78465ea099f..00000000000
--- 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 10934470286..00000000000
--- 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 47e80df5421..00000000000
--- 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 ea7bfcafbae..00000000000
--- 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 f69a203858a..00000000000
--- 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 a531669f537..00000000000
--- 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 78fe939c4bf..00000000000
--- 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.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 d4f668246b5..00000000000
--- 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 997ac55f5db..00000000000
--- 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 109a6e55266..00000000000
--- 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 22f10496e4f..00000000000
--- 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.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 a48fa374d98..00000000000
--- 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 d27fdd125e4..00000000000
--- 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 aa9a1a5b4ea..00000000000
--- 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.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 bc98f6da1fd..00000000000
--- 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.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 1d19b387c30..00000000000
--- 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 c3e29dd84f7..00000000000
--- 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 a51aff7a97b..00000000000
--- 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 20f551b4e26..00000000000
--- 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 2197245f64f..00000000000
--- 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 ef94683a827..00000000000
--- 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 5f5c3e2b6f2..00000000000
--- 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.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.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 e5e7a71b4ba..00000000000
--- 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 2ebce770f7e..00000000000
--- 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 64a07da1a79..00000000000
--- 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 73386a84334..00000000000
--- 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.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.TypeHolderExample.
- * @alias module:model/TypeHolderExample
- * @class
- * @param stringItem {String}
- * @param numberItem {Number}
- * @param floatItem {Number}
- * @param integerItem {Number}
- * @param boolItem {Boolean}
- * @param arrayItem {Array.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.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 244eb73f03a..00000000000
--- 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.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.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.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:
- * 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.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 54709c871e0..00000000000
--- 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 9512f4d082c..00000000000
--- 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 8ef462bffc6..00000000000
--- 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 7af853c712a..00000000000
--- 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 11ba830249e..00000000000
--- 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 a92872f7a33..00000000000
--- 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 a1defd20ce9..00000000000
--- 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 9774ac33999..00000000000
--- 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 44c2f9b390c..00000000000
--- 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 c1ad7844f52..00000000000
--- 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 2b19a95b486..00000000000
--- 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 295febe3642..00000000000
--- 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 f0b20ec0bbf..00000000000
--- 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 e2194051556..00000000000
--- 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 ce82a0e752a..00000000000
--- 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 b46bc005c75..00000000000
--- 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 5e9e0b16ee8..00000000000
--- 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 13cae7cf90f..00000000000
--- 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 a2a51049e71..00000000000
--- 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 78739e4a4dc..00000000000
--- 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 7c2e8079c3d..00000000000
--- 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 e9ee15fdc81..00000000000
--- 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 ed0dc0b616a..00000000000
--- 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 fcc9e7bf670..00000000000
--- 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 78465ea099f..00000000000
--- 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 10934470286..00000000000
--- 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 47e80df5421..00000000000
--- 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 ea7bfcafbae..00000000000
--- 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 f69a203858a..00000000000
--- 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 a531669f537..00000000000
--- 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 78fe939c4bf..00000000000
--- 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 d4f668246b5..00000000000
--- 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 997ac55f5db..00000000000
--- 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 109a6e55266..00000000000
--- 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 22f10496e4f..00000000000
--- 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 63b987b4394..00000000000
--- 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 a48fa374d98..00000000000
--- 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 d27fdd125e4..00000000000
--- 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 aa9a1a5b4ea..00000000000
--- 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 bc98f6da1fd..00000000000
--- 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 6ded236af20..00000000000
--- 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 1d19b387c30..00000000000
--- 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 c3e29dd84f7..00000000000
--- 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 a51aff7a97b..00000000000
--- 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 20f551b4e26..00000000000
--- 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 2197245f64f..00000000000
--- 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 ef94683a827..00000000000
--- 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 5f5c3e2b6f2..00000000000
--- 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 e5e7a71b4ba..00000000000
--- 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 2ebce770f7e..00000000000
--- 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 64a07da1a79..00000000000
--- 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 73386a84334..00000000000
--- 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 b06faabd663..00000000000
--- 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 967d15b018d..00000000000
--- 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 244eb73f03a..00000000000
--- 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 2674cf9e135..00000000000
--- 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 4405452f992..00000000000
--- 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 22fe0a1019e..00000000000
--- 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/PetApi.spec.js b/samples/client/petstore/javascript/test/api/PetApi.spec.js
deleted file mode 100644
index 360453a74bb..00000000000
--- 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 1e1f225ef94..00000000000
--- 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 71aaed5a964..00000000000
--- 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 907011807d6..00000000000
--- 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 3e9aaed718b..00000000000
--- 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 70e2e348fb1..00000000000
--- 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 f3bca3d55fc..00000000000
--- 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 0c6e0a15343..00000000000
--- 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 bb48c2a4dec..00000000000
--- 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 ab22daa2f9c..00000000000
--- 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 97195ef4d4f..00000000000
--- 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 1f2cf9ba828..00000000000
--- 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/ApiResponse.spec.js b/samples/client/petstore/javascript/test/model/ApiResponse.spec.js
deleted file mode 100644
index 80b54d040ba..00000000000
--- 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 30bd568fcf8..00000000000
--- 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 2719e03ea99..00000000000
--- 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 6808eecd3fd..00000000000
--- 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 2001b0a31fc..00000000000
--- 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 50d3277f5a6..00000000000
--- 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 79e02c9aeb5..00000000000
--- 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 3dcafaebf45..00000000000
--- 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 0edf182d6ff..00000000000
--- 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/ClassModel.spec.js b/samples/client/petstore/javascript/test/model/ClassModel.spec.js
deleted file mode 100644
index a87944b84b1..00000000000
--- 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 2df55fe774c..00000000000
--- 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 b652c44fa44..00000000000
--- 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 846e8f066e3..00000000000
--- 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 7d8cc8d61c9..00000000000
--- 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/EnumTest.spec.js b/samples/client/petstore/javascript/test/model/EnumTest.spec.js
deleted file mode 100644
index df04077b298..00000000000
--- 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 6be3d7942aa..00000000000
--- 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/HasOnlyReadOnly.spec.js b/samples/client/petstore/javascript/test/model/HasOnlyReadOnly.spec.js
deleted file mode 100644
index 4ae5235ec48..00000000000
--- 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 ec579597176..00000000000
--- 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 cefaa92b8fd..00000000000
--- 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 f5152276441..00000000000
--- 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 4ada7bbf24a..00000000000
--- 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 955895d3ec9..00000000000
--- 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 2335871808e..00000000000
--- 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 8d903c72697..00000000000
--- 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 1a5765958a4..00000000000
--- 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 ddce9fa8c9a..00000000000
--- 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/Pet.spec.js b/samples/client/petstore/javascript/test/model/Pet.spec.js
deleted file mode 100644
index 16d08337b97..00000000000
--- 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/SpecialModelName.spec.js b/samples/client/petstore/javascript/test/model/SpecialModelName.spec.js
deleted file mode 100644
index 9b9e8a128f0..00000000000
--- 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 2cfed4bd907..00000000000
--- 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 e6618ea65ac..00000000000
--- 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 5f705a61a99..00000000000
--- 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 c7b88dbe10b..00000000000
--- 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 75d5350ebb6..00000000000
--- 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/openapi3/client/petstore/javascript-es6/.babelrc b/samples/openapi3/client/petstore/javascript-es6/.babelrc
deleted file mode 100644
index c73df9d50b4..00000000000
--- 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 c5fa491b4c5..00000000000
--- a/samples/openapi3/client/petstore/javascript-es6/.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/openapi3/client/petstore/javascript-es6/.openapi-generator/VERSION b/samples/openapi3/client/petstore/javascript-es6/.openapi-generator/VERSION
deleted file mode 100644
index 83a328a9227..00000000000
--- a/samples/openapi3/client/petstore/javascript-es6/.openapi-generator/VERSION
+++ /dev/null
@@ -1 +0,0 @@
-4.1.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 0968f7a4333..00000000000
--- 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 70e6ac7a2aa..00000000000
--- a/samples/openapi3/client/petstore/javascript-es6/README.md
+++ /dev/null
@@ -1,258 +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* | [**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.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
-
-
-
-### 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 c85e85acd9e..00000000000
--- 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 483c89a1ab3..00000000000
--- 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 ba01bd3e2a2..00000000000
--- 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 0dc945d6076..00000000000
--- 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 c321c0985f3..00000000000
--- 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 b83e136d978..00000000000
--- 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 711b53a520f..00000000000
--- 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 3bbc5d491fc..00000000000
--- 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 652bca4ed07..00000000000
--- 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 3b8274c0120..00000000000
--- 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 2de44aa03dd..00000000000
--- 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 dd90930dade..00000000000
--- 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 1164b704319..00000000000
--- 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/Dog.md b/samples/openapi3/client/petstore/javascript-es6/docs/Dog.md
deleted file mode 100644
index fd3b9f7c77c..00000000000
--- 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 8a640294073..00000000000
--- 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 4926385b3ff..00000000000
--- 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 cef9bb57a56..00000000000
--- 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 b56c3c4cef6..00000000000
--- 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 cc6ba6590f0..00000000000
--- a/samples/openapi3/client/petstore/javascript-es6/docs/FakeApi.md
+++ /dev/null
@@ -1,671 +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
-[**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
-
-
-
-## 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
-
-
-## 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
-
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 142a911a3c9..00000000000
--- 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 51162c3e0da..00000000000
--- 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 6f28c4976f1..00000000000
--- 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/FormatTest.md b/samples/openapi3/client/petstore/javascript-es6/docs/FormatTest.md
deleted file mode 100644
index 83d751d4cdd..00000000000
--- 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 f3d71895b54..00000000000
--- 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]
-**foo** | **String** | | [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 aaaa082e6a5..00000000000
--- 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 9399adf7532..00000000000
--- 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 776d4b3ae05..00000000000
--- 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 45f7932a1be..00000000000
--- 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 c93601692f6..00000000000
--- 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 be2344179b4..00000000000
--- 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]
-**property** | **String** | | [optional]
-**_123number** | **Number** | | [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 65243600759..00000000000
--- 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 3f63473a239..00000000000
--- 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 aea253a0dfe..00000000000
--- 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/Pet.md b/samples/openapi3/client/petstore/javascript-es6/docs/Pet.md
deleted file mode 100644
index 68bb1eb7a04..00000000000
--- 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 44734fbe72d..00000000000
--- 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 01063e61a99..00000000000
--- 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]
-**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 f33678460bf..00000000000
--- 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 0f29ae4629f..00000000000
--- 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 ce6fec0ab93..00000000000
--- 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/TypeHolderDefault.md b/samples/openapi3/client/petstore/javascript-es6/docs/TypeHolderDefault.md
deleted file mode 100644
index e726bb05354..00000000000
--- 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 925271cb6cd..00000000000
--- 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/docs/User.md b/samples/openapi3/client/petstore/javascript-es6/docs/User.md
deleted file mode 100644
index 096f606d0b9..00000000000
--- 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 c4562085417..00000000000
--- 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 04dd5df38e8..00000000000
--- a/samples/openapi3/client/petstore/javascript-es6/git_push.sh
+++ /dev/null
@@ -1,52 +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"
-
-git_user_id=$1
-git_repo_id=$2
-release_note=$3
-
-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://github.com/${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
- fi
-
-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"
-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 907011807d6..00000000000
--- 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-lock.json b/samples/openapi3/client/petstore/javascript-es6/package-lock.json
deleted file mode 100644
index 4b9d17d0248..00000000000
--- 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/package.json b/samples/openapi3/client/petstore/javascript-es6/package.json
deleted file mode 100644
index 0032c37d477..00000000000
--- 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/pom.xml b/samples/openapi3/client/petstore/javascript-es6/pom.xml
deleted file mode 100644
index dc2e0fa9a9e..00000000000
--- 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
deleted file mode 100644
index 83cba1cae1a..00000000000
--- 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 c84fc12049a..00000000000
--- 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/FakeApi.js b/samples/openapi3/client/petstore/javascript-es6/src/api/FakeApi.js
deleted file mode 100644
index b779413c5a3..00000000000
--- a/samples/openapi3/client/petstore/javascript-es6/src/api/FakeApi.js
+++ /dev/null
@@ -1,646 +0,0 @@
-/**
- * OpenAPI Petstore
- * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
- *
- * The version 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 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 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
- );
- }
-
-
-}
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 324529a59b2..00000000000
--- 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 0f23c069010..00000000000
--- 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 74ad1afd3ef..00000000000
--- 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 83720dd3a1d..00000000000
--- 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 1a0cda3b1dc..00000000000
--- 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 d6d83cca284..00000000000
--- 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 7cb9017160b..00000000000
--- 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 f5af17fdf82..00000000000
--- 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 eadd7db414b..00000000000
--- 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/ArrayTest.js b/samples/openapi3/client/petstore/javascript-es6/src/model/ArrayTest.js
deleted file mode 100644
index 18bc925308a..00000000000
--- 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 63b14361fee..00000000000
--- 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 d18ce94e70e..00000000000
--- 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 c71ea7129b0..00000000000
--- 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 00d86502a63..00000000000
--- 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 ee1f1417777..00000000000
--- 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/Dog.js b/samples/openapi3/client/petstore/javascript-es6/src/model/Dog.js
deleted file mode 100644
index b101feecd32..00000000000
--- 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 58ecede6126..00000000000
--- 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 7fe64e3111a..00000000000
--- 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/EnumTest.js b/samples/openapi3/client/petstore/javascript-es6/src/model/EnumTest.js
deleted file mode 100644
index dc684b7c26b..00000000000
--- 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 12b51b87d89..00000000000
--- 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/HasOnlyReadOnly.js b/samples/openapi3/client/petstore/javascript-es6/src/model/HasOnlyReadOnly.js
deleted file mode 100644
index 57c9173723e..00000000000
--- 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/MapTest.js b/samples/openapi3/client/petstore/javascript-es6/src/model/MapTest.js
deleted file mode 100644
index 3113ad56bd4..00000000000
--- 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 7cd9ca844f9..00000000000
--- 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 88daaba2ebb..00000000000
--- 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 bdfe578288a..00000000000
--- 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 740d4bad15b..00000000000
--- 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/NumberOnly.js b/samples/openapi3/client/petstore/javascript-es6/src/model/NumberOnly.js
deleted file mode 100644
index 449e08bd9a9..00000000000
--- 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 1d28748e822..00000000000
--- 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 cc4ed6c172d..00000000000
--- 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/Pet.js b/samples/openapi3/client/petstore/javascript-es6/src/model/Pet.js
deleted file mode 100644
index b88e5d869f6..00000000000
--- 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 8e2a39cf2ae..00000000000
--- 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 45ba7d7ea09..00000000000
--- 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/TypeHolderDefault.js b/samples/openapi3/client/petstore/javascript-es6/src/model/TypeHolderDefault.js
deleted file mode 100644
index 819ef864a5c..00000000000
--- 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 3eeced56961..00000000000
--- 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/src/model/User.js b/samples/openapi3/client/petstore/javascript-es6/src/model/User.js
deleted file mode 100644
index 473bf7c78bc..00000000000
--- 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/ApiClientTest.js b/samples/openapi3/client/petstore/javascript-es6/test/ApiClientTest.js
deleted file mode 100644
index 00629d52d2b..00000000000
--- 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
deleted file mode 100644
index 75084078423..00000000000
--- 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: \" \\
- *
- * 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.AnotherFakeApi();
- });
-
- var getProperty = function(object, getter, property) {
- // Use getter method if present; otherwise, get the property directly.
- if (typeof object[getter] === 'function')
- return object[getter]();
- else
- return object[property];
- }
-
- var setProperty = function(object, setter, property, value) {
- // Use setter method if present; otherwise, set the property directly.
- if (typeof object[setter] === 'function')
- object[setter](value);
- else
- object[property] = value;
- }
-
- describe('AnotherFakeApi', function() {
- describe('testSpecialTags', function() {
- it('should call testSpecialTags successfully', function(done) {
- //uncomment below and update the code to test testSpecialTags
- //instance.testSpecialTags(function(error) {
- // if (error) throw error;
- //expect().to.be();
- //});
- done();
- });
- });
- });
-
-}));
diff --git a/samples/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 7931dbdd6c8..00000000000
--- a/samples/openapi3/client/petstore/javascript-es6/test/api/FakeApi.spec.js
+++ /dev/null
@@ -1,153 +0,0 @@
-/**
- * OpenAPI Petstore
- * This spec is mainly for testing 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.FakeApi();
- });
-
- var getProperty = function(object, getter, property) {
- // Use getter method if present; otherwise, get the property directly.
- if (typeof object[getter] === 'function')
- return object[getter]();
- else
- return object[property];
- }
-
- var setProperty = function(object, setter, property, value) {
- // Use setter method if present; otherwise, set the property directly.
- if (typeof object[setter] === 'function')
- object[setter](value);
- else
- object[property] = value;
- }
-
- describe('FakeApi', function() {
- describe('fakeOuterBooleanSerialize', function() {
- it('should call fakeOuterBooleanSerialize successfully', function(done) {
- //uncomment below and update the code to test fakeOuterBooleanSerialize
- //instance.fakeOuterBooleanSerialize(function(error) {
- // if (error) throw error;
- //expect().to.be();
- //});
- done();
- });
- });
- describe('fakeOuterCompositeSerialize', function() {
- it('should call fakeOuterCompositeSerialize successfully', function(done) {
- //uncomment below and update the code to test fakeOuterCompositeSerialize
- //instance.fakeOuterCompositeSerialize(function(error) {
- // if (error) throw error;
- //expect().to.be();
- //});
- done();
- });
- });
- describe('fakeOuterNumberSerialize', function() {
- it('should call fakeOuterNumberSerialize successfully', function(done) {
- //uncomment below and update the code to test fakeOuterNumberSerialize
- //instance.fakeOuterNumberSerialize(function(error) {
- // if (error) throw error;
- //expect().to.be();
- //});
- done();
- });
- });
- describe('fakeOuterStringSerialize', function() {
- it('should call fakeOuterStringSerialize successfully', function(done) {
- //uncomment below and update the code to test fakeOuterStringSerialize
- //instance.fakeOuterStringSerialize(function(error) {
- // if (error) throw error;
- //expect().to.be();
- //});
- done();
- });
- });
- describe('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('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/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 a9f0780a18f..00000000000
--- 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: \" \\
- *
- * 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.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 49dcc060581..00000000000
--- a/samples/openapi3/client/petstore/javascript-es6/test/api/PetApi.spec.js
+++ /dev/null
@@ -1,182 +0,0 @@
-/**
- * OpenAPI Petstore
- * This spec is mainly for testing 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 api_instance;
-
- beforeEach(function() {
- api_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;
- }
-
- 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
- //instance.addPet(function(error) {
- // if (error) throw error;
- //expect().to.be();
- //});
- done();
- });
- });
- describe('deletePet', function() {
- it('should call deletePet successfully', function(done) {
- //uncomment below and update the code to test deletePet
- //instance.deletePet(function(error) {
- // if (error) throw error;
- //expect().to.be();
- //});
- done();
- });
- });
- describe('findPetsByStatus', function() {
- it('should call findPetsByStatus successfully', function(done) {
- //uncomment below and update the code to test findPetsByStatus
- //instance.findPetsByStatus(function(error) {
- // if (error) throw error;
- //expect().to.be();
- //});
- done();
- });
- });
- describe('findPetsByTags', function() {
- it('should call findPetsByTags successfully', function(done) {
- //uncomment below and update the code to test findPetsByTags
- //instance.findPetsByTags(function(error) {
- // if (error) throw error;
- //expect().to.be();
- //});
- done();
- });
- });
- describe('getPetById', function() {
- it('should call getPetById successfully', function(done) {
- //uncomment below and update the code to test getPetById
- //instance.getPetById(function(error) {
- // if (error) throw error;
- //expect().to.be();
- //});
- done();
- });
- });
- describe('updatePet', function() {
- it('should call updatePet successfully', function(done) {
- //uncomment below and update the code to test updatePet
- //instance.updatePet(function(error) {
- // if (error) throw error;
- //expect().to.be();
- //});
- done();
- });
- });
- describe('updatePetWithForm', function() {
- it('should call updatePetWithForm successfully', function(done) {
- //uncomment below and update the code to test updatePetWithForm
- //instance.updatePetWithForm(function(error) {
- // if (error) throw error;
- //expect().to.be();
- //});
- done();
- });
- });
- describe('uploadFile', function() {
- it('should call uploadFile successfully', function(done) {
- //uncomment below and update the code to test uploadFile
- //instance.uploadFile(function(error) {
- // if (error) throw error;
- //expect().to.be();
- //});
- done();
- });
- });
- });
-
-}));
diff --git a/samples/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 cd542e15f5d..00000000000
--- 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: \" \\
- *
- * 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.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 c5ba7e4e4bc..00000000000
--- 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: \" \\
- *
- * 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.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 4c472d5ac5f..00000000000
--- 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: \" \\
- *
- * 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.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 dbe9ef41d14..00000000000
--- 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: \" \\
- *
- * 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.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 1165094a73c..00000000000
--- 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: \" \\
- *
- * 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.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 f30c53f5ed6..00000000000
--- 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: \" \\
- *
- * 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.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 6c2bc8807d9..00000000000
--- 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: \" \\
- *
- * 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.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 ab9294b159c..00000000000
--- 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: \" \\
- *
- * 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.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 8be47e3e132..00000000000
--- 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: \" \\
- *
- * 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.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 99b7496450d..00000000000
--- 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: \" \\
- *
- * 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.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 be4cf8b972a..00000000000
--- 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 2a02a9e4708..00000000000
--- 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: \" \\
- *
- * 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.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 d87a995d19b..00000000000
--- 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: \" \\
- *
- * 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.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 182ad624434..00000000000
--- 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: \" \\
- *
- * 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.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 13d1584d01a..00000000000
--- 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: \" \\
- *
- * 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.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 767e3b0071b..00000000000
--- 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 dae8d83d7f2..00000000000
--- 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: \" \\
- *
- * 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.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 eb5a1117918..00000000000
--- 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: \" \\
- *
- * 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('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 6d7c2519e68..00000000000
--- a/samples/openapi3/client/petstore/javascript-es6/test/model/EnumTest.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', '../../src/index'], 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.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();
- });
-
- });
-
-}));
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 10666dc53c7..00000000000
--- 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: \" \\
- *
- * 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.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 d6e49689d23..00000000000
--- 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: \" \\
- *
- * 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.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/FormatTest.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/FormatTest.spec.js
deleted file mode 100644
index 2e61e4f8ed9..00000000000
--- a/samples/openapi3/client/petstore/javascript-es6/test/model/FormatTest.spec.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: \" \\
- *
- * 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.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();
- });
-
- });
-
-}));
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 409e06ad823..00000000000
--- 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: \" \\
- *
- * 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.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/List.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/List.spec.js
deleted file mode 100644
index e3a8574d9ae..00000000000
--- 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: \" \\
- *
- * 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.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 da009beec4e..00000000000
--- a/samples/openapi3/client/petstore/javascript-es6/test/model/MapTest.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: \" \\
- *
- * 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.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();
- });
-
- });
-
-}));
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 c9174f56154..00000000000
--- 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: \" \\
- *
- * 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.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 13f768e9730..00000000000
--- 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: \" \\
- *
- * 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.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 bda09c52366..00000000000
--- 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: \" \\
- *
- * 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.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 3726b8867b4..00000000000
--- 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: \" \\
- *
- * 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.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/NumberOnly.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/NumberOnly.spec.js
deleted file mode 100644
index 2261973c9af..00000000000
--- 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: \" \\
- *
- * 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.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 536d217cc5b..00000000000
--- 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: \" \\
- *
- * 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.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 3309d619422..00000000000
--- 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: \" \\
- *
- * 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.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 fa51fa90cb4..00000000000
--- 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: \" \\
- *
- * 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('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/Pet.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/Pet.spec.js
deleted file mode 100644
index f8ce9b93a3c..00000000000
--- 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: \" \\
- *
- * 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.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 5bc5cb3a700..00000000000
--- 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: \" \\
- *
- * 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.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 f459d2e0cd6..00000000000
--- 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: \" \\
- *
- * 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.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 2213b06d509..00000000000
--- 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: \" \\
- *
- * 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.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 f0cd8819ec8..00000000000
--- 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: \" \\
- *
- * 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.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();
- });
-
- });
-
-}));
diff --git a/samples/openapi3/client/petstore/javascript-es6/test/run_tests.html b/samples/openapi3/client/petstore/javascript-es6/test/run_tests.html
deleted file mode 100644
index 059f3a112ad..00000000000
--- a/samples/openapi3/client/petstore/javascript-es6/test/run_tests.html
+++ /dev/null
@@ -1,45 +0,0 @@
-
-
-
- Mocha Tests
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-