mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-11 16:22:48 +00:00
[JS] mark ES5 as deprecated (#6408)
* mark js es5 deprecated, remove samples, migrate samples to use oas3 * update test in pom.xml * update js samples * delete js es5 samples * update js petstore * remove openapi3 js petstore * fix tests * skip test/model/AdditionalPropertiesArray.spec.js * fix test * update doc
This commit is contained in:
@@ -28,8 +28,7 @@ fi
|
|||||||
# if you've executed sbt assembly previously it will use that instead.
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties"
|
export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
ags="generate -t modules/openapi-generator/src/main/resources/Javascript/es6 \
|
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 \
|
||||||
--additional-properties appName=PetstoreClient \
|
-o samples/client/petstore/javascript-es6 --additional-properties appName=PetstoreClient $@"
|
||||||
-o samples/client/petstore/javascript-es6 $@"
|
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
./bin/javascript-petstore.sh
|
|
||||||
./bin/javascript-promise-petstore.sh
|
|
||||||
./bin/javascript-es6-petstore.sh
|
./bin/javascript-es6-petstore.sh
|
||||||
./bin/javascript-promise-es6-petstore.sh
|
./bin/javascript-promise-es6-petstore.sh
|
||||||
|
|||||||
@@ -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
|
|
||||||
@@ -28,8 +28,8 @@ fi
|
|||||||
# if you've executed sbt assembly previously it will use that instead.
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties"
|
export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
ags="generate -t modules/openapi-generator/src/main/resources/Javascript/es6 \
|
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 \
|
-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
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
|
|||||||
@@ -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
|
|
||||||
@@ -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
|
|
||||||
@@ -5,6 +5,6 @@ If Not Exist %executable% (
|
|||||||
)
|
)
|
||||||
|
|
||||||
REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M
|
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
|
java %JAVA_OPTS% -jar %executable% %ags% --additional-properties appName=PetstoreClient
|
||||||
|
|||||||
@@ -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-es6-petstore.bat
|
||||||
call .\bin\windows\javascript-promise-es6-petstore.bat
|
call .\bin\windows\javascript-promise-es6-petstore.bat
|
||||||
|
|||||||
@@ -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%
|
|
||||||
@@ -5,6 +5,6 @@ If Not Exist %executable% (
|
|||||||
)
|
)
|
||||||
|
|
||||||
REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M
|
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%
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ sidebar_label: javascript
|
|||||||
|sortModelPropertiesByRequiredFlag|Sort model properties to place required parameters before optional parameters.| |true|
|
|sortModelPropertiesByRequiredFlag|Sort model properties to place required parameters before optional parameters.| |true|
|
||||||
|sortParamsByRequiredFlag|Sort method arguments 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|
|
|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|
|
|useInheritance|use JavaScript prototype chains & delegation for inheritance| |true|
|
||||||
|usePromises|use Promises as return values from the client API, instead of superagent callbacks| |false|
|
|usePromises|use Promises as return values from the client API, instead of superagent callbacks| |false|
|
||||||
|
|
||||||
|
|||||||
@@ -198,7 +198,7 @@ public class JavascriptClientCodegen extends DefaultCodegen implements CodegenCo
|
|||||||
cliOptions.add(new CliOption(CodegenConstants.HIDE_GENERATION_TIMESTAMP, CodegenConstants.HIDE_GENERATION_TIMESTAMP_DESC)
|
cliOptions.add(new CliOption(CodegenConstants.HIDE_GENERATION_TIMESTAMP, CodegenConstants.HIDE_GENERATION_TIMESTAMP_DESC)
|
||||||
.defaultValue(Boolean.TRUE.toString()));
|
.defaultValue(Boolean.TRUE.toString()));
|
||||||
cliOptions.add(new CliOption(USE_ES6,
|
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()));
|
.defaultValue(Boolean.TRUE.toString()));
|
||||||
cliOptions.add(new CliOption(CodegenConstants.MODEL_PROPERTY_NAMING, CodegenConstants.MODEL_PROPERTY_NAMING_DESC).defaultValue("camelCase"));
|
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"));
|
cliOptions.add(new CliOption(NPM_REPOSITORY, "Use this property to set an url your private npmRepo in the package.json"));
|
||||||
|
|||||||
@@ -19,7 +19,8 @@
|
|||||||
{{#models}}
|
{{#models}}
|
||||||
{{#model}}
|
{{#model}}
|
||||||
{{^isEnum}}
|
{{^isEnum}}
|
||||||
instance = new {{moduleName}}.{{classname}}();
|
// create a new instance
|
||||||
|
//instance = new {{moduleName}}.{{classname}}();
|
||||||
{{/isEnum}}
|
{{/isEnum}}
|
||||||
{{/model}}
|
{{/model}}
|
||||||
{{/models}}
|
{{/models}}
|
||||||
|
|||||||
27
pom.xml
27
pom.xml
@@ -787,18 +787,6 @@
|
|||||||
<module>samples/client/petstore/java/feign</module>
|
<module>samples/client/petstore/java/feign</module>
|
||||||
</modules>
|
</modules>
|
||||||
</profile>
|
</profile>
|
||||||
<profile>
|
|
||||||
<id>javascript-client</id>
|
|
||||||
<activation>
|
|
||||||
<property>
|
|
||||||
<name>env</name>
|
|
||||||
<value>javascript</value>
|
|
||||||
</property>
|
|
||||||
</activation>
|
|
||||||
<modules>
|
|
||||||
<module>samples/client/petstore/javascript</module>
|
|
||||||
</modules>
|
|
||||||
</profile>
|
|
||||||
<profile>
|
<profile>
|
||||||
<id>javascript-client-es6</id>
|
<id>javascript-client-es6</id>
|
||||||
<activation>
|
<activation>
|
||||||
@@ -811,18 +799,6 @@
|
|||||||
<module>samples/client/petstore/javascript-es6</module>
|
<module>samples/client/petstore/javascript-es6</module>
|
||||||
</modules>
|
</modules>
|
||||||
</profile>
|
</profile>
|
||||||
<profile>
|
|
||||||
<id>javascript-client-promise</id>
|
|
||||||
<activation>
|
|
||||||
<property>
|
|
||||||
<name>env</name>
|
|
||||||
<value>javascript</value>
|
|
||||||
</property>
|
|
||||||
</activation>
|
|
||||||
<modules>
|
|
||||||
<module>samples/client/petstore/javascript-promise</module>
|
|
||||||
</modules>
|
|
||||||
</profile>
|
|
||||||
<profile>
|
<profile>
|
||||||
<id>javascript-client-promise-es6</id>
|
<id>javascript-client-promise-es6</id>
|
||||||
<activation>
|
<activation>
|
||||||
@@ -1245,11 +1221,8 @@
|
|||||||
<!--<module>samples/client/petstore/perl</module>-->
|
<!--<module>samples/client/petstore/perl</module>-->
|
||||||
<module>samples/client/petstore/php/OpenAPIClient-php</module>
|
<module>samples/client/petstore/php/OpenAPIClient-php</module>
|
||||||
<module>samples/openapi3/client/petstore/php/OpenAPIClient-php</module>
|
<module>samples/openapi3/client/petstore/php/OpenAPIClient-php</module>
|
||||||
<module>samples/client/petstore/javascript</module>
|
|
||||||
<!--<module>samples/client/petstore/javascript-apollo</module>-->
|
<!--<module>samples/client/petstore/javascript-apollo</module>-->
|
||||||
<module>samples/client/petstore/javascript-es6</module>
|
<module>samples/client/petstore/javascript-es6</module>
|
||||||
<module>samples/openapi3/client/petstore/javascript-es6</module>
|
|
||||||
<module>samples/client/petstore/javascript-promise</module>
|
|
||||||
<module>samples/client/petstore/javascript-promise-es6</module>
|
<module>samples/client/petstore/javascript-promise-es6</module>
|
||||||
<module>samples/client/petstore/javascript-flowtyped</module>
|
<module>samples/client/petstore/javascript-flowtyped</module>
|
||||||
<module>samples/client/petstore/python</module>
|
<module>samples/client/petstore/python</module>
|
||||||
|
|||||||
@@ -1,28 +1,20 @@
|
|||||||
.babelrc
|
.babelrc
|
||||||
.travis.yml
|
.travis.yml
|
||||||
README.md
|
README.md
|
||||||
docs/AdditionalPropertiesAnyType.md
|
|
||||||
docs/AdditionalPropertiesArray.md
|
|
||||||
docs/AdditionalPropertiesBoolean.md
|
|
||||||
docs/AdditionalPropertiesClass.md
|
docs/AdditionalPropertiesClass.md
|
||||||
docs/AdditionalPropertiesInteger.md
|
|
||||||
docs/AdditionalPropertiesNumber.md
|
|
||||||
docs/AdditionalPropertiesObject.md
|
|
||||||
docs/AdditionalPropertiesString.md
|
|
||||||
docs/Animal.md
|
docs/Animal.md
|
||||||
docs/AnotherFakeApi.md
|
docs/AnotherFakeApi.md
|
||||||
docs/ApiResponse.md
|
docs/ApiResponse.md
|
||||||
docs/ArrayOfArrayOfNumberOnly.md
|
docs/ArrayOfArrayOfNumberOnly.md
|
||||||
docs/ArrayOfNumberOnly.md
|
docs/ArrayOfNumberOnly.md
|
||||||
docs/ArrayTest.md
|
docs/ArrayTest.md
|
||||||
docs/BigCat.md
|
|
||||||
docs/BigCatAllOf.md
|
|
||||||
docs/Capitalization.md
|
docs/Capitalization.md
|
||||||
docs/Cat.md
|
docs/Cat.md
|
||||||
docs/CatAllOf.md
|
docs/CatAllOf.md
|
||||||
docs/Category.md
|
docs/Category.md
|
||||||
docs/ClassModel.md
|
docs/ClassModel.md
|
||||||
docs/Client.md
|
docs/Client.md
|
||||||
|
docs/DefaultApi.md
|
||||||
docs/Dog.md
|
docs/Dog.md
|
||||||
docs/DogAllOf.md
|
docs/DogAllOf.md
|
||||||
docs/EnumArrays.md
|
docs/EnumArrays.md
|
||||||
@@ -32,55 +24,57 @@ docs/FakeApi.md
|
|||||||
docs/FakeClassnameTags123Api.md
|
docs/FakeClassnameTags123Api.md
|
||||||
docs/File.md
|
docs/File.md
|
||||||
docs/FileSchemaTestClass.md
|
docs/FileSchemaTestClass.md
|
||||||
|
docs/Foo.md
|
||||||
docs/FormatTest.md
|
docs/FormatTest.md
|
||||||
docs/HasOnlyReadOnly.md
|
docs/HasOnlyReadOnly.md
|
||||||
|
docs/HealthCheckResult.md
|
||||||
|
docs/InlineObject.md
|
||||||
|
docs/InlineObject1.md
|
||||||
|
docs/InlineObject2.md
|
||||||
|
docs/InlineObject3.md
|
||||||
|
docs/InlineObject4.md
|
||||||
|
docs/InlineObject5.md
|
||||||
|
docs/InlineResponseDefault.md
|
||||||
docs/List.md
|
docs/List.md
|
||||||
docs/MapTest.md
|
docs/MapTest.md
|
||||||
docs/MixedPropertiesAndAdditionalPropertiesClass.md
|
docs/MixedPropertiesAndAdditionalPropertiesClass.md
|
||||||
docs/Model200Response.md
|
docs/Model200Response.md
|
||||||
docs/ModelReturn.md
|
docs/ModelReturn.md
|
||||||
docs/Name.md
|
docs/Name.md
|
||||||
|
docs/NullableClass.md
|
||||||
docs/NumberOnly.md
|
docs/NumberOnly.md
|
||||||
docs/Order.md
|
docs/Order.md
|
||||||
docs/OuterComposite.md
|
docs/OuterComposite.md
|
||||||
docs/OuterEnum.md
|
docs/OuterEnum.md
|
||||||
|
docs/OuterEnumDefaultValue.md
|
||||||
|
docs/OuterEnumInteger.md
|
||||||
|
docs/OuterEnumIntegerDefaultValue.md
|
||||||
docs/Pet.md
|
docs/Pet.md
|
||||||
docs/PetApi.md
|
docs/PetApi.md
|
||||||
docs/ReadOnlyFirst.md
|
docs/ReadOnlyFirst.md
|
||||||
docs/SpecialModelName.md
|
docs/SpecialModelName.md
|
||||||
docs/StoreApi.md
|
docs/StoreApi.md
|
||||||
docs/Tag.md
|
docs/Tag.md
|
||||||
docs/TypeHolderDefault.md
|
|
||||||
docs/TypeHolderExample.md
|
|
||||||
docs/User.md
|
docs/User.md
|
||||||
docs/UserApi.md
|
docs/UserApi.md
|
||||||
docs/XmlItem.md
|
|
||||||
git_push.sh
|
git_push.sh
|
||||||
mocha.opts
|
mocha.opts
|
||||||
package.json
|
package.json
|
||||||
src/ApiClient.js
|
src/ApiClient.js
|
||||||
src/api/AnotherFakeApi.js
|
src/api/AnotherFakeApi.js
|
||||||
|
src/api/DefaultApi.js
|
||||||
src/api/FakeApi.js
|
src/api/FakeApi.js
|
||||||
src/api/FakeClassnameTags123Api.js
|
src/api/FakeClassnameTags123Api.js
|
||||||
src/api/PetApi.js
|
src/api/PetApi.js
|
||||||
src/api/StoreApi.js
|
src/api/StoreApi.js
|
||||||
src/api/UserApi.js
|
src/api/UserApi.js
|
||||||
src/index.js
|
src/index.js
|
||||||
src/model/AdditionalPropertiesAnyType.js
|
|
||||||
src/model/AdditionalPropertiesArray.js
|
|
||||||
src/model/AdditionalPropertiesBoolean.js
|
|
||||||
src/model/AdditionalPropertiesClass.js
|
src/model/AdditionalPropertiesClass.js
|
||||||
src/model/AdditionalPropertiesInteger.js
|
|
||||||
src/model/AdditionalPropertiesNumber.js
|
|
||||||
src/model/AdditionalPropertiesObject.js
|
|
||||||
src/model/AdditionalPropertiesString.js
|
|
||||||
src/model/Animal.js
|
src/model/Animal.js
|
||||||
src/model/ApiResponse.js
|
src/model/ApiResponse.js
|
||||||
src/model/ArrayOfArrayOfNumberOnly.js
|
src/model/ArrayOfArrayOfNumberOnly.js
|
||||||
src/model/ArrayOfNumberOnly.js
|
src/model/ArrayOfNumberOnly.js
|
||||||
src/model/ArrayTest.js
|
src/model/ArrayTest.js
|
||||||
src/model/BigCat.js
|
|
||||||
src/model/BigCatAllOf.js
|
|
||||||
src/model/Capitalization.js
|
src/model/Capitalization.js
|
||||||
src/model/Cat.js
|
src/model/Cat.js
|
||||||
src/model/CatAllOf.js
|
src/model/CatAllOf.js
|
||||||
@@ -94,23 +88,33 @@ src/model/EnumClass.js
|
|||||||
src/model/EnumTest.js
|
src/model/EnumTest.js
|
||||||
src/model/File.js
|
src/model/File.js
|
||||||
src/model/FileSchemaTestClass.js
|
src/model/FileSchemaTestClass.js
|
||||||
|
src/model/Foo.js
|
||||||
src/model/FormatTest.js
|
src/model/FormatTest.js
|
||||||
src/model/HasOnlyReadOnly.js
|
src/model/HasOnlyReadOnly.js
|
||||||
|
src/model/HealthCheckResult.js
|
||||||
|
src/model/InlineObject.js
|
||||||
|
src/model/InlineObject1.js
|
||||||
|
src/model/InlineObject2.js
|
||||||
|
src/model/InlineObject3.js
|
||||||
|
src/model/InlineObject4.js
|
||||||
|
src/model/InlineObject5.js
|
||||||
|
src/model/InlineResponseDefault.js
|
||||||
src/model/List.js
|
src/model/List.js
|
||||||
src/model/MapTest.js
|
src/model/MapTest.js
|
||||||
src/model/MixedPropertiesAndAdditionalPropertiesClass.js
|
src/model/MixedPropertiesAndAdditionalPropertiesClass.js
|
||||||
src/model/Model200Response.js
|
src/model/Model200Response.js
|
||||||
src/model/ModelReturn.js
|
src/model/ModelReturn.js
|
||||||
src/model/Name.js
|
src/model/Name.js
|
||||||
|
src/model/NullableClass.js
|
||||||
src/model/NumberOnly.js
|
src/model/NumberOnly.js
|
||||||
src/model/Order.js
|
src/model/Order.js
|
||||||
src/model/OuterComposite.js
|
src/model/OuterComposite.js
|
||||||
src/model/OuterEnum.js
|
src/model/OuterEnum.js
|
||||||
|
src/model/OuterEnumDefaultValue.js
|
||||||
|
src/model/OuterEnumInteger.js
|
||||||
|
src/model/OuterEnumIntegerDefaultValue.js
|
||||||
src/model/Pet.js
|
src/model/Pet.js
|
||||||
src/model/ReadOnlyFirst.js
|
src/model/ReadOnlyFirst.js
|
||||||
src/model/SpecialModelName.js
|
src/model/SpecialModelName.js
|
||||||
src/model/Tag.js
|
src/model/Tag.js
|
||||||
src/model/TypeHolderDefault.js
|
|
||||||
src/model/TypeHolderExample.js
|
|
||||||
src/model/User.js
|
src/model/User.js
|
||||||
src/model/XmlItem.js
|
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ var OpenApiPetstore = require('open_api_petstore');
|
|||||||
|
|
||||||
|
|
||||||
var api = new OpenApiPetstore.AnotherFakeApi()
|
var api = new OpenApiPetstore.AnotherFakeApi()
|
||||||
var body = new OpenApiPetstore.Client(); // {Client} client model
|
var client = new OpenApiPetstore.Client(); // {Client} client model
|
||||||
var callback = function(error, data, response) {
|
var callback = function(error, data, response) {
|
||||||
if (error) {
|
if (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
@@ -110,7 +110,7 @@ var callback = function(error, data, response) {
|
|||||||
console.log('API called successfully. Returned data: ' + data);
|
console.log('API called successfully. Returned data: ' + data);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
api.call123testSpecialTags(body, callback);
|
api.call123testSpecialTags(client, callback);
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -121,7 +121,9 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
|
|||||||
Class | Method | HTTP request | Description
|
Class | Method | HTTP request | Description
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
*OpenApiPetstore.AnotherFakeApi* | [**call123testSpecialTags**](docs/AnotherFakeApi.md#call123testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
|
*OpenApiPetstore.AnotherFakeApi* | [**call123testSpecialTags**](docs/AnotherFakeApi.md#call123testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
|
||||||
*OpenApiPetstore.FakeApi* | [**createXmlItem**](docs/FakeApi.md#createXmlItem) | **POST** /fake/create_xml_item | creates an XmlItem
|
*OpenApiPetstore.DefaultApi* | [**fooGet**](docs/DefaultApi.md#fooGet) | **GET** /foo |
|
||||||
|
*OpenApiPetstore.FakeApi* | [**fakeHealthGet**](docs/FakeApi.md#fakeHealthGet) | **GET** /fake/health | Health check endpoint
|
||||||
|
*OpenApiPetstore.FakeApi* | [**fakeHttpSignatureTest**](docs/FakeApi.md#fakeHttpSignatureTest) | **GET** /fake/http-signature-test | test http signature authentication
|
||||||
*OpenApiPetstore.FakeApi* | [**fakeOuterBooleanSerialize**](docs/FakeApi.md#fakeOuterBooleanSerialize) | **POST** /fake/outer/boolean |
|
*OpenApiPetstore.FakeApi* | [**fakeOuterBooleanSerialize**](docs/FakeApi.md#fakeOuterBooleanSerialize) | **POST** /fake/outer/boolean |
|
||||||
*OpenApiPetstore.FakeApi* | [**fakeOuterCompositeSerialize**](docs/FakeApi.md#fakeOuterCompositeSerialize) | **POST** /fake/outer/composite |
|
*OpenApiPetstore.FakeApi* | [**fakeOuterCompositeSerialize**](docs/FakeApi.md#fakeOuterCompositeSerialize) | **POST** /fake/outer/composite |
|
||||||
*OpenApiPetstore.FakeApi* | [**fakeOuterNumberSerialize**](docs/FakeApi.md#fakeOuterNumberSerialize) | **POST** /fake/outer/number |
|
*OpenApiPetstore.FakeApi* | [**fakeOuterNumberSerialize**](docs/FakeApi.md#fakeOuterNumberSerialize) | **POST** /fake/outer/number |
|
||||||
@@ -161,21 +163,12 @@ Class | Method | HTTP request | Description
|
|||||||
|
|
||||||
## Documentation for Models
|
## Documentation for Models
|
||||||
|
|
||||||
- [OpenApiPetstore.AdditionalPropertiesAnyType](docs/AdditionalPropertiesAnyType.md)
|
|
||||||
- [OpenApiPetstore.AdditionalPropertiesArray](docs/AdditionalPropertiesArray.md)
|
|
||||||
- [OpenApiPetstore.AdditionalPropertiesBoolean](docs/AdditionalPropertiesBoolean.md)
|
|
||||||
- [OpenApiPetstore.AdditionalPropertiesClass](docs/AdditionalPropertiesClass.md)
|
- [OpenApiPetstore.AdditionalPropertiesClass](docs/AdditionalPropertiesClass.md)
|
||||||
- [OpenApiPetstore.AdditionalPropertiesInteger](docs/AdditionalPropertiesInteger.md)
|
|
||||||
- [OpenApiPetstore.AdditionalPropertiesNumber](docs/AdditionalPropertiesNumber.md)
|
|
||||||
- [OpenApiPetstore.AdditionalPropertiesObject](docs/AdditionalPropertiesObject.md)
|
|
||||||
- [OpenApiPetstore.AdditionalPropertiesString](docs/AdditionalPropertiesString.md)
|
|
||||||
- [OpenApiPetstore.Animal](docs/Animal.md)
|
- [OpenApiPetstore.Animal](docs/Animal.md)
|
||||||
- [OpenApiPetstore.ApiResponse](docs/ApiResponse.md)
|
- [OpenApiPetstore.ApiResponse](docs/ApiResponse.md)
|
||||||
- [OpenApiPetstore.ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md)
|
- [OpenApiPetstore.ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md)
|
||||||
- [OpenApiPetstore.ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md)
|
- [OpenApiPetstore.ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md)
|
||||||
- [OpenApiPetstore.ArrayTest](docs/ArrayTest.md)
|
- [OpenApiPetstore.ArrayTest](docs/ArrayTest.md)
|
||||||
- [OpenApiPetstore.BigCat](docs/BigCat.md)
|
|
||||||
- [OpenApiPetstore.BigCatAllOf](docs/BigCatAllOf.md)
|
|
||||||
- [OpenApiPetstore.Capitalization](docs/Capitalization.md)
|
- [OpenApiPetstore.Capitalization](docs/Capitalization.md)
|
||||||
- [OpenApiPetstore.Cat](docs/Cat.md)
|
- [OpenApiPetstore.Cat](docs/Cat.md)
|
||||||
- [OpenApiPetstore.CatAllOf](docs/CatAllOf.md)
|
- [OpenApiPetstore.CatAllOf](docs/CatAllOf.md)
|
||||||
@@ -189,26 +182,36 @@ Class | Method | HTTP request | Description
|
|||||||
- [OpenApiPetstore.EnumTest](docs/EnumTest.md)
|
- [OpenApiPetstore.EnumTest](docs/EnumTest.md)
|
||||||
- [OpenApiPetstore.File](docs/File.md)
|
- [OpenApiPetstore.File](docs/File.md)
|
||||||
- [OpenApiPetstore.FileSchemaTestClass](docs/FileSchemaTestClass.md)
|
- [OpenApiPetstore.FileSchemaTestClass](docs/FileSchemaTestClass.md)
|
||||||
|
- [OpenApiPetstore.Foo](docs/Foo.md)
|
||||||
- [OpenApiPetstore.FormatTest](docs/FormatTest.md)
|
- [OpenApiPetstore.FormatTest](docs/FormatTest.md)
|
||||||
- [OpenApiPetstore.HasOnlyReadOnly](docs/HasOnlyReadOnly.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.List](docs/List.md)
|
||||||
- [OpenApiPetstore.MapTest](docs/MapTest.md)
|
- [OpenApiPetstore.MapTest](docs/MapTest.md)
|
||||||
- [OpenApiPetstore.MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md)
|
- [OpenApiPetstore.MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md)
|
||||||
- [OpenApiPetstore.Model200Response](docs/Model200Response.md)
|
- [OpenApiPetstore.Model200Response](docs/Model200Response.md)
|
||||||
- [OpenApiPetstore.ModelReturn](docs/ModelReturn.md)
|
- [OpenApiPetstore.ModelReturn](docs/ModelReturn.md)
|
||||||
- [OpenApiPetstore.Name](docs/Name.md)
|
- [OpenApiPetstore.Name](docs/Name.md)
|
||||||
|
- [OpenApiPetstore.NullableClass](docs/NullableClass.md)
|
||||||
- [OpenApiPetstore.NumberOnly](docs/NumberOnly.md)
|
- [OpenApiPetstore.NumberOnly](docs/NumberOnly.md)
|
||||||
- [OpenApiPetstore.Order](docs/Order.md)
|
- [OpenApiPetstore.Order](docs/Order.md)
|
||||||
- [OpenApiPetstore.OuterComposite](docs/OuterComposite.md)
|
- [OpenApiPetstore.OuterComposite](docs/OuterComposite.md)
|
||||||
- [OpenApiPetstore.OuterEnum](docs/OuterEnum.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.Pet](docs/Pet.md)
|
||||||
- [OpenApiPetstore.ReadOnlyFirst](docs/ReadOnlyFirst.md)
|
- [OpenApiPetstore.ReadOnlyFirst](docs/ReadOnlyFirst.md)
|
||||||
- [OpenApiPetstore.SpecialModelName](docs/SpecialModelName.md)
|
- [OpenApiPetstore.SpecialModelName](docs/SpecialModelName.md)
|
||||||
- [OpenApiPetstore.Tag](docs/Tag.md)
|
- [OpenApiPetstore.Tag](docs/Tag.md)
|
||||||
- [OpenApiPetstore.TypeHolderDefault](docs/TypeHolderDefault.md)
|
|
||||||
- [OpenApiPetstore.TypeHolderExample](docs/TypeHolderExample.md)
|
|
||||||
- [OpenApiPetstore.User](docs/User.md)
|
- [OpenApiPetstore.User](docs/User.md)
|
||||||
- [OpenApiPetstore.XmlItem](docs/XmlItem.md)
|
|
||||||
|
|
||||||
|
|
||||||
## Documentation for Authorization
|
## Documentation for Authorization
|
||||||
@@ -233,12 +236,23 @@ Class | Method | HTTP request | Description
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### bearer_test
|
||||||
|
|
||||||
|
- **Type**: Bearer authentication (JWT)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### http_basic_test
|
### http_basic_test
|
||||||
|
|
||||||
- **Type**: HTTP basic authentication
|
- **Type**: HTTP basic authentication
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### http_signature_test
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### petstore_auth
|
### petstore_auth
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -4,16 +4,7 @@
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**mapString** | **{String: String}** | | [optional]
|
**mapProperty** | **{String: String}** | | [optional]
|
||||||
**mapNumber** | **{String: Number}** | | [optional]
|
**mapOfMapProperty** | **{String: {String: String}}** | | [optional]
|
||||||
**mapInteger** | **{String: Number}** | | [optional]
|
|
||||||
**mapBoolean** | **{String: Boolean}** | | [optional]
|
|
||||||
**mapArrayInteger** | **{String: [Number]}** | | [optional]
|
|
||||||
**mapArrayAnytype** | **{String: [Object]}** | | [optional]
|
|
||||||
**mapMapString** | **{String: {String: String}}** | | [optional]
|
|
||||||
**mapMapAnytype** | **{String: {String: Object}}** | | [optional]
|
|
||||||
**anytype1** | **Object** | | [optional]
|
|
||||||
**anytype2** | **Object** | | [optional]
|
|
||||||
**anytype3** | **Object** | | [optional]
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +0,0 @@
|
|||||||
# OpenApiPetstore.AdditionalPropertiesNumber
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
**name** | **String** | | [optional]
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
# OpenApiPetstore.AdditionalPropertiesObject
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
**name** | **String** | | [optional]
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
# OpenApiPetstore.AdditionalPropertiesString
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
**name** | **String** | | [optional]
|
|
||||||
|
|
||||||
|
|
||||||
@@ -10,7 +10,7 @@ Method | HTTP request | Description
|
|||||||
|
|
||||||
## call123testSpecialTags
|
## call123testSpecialTags
|
||||||
|
|
||||||
> Client call123testSpecialTags(body)
|
> Client call123testSpecialTags(client)
|
||||||
|
|
||||||
To test special tags
|
To test special tags
|
||||||
|
|
||||||
@@ -22,8 +22,8 @@ To test special tags and operation ID starting with number
|
|||||||
import OpenApiPetstore from 'open_api_petstore';
|
import OpenApiPetstore from 'open_api_petstore';
|
||||||
|
|
||||||
let apiInstance = new OpenApiPetstore.AnotherFakeApi();
|
let apiInstance = new OpenApiPetstore.AnotherFakeApi();
|
||||||
let body = new OpenApiPetstore.Client(); // Client | client model
|
let client = new OpenApiPetstore.Client(); // Client | client model
|
||||||
apiInstance.call123testSpecialTags(body, (error, data, response) => {
|
apiInstance.call123testSpecialTags(client, (error, data, response) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
} else {
|
} else {
|
||||||
@@ -37,7 +37,7 @@ apiInstance.call123testSpecialTags(body, (error, data, response) => {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**body** | [**Client**](Client.md)| client model |
|
**client** | [**Client**](Client.md)| client model |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
|
|||||||
@@ -1,24 +0,0 @@
|
|||||||
# OpenApiPetstore.BigCat
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
**kind** | **String** | | [optional]
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Enum: KindEnum
|
|
||||||
|
|
||||||
|
|
||||||
* `lions` (value: `"lions"`)
|
|
||||||
|
|
||||||
* `tigers` (value: `"tigers"`)
|
|
||||||
|
|
||||||
* `leopards` (value: `"leopards"`)
|
|
||||||
|
|
||||||
* `jaguars` (value: `"jaguars"`)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
# OpenApiPetstore.BigCatAllOf
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
**kind** | **String** | | [optional]
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Enum: KindEnum
|
|
||||||
|
|
||||||
|
|
||||||
* `lions` (value: `"lions"`)
|
|
||||||
|
|
||||||
* `tigers` (value: `"tigers"`)
|
|
||||||
|
|
||||||
* `leopards` (value: `"leopards"`)
|
|
||||||
|
|
||||||
* `jaguars` (value: `"jaguars"`)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -9,6 +9,9 @@ Name | Type | Description | Notes
|
|||||||
**enumInteger** | **Number** | | [optional]
|
**enumInteger** | **Number** | | [optional]
|
||||||
**enumNumber** | **Number** | | [optional]
|
**enumNumber** | **Number** | | [optional]
|
||||||
**outerEnum** | [**OuterEnum**](OuterEnum.md) | | [optional]
|
**outerEnum** | [**OuterEnum**](OuterEnum.md) | | [optional]
|
||||||
|
**outerEnumInteger** | [**OuterEnumInteger**](OuterEnumInteger.md) | | [optional]
|
||||||
|
**outerEnumDefaultValue** | [**OuterEnumDefaultValue**](OuterEnumDefaultValue.md) | | [optional]
|
||||||
|
**outerEnumIntegerDefaultValue** | [**OuterEnumIntegerDefaultValue**](OuterEnumIntegerDefaultValue.md) | | [optional]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,8 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
|
|||||||
|
|
||||||
Method | HTTP request | Description
|
Method | HTTP request | Description
|
||||||
------------- | ------------- | -------------
|
------------- | ------------- | -------------
|
||||||
[**createXmlItem**](FakeApi.md#createXmlItem) | **POST** /fake/create_xml_item | creates an XmlItem
|
[**fakeHealthGet**](FakeApi.md#fakeHealthGet) | **GET** /fake/health | Health check endpoint
|
||||||
|
[**fakeHttpSignatureTest**](FakeApi.md#fakeHttpSignatureTest) | **GET** /fake/http-signature-test | test http signature authentication
|
||||||
[**fakeOuterBooleanSerialize**](FakeApi.md#fakeOuterBooleanSerialize) | **POST** /fake/outer/boolean |
|
[**fakeOuterBooleanSerialize**](FakeApi.md#fakeOuterBooleanSerialize) | **POST** /fake/outer/boolean |
|
||||||
[**fakeOuterCompositeSerialize**](FakeApi.md#fakeOuterCompositeSerialize) | **POST** /fake/outer/composite |
|
[**fakeOuterCompositeSerialize**](FakeApi.md#fakeOuterCompositeSerialize) | **POST** /fake/outer/composite |
|
||||||
[**fakeOuterNumberSerialize**](FakeApi.md#fakeOuterNumberSerialize) | **POST** /fake/outer/number |
|
[**fakeOuterNumberSerialize**](FakeApi.md#fakeOuterNumberSerialize) | **POST** /fake/outer/number |
|
||||||
@@ -21,13 +22,11 @@ Method | HTTP request | Description
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
## createXmlItem
|
## fakeHealthGet
|
||||||
|
|
||||||
> createXmlItem(xmlItem)
|
> HealthCheckResult fakeHealthGet()
|
||||||
|
|
||||||
creates an XmlItem
|
Health check endpoint
|
||||||
|
|
||||||
this route creates an XmlItem
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
@@ -35,8 +34,52 @@ this route creates an XmlItem
|
|||||||
import OpenApiPetstore from 'open_api_petstore';
|
import OpenApiPetstore from 'open_api_petstore';
|
||||||
|
|
||||||
let apiInstance = new OpenApiPetstore.FakeApi();
|
let apiInstance = new OpenApiPetstore.FakeApi();
|
||||||
let xmlItem = new OpenApiPetstore.XmlItem(); // XmlItem | XmlItem Body
|
apiInstance.fakeHealthGet((error, data, response) => {
|
||||||
apiInstance.createXmlItem(xmlItem, (error, data, response) => {
|
if (error) {
|
||||||
|
console.error(error);
|
||||||
|
} else {
|
||||||
|
console.log('API called successfully. Returned data: ' + data);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
```
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
This endpoint does not need any parameter.
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
[**HealthCheckResult**](HealthCheckResult.md)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
No authorization required
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: Not defined
|
||||||
|
- **Accept**: application/json
|
||||||
|
|
||||||
|
|
||||||
|
## fakeHttpSignatureTest
|
||||||
|
|
||||||
|
> fakeHttpSignatureTest(pet, opts)
|
||||||
|
|
||||||
|
test http signature authentication
|
||||||
|
|
||||||
|
### Example
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
import OpenApiPetstore from 'open_api_petstore';
|
||||||
|
let defaultClient = OpenApiPetstore.ApiClient.instance;
|
||||||
|
|
||||||
|
let apiInstance = new OpenApiPetstore.FakeApi();
|
||||||
|
let pet = new OpenApiPetstore.Pet(); // Pet | Pet object that needs to be added to the store
|
||||||
|
let opts = {
|
||||||
|
'query1': "query1_example", // String | query parameter
|
||||||
|
'header1': "header1_example" // String | header parameter
|
||||||
|
};
|
||||||
|
apiInstance.fakeHttpSignatureTest(pet, opts, (error, data, response) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
} else {
|
} else {
|
||||||
@@ -50,7 +93,9 @@ apiInstance.createXmlItem(xmlItem, (error, data, response) => {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**xmlItem** | [**XmlItem**](XmlItem.md)| XmlItem Body |
|
**pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
|
||||||
|
**query1** | **String**| query parameter | [optional]
|
||||||
|
**header1** | **String**| header parameter | [optional]
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@@ -58,11 +103,11 @@ null (empty response body)
|
|||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
No authorization required
|
[http_signature_test](../README.md#http_signature_test)
|
||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: application/xml, application/xml; charset=utf-8, application/xml; charset=utf-16, text/xml, text/xml; charset=utf-8, text/xml; charset=utf-16
|
- **Content-Type**: application/json, application/xml
|
||||||
- **Accept**: Not defined
|
- **Accept**: Not defined
|
||||||
|
|
||||||
|
|
||||||
@@ -109,7 +154,7 @@ No authorization required
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: */*
|
- **Accept**: */*
|
||||||
|
|
||||||
|
|
||||||
@@ -128,7 +173,7 @@ import OpenApiPetstore from 'open_api_petstore';
|
|||||||
|
|
||||||
let apiInstance = new OpenApiPetstore.FakeApi();
|
let apiInstance = new OpenApiPetstore.FakeApi();
|
||||||
let opts = {
|
let opts = {
|
||||||
'body': new OpenApiPetstore.OuterComposite() // OuterComposite | Input composite as post body
|
'outerComposite': new OpenApiPetstore.OuterComposite() // OuterComposite | Input composite as post body
|
||||||
};
|
};
|
||||||
apiInstance.fakeOuterCompositeSerialize(opts, (error, data, response) => {
|
apiInstance.fakeOuterCompositeSerialize(opts, (error, data, response) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
@@ -144,7 +189,7 @@ apiInstance.fakeOuterCompositeSerialize(opts, (error, data, response) => {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**body** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional]
|
**outerComposite** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional]
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@@ -156,7 +201,7 @@ No authorization required
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: */*
|
- **Accept**: */*
|
||||||
|
|
||||||
|
|
||||||
@@ -203,7 +248,7 @@ No authorization required
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: */*
|
- **Accept**: */*
|
||||||
|
|
||||||
|
|
||||||
@@ -250,13 +295,13 @@ No authorization required
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: */*
|
- **Accept**: */*
|
||||||
|
|
||||||
|
|
||||||
## testBodyWithFileSchema
|
## testBodyWithFileSchema
|
||||||
|
|
||||||
> testBodyWithFileSchema(body)
|
> testBodyWithFileSchema(fileSchemaTestClass)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -268,8 +313,8 @@ For this test, the body for this request much reference a schema named `Fil
|
|||||||
import OpenApiPetstore from 'open_api_petstore';
|
import OpenApiPetstore from 'open_api_petstore';
|
||||||
|
|
||||||
let apiInstance = new OpenApiPetstore.FakeApi();
|
let apiInstance = new OpenApiPetstore.FakeApi();
|
||||||
let body = new OpenApiPetstore.FileSchemaTestClass(); // FileSchemaTestClass |
|
let fileSchemaTestClass = new OpenApiPetstore.FileSchemaTestClass(); // FileSchemaTestClass |
|
||||||
apiInstance.testBodyWithFileSchema(body, (error, data, response) => {
|
apiInstance.testBodyWithFileSchema(fileSchemaTestClass, (error, data, response) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
} else {
|
} else {
|
||||||
@@ -283,7 +328,7 @@ apiInstance.testBodyWithFileSchema(body, (error, data, response) => {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
|
**fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@@ -301,7 +346,7 @@ No authorization required
|
|||||||
|
|
||||||
## testBodyWithQueryParams
|
## testBodyWithQueryParams
|
||||||
|
|
||||||
> testBodyWithQueryParams(query, body)
|
> testBodyWithQueryParams(query, user)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -312,8 +357,8 @@ import OpenApiPetstore from 'open_api_petstore';
|
|||||||
|
|
||||||
let apiInstance = new OpenApiPetstore.FakeApi();
|
let apiInstance = new OpenApiPetstore.FakeApi();
|
||||||
let query = "query_example"; // String |
|
let query = "query_example"; // String |
|
||||||
let body = new OpenApiPetstore.User(); // User |
|
let user = new OpenApiPetstore.User(); // User |
|
||||||
apiInstance.testBodyWithQueryParams(query, body, (error, data, response) => {
|
apiInstance.testBodyWithQueryParams(query, user, (error, data, response) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
} else {
|
} else {
|
||||||
@@ -328,7 +373,7 @@ apiInstance.testBodyWithQueryParams(query, body, (error, data, response) => {
|
|||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**query** | **String**| |
|
**query** | **String**| |
|
||||||
**body** | [**User**](User.md)| |
|
**user** | [**User**](User.md)| |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@@ -346,7 +391,7 @@ No authorization required
|
|||||||
|
|
||||||
## testClientModel
|
## testClientModel
|
||||||
|
|
||||||
> Client testClientModel(body)
|
> Client testClientModel(client)
|
||||||
|
|
||||||
To test \"client\" model
|
To test \"client\" model
|
||||||
|
|
||||||
@@ -358,8 +403,8 @@ To test \"client\" model
|
|||||||
import OpenApiPetstore from 'open_api_petstore';
|
import OpenApiPetstore from 'open_api_petstore';
|
||||||
|
|
||||||
let apiInstance = new OpenApiPetstore.FakeApi();
|
let apiInstance = new OpenApiPetstore.FakeApi();
|
||||||
let body = new OpenApiPetstore.Client(); // Client | client model
|
let client = new OpenApiPetstore.Client(); // Client | client model
|
||||||
apiInstance.testClientModel(body, (error, data, response) => {
|
apiInstance.testClientModel(client, (error, data, response) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
} else {
|
} else {
|
||||||
@@ -373,7 +418,7 @@ apiInstance.testClientModel(body, (error, data, response) => {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**body** | [**Client**](Client.md)| client model |
|
**client** | [**Client**](Client.md)| client model |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@@ -540,6 +585,10 @@ Fake endpoint to test group parameters (optional)
|
|||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
import OpenApiPetstore from 'open_api_petstore';
|
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 apiInstance = new OpenApiPetstore.FakeApi();
|
||||||
let requiredStringGroup = 56; // Number | Required String in group parameters
|
let requiredStringGroup = 56; // Number | Required String in group parameters
|
||||||
@@ -577,7 +626,7 @@ null (empty response body)
|
|||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
No authorization required
|
[bearer_test](../README.md#bearer_test)
|
||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
@@ -587,7 +636,7 @@ No authorization required
|
|||||||
|
|
||||||
## testInlineAdditionalProperties
|
## testInlineAdditionalProperties
|
||||||
|
|
||||||
> testInlineAdditionalProperties(param)
|
> testInlineAdditionalProperties(requestBody)
|
||||||
|
|
||||||
test inline additionalProperties
|
test inline additionalProperties
|
||||||
|
|
||||||
@@ -597,8 +646,8 @@ test inline additionalProperties
|
|||||||
import OpenApiPetstore from 'open_api_petstore';
|
import OpenApiPetstore from 'open_api_petstore';
|
||||||
|
|
||||||
let apiInstance = new OpenApiPetstore.FakeApi();
|
let apiInstance = new OpenApiPetstore.FakeApi();
|
||||||
let param = {key: "null"}; // {String: String} | request body
|
let requestBody = {key: "null"}; // {String: String} | request body
|
||||||
apiInstance.testInlineAdditionalProperties(param, (error, data, response) => {
|
apiInstance.testInlineAdditionalProperties(requestBody, (error, data, response) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
} else {
|
} else {
|
||||||
@@ -612,7 +661,7 @@ apiInstance.testInlineAdditionalProperties(param, (error, data, response) => {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**param** | [**{String: String}**](String.md)| request body |
|
**requestBody** | [**{String: String}**](String.md)| request body |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ Method | HTTP request | Description
|
|||||||
|
|
||||||
## testClassname
|
## testClassname
|
||||||
|
|
||||||
> Client testClassname(body)
|
> Client testClassname(client)
|
||||||
|
|
||||||
To test class name in snake case
|
To test class name in snake case
|
||||||
|
|
||||||
@@ -28,8 +28,8 @@ api_key_query.apiKey = 'YOUR API KEY';
|
|||||||
//api_key_query.apiKeyPrefix = 'Token';
|
//api_key_query.apiKeyPrefix = 'Token';
|
||||||
|
|
||||||
let apiInstance = new OpenApiPetstore.FakeClassnameTags123Api();
|
let apiInstance = new OpenApiPetstore.FakeClassnameTags123Api();
|
||||||
let body = new OpenApiPetstore.Client(); // Client | client model
|
let client = new OpenApiPetstore.Client(); // Client | client model
|
||||||
apiInstance.testClassname(body, (error, data, response) => {
|
apiInstance.testClassname(client, (error, data, response) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
} else {
|
} else {
|
||||||
@@ -43,7 +43,7 @@ apiInstance.testClassname(body, (error, data, response) => {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**body** | [**Client**](Client.md)| client model |
|
**client** | [**Client**](Client.md)| client model |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ Name | Type | Description | Notes
|
|||||||
**dateTime** | **Date** | | [optional]
|
**dateTime** | **Date** | | [optional]
|
||||||
**uuid** | **String** | | [optional]
|
**uuid** | **String** | | [optional]
|
||||||
**password** | **String** | |
|
**password** | **String** | |
|
||||||
**bigDecimal** | **Number** | | [optional]
|
**patternWithDigits** | **String** | A string that is a 10 digit number. Can have leading zeros. | [optional]
|
||||||
|
**patternWithDigitsAndDelimiter** | **String** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ Method | HTTP request | Description
|
|||||||
|
|
||||||
## addPet
|
## addPet
|
||||||
|
|
||||||
> addPet(body)
|
> addPet(pet)
|
||||||
|
|
||||||
Add a new pet to the store
|
Add a new pet to the store
|
||||||
|
|
||||||
@@ -32,8 +32,8 @@ let petstore_auth = defaultClient.authentications['petstore_auth'];
|
|||||||
petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
|
petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
|
||||||
|
|
||||||
let apiInstance = new OpenApiPetstore.PetApi();
|
let apiInstance = new OpenApiPetstore.PetApi();
|
||||||
let body = new OpenApiPetstore.Pet(); // Pet | Pet object that needs to be added to the store
|
let pet = new OpenApiPetstore.Pet(); // Pet | Pet object that needs to be added to the store
|
||||||
apiInstance.addPet(body, (error, data, response) => {
|
apiInstance.addPet(pet, (error, data, response) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
} else {
|
} else {
|
||||||
@@ -47,7 +47,7 @@ apiInstance.addPet(body, (error, data, response) => {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
|
**pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@@ -265,7 +265,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
## updatePet
|
## updatePet
|
||||||
|
|
||||||
> updatePet(body)
|
> updatePet(pet)
|
||||||
|
|
||||||
Update an existing pet
|
Update an existing pet
|
||||||
|
|
||||||
@@ -279,8 +279,8 @@ let petstore_auth = defaultClient.authentications['petstore_auth'];
|
|||||||
petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
|
petstore_auth.accessToken = 'YOUR ACCESS TOKEN';
|
||||||
|
|
||||||
let apiInstance = new OpenApiPetstore.PetApi();
|
let apiInstance = new OpenApiPetstore.PetApi();
|
||||||
let body = new OpenApiPetstore.Pet(); // Pet | Pet object that needs to be added to the store
|
let pet = new OpenApiPetstore.Pet(); // Pet | Pet object that needs to be added to the store
|
||||||
apiInstance.updatePet(body, (error, data, response) => {
|
apiInstance.updatePet(pet, (error, data, response) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
} else {
|
} else {
|
||||||
@@ -294,7 +294,7 @@ apiInstance.updatePet(body, (error, data, response) => {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
|
**pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
|
|||||||
@@ -150,7 +150,7 @@ No authorization required
|
|||||||
|
|
||||||
## placeOrder
|
## placeOrder
|
||||||
|
|
||||||
> Order placeOrder(body)
|
> Order placeOrder(order)
|
||||||
|
|
||||||
Place an order for a pet
|
Place an order for a pet
|
||||||
|
|
||||||
@@ -160,8 +160,8 @@ Place an order for a pet
|
|||||||
import OpenApiPetstore from 'open_api_petstore';
|
import OpenApiPetstore from 'open_api_petstore';
|
||||||
|
|
||||||
let apiInstance = new OpenApiPetstore.StoreApi();
|
let apiInstance = new OpenApiPetstore.StoreApi();
|
||||||
let body = new OpenApiPetstore.Order(); // Order | order placed for purchasing the pet
|
let order = new OpenApiPetstore.Order(); // Order | order placed for purchasing the pet
|
||||||
apiInstance.placeOrder(body, (error, data, response) => {
|
apiInstance.placeOrder(order, (error, data, response) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
} else {
|
} else {
|
||||||
@@ -175,7 +175,7 @@ apiInstance.placeOrder(body, (error, data, response) => {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**body** | [**Order**](Order.md)| order placed for purchasing the pet |
|
**order** | [**Order**](Order.md)| order placed for purchasing the pet |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@@ -187,6 +187,6 @@ No authorization required
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: application/xml, application/json
|
- **Accept**: application/xml, application/json
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
# OpenApiPetstore.TypeHolderDefault
|
# OpenApiPetstore.TypeHolderDefault
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**stringItem** | **String** | | [default to 'what']
|
**stringItem** | **String** | | [default to 'what']
|
||||||
|
|||||||
@@ -1,12 +1,10 @@
|
|||||||
# OpenApiPetstore.TypeHolderExample
|
# OpenApiPetstore.TypeHolderExample
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**stringItem** | **String** | |
|
**stringItem** | **String** | |
|
||||||
**numberItem** | **Number** | |
|
**numberItem** | **Number** | |
|
||||||
**floatItem** | **Number** | |
|
|
||||||
**integerItem** | **Number** | |
|
**integerItem** | **Number** | |
|
||||||
**boolItem** | **Boolean** | |
|
**boolItem** | **Boolean** | |
|
||||||
**arrayItem** | **[Number]** | |
|
**arrayItem** | **[Number]** | |
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ Method | HTTP request | Description
|
|||||||
|
|
||||||
## createUser
|
## createUser
|
||||||
|
|
||||||
> createUser(body)
|
> createUser(user)
|
||||||
|
|
||||||
Create user
|
Create user
|
||||||
|
|
||||||
@@ -29,8 +29,8 @@ This can only be done by the logged in user.
|
|||||||
import OpenApiPetstore from 'open_api_petstore';
|
import OpenApiPetstore from 'open_api_petstore';
|
||||||
|
|
||||||
let apiInstance = new OpenApiPetstore.UserApi();
|
let apiInstance = new OpenApiPetstore.UserApi();
|
||||||
let body = new OpenApiPetstore.User(); // User | Created user object
|
let user = new OpenApiPetstore.User(); // User | Created user object
|
||||||
apiInstance.createUser(body, (error, data, response) => {
|
apiInstance.createUser(user, (error, data, response) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
} else {
|
} else {
|
||||||
@@ -44,7 +44,7 @@ apiInstance.createUser(body, (error, data, response) => {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**body** | [**User**](User.md)| Created user object |
|
**user** | [**User**](User.md)| Created user object |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@@ -56,13 +56,13 @@ No authorization required
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: Not defined
|
- **Accept**: Not defined
|
||||||
|
|
||||||
|
|
||||||
## createUsersWithArrayInput
|
## createUsersWithArrayInput
|
||||||
|
|
||||||
> createUsersWithArrayInput(body)
|
> createUsersWithArrayInput(user)
|
||||||
|
|
||||||
Creates list of users with given input array
|
Creates list of users with given input array
|
||||||
|
|
||||||
@@ -72,8 +72,8 @@ Creates list of users with given input array
|
|||||||
import OpenApiPetstore from 'open_api_petstore';
|
import OpenApiPetstore from 'open_api_petstore';
|
||||||
|
|
||||||
let apiInstance = new OpenApiPetstore.UserApi();
|
let apiInstance = new OpenApiPetstore.UserApi();
|
||||||
let body = [new OpenApiPetstore.User()]; // [User] | List of user object
|
let user = [new OpenApiPetstore.User()]; // [User] | List of user object
|
||||||
apiInstance.createUsersWithArrayInput(body, (error, data, response) => {
|
apiInstance.createUsersWithArrayInput(user, (error, data, response) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
} else {
|
} else {
|
||||||
@@ -87,7 +87,7 @@ apiInstance.createUsersWithArrayInput(body, (error, data, response) => {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**body** | [**[User]**](User.md)| List of user object |
|
**user** | [**[User]**](User.md)| List of user object |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@@ -99,13 +99,13 @@ No authorization required
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: Not defined
|
- **Accept**: Not defined
|
||||||
|
|
||||||
|
|
||||||
## createUsersWithListInput
|
## createUsersWithListInput
|
||||||
|
|
||||||
> createUsersWithListInput(body)
|
> createUsersWithListInput(user)
|
||||||
|
|
||||||
Creates list of users with given input array
|
Creates list of users with given input array
|
||||||
|
|
||||||
@@ -115,8 +115,8 @@ Creates list of users with given input array
|
|||||||
import OpenApiPetstore from 'open_api_petstore';
|
import OpenApiPetstore from 'open_api_petstore';
|
||||||
|
|
||||||
let apiInstance = new OpenApiPetstore.UserApi();
|
let apiInstance = new OpenApiPetstore.UserApi();
|
||||||
let body = [new OpenApiPetstore.User()]; // [User] | List of user object
|
let user = [new OpenApiPetstore.User()]; // [User] | List of user object
|
||||||
apiInstance.createUsersWithListInput(body, (error, data, response) => {
|
apiInstance.createUsersWithListInput(user, (error, data, response) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
} else {
|
} else {
|
||||||
@@ -130,7 +130,7 @@ apiInstance.createUsersWithListInput(body, (error, data, response) => {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**body** | [**[User]**](User.md)| List of user object |
|
**user** | [**[User]**](User.md)| List of user object |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@@ -142,7 +142,7 @@ No authorization required
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: Not defined
|
- **Accept**: Not defined
|
||||||
|
|
||||||
|
|
||||||
@@ -320,7 +320,7 @@ No authorization required
|
|||||||
|
|
||||||
## updateUser
|
## updateUser
|
||||||
|
|
||||||
> updateUser(username, body)
|
> updateUser(username, user)
|
||||||
|
|
||||||
Updated user
|
Updated user
|
||||||
|
|
||||||
@@ -333,8 +333,8 @@ import OpenApiPetstore from 'open_api_petstore';
|
|||||||
|
|
||||||
let apiInstance = new OpenApiPetstore.UserApi();
|
let apiInstance = new OpenApiPetstore.UserApi();
|
||||||
let username = "username_example"; // String | name that need to be deleted
|
let username = "username_example"; // String | name that need to be deleted
|
||||||
let body = new OpenApiPetstore.User(); // User | Updated user object
|
let user = new OpenApiPetstore.User(); // User | Updated user object
|
||||||
apiInstance.updateUser(username, body, (error, data, response) => {
|
apiInstance.updateUser(username, user, (error, data, response) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
} else {
|
} else {
|
||||||
@@ -349,7 +349,7 @@ apiInstance.updateUser(username, body, (error, data, response) => {
|
|||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**username** | **String**| name that need to be deleted |
|
**username** | **String**| name that need to be deleted |
|
||||||
**body** | [**User**](User.md)| Updated user object |
|
**user** | [**User**](User.md)| Updated user object |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@@ -361,6 +361,6 @@ No authorization required
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: Not defined
|
- **Accept**: Not defined
|
||||||
|
|
||||||
|
|||||||
@@ -1,37 +0,0 @@
|
|||||||
# OpenApiPetstore.XmlItem
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
**attributeString** | **String** | | [optional]
|
|
||||||
**attributeNumber** | **Number** | | [optional]
|
|
||||||
**attributeInteger** | **Number** | | [optional]
|
|
||||||
**attributeBoolean** | **Boolean** | | [optional]
|
|
||||||
**wrappedArray** | **[Number]** | | [optional]
|
|
||||||
**nameString** | **String** | | [optional]
|
|
||||||
**nameNumber** | **Number** | | [optional]
|
|
||||||
**nameInteger** | **Number** | | [optional]
|
|
||||||
**nameBoolean** | **Boolean** | | [optional]
|
|
||||||
**nameArray** | **[Number]** | | [optional]
|
|
||||||
**nameWrappedArray** | **[Number]** | | [optional]
|
|
||||||
**prefixString** | **String** | | [optional]
|
|
||||||
**prefixNumber** | **Number** | | [optional]
|
|
||||||
**prefixInteger** | **Number** | | [optional]
|
|
||||||
**prefixBoolean** | **Boolean** | | [optional]
|
|
||||||
**prefixArray** | **[Number]** | | [optional]
|
|
||||||
**prefixWrappedArray** | **[Number]** | | [optional]
|
|
||||||
**namespaceString** | **String** | | [optional]
|
|
||||||
**namespaceNumber** | **Number** | | [optional]
|
|
||||||
**namespaceInteger** | **Number** | | [optional]
|
|
||||||
**namespaceBoolean** | **Boolean** | | [optional]
|
|
||||||
**namespaceArray** | **[Number]** | | [optional]
|
|
||||||
**namespaceWrappedArray** | **[Number]** | | [optional]
|
|
||||||
**prefixNsString** | **String** | | [optional]
|
|
||||||
**prefixNsNumber** | **Number** | | [optional]
|
|
||||||
**prefixNsInteger** | **Number** | | [optional]
|
|
||||||
**prefixNsBoolean** | **Boolean** | | [optional]
|
|
||||||
**prefixNsArray** | **[Number]** | | [optional]
|
|
||||||
**prefixNsWrappedArray** | **[Number]** | | [optional]
|
|
||||||
|
|
||||||
|
|
||||||
3941
samples/client/petstore/javascript-es6/package-lock.json
generated
3941
samples/client/petstore/javascript-es6/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -1,10 +1,10 @@
|
|||||||
<project>
|
<project>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>org.openapitools</groupId>
|
<groupId>org.openapitools</groupId>
|
||||||
<artifactId>openapi-petstore-javascript-es6</artifactId>
|
<artifactId>openapi-v3-petstore-javascript-es6</artifactId>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0-SNAPSHOT</version>
|
||||||
<name>OpenAPI Petstore JS Client (ES6)</name>
|
<name>OpenAPI v3 Petstore JS Client (ES6)</name>
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
|||||||
@@ -43,6 +43,7 @@ class ApiClient {
|
|||||||
this.authentications = {
|
this.authentications = {
|
||||||
'api_key': {type: 'apiKey', 'in': 'header', name: 'api_key'},
|
'api_key': {type: 'apiKey', 'in': 'header', name: 'api_key'},
|
||||||
'api_key_query': {type: 'apiKey', 'in': 'query', name: 'api_key_query'},
|
'api_key_query': {type: 'apiKey', 'in': 'query', name: 'api_key_query'},
|
||||||
|
'bearer_test': {type: 'bearer'}, // JWT
|
||||||
'http_basic_test': {type: 'basic'},
|
'http_basic_test': {type: 'basic'},
|
||||||
'petstore_auth': {type: 'oauth2'}
|
'petstore_auth': {type: 'oauth2'}
|
||||||
}
|
}
|
||||||
@@ -557,8 +558,41 @@ class ApiClient {
|
|||||||
hostSettings() {
|
hostSettings() {
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
'url': "http://petstore.swagger.io:80/v2",
|
'url': "http://{server}.swagger.io:{port}/v2",
|
||||||
|
'description': "petstore server",
|
||||||
|
'variables': {
|
||||||
|
server: {
|
||||||
'description': "No description provided",
|
'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"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,15 +45,15 @@ export default class AnotherFakeApi {
|
|||||||
/**
|
/**
|
||||||
* To test special tags
|
* To test special tags
|
||||||
* To test special tags and operation ID starting with number
|
* To test special tags and operation ID starting with number
|
||||||
* @param {module:model/Client} body client model
|
* @param {module:model/Client} client client model
|
||||||
* @param {module:api/AnotherFakeApi~call123testSpecialTagsCallback} callback The callback function, accepting three arguments: error, data, response
|
* @param {module:api/AnotherFakeApi~call123testSpecialTagsCallback} callback The callback function, accepting three arguments: error, data, response
|
||||||
* data is of type: {@link module:model/Client}
|
* data is of type: {@link module:model/Client}
|
||||||
*/
|
*/
|
||||||
call123testSpecialTags(body, callback) {
|
call123testSpecialTags(client, callback) {
|
||||||
let postBody = body;
|
let postBody = client;
|
||||||
// verify the required parameter 'body' is set
|
// verify the required parameter 'client' is set
|
||||||
if (body === undefined || body === null) {
|
if (client === undefined || client === null) {
|
||||||
throw new Error("Missing the required parameter 'body' when calling call123testSpecialTags");
|
throw new Error("Missing the required parameter 'client' when calling call123testSpecialTags");
|
||||||
}
|
}
|
||||||
|
|
||||||
let pathParams = {
|
let pathParams = {
|
||||||
|
|||||||
@@ -15,9 +15,10 @@
|
|||||||
import ApiClient from "../ApiClient";
|
import ApiClient from "../ApiClient";
|
||||||
import Client from '../model/Client';
|
import Client from '../model/Client';
|
||||||
import FileSchemaTestClass from '../model/FileSchemaTestClass';
|
import FileSchemaTestClass from '../model/FileSchemaTestClass';
|
||||||
|
import HealthCheckResult from '../model/HealthCheckResult';
|
||||||
import OuterComposite from '../model/OuterComposite';
|
import OuterComposite from '../model/OuterComposite';
|
||||||
|
import Pet from '../model/Pet';
|
||||||
import User from '../model/User';
|
import User from '../model/User';
|
||||||
import XmlItem from '../model/XmlItem';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fake service.
|
* Fake service.
|
||||||
@@ -39,25 +40,20 @@ export default class FakeApi {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Callback function to receive the result of the createXmlItem operation.
|
* Callback function to receive the result of the fakeHealthGet operation.
|
||||||
* @callback module:api/FakeApi~createXmlItemCallback
|
* @callback module:api/FakeApi~fakeHealthGetCallback
|
||||||
* @param {String} error Error message, if any.
|
* @param {String} error Error message, if any.
|
||||||
* @param data This operation does not return a value.
|
* @param {module:model/HealthCheckResult} data The data returned by the service call.
|
||||||
* @param {String} response The complete HTTP response.
|
* @param {String} response The complete HTTP response.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* creates an XmlItem
|
* Health check endpoint
|
||||||
* this route creates an XmlItem
|
* @param {module:api/FakeApi~fakeHealthGetCallback} callback The callback function, accepting three arguments: error, data, response
|
||||||
* @param {module:model/XmlItem} xmlItem XmlItem Body
|
* data is of type: {@link module:model/HealthCheckResult}
|
||||||
* @param {module:api/FakeApi~createXmlItemCallback} callback The callback function, accepting three arguments: error, data, response
|
|
||||||
*/
|
*/
|
||||||
createXmlItem(xmlItem, callback) {
|
fakeHealthGet(callback) {
|
||||||
let postBody = xmlItem;
|
let postBody = null;
|
||||||
// verify the required parameter 'xmlItem' is set
|
|
||||||
if (xmlItem === undefined || xmlItem === null) {
|
|
||||||
throw new Error("Missing the required parameter 'xmlItem' when calling createXmlItem");
|
|
||||||
}
|
|
||||||
|
|
||||||
let pathParams = {
|
let pathParams = {
|
||||||
};
|
};
|
||||||
@@ -69,11 +65,57 @@ export default class FakeApi {
|
|||||||
};
|
};
|
||||||
|
|
||||||
let authNames = [];
|
let authNames = [];
|
||||||
let contentTypes = ['application/xml', 'application/xml; charset=utf-8', 'application/xml; charset=utf-16', 'text/xml', 'text/xml; charset=utf-8', 'text/xml; charset=utf-16'];
|
let contentTypes = [];
|
||||||
|
let accepts = ['application/json'];
|
||||||
|
let returnType = HealthCheckResult;
|
||||||
|
return this.apiClient.callApi(
|
||||||
|
'/fake/health', 'GET',
|
||||||
|
pathParams, queryParams, headerParams, formParams, postBody,
|
||||||
|
authNames, contentTypes, accepts, returnType, null, callback
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Callback function to receive the result of the fakeHttpSignatureTest operation.
|
||||||
|
* @callback module:api/FakeApi~fakeHttpSignatureTestCallback
|
||||||
|
* @param {String} error Error message, if any.
|
||||||
|
* @param data This operation does not return a value.
|
||||||
|
* @param {String} response The complete HTTP response.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* test http signature authentication
|
||||||
|
* @param {module:model/Pet} pet Pet object that needs to be added to the store
|
||||||
|
* @param {Object} opts Optional parameters
|
||||||
|
* @param {String} opts.query1 query parameter
|
||||||
|
* @param {String} opts.header1 header parameter
|
||||||
|
* @param {module:api/FakeApi~fakeHttpSignatureTestCallback} callback The callback function, accepting three arguments: error, data, response
|
||||||
|
*/
|
||||||
|
fakeHttpSignatureTest(pet, opts, callback) {
|
||||||
|
opts = opts || {};
|
||||||
|
let postBody = pet;
|
||||||
|
// verify the required parameter 'pet' is set
|
||||||
|
if (pet === undefined || pet === null) {
|
||||||
|
throw new Error("Missing the required parameter 'pet' when calling fakeHttpSignatureTest");
|
||||||
|
}
|
||||||
|
|
||||||
|
let pathParams = {
|
||||||
|
};
|
||||||
|
let queryParams = {
|
||||||
|
'query_1': opts['query1']
|
||||||
|
};
|
||||||
|
let headerParams = {
|
||||||
|
'header_1': opts['header1']
|
||||||
|
};
|
||||||
|
let formParams = {
|
||||||
|
};
|
||||||
|
|
||||||
|
let authNames = ['http_signature_test'];
|
||||||
|
let contentTypes = ['application/json', 'application/xml'];
|
||||||
let accepts = [];
|
let accepts = [];
|
||||||
let returnType = null;
|
let returnType = null;
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/fake/create_xml_item', 'POST',
|
'/fake/http-signature-test', 'GET',
|
||||||
pathParams, queryParams, headerParams, formParams, postBody,
|
pathParams, queryParams, headerParams, formParams, postBody,
|
||||||
authNames, contentTypes, accepts, returnType, null, callback
|
authNames, contentTypes, accepts, returnType, null, callback
|
||||||
);
|
);
|
||||||
@@ -108,7 +150,7 @@ export default class FakeApi {
|
|||||||
};
|
};
|
||||||
|
|
||||||
let authNames = [];
|
let authNames = [];
|
||||||
let contentTypes = [];
|
let contentTypes = ['application/json'];
|
||||||
let accepts = ['*/*'];
|
let accepts = ['*/*'];
|
||||||
let returnType = 'Boolean';
|
let returnType = 'Boolean';
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
@@ -129,13 +171,13 @@ export default class FakeApi {
|
|||||||
/**
|
/**
|
||||||
* Test serialization of object with outer number type
|
* Test serialization of object with outer number type
|
||||||
* @param {Object} opts Optional parameters
|
* @param {Object} opts Optional parameters
|
||||||
* @param {module:model/OuterComposite} opts.body Input composite as post body
|
* @param {module:model/OuterComposite} opts.outerComposite Input composite as post body
|
||||||
* @param {module:api/FakeApi~fakeOuterCompositeSerializeCallback} callback The callback function, accepting three arguments: error, data, response
|
* @param {module:api/FakeApi~fakeOuterCompositeSerializeCallback} callback The callback function, accepting three arguments: error, data, response
|
||||||
* data is of type: {@link module:model/OuterComposite}
|
* data is of type: {@link module:model/OuterComposite}
|
||||||
*/
|
*/
|
||||||
fakeOuterCompositeSerialize(opts, callback) {
|
fakeOuterCompositeSerialize(opts, callback) {
|
||||||
opts = opts || {};
|
opts = opts || {};
|
||||||
let postBody = opts['body'];
|
let postBody = opts['outerComposite'];
|
||||||
|
|
||||||
let pathParams = {
|
let pathParams = {
|
||||||
};
|
};
|
||||||
@@ -147,7 +189,7 @@ export default class FakeApi {
|
|||||||
};
|
};
|
||||||
|
|
||||||
let authNames = [];
|
let authNames = [];
|
||||||
let contentTypes = [];
|
let contentTypes = ['application/json'];
|
||||||
let accepts = ['*/*'];
|
let accepts = ['*/*'];
|
||||||
let returnType = OuterComposite;
|
let returnType = OuterComposite;
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
@@ -186,7 +228,7 @@ export default class FakeApi {
|
|||||||
};
|
};
|
||||||
|
|
||||||
let authNames = [];
|
let authNames = [];
|
||||||
let contentTypes = [];
|
let contentTypes = ['application/json'];
|
||||||
let accepts = ['*/*'];
|
let accepts = ['*/*'];
|
||||||
let returnType = 'Number';
|
let returnType = 'Number';
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
@@ -225,7 +267,7 @@ export default class FakeApi {
|
|||||||
};
|
};
|
||||||
|
|
||||||
let authNames = [];
|
let authNames = [];
|
||||||
let contentTypes = [];
|
let contentTypes = ['application/json'];
|
||||||
let accepts = ['*/*'];
|
let accepts = ['*/*'];
|
||||||
let returnType = 'String';
|
let returnType = 'String';
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
@@ -245,14 +287,14 @@ export default class FakeApi {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* For this test, the body for this request much reference a schema named `File`.
|
* For this test, the body for this request much reference a schema named `File`.
|
||||||
* @param {module:model/FileSchemaTestClass} body
|
* @param {module:model/FileSchemaTestClass} fileSchemaTestClass
|
||||||
* @param {module:api/FakeApi~testBodyWithFileSchemaCallback} callback The callback function, accepting three arguments: error, data, response
|
* @param {module:api/FakeApi~testBodyWithFileSchemaCallback} callback The callback function, accepting three arguments: error, data, response
|
||||||
*/
|
*/
|
||||||
testBodyWithFileSchema(body, callback) {
|
testBodyWithFileSchema(fileSchemaTestClass, callback) {
|
||||||
let postBody = body;
|
let postBody = fileSchemaTestClass;
|
||||||
// verify the required parameter 'body' is set
|
// verify the required parameter 'fileSchemaTestClass' is set
|
||||||
if (body === undefined || body === null) {
|
if (fileSchemaTestClass === undefined || fileSchemaTestClass === null) {
|
||||||
throw new Error("Missing the required parameter 'body' when calling testBodyWithFileSchema");
|
throw new Error("Missing the required parameter 'fileSchemaTestClass' when calling testBodyWithFileSchema");
|
||||||
}
|
}
|
||||||
|
|
||||||
let pathParams = {
|
let pathParams = {
|
||||||
@@ -285,18 +327,18 @@ export default class FakeApi {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {String} query
|
* @param {String} query
|
||||||
* @param {module:model/User} body
|
* @param {module:model/User} user
|
||||||
* @param {module:api/FakeApi~testBodyWithQueryParamsCallback} callback The callback function, accepting three arguments: error, data, response
|
* @param {module:api/FakeApi~testBodyWithQueryParamsCallback} callback The callback function, accepting three arguments: error, data, response
|
||||||
*/
|
*/
|
||||||
testBodyWithQueryParams(query, body, callback) {
|
testBodyWithQueryParams(query, user, callback) {
|
||||||
let postBody = body;
|
let postBody = user;
|
||||||
// verify the required parameter 'query' is set
|
// verify the required parameter 'query' is set
|
||||||
if (query === undefined || query === null) {
|
if (query === undefined || query === null) {
|
||||||
throw new Error("Missing the required parameter 'query' when calling testBodyWithQueryParams");
|
throw new Error("Missing the required parameter 'query' when calling testBodyWithQueryParams");
|
||||||
}
|
}
|
||||||
// verify the required parameter 'body' is set
|
// verify the required parameter 'user' is set
|
||||||
if (body === undefined || body === null) {
|
if (user === undefined || user === null) {
|
||||||
throw new Error("Missing the required parameter 'body' when calling testBodyWithQueryParams");
|
throw new Error("Missing the required parameter 'user' when calling testBodyWithQueryParams");
|
||||||
}
|
}
|
||||||
|
|
||||||
let pathParams = {
|
let pathParams = {
|
||||||
@@ -331,15 +373,15 @@ export default class FakeApi {
|
|||||||
/**
|
/**
|
||||||
* To test \"client\" model
|
* To test \"client\" model
|
||||||
* To test \"client\" model
|
* To test \"client\" model
|
||||||
* @param {module:model/Client} body client model
|
* @param {module:model/Client} client client model
|
||||||
* @param {module:api/FakeApi~testClientModelCallback} callback The callback function, accepting three arguments: error, data, response
|
* @param {module:api/FakeApi~testClientModelCallback} callback The callback function, accepting three arguments: error, data, response
|
||||||
* data is of type: {@link module:model/Client}
|
* data is of type: {@link module:model/Client}
|
||||||
*/
|
*/
|
||||||
testClientModel(body, callback) {
|
testClientModel(client, callback) {
|
||||||
let postBody = body;
|
let postBody = client;
|
||||||
// verify the required parameter 'body' is set
|
// verify the required parameter 'client' is set
|
||||||
if (body === undefined || body === null) {
|
if (client === undefined || client === null) {
|
||||||
throw new Error("Missing the required parameter 'body' when calling testClientModel");
|
throw new Error("Missing the required parameter 'client' when calling testClientModel");
|
||||||
}
|
}
|
||||||
|
|
||||||
let pathParams = {
|
let pathParams = {
|
||||||
@@ -473,7 +515,7 @@ export default class FakeApi {
|
|||||||
let pathParams = {
|
let pathParams = {
|
||||||
};
|
};
|
||||||
let queryParams = {
|
let queryParams = {
|
||||||
'enum_query_string_array': this.apiClient.buildCollectionParam(opts['enumQueryStringArray'], 'csv'),
|
'enum_query_string_array': this.apiClient.buildCollectionParam(opts['enumQueryStringArray'], 'multi'),
|
||||||
'enum_query_string': opts['enumQueryString'],
|
'enum_query_string': opts['enumQueryString'],
|
||||||
'enum_query_integer': opts['enumQueryInteger'],
|
'enum_query_integer': opts['enumQueryInteger'],
|
||||||
'enum_query_double': opts['enumQueryDouble']
|
'enum_query_double': opts['enumQueryDouble']
|
||||||
@@ -549,7 +591,7 @@ export default class FakeApi {
|
|||||||
let formParams = {
|
let formParams = {
|
||||||
};
|
};
|
||||||
|
|
||||||
let authNames = [];
|
let authNames = ['bearer_test'];
|
||||||
let contentTypes = [];
|
let contentTypes = [];
|
||||||
let accepts = [];
|
let accepts = [];
|
||||||
let returnType = null;
|
let returnType = null;
|
||||||
@@ -570,14 +612,14 @@ export default class FakeApi {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* test inline additionalProperties
|
* test inline additionalProperties
|
||||||
* @param {Object.<String, {String: String}>} param request body
|
* @param {Object.<String, {String: String}>} requestBody request body
|
||||||
* @param {module:api/FakeApi~testInlineAdditionalPropertiesCallback} callback The callback function, accepting three arguments: error, data, response
|
* @param {module:api/FakeApi~testInlineAdditionalPropertiesCallback} callback The callback function, accepting three arguments: error, data, response
|
||||||
*/
|
*/
|
||||||
testInlineAdditionalProperties(param, callback) {
|
testInlineAdditionalProperties(requestBody, callback) {
|
||||||
let postBody = param;
|
let postBody = requestBody;
|
||||||
// verify the required parameter 'param' is set
|
// verify the required parameter 'requestBody' is set
|
||||||
if (param === undefined || param === null) {
|
if (requestBody === undefined || requestBody === null) {
|
||||||
throw new Error("Missing the required parameter 'param' when calling testInlineAdditionalProperties");
|
throw new Error("Missing the required parameter 'requestBody' when calling testInlineAdditionalProperties");
|
||||||
}
|
}
|
||||||
|
|
||||||
let pathParams = {
|
let pathParams = {
|
||||||
@@ -690,7 +732,7 @@ export default class FakeApi {
|
|||||||
let pathParams = {
|
let pathParams = {
|
||||||
};
|
};
|
||||||
let queryParams = {
|
let queryParams = {
|
||||||
'pipe': this.apiClient.buildCollectionParam(pipe, 'csv'),
|
'pipe': this.apiClient.buildCollectionParam(pipe, 'multi'),
|
||||||
'ioutil': this.apiClient.buildCollectionParam(ioutil, 'csv'),
|
'ioutil': this.apiClient.buildCollectionParam(ioutil, 'csv'),
|
||||||
'http': this.apiClient.buildCollectionParam(http, 'space'),
|
'http': this.apiClient.buildCollectionParam(http, 'space'),
|
||||||
'url': this.apiClient.buildCollectionParam(url, 'csv'),
|
'url': this.apiClient.buildCollectionParam(url, 'csv'),
|
||||||
|
|||||||
@@ -45,15 +45,15 @@ export default class FakeClassnameTags123Api {
|
|||||||
/**
|
/**
|
||||||
* To test class name in snake case
|
* To test class name in snake case
|
||||||
* To test class name in snake case
|
* To test class name in snake case
|
||||||
* @param {module:model/Client} body client model
|
* @param {module:model/Client} client client model
|
||||||
* @param {module:api/FakeClassnameTags123Api~testClassnameCallback} callback The callback function, accepting three arguments: error, data, response
|
* @param {module:api/FakeClassnameTags123Api~testClassnameCallback} callback The callback function, accepting three arguments: error, data, response
|
||||||
* data is of type: {@link module:model/Client}
|
* data is of type: {@link module:model/Client}
|
||||||
*/
|
*/
|
||||||
testClassname(body, callback) {
|
testClassname(client, callback) {
|
||||||
let postBody = body;
|
let postBody = client;
|
||||||
// verify the required parameter 'body' is set
|
// verify the required parameter 'client' is set
|
||||||
if (body === undefined || body === null) {
|
if (client === undefined || client === null) {
|
||||||
throw new Error("Missing the required parameter 'body' when calling testClassname");
|
throw new Error("Missing the required parameter 'client' when calling testClassname");
|
||||||
}
|
}
|
||||||
|
|
||||||
let pathParams = {
|
let pathParams = {
|
||||||
|
|||||||
@@ -45,14 +45,15 @@ export default class PetApi {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Add a new pet to the store
|
* Add a new pet to the store
|
||||||
* @param {module:model/Pet} body Pet object that needs to be added to the store
|
* @param {module:model/Pet} pet Pet object that needs to be added to the store
|
||||||
* @param {module:api/PetApi~addPetCallback} callback The callback function, accepting three arguments: error, data, response
|
* @param {module:api/PetApi~addPetCallback} callback The callback function, accepting three arguments: error, data, response
|
||||||
*/
|
*/
|
||||||
addPet(body, callback) {
|
addPet(pet, opts, callback) {
|
||||||
let postBody = body;
|
opts = opts || {};
|
||||||
// verify the required parameter 'body' is set
|
let postBody = pet;
|
||||||
if (body === undefined || body === null) {
|
// verify the required parameter 'pet' is set
|
||||||
throw new Error("Missing the required parameter 'body' when calling addPet");
|
if (pet === undefined || pet === null) {
|
||||||
|
throw new Error("Missing the required parameter 'pet' when calling addPet");
|
||||||
}
|
}
|
||||||
|
|
||||||
let pathParams = {
|
let pathParams = {
|
||||||
@@ -68,10 +69,19 @@ export default class PetApi {
|
|||||||
let contentTypes = ['application/json', 'application/xml'];
|
let contentTypes = ['application/json', 'application/xml'];
|
||||||
let accepts = [];
|
let accepts = [];
|
||||||
let returnType = null;
|
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(
|
return this.apiClient.callApi(
|
||||||
'/pet', 'POST',
|
'/pet', 'POST',
|
||||||
pathParams, queryParams, headerParams, formParams, postBody,
|
pathParams, queryParams, headerParams, formParams, postBody,
|
||||||
authNames, contentTypes, accepts, returnType, null, callback
|
authNames, contentTypes, accepts, returnType, basePath, callback
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -259,14 +269,15 @@ export default class PetApi {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Update an existing pet
|
* Update an existing pet
|
||||||
* @param {module:model/Pet} body Pet object that needs to be added to the store
|
* @param {module:model/Pet} pet Pet object that needs to be added to the store
|
||||||
* @param {module:api/PetApi~updatePetCallback} callback The callback function, accepting three arguments: error, data, response
|
* @param {module:api/PetApi~updatePetCallback} callback The callback function, accepting three arguments: error, data, response
|
||||||
*/
|
*/
|
||||||
updatePet(body, callback) {
|
updatePet(pet, opts, callback) {
|
||||||
let postBody = body;
|
opts = opts || {};
|
||||||
// verify the required parameter 'body' is set
|
let postBody = pet;
|
||||||
if (body === undefined || body === null) {
|
// verify the required parameter 'pet' is set
|
||||||
throw new Error("Missing the required parameter 'body' when calling updatePet");
|
if (pet === undefined || pet === null) {
|
||||||
|
throw new Error("Missing the required parameter 'pet' when calling updatePet");
|
||||||
}
|
}
|
||||||
|
|
||||||
let pathParams = {
|
let pathParams = {
|
||||||
@@ -282,10 +293,19 @@ export default class PetApi {
|
|||||||
let contentTypes = ['application/json', 'application/xml'];
|
let contentTypes = ['application/json', 'application/xml'];
|
||||||
let accepts = [];
|
let accepts = [];
|
||||||
let returnType = null;
|
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(
|
return this.apiClient.callApi(
|
||||||
'/pet', 'PUT',
|
'/pet', 'PUT',
|
||||||
pathParams, queryParams, headerParams, formParams, postBody,
|
pathParams, queryParams, headerParams, formParams, postBody,
|
||||||
authNames, contentTypes, accepts, returnType, null, callback
|
authNames, contentTypes, accepts, returnType, basePath, callback
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -166,15 +166,15 @@ export default class StoreApi {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Place an order for a pet
|
* Place an order for a pet
|
||||||
* @param {module:model/Order} body order placed for purchasing the pet
|
* @param {module:model/Order} order order placed for purchasing the pet
|
||||||
* @param {module:api/StoreApi~placeOrderCallback} callback The callback function, accepting three arguments: error, data, response
|
* @param {module:api/StoreApi~placeOrderCallback} callback The callback function, accepting three arguments: error, data, response
|
||||||
* data is of type: {@link module:model/Order}
|
* data is of type: {@link module:model/Order}
|
||||||
*/
|
*/
|
||||||
placeOrder(body, callback) {
|
placeOrder(order, callback) {
|
||||||
let postBody = body;
|
let postBody = order;
|
||||||
// verify the required parameter 'body' is set
|
// verify the required parameter 'order' is set
|
||||||
if (body === undefined || body === null) {
|
if (order === undefined || order === null) {
|
||||||
throw new Error("Missing the required parameter 'body' when calling placeOrder");
|
throw new Error("Missing the required parameter 'order' when calling placeOrder");
|
||||||
}
|
}
|
||||||
|
|
||||||
let pathParams = {
|
let pathParams = {
|
||||||
@@ -187,7 +187,7 @@ export default class StoreApi {
|
|||||||
};
|
};
|
||||||
|
|
||||||
let authNames = [];
|
let authNames = [];
|
||||||
let contentTypes = [];
|
let contentTypes = ['application/json'];
|
||||||
let accepts = ['application/xml', 'application/json'];
|
let accepts = ['application/xml', 'application/json'];
|
||||||
let returnType = Order;
|
let returnType = Order;
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
|
|||||||
@@ -45,14 +45,14 @@ export default class UserApi {
|
|||||||
/**
|
/**
|
||||||
* Create user
|
* Create user
|
||||||
* This can only be done by the logged in user.
|
* This can only be done by the logged in user.
|
||||||
* @param {module:model/User} body Created user object
|
* @param {module:model/User} user Created user object
|
||||||
* @param {module:api/UserApi~createUserCallback} callback The callback function, accepting three arguments: error, data, response
|
* @param {module:api/UserApi~createUserCallback} callback The callback function, accepting three arguments: error, data, response
|
||||||
*/
|
*/
|
||||||
createUser(body, callback) {
|
createUser(user, callback) {
|
||||||
let postBody = body;
|
let postBody = user;
|
||||||
// verify the required parameter 'body' is set
|
// verify the required parameter 'user' is set
|
||||||
if (body === undefined || body === null) {
|
if (user === undefined || user === null) {
|
||||||
throw new Error("Missing the required parameter 'body' when calling createUser");
|
throw new Error("Missing the required parameter 'user' when calling createUser");
|
||||||
}
|
}
|
||||||
|
|
||||||
let pathParams = {
|
let pathParams = {
|
||||||
@@ -65,7 +65,7 @@ export default class UserApi {
|
|||||||
};
|
};
|
||||||
|
|
||||||
let authNames = [];
|
let authNames = [];
|
||||||
let contentTypes = [];
|
let contentTypes = ['application/json'];
|
||||||
let accepts = [];
|
let accepts = [];
|
||||||
let returnType = null;
|
let returnType = null;
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
@@ -85,14 +85,14 @@ export default class UserApi {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates list of users with given input array
|
* Creates list of users with given input array
|
||||||
* @param {Array.<module:model/User>} body List of user object
|
* @param {Array.<module:model/User>} user List of user object
|
||||||
* @param {module:api/UserApi~createUsersWithArrayInputCallback} callback The callback function, accepting three arguments: error, data, response
|
* @param {module:api/UserApi~createUsersWithArrayInputCallback} callback The callback function, accepting three arguments: error, data, response
|
||||||
*/
|
*/
|
||||||
createUsersWithArrayInput(body, callback) {
|
createUsersWithArrayInput(user, callback) {
|
||||||
let postBody = body;
|
let postBody = user;
|
||||||
// verify the required parameter 'body' is set
|
// verify the required parameter 'user' is set
|
||||||
if (body === undefined || body === null) {
|
if (user === undefined || user === null) {
|
||||||
throw new Error("Missing the required parameter 'body' when calling createUsersWithArrayInput");
|
throw new Error("Missing the required parameter 'user' when calling createUsersWithArrayInput");
|
||||||
}
|
}
|
||||||
|
|
||||||
let pathParams = {
|
let pathParams = {
|
||||||
@@ -105,7 +105,7 @@ export default class UserApi {
|
|||||||
};
|
};
|
||||||
|
|
||||||
let authNames = [];
|
let authNames = [];
|
||||||
let contentTypes = [];
|
let contentTypes = ['application/json'];
|
||||||
let accepts = [];
|
let accepts = [];
|
||||||
let returnType = null;
|
let returnType = null;
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
@@ -125,14 +125,14 @@ export default class UserApi {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates list of users with given input array
|
* Creates list of users with given input array
|
||||||
* @param {Array.<module:model/User>} body List of user object
|
* @param {Array.<module:model/User>} user List of user object
|
||||||
* @param {module:api/UserApi~createUsersWithListInputCallback} callback The callback function, accepting three arguments: error, data, response
|
* @param {module:api/UserApi~createUsersWithListInputCallback} callback The callback function, accepting three arguments: error, data, response
|
||||||
*/
|
*/
|
||||||
createUsersWithListInput(body, callback) {
|
createUsersWithListInput(user, callback) {
|
||||||
let postBody = body;
|
let postBody = user;
|
||||||
// verify the required parameter 'body' is set
|
// verify the required parameter 'user' is set
|
||||||
if (body === undefined || body === null) {
|
if (user === undefined || user === null) {
|
||||||
throw new Error("Missing the required parameter 'body' when calling createUsersWithListInput");
|
throw new Error("Missing the required parameter 'user' when calling createUsersWithListInput");
|
||||||
}
|
}
|
||||||
|
|
||||||
let pathParams = {
|
let pathParams = {
|
||||||
@@ -145,7 +145,7 @@ export default class UserApi {
|
|||||||
};
|
};
|
||||||
|
|
||||||
let authNames = [];
|
let authNames = [];
|
||||||
let contentTypes = [];
|
let contentTypes = ['application/json'];
|
||||||
let accepts = [];
|
let accepts = [];
|
||||||
let returnType = null;
|
let returnType = null;
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
@@ -334,18 +334,18 @@ export default class UserApi {
|
|||||||
* Updated user
|
* Updated user
|
||||||
* This can only be done by the logged in user.
|
* This can only be done by the logged in user.
|
||||||
* @param {String} username name that need to be deleted
|
* @param {String} username name that need to be deleted
|
||||||
* @param {module:model/User} body Updated user object
|
* @param {module:model/User} user Updated user object
|
||||||
* @param {module:api/UserApi~updateUserCallback} callback The callback function, accepting three arguments: error, data, response
|
* @param {module:api/UserApi~updateUserCallback} callback The callback function, accepting three arguments: error, data, response
|
||||||
*/
|
*/
|
||||||
updateUser(username, body, callback) {
|
updateUser(username, user, callback) {
|
||||||
let postBody = body;
|
let postBody = user;
|
||||||
// verify the required parameter 'username' is set
|
// verify the required parameter 'username' is set
|
||||||
if (username === undefined || username === null) {
|
if (username === undefined || username === null) {
|
||||||
throw new Error("Missing the required parameter 'username' when calling updateUser");
|
throw new Error("Missing the required parameter 'username' when calling updateUser");
|
||||||
}
|
}
|
||||||
// verify the required parameter 'body' is set
|
// verify the required parameter 'user' is set
|
||||||
if (body === undefined || body === null) {
|
if (user === undefined || user === null) {
|
||||||
throw new Error("Missing the required parameter 'body' when calling updateUser");
|
throw new Error("Missing the required parameter 'user' when calling updateUser");
|
||||||
}
|
}
|
||||||
|
|
||||||
let pathParams = {
|
let pathParams = {
|
||||||
@@ -359,7 +359,7 @@ export default class UserApi {
|
|||||||
};
|
};
|
||||||
|
|
||||||
let authNames = [];
|
let authNames = [];
|
||||||
let contentTypes = [];
|
let contentTypes = ['application/json'];
|
||||||
let accepts = [];
|
let accepts = [];
|
||||||
let returnType = null;
|
let returnType = null;
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
|
|||||||
@@ -13,21 +13,12 @@
|
|||||||
|
|
||||||
|
|
||||||
import ApiClient from './ApiClient';
|
import ApiClient from './ApiClient';
|
||||||
import AdditionalPropertiesAnyType from './model/AdditionalPropertiesAnyType';
|
|
||||||
import AdditionalPropertiesArray from './model/AdditionalPropertiesArray';
|
|
||||||
import AdditionalPropertiesBoolean from './model/AdditionalPropertiesBoolean';
|
|
||||||
import AdditionalPropertiesClass from './model/AdditionalPropertiesClass';
|
import AdditionalPropertiesClass from './model/AdditionalPropertiesClass';
|
||||||
import AdditionalPropertiesInteger from './model/AdditionalPropertiesInteger';
|
|
||||||
import AdditionalPropertiesNumber from './model/AdditionalPropertiesNumber';
|
|
||||||
import AdditionalPropertiesObject from './model/AdditionalPropertiesObject';
|
|
||||||
import AdditionalPropertiesString from './model/AdditionalPropertiesString';
|
|
||||||
import Animal from './model/Animal';
|
import Animal from './model/Animal';
|
||||||
import ApiResponse from './model/ApiResponse';
|
import ApiResponse from './model/ApiResponse';
|
||||||
import ArrayOfArrayOfNumberOnly from './model/ArrayOfArrayOfNumberOnly';
|
import ArrayOfArrayOfNumberOnly from './model/ArrayOfArrayOfNumberOnly';
|
||||||
import ArrayOfNumberOnly from './model/ArrayOfNumberOnly';
|
import ArrayOfNumberOnly from './model/ArrayOfNumberOnly';
|
||||||
import ArrayTest from './model/ArrayTest';
|
import ArrayTest from './model/ArrayTest';
|
||||||
import BigCat from './model/BigCat';
|
|
||||||
import BigCatAllOf from './model/BigCatAllOf';
|
|
||||||
import Capitalization from './model/Capitalization';
|
import Capitalization from './model/Capitalization';
|
||||||
import Cat from './model/Cat';
|
import Cat from './model/Cat';
|
||||||
import CatAllOf from './model/CatAllOf';
|
import CatAllOf from './model/CatAllOf';
|
||||||
@@ -41,27 +32,38 @@ import EnumClass from './model/EnumClass';
|
|||||||
import EnumTest from './model/EnumTest';
|
import EnumTest from './model/EnumTest';
|
||||||
import File from './model/File';
|
import File from './model/File';
|
||||||
import FileSchemaTestClass from './model/FileSchemaTestClass';
|
import FileSchemaTestClass from './model/FileSchemaTestClass';
|
||||||
|
import Foo from './model/Foo';
|
||||||
import FormatTest from './model/FormatTest';
|
import FormatTest from './model/FormatTest';
|
||||||
import HasOnlyReadOnly from './model/HasOnlyReadOnly';
|
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 List from './model/List';
|
||||||
import MapTest from './model/MapTest';
|
import MapTest from './model/MapTest';
|
||||||
import MixedPropertiesAndAdditionalPropertiesClass from './model/MixedPropertiesAndAdditionalPropertiesClass';
|
import MixedPropertiesAndAdditionalPropertiesClass from './model/MixedPropertiesAndAdditionalPropertiesClass';
|
||||||
import Model200Response from './model/Model200Response';
|
import Model200Response from './model/Model200Response';
|
||||||
import ModelReturn from './model/ModelReturn';
|
import ModelReturn from './model/ModelReturn';
|
||||||
import Name from './model/Name';
|
import Name from './model/Name';
|
||||||
|
import NullableClass from './model/NullableClass';
|
||||||
import NumberOnly from './model/NumberOnly';
|
import NumberOnly from './model/NumberOnly';
|
||||||
import Order from './model/Order';
|
import Order from './model/Order';
|
||||||
import OuterComposite from './model/OuterComposite';
|
import OuterComposite from './model/OuterComposite';
|
||||||
import OuterEnum from './model/OuterEnum';
|
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 Pet from './model/Pet';
|
||||||
import ReadOnlyFirst from './model/ReadOnlyFirst';
|
import ReadOnlyFirst from './model/ReadOnlyFirst';
|
||||||
import SpecialModelName from './model/SpecialModelName';
|
import SpecialModelName from './model/SpecialModelName';
|
||||||
import Tag from './model/Tag';
|
import Tag from './model/Tag';
|
||||||
import TypeHolderDefault from './model/TypeHolderDefault';
|
|
||||||
import TypeHolderExample from './model/TypeHolderExample';
|
|
||||||
import User from './model/User';
|
import User from './model/User';
|
||||||
import XmlItem from './model/XmlItem';
|
|
||||||
import AnotherFakeApi from './api/AnotherFakeApi';
|
import AnotherFakeApi from './api/AnotherFakeApi';
|
||||||
|
import DefaultApi from './api/DefaultApi';
|
||||||
import FakeApi from './api/FakeApi';
|
import FakeApi from './api/FakeApi';
|
||||||
import FakeClassnameTags123Api from './api/FakeClassnameTags123Api';
|
import FakeClassnameTags123Api from './api/FakeClassnameTags123Api';
|
||||||
import PetApi from './api/PetApi';
|
import PetApi from './api/PetApi';
|
||||||
@@ -107,54 +109,12 @@ export {
|
|||||||
*/
|
*/
|
||||||
ApiClient,
|
ApiClient,
|
||||||
|
|
||||||
/**
|
|
||||||
* The AdditionalPropertiesAnyType model constructor.
|
|
||||||
* @property {module:model/AdditionalPropertiesAnyType}
|
|
||||||
*/
|
|
||||||
AdditionalPropertiesAnyType,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The AdditionalPropertiesArray model constructor.
|
|
||||||
* @property {module:model/AdditionalPropertiesArray}
|
|
||||||
*/
|
|
||||||
AdditionalPropertiesArray,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The AdditionalPropertiesBoolean model constructor.
|
|
||||||
* @property {module:model/AdditionalPropertiesBoolean}
|
|
||||||
*/
|
|
||||||
AdditionalPropertiesBoolean,
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The AdditionalPropertiesClass model constructor.
|
* The AdditionalPropertiesClass model constructor.
|
||||||
* @property {module:model/AdditionalPropertiesClass}
|
* @property {module:model/AdditionalPropertiesClass}
|
||||||
*/
|
*/
|
||||||
AdditionalPropertiesClass,
|
AdditionalPropertiesClass,
|
||||||
|
|
||||||
/**
|
|
||||||
* The AdditionalPropertiesInteger model constructor.
|
|
||||||
* @property {module:model/AdditionalPropertiesInteger}
|
|
||||||
*/
|
|
||||||
AdditionalPropertiesInteger,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The AdditionalPropertiesNumber model constructor.
|
|
||||||
* @property {module:model/AdditionalPropertiesNumber}
|
|
||||||
*/
|
|
||||||
AdditionalPropertiesNumber,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The AdditionalPropertiesObject model constructor.
|
|
||||||
* @property {module:model/AdditionalPropertiesObject}
|
|
||||||
*/
|
|
||||||
AdditionalPropertiesObject,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The AdditionalPropertiesString model constructor.
|
|
||||||
* @property {module:model/AdditionalPropertiesString}
|
|
||||||
*/
|
|
||||||
AdditionalPropertiesString,
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Animal model constructor.
|
* The Animal model constructor.
|
||||||
* @property {module:model/Animal}
|
* @property {module:model/Animal}
|
||||||
@@ -185,18 +145,6 @@ export {
|
|||||||
*/
|
*/
|
||||||
ArrayTest,
|
ArrayTest,
|
||||||
|
|
||||||
/**
|
|
||||||
* The BigCat model constructor.
|
|
||||||
* @property {module:model/BigCat}
|
|
||||||
*/
|
|
||||||
BigCat,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The BigCatAllOf model constructor.
|
|
||||||
* @property {module:model/BigCatAllOf}
|
|
||||||
*/
|
|
||||||
BigCatAllOf,
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Capitalization model constructor.
|
* The Capitalization model constructor.
|
||||||
* @property {module:model/Capitalization}
|
* @property {module:model/Capitalization}
|
||||||
@@ -275,6 +223,12 @@ export {
|
|||||||
*/
|
*/
|
||||||
FileSchemaTestClass,
|
FileSchemaTestClass,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The Foo model constructor.
|
||||||
|
* @property {module:model/Foo}
|
||||||
|
*/
|
||||||
|
Foo,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The FormatTest model constructor.
|
* The FormatTest model constructor.
|
||||||
* @property {module:model/FormatTest}
|
* @property {module:model/FormatTest}
|
||||||
@@ -287,6 +241,54 @@ export {
|
|||||||
*/
|
*/
|
||||||
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.
|
* The List model constructor.
|
||||||
* @property {module:model/List}
|
* @property {module:model/List}
|
||||||
@@ -323,6 +325,12 @@ export {
|
|||||||
*/
|
*/
|
||||||
Name,
|
Name,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The NullableClass model constructor.
|
||||||
|
* @property {module:model/NullableClass}
|
||||||
|
*/
|
||||||
|
NullableClass,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The NumberOnly model constructor.
|
* The NumberOnly model constructor.
|
||||||
* @property {module:model/NumberOnly}
|
* @property {module:model/NumberOnly}
|
||||||
@@ -347,6 +355,24 @@ export {
|
|||||||
*/
|
*/
|
||||||
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.
|
* The Pet model constructor.
|
||||||
* @property {module:model/Pet}
|
* @property {module:model/Pet}
|
||||||
@@ -371,36 +397,24 @@ export {
|
|||||||
*/
|
*/
|
||||||
Tag,
|
Tag,
|
||||||
|
|
||||||
/**
|
|
||||||
* The TypeHolderDefault model constructor.
|
|
||||||
* @property {module:model/TypeHolderDefault}
|
|
||||||
*/
|
|
||||||
TypeHolderDefault,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The TypeHolderExample model constructor.
|
|
||||||
* @property {module:model/TypeHolderExample}
|
|
||||||
*/
|
|
||||||
TypeHolderExample,
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The User model constructor.
|
* The User model constructor.
|
||||||
* @property {module:model/User}
|
* @property {module:model/User}
|
||||||
*/
|
*/
|
||||||
User,
|
User,
|
||||||
|
|
||||||
/**
|
|
||||||
* The XmlItem model constructor.
|
|
||||||
* @property {module:model/XmlItem}
|
|
||||||
*/
|
|
||||||
XmlItem,
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The AnotherFakeApi service constructor.
|
* The AnotherFakeApi service constructor.
|
||||||
* @property {module:api/AnotherFakeApi}
|
* @property {module:api/AnotherFakeApi}
|
||||||
*/
|
*/
|
||||||
AnotherFakeApi,
|
AnotherFakeApi,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The DefaultApi service constructor.
|
||||||
|
* @property {module:api/DefaultApi}
|
||||||
|
*/
|
||||||
|
DefaultApi,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The FakeApi service constructor.
|
* The FakeApi service constructor.
|
||||||
* @property {module:api/FakeApi}
|
* @property {module:api/FakeApi}
|
||||||
|
|||||||
@@ -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 AdditionalPropertiesAnyType model module.
|
|
||||||
* @module model/AdditionalPropertiesAnyType
|
|
||||||
* @version 1.0.0
|
|
||||||
*/
|
|
||||||
class AdditionalPropertiesAnyType {
|
|
||||||
/**
|
|
||||||
* Constructs a new <code>AdditionalPropertiesAnyType</code>.
|
|
||||||
* @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 <code>AdditionalPropertiesAnyType</code> from a plain JavaScript object, optionally creating a new instance.
|
|
||||||
* Copies all relevant properties from <code>data</code> to <code>obj</code> 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 <code>AdditionalPropertiesAnyType</code> 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;
|
|
||||||
|
|
||||||
@@ -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 <code>AdditionalPropertiesArray</code>.
|
|
||||||
* @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 <code>AdditionalPropertiesArray</code> from a plain JavaScript object, optionally creating a new instance.
|
|
||||||
* Copies all relevant properties from <code>data</code> to <code>obj</code> 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 <code>AdditionalPropertiesArray</code> 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;
|
|
||||||
|
|
||||||
@@ -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 <code>AdditionalPropertiesBoolean</code>.
|
|
||||||
* @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 <code>AdditionalPropertiesBoolean</code> from a plain JavaScript object, optionally creating a new instance.
|
|
||||||
* Copies all relevant properties from <code>data</code> to <code>obj</code> 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 <code>AdditionalPropertiesBoolean</code> 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;
|
|
||||||
|
|
||||||
@@ -47,38 +47,11 @@ class AdditionalPropertiesClass {
|
|||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new AdditionalPropertiesClass();
|
obj = obj || new AdditionalPropertiesClass();
|
||||||
|
|
||||||
if (data.hasOwnProperty('map_string')) {
|
if (data.hasOwnProperty('map_property')) {
|
||||||
obj['map_string'] = ApiClient.convertToType(data['map_string'], {'String': 'String'});
|
obj['map_property'] = ApiClient.convertToType(data['map_property'], {'String': 'String'});
|
||||||
}
|
}
|
||||||
if (data.hasOwnProperty('map_number')) {
|
if (data.hasOwnProperty('map_of_map_property')) {
|
||||||
obj['map_number'] = ApiClient.convertToType(data['map_number'], {'String': 'Number'});
|
obj['map_of_map_property'] = ApiClient.convertToType(data['map_of_map_property'], {'String': {'String': 'String'}});
|
||||||
}
|
|
||||||
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;
|
return obj;
|
||||||
@@ -88,59 +61,14 @@ class AdditionalPropertiesClass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @member {Object.<String, String>} map_string
|
* @member {Object.<String, String>} map_property
|
||||||
*/
|
*/
|
||||||
AdditionalPropertiesClass.prototype['map_string'] = undefined;
|
AdditionalPropertiesClass.prototype['map_property'] = undefined;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @member {Object.<String, Number>} map_number
|
* @member {Object.<String, Object.<String, String>>} map_of_map_property
|
||||||
*/
|
*/
|
||||||
AdditionalPropertiesClass.prototype['map_number'] = undefined;
|
AdditionalPropertiesClass.prototype['map_of_map_property'] = undefined;
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {Object.<String, Number>} map_integer
|
|
||||||
*/
|
|
||||||
AdditionalPropertiesClass.prototype['map_integer'] = undefined;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {Object.<String, Boolean>} map_boolean
|
|
||||||
*/
|
|
||||||
AdditionalPropertiesClass.prototype['map_boolean'] = undefined;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {Object.<String, Array.<Number>>} map_array_integer
|
|
||||||
*/
|
|
||||||
AdditionalPropertiesClass.prototype['map_array_integer'] = undefined;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {Object.<String, Array.<Object>>} map_array_anytype
|
|
||||||
*/
|
|
||||||
AdditionalPropertiesClass.prototype['map_array_anytype'] = undefined;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {Object.<String, Object.<String, String>>} map_map_string
|
|
||||||
*/
|
|
||||||
AdditionalPropertiesClass.prototype['map_map_string'] = undefined;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {Object.<String, Object.<String, Object>>} map_map_anytype
|
|
||||||
*/
|
|
||||||
AdditionalPropertiesClass.prototype['map_map_anytype'] = undefined;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {Object} anytype_1
|
|
||||||
*/
|
|
||||||
AdditionalPropertiesClass.prototype['anytype_1'] = undefined;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {Object} anytype_2
|
|
||||||
*/
|
|
||||||
AdditionalPropertiesClass.prototype['anytype_2'] = undefined;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {Object} anytype_3
|
|
||||||
*/
|
|
||||||
AdditionalPropertiesClass.prototype['anytype_3'] = undefined;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -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 AdditionalPropertiesInteger model module.
|
|
||||||
* @module model/AdditionalPropertiesInteger
|
|
||||||
* @version 1.0.0
|
|
||||||
*/
|
|
||||||
class AdditionalPropertiesInteger {
|
|
||||||
/**
|
|
||||||
* Constructs a new <code>AdditionalPropertiesInteger</code>.
|
|
||||||
* @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 <code>AdditionalPropertiesInteger</code> from a plain JavaScript object, optionally creating a new instance.
|
|
||||||
* Copies all relevant properties from <code>data</code> to <code>obj</code> 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 <code>AdditionalPropertiesInteger</code> 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;
|
|
||||||
|
|
||||||
@@ -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 <code>AdditionalPropertiesNumber</code>.
|
|
||||||
* @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 <code>AdditionalPropertiesNumber</code> from a plain JavaScript object, optionally creating a new instance.
|
|
||||||
* Copies all relevant properties from <code>data</code> to <code>obj</code> 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 <code>AdditionalPropertiesNumber</code> 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;
|
|
||||||
|
|
||||||
@@ -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 <code>AdditionalPropertiesObject</code>.
|
|
||||||
* @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 <code>AdditionalPropertiesObject</code> from a plain JavaScript object, optionally creating a new instance.
|
|
||||||
* Copies all relevant properties from <code>data</code> to <code>obj</code> 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 <code>AdditionalPropertiesObject</code> 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;
|
|
||||||
|
|
||||||
@@ -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 <code>AdditionalPropertiesString</code>.
|
|
||||||
* @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 <code>AdditionalPropertiesString</code> from a plain JavaScript object, optionally creating a new instance.
|
|
||||||
* Copies all relevant properties from <code>data</code> to <code>obj</code> 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 <code>AdditionalPropertiesString</code> 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;
|
|
||||||
|
|
||||||
@@ -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 <code>BigCat</code>.
|
|
||||||
* @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 <code>BigCat</code> from a plain JavaScript object, optionally creating a new instance.
|
|
||||||
* Copies all relevant properties from <code>data</code> to <code>obj</code> 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 <code>BigCat</code> 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 <code>kind</code> 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;
|
|
||||||
|
|
||||||
@@ -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 <code>BigCatAllOf</code>.
|
|
||||||
* @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 <code>BigCatAllOf</code> from a plain JavaScript object, optionally creating a new instance.
|
|
||||||
* Copies all relevant properties from <code>data</code> to <code>obj</code> 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 <code>BigCatAllOf</code> 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 <code>kind</code> 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;
|
|
||||||
|
|
||||||
@@ -13,6 +13,9 @@
|
|||||||
|
|
||||||
import ApiClient from '../ApiClient';
|
import ApiClient from '../ApiClient';
|
||||||
import OuterEnum from './OuterEnum';
|
import OuterEnum from './OuterEnum';
|
||||||
|
import OuterEnumDefaultValue from './OuterEnumDefaultValue';
|
||||||
|
import OuterEnumInteger from './OuterEnumInteger';
|
||||||
|
import OuterEnumIntegerDefaultValue from './OuterEnumIntegerDefaultValue';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The EnumTest model module.
|
* The EnumTest model module.
|
||||||
@@ -65,6 +68,15 @@ class EnumTest {
|
|||||||
if (data.hasOwnProperty('outerEnum')) {
|
if (data.hasOwnProperty('outerEnum')) {
|
||||||
obj['outerEnum'] = OuterEnum.constructFromObject(data['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;
|
return obj;
|
||||||
}
|
}
|
||||||
@@ -97,6 +109,21 @@ EnumTest.prototype['enum_number'] = undefined;
|
|||||||
*/
|
*/
|
||||||
EnumTest.prototype['outerEnum'] = 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;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -94,8 +94,11 @@ class FormatTest {
|
|||||||
if (data.hasOwnProperty('password')) {
|
if (data.hasOwnProperty('password')) {
|
||||||
obj['password'] = ApiClient.convertToType(data['password'], 'String');
|
obj['password'] = ApiClient.convertToType(data['password'], 'String');
|
||||||
}
|
}
|
||||||
if (data.hasOwnProperty('BigDecimal')) {
|
if (data.hasOwnProperty('pattern_with_digits')) {
|
||||||
obj['BigDecimal'] = ApiClient.convertToType(data['BigDecimal'], 'Number');
|
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;
|
return obj;
|
||||||
@@ -170,9 +173,16 @@ FormatTest.prototype['uuid'] = undefined;
|
|||||||
FormatTest.prototype['password'] = 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;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* OpenAPI Petstore
|
* OpenAPI Petstore
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and 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).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* OpenAPI Petstore
|
* OpenAPI Petstore
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and 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).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
@@ -24,14 +24,13 @@ class TypeHolderExample {
|
|||||||
* @alias module:model/TypeHolderExample
|
* @alias module:model/TypeHolderExample
|
||||||
* @param stringItem {String}
|
* @param stringItem {String}
|
||||||
* @param numberItem {Number}
|
* @param numberItem {Number}
|
||||||
* @param floatItem {Number}
|
|
||||||
* @param integerItem {Number}
|
* @param integerItem {Number}
|
||||||
* @param boolItem {Boolean}
|
* @param boolItem {Boolean}
|
||||||
* @param arrayItem {Array.<Number>}
|
* @param arrayItem {Array.<Number>}
|
||||||
*/
|
*/
|
||||||
constructor(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem) {
|
constructor(stringItem, numberItem, integerItem, boolItem, arrayItem) {
|
||||||
|
|
||||||
TypeHolderExample.initialize(this, stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem);
|
TypeHolderExample.initialize(this, stringItem, numberItem, integerItem, boolItem, arrayItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -39,10 +38,9 @@ class TypeHolderExample {
|
|||||||
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
||||||
* Only for internal use.
|
* Only for internal use.
|
||||||
*/
|
*/
|
||||||
static initialize(obj, stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem) {
|
static initialize(obj, stringItem, numberItem, integerItem, boolItem, arrayItem) {
|
||||||
obj['string_item'] = stringItem;
|
obj['string_item'] = stringItem;
|
||||||
obj['number_item'] = numberItem;
|
obj['number_item'] = numberItem;
|
||||||
obj['float_item'] = floatItem;
|
|
||||||
obj['integer_item'] = integerItem;
|
obj['integer_item'] = integerItem;
|
||||||
obj['bool_item'] = boolItem;
|
obj['bool_item'] = boolItem;
|
||||||
obj['array_item'] = arrayItem;
|
obj['array_item'] = arrayItem;
|
||||||
@@ -65,9 +63,6 @@ class TypeHolderExample {
|
|||||||
if (data.hasOwnProperty('number_item')) {
|
if (data.hasOwnProperty('number_item')) {
|
||||||
obj['number_item'] = ApiClient.convertToType(data['number_item'], 'Number');
|
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')) {
|
if (data.hasOwnProperty('integer_item')) {
|
||||||
obj['integer_item'] = ApiClient.convertToType(data['integer_item'], 'Number');
|
obj['integer_item'] = ApiClient.convertToType(data['integer_item'], 'Number');
|
||||||
}
|
}
|
||||||
@@ -94,11 +89,6 @@ TypeHolderExample.prototype['string_item'] = undefined;
|
|||||||
*/
|
*/
|
||||||
TypeHolderExample.prototype['number_item'] = undefined;
|
TypeHolderExample.prototype['number_item'] = undefined;
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {Number} float_item
|
|
||||||
*/
|
|
||||||
TypeHolderExample.prototype['float_item'] = undefined;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @member {Number} integer_item
|
* @member {Number} integer_item
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1,295 +0,0 @@
|
|||||||
/**
|
|
||||||
* OpenAPI Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* The version of the OpenAPI document: 1.0.0
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
import ApiClient from '../ApiClient';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The XmlItem model module.
|
|
||||||
* @module model/XmlItem
|
|
||||||
* @version 1.0.0
|
|
||||||
*/
|
|
||||||
class XmlItem {
|
|
||||||
/**
|
|
||||||
* Constructs a new <code>XmlItem</code>.
|
|
||||||
* @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 <code>XmlItem</code> from a plain JavaScript object, optionally creating a new instance.
|
|
||||||
* Copies all relevant properties from <code>data</code> to <code>obj</code> 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 <code>XmlItem</code> 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.<Number>} wrapped_array
|
|
||||||
*/
|
|
||||||
XmlItem.prototype['wrapped_array'] = undefined;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {String} name_string
|
|
||||||
*/
|
|
||||||
XmlItem.prototype['name_string'] = undefined;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {Number} name_number
|
|
||||||
*/
|
|
||||||
XmlItem.prototype['name_number'] = undefined;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {Number} name_integer
|
|
||||||
*/
|
|
||||||
XmlItem.prototype['name_integer'] = undefined;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {Boolean} name_boolean
|
|
||||||
*/
|
|
||||||
XmlItem.prototype['name_boolean'] = undefined;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {Array.<Number>} name_array
|
|
||||||
*/
|
|
||||||
XmlItem.prototype['name_array'] = undefined;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {Array.<Number>} name_wrapped_array
|
|
||||||
*/
|
|
||||||
XmlItem.prototype['name_wrapped_array'] = undefined;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {String} prefix_string
|
|
||||||
*/
|
|
||||||
XmlItem.prototype['prefix_string'] = undefined;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {Number} prefix_number
|
|
||||||
*/
|
|
||||||
XmlItem.prototype['prefix_number'] = undefined;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {Number} prefix_integer
|
|
||||||
*/
|
|
||||||
XmlItem.prototype['prefix_integer'] = undefined;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {Boolean} prefix_boolean
|
|
||||||
*/
|
|
||||||
XmlItem.prototype['prefix_boolean'] = undefined;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {Array.<Number>} prefix_array
|
|
||||||
*/
|
|
||||||
XmlItem.prototype['prefix_array'] = undefined;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {Array.<Number>} prefix_wrapped_array
|
|
||||||
*/
|
|
||||||
XmlItem.prototype['prefix_wrapped_array'] = undefined;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {String} namespace_string
|
|
||||||
*/
|
|
||||||
XmlItem.prototype['namespace_string'] = undefined;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {Number} namespace_number
|
|
||||||
*/
|
|
||||||
XmlItem.prototype['namespace_number'] = undefined;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {Number} namespace_integer
|
|
||||||
*/
|
|
||||||
XmlItem.prototype['namespace_integer'] = undefined;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {Boolean} namespace_boolean
|
|
||||||
*/
|
|
||||||
XmlItem.prototype['namespace_boolean'] = undefined;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {Array.<Number>} namespace_array
|
|
||||||
*/
|
|
||||||
XmlItem.prototype['namespace_array'] = undefined;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {Array.<Number>} namespace_wrapped_array
|
|
||||||
*/
|
|
||||||
XmlItem.prototype['namespace_wrapped_array'] = undefined;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {String} prefix_ns_string
|
|
||||||
*/
|
|
||||||
XmlItem.prototype['prefix_ns_string'] = undefined;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {Number} prefix_ns_number
|
|
||||||
*/
|
|
||||||
XmlItem.prototype['prefix_ns_number'] = undefined;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {Number} prefix_ns_integer
|
|
||||||
*/
|
|
||||||
XmlItem.prototype['prefix_ns_integer'] = undefined;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {Boolean} prefix_ns_boolean
|
|
||||||
*/
|
|
||||||
XmlItem.prototype['prefix_ns_boolean'] = undefined;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {Array.<Number>} prefix_ns_array
|
|
||||||
*/
|
|
||||||
XmlItem.prototype['prefix_ns_array'] = undefined;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {Array.<Number>} prefix_ns_wrapped_array
|
|
||||||
*/
|
|
||||||
XmlItem.prototype['prefix_ns_wrapped_array'] = undefined;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
export default XmlItem;
|
|
||||||
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user