update samples

This commit is contained in:
William Cheng 2020-12-10 19:09:27 +08:00
parent a93a60b6eb
commit d20d9447a8
20 changed files with 43 additions and 51 deletions

View File

@ -7,13 +7,13 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**mapString** | **Map<String, String>** | | [optional] **mapString** | **Map<String, String>** | | [optional]
**mapNumber** | [**Map<String, BigDecimal>**](BigDecimal.md) | | [optional] **mapNumber** | **Map<String, BigDecimal>** | | [optional]
**mapInteger** | **Map<String, Integer>** | | [optional] **mapInteger** | **Map<String, Integer>** | | [optional]
**mapBoolean** | **Map<String, Boolean>** | | [optional] **mapBoolean** | **Map<String, Boolean>** | | [optional]
**mapArrayInteger** | [**Map<String, List<Integer>>**](List.md) | | [optional] **mapArrayInteger** | **Map<String, List<Integer>>** | | [optional]
**mapArrayAnytype** | [**Map<String, List<Object>>**](List.md) | | [optional] **mapArrayAnytype** | **Map<String, List<Object>>** | | [optional]
**mapMapString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional] **mapMapString** | **Map<String, Map<String, String>>** | | [optional]
**mapMapAnytype** | [**Map<String, Map<String, Object>>**](Map.md) | | [optional] **mapMapAnytype** | **Map<String, Map<String, Object>>** | | [optional]
**anytype1** | **Object** | | [optional] **anytype1** | **Object** | | [optional]
**anytype2** | **Object** | | [optional] **anytype2** | **Object** | | [optional]
**anytype3** | **Object** | | [optional] **anytype3** | **Object** | | [optional]

View File

@ -6,7 +6,7 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**arrayArrayNumber** | [**List<List<BigDecimal>>**](List.md) | | [optional] **arrayArrayNumber** | **List<List<BigDecimal>>** | | [optional]

View File

@ -6,7 +6,7 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**arrayNumber** | [**List<BigDecimal>**](BigDecimal.md) | | [optional] **arrayNumber** | **List<BigDecimal>** | | [optional]

View File

@ -7,8 +7,8 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**arrayOfString** | **List<String>** | | [optional] **arrayOfString** | **List<String>** | | [optional]
**arrayArrayOfInteger** | [**List<List<Long>>**](List.md) | | [optional] **arrayArrayOfInteger** | **List<List<Long>>** | | [optional]
**arrayArrayOfModel** | [**List<List<ReadOnlyFirst>>**](List.md) | | [optional] **arrayArrayOfModel** | **List<List<ReadOnlyFirst>>** | | [optional]

View File

@ -10,7 +10,7 @@ Name | Type | Description | Notes
**enumStringRequired** | [**EnumStringRequiredEnum**](#EnumStringRequiredEnum) | | **enumStringRequired** | [**EnumStringRequiredEnum**](#EnumStringRequiredEnum) | |
**enumInteger** | [**EnumIntegerEnum**](#EnumIntegerEnum) | | [optional] **enumInteger** | [**EnumIntegerEnum**](#EnumIntegerEnum) | | [optional]
**enumNumber** | [**EnumNumberEnum**](#EnumNumberEnum) | | [optional] **enumNumber** | [**EnumNumberEnum**](#EnumNumberEnum) | | [optional]
**outerEnum** | [**OuterEnum**](OuterEnum.md) | | [optional] **outerEnum** | **OuterEnum** | | [optional]

View File

@ -228,7 +228,7 @@ public class Example {
defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
FakeApi apiInstance = new FakeApi(defaultClient); FakeApi apiInstance = new FakeApi(defaultClient);
BigDecimal body = new BigDecimal(); // BigDecimal | Input number as post body BigDecimal body = new BigDecimal(78); // BigDecimal | Input number as post body
try { try {
BigDecimal result = apiInstance.fakeOuterNumberSerialize(body); BigDecimal result = apiInstance.fakeOuterNumberSerialize(body);
System.out.println(result); System.out.println(result);
@ -542,7 +542,7 @@ public class Example {
http_basic_test.setPassword("YOUR PASSWORD"); http_basic_test.setPassword("YOUR PASSWORD");
FakeApi apiInstance = new FakeApi(defaultClient); FakeApi apiInstance = new FakeApi(defaultClient);
BigDecimal number = new BigDecimal(); // BigDecimal | None BigDecimal number = new BigDecimal(78); // BigDecimal | None
Double _double = 3.4D; // Double | None Double _double = 3.4D; // Double | None
String patternWithoutDelimiter = "patternWithoutDelimiter_example"; // String | None String patternWithoutDelimiter = "patternWithoutDelimiter_example"; // String | None
byte[] _byte = null; // byte[] | None byte[] _byte = null; // byte[] | None
@ -553,7 +553,7 @@ public class Example {
String string = "string_example"; // String | None String string = "string_example"; // String | None
File binary = new File("/path/to/file"); // File | None File binary = new File("/path/to/file"); // File | None
LocalDate date = new LocalDate(); // LocalDate | None LocalDate date = new LocalDate(); // LocalDate | None
OffsetDateTime dateTime = new OffsetDateTime(); // OffsetDateTime | None OffsetDateTime dateTime = OffsetDateTime.now(); // OffsetDateTime | None
String password = "password_example"; // String | None String password = "password_example"; // String | None
String paramCallback = "paramCallback_example"; // String | None String paramCallback = "paramCallback_example"; // String | None
try { try {

View File

@ -9,17 +9,17 @@ Name | Type | Description | Notes
**integer** | **Integer** | | [optional] **integer** | **Integer** | | [optional]
**int32** | **Integer** | | [optional] **int32** | **Integer** | | [optional]
**int64** | **Long** | | [optional] **int64** | **Long** | | [optional]
**number** | [**BigDecimal**](BigDecimal.md) | | **number** | **BigDecimal** | |
**_float** | **Float** | | [optional] **_float** | **Float** | | [optional]
**_double** | **Double** | | [optional] **_double** | **Double** | | [optional]
**string** | **String** | | [optional] **string** | **String** | | [optional]
**_byte** | **byte[]** | | **_byte** | **byte[]** | |
**binary** | [**File**](File.md) | | [optional] **binary** | **File** | | [optional]
**date** | [**LocalDate**](LocalDate.md) | | **date** | **LocalDate** | |
**dateTime** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] **dateTime** | **OffsetDateTime** | | [optional]
**uuid** | [**UUID**](UUID.md) | | [optional] **uuid** | **UUID** | | [optional]
**password** | **String** | | **password** | **String** | |
**bigDecimal** | [**BigDecimal**](BigDecimal.md) | | [optional] **bigDecimal** | **BigDecimal** | | [optional]

View File

@ -6,7 +6,7 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional] **mapMapOfString** | **Map<String, Map<String, String>>** | | [optional]
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional] **mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
**directMap** | **Map<String, Boolean>** | | [optional] **directMap** | **Map<String, Boolean>** | | [optional]
**indirectMap** | **Map<String, Boolean>** | | [optional] **indirectMap** | **Map<String, Boolean>** | | [optional]

View File

@ -6,8 +6,8 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**uuid** | [**UUID**](UUID.md) | | [optional] **uuid** | **UUID** | | [optional]
**dateTime** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] **dateTime** | **OffsetDateTime** | | [optional]
**map** | [**Map<String, Animal>**](Animal.md) | | [optional] **map** | [**Map<String, Animal>**](Animal.md) | | [optional]

View File

@ -6,7 +6,7 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**justNumber** | [**BigDecimal**](BigDecimal.md) | | [optional] **justNumber** | **BigDecimal** | | [optional]

View File

@ -9,7 +9,7 @@ Name | Type | Description | Notes
**id** | **Long** | | [optional] **id** | **Long** | | [optional]
**petId** | **Long** | | [optional] **petId** | **Long** | | [optional]
**quantity** | **Integer** | | [optional] **quantity** | **Integer** | | [optional]
**shipDate** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] **shipDate** | **OffsetDateTime** | | [optional]
**status** | [**StatusEnum**](#StatusEnum) | Order Status | [optional] **status** | [**StatusEnum**](#StatusEnum) | Order Status | [optional]
**complete** | **Boolean** | | [optional] **complete** | **Boolean** | | [optional]

View File

@ -6,7 +6,7 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**myNumber** | [**BigDecimal**](BigDecimal.md) | | [optional] **myNumber** | **BigDecimal** | | [optional]
**myString** | **String** | | [optional] **myString** | **String** | | [optional]
**myBoolean** | **Boolean** | | [optional] **myBoolean** | **Boolean** | | [optional]

View File

@ -7,7 +7,7 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**stringItem** | **String** | | **stringItem** | **String** | |
**numberItem** | [**BigDecimal**](BigDecimal.md) | | **numberItem** | **BigDecimal** | |
**integerItem** | **Integer** | | **integerItem** | **Integer** | |
**boolItem** | **Boolean** | | **boolItem** | **Boolean** | |
**arrayItem** | **List<Integer>** | | **arrayItem** | **List<Integer>** | |

View File

@ -7,7 +7,7 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**stringItem** | **String** | | **stringItem** | **String** | |
**numberItem** | [**BigDecimal**](BigDecimal.md) | | **numberItem** | **BigDecimal** | |
**floatItem** | **Float** | | **floatItem** | **Float** | |
**integerItem** | **Integer** | | **integerItem** | **Integer** | |
**boolItem** | **Boolean** | | **boolItem** | **Boolean** | |

View File

@ -7,30 +7,30 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**attributeString** | **String** | | [optional] **attributeString** | **String** | | [optional]
**attributeNumber** | [**BigDecimal**](BigDecimal.md) | | [optional] **attributeNumber** | **BigDecimal** | | [optional]
**attributeInteger** | **Integer** | | [optional] **attributeInteger** | **Integer** | | [optional]
**attributeBoolean** | **Boolean** | | [optional] **attributeBoolean** | **Boolean** | | [optional]
**wrappedArray** | **List<Integer>** | | [optional] **wrappedArray** | **List<Integer>** | | [optional]
**nameString** | **String** | | [optional] **nameString** | **String** | | [optional]
**nameNumber** | [**BigDecimal**](BigDecimal.md) | | [optional] **nameNumber** | **BigDecimal** | | [optional]
**nameInteger** | **Integer** | | [optional] **nameInteger** | **Integer** | | [optional]
**nameBoolean** | **Boolean** | | [optional] **nameBoolean** | **Boolean** | | [optional]
**nameArray** | **List<Integer>** | | [optional] **nameArray** | **List<Integer>** | | [optional]
**nameWrappedArray** | **List<Integer>** | | [optional] **nameWrappedArray** | **List<Integer>** | | [optional]
**prefixString** | **String** | | [optional] **prefixString** | **String** | | [optional]
**prefixNumber** | [**BigDecimal**](BigDecimal.md) | | [optional] **prefixNumber** | **BigDecimal** | | [optional]
**prefixInteger** | **Integer** | | [optional] **prefixInteger** | **Integer** | | [optional]
**prefixBoolean** | **Boolean** | | [optional] **prefixBoolean** | **Boolean** | | [optional]
**prefixArray** | **List<Integer>** | | [optional] **prefixArray** | **List<Integer>** | | [optional]
**prefixWrappedArray** | **List<Integer>** | | [optional] **prefixWrappedArray** | **List<Integer>** | | [optional]
**namespaceString** | **String** | | [optional] **namespaceString** | **String** | | [optional]
**namespaceNumber** | [**BigDecimal**](BigDecimal.md) | | [optional] **namespaceNumber** | **BigDecimal** | | [optional]
**namespaceInteger** | **Integer** | | [optional] **namespaceInteger** | **Integer** | | [optional]
**namespaceBoolean** | **Boolean** | | [optional] **namespaceBoolean** | **Boolean** | | [optional]
**namespaceArray** | **List<Integer>** | | [optional] **namespaceArray** | **List<Integer>** | | [optional]
**namespaceWrappedArray** | **List<Integer>** | | [optional] **namespaceWrappedArray** | **List<Integer>** | | [optional]
**prefixNsString** | **String** | | [optional] **prefixNsString** | **String** | | [optional]
**prefixNsNumber** | [**BigDecimal**](BigDecimal.md) | | [optional] **prefixNsNumber** | **BigDecimal** | | [optional]
**prefixNsInteger** | **Integer** | | [optional] **prefixNsInteger** | **Integer** | | [optional]
**prefixNsBoolean** | **Boolean** | | [optional] **prefixNsBoolean** | **Boolean** | | [optional]
**prefixNsArray** | **List<Integer>** | | [optional] **prefixNsArray** | **List<Integer>** | | [optional]

View File

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.0.1-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists

View File

@ -82,6 +82,7 @@ esac
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
# Determine the Java command to use to start the JVM. # Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
@ -129,6 +130,7 @@ fi
if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
APP_HOME=`cygpath --path --mixed "$APP_HOME"` APP_HOME=`cygpath --path --mixed "$APP_HOME"`
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
JAVACMD=`cygpath --unix "$JAVACMD"` JAVACMD=`cygpath --unix "$JAVACMD"`
# We build the pattern for arguments to be converted via cygpath # We build the pattern for arguments to be converted via cygpath

View File

@ -29,6 +29,9 @@ if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0 set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME% set APP_HOME=%DIRNAME%
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
@ -37,7 +40,7 @@ if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1 %JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto init if "%ERRORLEVEL%" == "0" goto execute
echo. echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
@ -51,7 +54,7 @@ goto fail
set JAVA_HOME=%JAVA_HOME:"=% set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto init if exist "%JAVA_EXE%" goto execute
echo. echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
@ -61,28 +64,14 @@ echo location of your Java installation.
goto fail goto fail
:init
@rem Get command-line arguments, handling Windows variants
if not "%OS%" == "Windows_NT" goto win9xME_args
:win9xME_args
@rem Slurp the command line arguments.
set CMD_LINE_ARGS=
set _SKIP=2
:win9xME_args_slurp
if "x%~1" == "x" goto execute
set CMD_LINE_ARGS=%*
:execute :execute
@rem Setup the command line @rem Setup the command line
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
@rem Execute Gradle @rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
:end :end
@rem End local scope for the variables with windows NT shell @rem End local scope for the variables with windows NT shell

View File

@ -2187,4 +2187,5 @@ components:
http_basic_test: http_basic_test:
scheme: basic scheme: basic
type: http type: http
x-original-swagger-version: "2.0"