forked from loafle/openapi-generator-original
Update generated build files for REST Assured (#5873)
* REST Assured 4.3.0 * Jackson 2.10.3 * Gson 2.8.6, GSON-Fire 1.8.4 * Okio 1.17.5 * Joda-Time 2.10.5 * ThreeTenBP 1.4.3 * Added missing dependencies for Bean Validation * Added missing dependencies for `@Generated` annotation * Refresh REST Assured sample project
This commit is contained in:
parent
62c346f8da
commit
e82546f342
@ -27,7 +27,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/Java/libraries/rest-assured -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g java -c bin/java-petstore-rest-assured.json -o samples/client/petstore/java/rest-assured --additional-properties hideGenerationTimestamp=true --additional-properties booleanGetterPrefix=is $@"
|
ags="generate -t modules/openapi-generator/src/main/resources/Java/libraries/rest-assured -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g java -c bin/java-petstore-rest-assured.json -o samples/client/petstore/java/rest-assured --additional-properties hideGenerationTimestamp=true --additional-properties useBeanValidation=true --additional-properties performBeanValidation=true --additional-properties booleanGetterPrefix=is $@"
|
||||||
|
|
||||||
echo "Removing files and folders under samples/client/petstore/java/rest-assured/src/main"
|
echo "Removing files and folders under samples/client/petstore/java/rest-assured/src/main"
|
||||||
rm -rf samples/client/petstore/java/rest-assured/src/main
|
rm -rf samples/client/petstore/java/rest-assured/src/main
|
||||||
|
@ -248,7 +248,7 @@ CONFIG OPTIONS
|
|||||||
retrofit - HTTP client: OkHttp 2.4.0. JSON processing: Gson 2.3.1 (Retrofit 1.9.0)
|
retrofit - HTTP client: OkHttp 2.4.0. JSON processing: Gson 2.3.1 (Retrofit 1.9.0)
|
||||||
retrofit2 - HTTP client: OkHttp 2.5.0. JSON processing: Gson 2.4 (Retrofit 2.0.0-beta2)
|
retrofit2 - HTTP client: OkHttp 2.5.0. JSON processing: Gson 2.4 (Retrofit 2.0.0-beta2)
|
||||||
google-api-client - HTTP client: google-api-client 1.23.0. JSON processing: Jackson 2.8.9
|
google-api-client - HTTP client: google-api-client 1.23.0. JSON processing: Jackson 2.8.9
|
||||||
rest-assured - HTTP client: rest-assured : 4.0.0. JSON processing: Gson 2.8.5. Only for Java8
|
rest-assured - HTTP client: rest-assured : 4.3.0. JSON processing: Gson 2.8.6. Only for Java8
|
||||||
```
|
```
|
||||||
|
|
||||||
Your config file for Java can look like
|
Your config file for Java can look like
|
||||||
|
@ -28,7 +28,7 @@ sidebar_label: java
|
|||||||
|hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |false|
|
|hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |false|
|
||||||
|invokerPackage|root package for generated code| |org.openapitools.client|
|
|invokerPackage|root package for generated code| |org.openapitools.client|
|
||||||
|java8|Option. Use Java8 classes instead of third party equivalents|<dl><dt>**true**</dt><dd>Use Java 8 classes such as Base64</dd><dt>**false**</dt><dd>Various third party libraries as needed</dd></dl>|false|
|
|java8|Option. Use Java8 classes instead of third party equivalents|<dl><dt>**true**</dt><dd>Use Java 8 classes such as Base64</dd><dt>**false**</dt><dd>Various third party libraries as needed</dd></dl>|false|
|
||||||
|library|library template (sub-template) to use|<dl><dt>**jersey1**</dt><dd>HTTP client: Jersey client 1.19.x. JSON processing: Jackson 2.9.x. Enable Java6 support using '-DsupportJava6=true'. Enable gzip request encoding using '-DuseGzipFeature=true'. IMPORTANT NOTE: jersey 1.x is no longer actively maintained so please upgrade to 'jersey2' or other HTTP libaries instead.</dd><dt>**jersey2**</dt><dd>HTTP client: Jersey client 2.25.1. JSON processing: Jackson 2.9.x</dd><dt>**feign**</dt><dd>HTTP client: OpenFeign 9.x (deprecated) or 10.x (default). JSON processing: Jackson 2.9.x.</dd><dt>**okhttp-gson**</dt><dd>[DEFAULT] HTTP client: OkHttp 3.x. JSON processing: Gson 2.8.x. Enable Parcelable models on Android using '-DparcelableModel=true'. Enable gzip request encoding using '-DuseGzipFeature=true'.</dd><dt>**retrofit**</dt><dd>HTTP client: OkHttp 2.x. JSON processing: Gson 2.x (Retrofit 1.9.0). IMPORTANT NOTE: retrofit1.x is no longer actively maintained so please upgrade to 'retrofit2' instead.</dd><dt>**retrofit2**</dt><dd>HTTP client: OkHttp 3.x. JSON processing: Gson 2.x (Retrofit 2.3.0). Enable the RxJava adapter using '-DuseRxJava[2]=true'. (RxJava 1.x or 2.x)</dd><dt>**resttemplate**</dt><dd>HTTP client: Spring RestTemplate 4.x. JSON processing: Jackson 2.9.x</dd><dt>**webclient**</dt><dd>HTTP client: Spring WebClient 5.x. JSON processing: Jackson 2.9.x</dd><dt>**resteasy**</dt><dd>HTTP client: Resteasy client 3.x. JSON processing: Jackson 2.9.x</dd><dt>**vertx**</dt><dd>HTTP client: VertX client 3.x. JSON processing: Jackson 2.9.x</dd><dt>**google-api-client**</dt><dd>HTTP client: Google API client 1.x. JSON processing: Jackson 2.9.x</dd><dt>**rest-assured**</dt><dd>HTTP client: rest-assured : 4.x. JSON processing: Gson 2.x or Jackson 2.9.x. Only for Java8</dd><dt>**native**</dt><dd>HTTP client: Java native HttpClient. JSON processing: Jackson 2.9.x. Only for Java11+</dd><dt>**microprofile**</dt><dd>HTTP client: Microprofile client X.x. JSON processing: Jackson 2.9.x</dd></dl>|okhttp-gson|
|
|library|library template (sub-template) to use|<dl><dt>**jersey1**</dt><dd>HTTP client: Jersey client 1.19.x. JSON processing: Jackson 2.9.x. Enable Java6 support using '-DsupportJava6=true'. Enable gzip request encoding using '-DuseGzipFeature=true'. IMPORTANT NOTE: jersey 1.x is no longer actively maintained so please upgrade to 'jersey2' or other HTTP libaries instead.</dd><dt>**jersey2**</dt><dd>HTTP client: Jersey client 2.25.1. JSON processing: Jackson 2.9.x</dd><dt>**feign**</dt><dd>HTTP client: OpenFeign 9.x (deprecated) or 10.x (default). JSON processing: Jackson 2.9.x.</dd><dt>**okhttp-gson**</dt><dd>[DEFAULT] HTTP client: OkHttp 3.x. JSON processing: Gson 2.8.x. Enable Parcelable models on Android using '-DparcelableModel=true'. Enable gzip request encoding using '-DuseGzipFeature=true'.</dd><dt>**retrofit**</dt><dd>HTTP client: OkHttp 2.x. JSON processing: Gson 2.x (Retrofit 1.9.0). IMPORTANT NOTE: retrofit1.x is no longer actively maintained so please upgrade to 'retrofit2' instead.</dd><dt>**retrofit2**</dt><dd>HTTP client: OkHttp 3.x. JSON processing: Gson 2.x (Retrofit 2.3.0). Enable the RxJava adapter using '-DuseRxJava[2]=true'. (RxJava 1.x or 2.x)</dd><dt>**resttemplate**</dt><dd>HTTP client: Spring RestTemplate 4.x. JSON processing: Jackson 2.9.x</dd><dt>**webclient**</dt><dd>HTTP client: Spring WebClient 5.x. JSON processing: Jackson 2.9.x</dd><dt>**resteasy**</dt><dd>HTTP client: Resteasy client 3.x. JSON processing: Jackson 2.9.x</dd><dt>**vertx**</dt><dd>HTTP client: VertX client 3.x. JSON processing: Jackson 2.9.x</dd><dt>**google-api-client**</dt><dd>HTTP client: Google API client 1.x. JSON processing: Jackson 2.9.x</dd><dt>**rest-assured**</dt><dd>HTTP client: rest-assured : 4.x. JSON processing: Gson 2.x or Jackson 2.10.x. Only for Java 8</dd><dt>**native**</dt><dd>HTTP client: Java native HttpClient. JSON processing: Jackson 2.9.x. Only for Java11+</dd><dt>**microprofile**</dt><dd>HTTP client: Microprofile client X.x. JSON processing: Jackson 2.9.x</dd></dl>|okhttp-gson|
|
||||||
|licenseName|The name of the license| |Unlicense|
|
|licenseName|The name of the license| |Unlicense|
|
||||||
|licenseUrl|The URL of the license| |http://unlicense.org|
|
|licenseUrl|The URL of the license| |http://unlicense.org|
|
||||||
|modelPackage|package for generated models| |org.openapitools.client.model|
|
|modelPackage|package for generated models| |org.openapitools.client.model|
|
||||||
|
@ -153,7 +153,7 @@ public class JavaClientCodegen extends AbstractJavaCodegen
|
|||||||
supportedLibraries.put(RESTEASY, "HTTP client: Resteasy client 3.x. JSON processing: Jackson 2.9.x");
|
supportedLibraries.put(RESTEASY, "HTTP client: Resteasy client 3.x. JSON processing: Jackson 2.9.x");
|
||||||
supportedLibraries.put(VERTX, "HTTP client: VertX client 3.x. JSON processing: Jackson 2.9.x");
|
supportedLibraries.put(VERTX, "HTTP client: VertX client 3.x. JSON processing: Jackson 2.9.x");
|
||||||
supportedLibraries.put(GOOGLE_API_CLIENT, "HTTP client: Google API client 1.x. JSON processing: Jackson 2.9.x");
|
supportedLibraries.put(GOOGLE_API_CLIENT, "HTTP client: Google API client 1.x. JSON processing: Jackson 2.9.x");
|
||||||
supportedLibraries.put(REST_ASSURED, "HTTP client: rest-assured : 4.x. JSON processing: Gson 2.x or Jackson 2.9.x. Only for Java8");
|
supportedLibraries.put(REST_ASSURED, "HTTP client: rest-assured : 4.x. JSON processing: Gson 2.x or Jackson 2.10.x. Only for Java 8");
|
||||||
supportedLibraries.put(NATIVE, "HTTP client: Java native HttpClient. JSON processing: Jackson 2.9.x. Only for Java11+");
|
supportedLibraries.put(NATIVE, "HTTP client: Java native HttpClient. JSON processing: Jackson 2.9.x. Only for Java11+");
|
||||||
supportedLibraries.put(MICROPROFILE, "HTTP client: Microprofile client X.x. JSON processing: Jackson 2.9.x");
|
supportedLibraries.put(MICROPROFILE, "HTTP client: Microprofile client X.x. JSON processing: Jackson 2.9.x");
|
||||||
|
|
||||||
|
@ -96,24 +96,24 @@ if(hasProperty('target') && target == 'android') {
|
|||||||
|
|
||||||
ext {
|
ext {
|
||||||
swagger_annotations_version = "1.5.21"
|
swagger_annotations_version = "1.5.21"
|
||||||
rest_assured_version = "4.0.0"
|
rest_assured_version = "4.3.0"
|
||||||
junit_version = "4.13"
|
junit_version = "4.13"
|
||||||
{{#jackson}}
|
{{#jackson}}
|
||||||
jackson_version = "2.10.1"
|
jackson_version = "2.10.3"
|
||||||
jackson_databind_version = "2.9.10"
|
jackson_databind_version = "2.10.3"
|
||||||
jackson_databind_nullable_version = 0.2.1
|
jackson_databind_nullable_version = 0.2.1
|
||||||
{{/jackson}}
|
{{/jackson}}
|
||||||
{{#gson}}
|
{{#gson}}
|
||||||
gson_version = "2.8.5"
|
gson_version = "2.8.6"
|
||||||
gson_fire_version = "1.8.3"
|
gson_fire_version = "1.8.4"
|
||||||
{{/gson}}
|
{{/gson}}
|
||||||
{{#joda}}
|
{{#joda}}
|
||||||
jodatime_version = "2.9.9"
|
jodatime_version = "2.10.5"
|
||||||
{{/joda}}
|
{{/joda}}
|
||||||
{{#threetenbp}}
|
{{#threetenbp}}
|
||||||
threetenbp_version = "1.4.0"
|
threetenbp_version = "1.4.3"
|
||||||
{{/threetenbp}}
|
{{/threetenbp}}
|
||||||
okio_version = "1.13.0"
|
okio_version = "1.17.5"
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
@ -138,5 +138,11 @@ dependencies {
|
|||||||
compile "org.threeten:threetenbp:$threetenbp_version"
|
compile "org.threeten:threetenbp:$threetenbp_version"
|
||||||
{{/threetenbp}}
|
{{/threetenbp}}
|
||||||
compile "com.squareup.okio:okio:$okio_version"
|
compile "com.squareup.okio:okio:$okio_version"
|
||||||
|
{{#useBeanValidation}}
|
||||||
|
compile "javax.validation:validation-api:2.0.1.Final"
|
||||||
|
{{/useBeanValidation}}
|
||||||
|
{{#performBeanValidation}}
|
||||||
|
compile "org.hibernate:hibernate-validator:6.0.19.Final"
|
||||||
|
{{/performBeanValidation}}
|
||||||
testCompile "junit:junit:$junit_version"
|
testCompile "junit:junit:$junit_version"
|
||||||
}
|
}
|
||||||
|
@ -10,23 +10,29 @@ lazy val root = (project in file(".")).
|
|||||||
resolvers += Resolver.mavenLocal,
|
resolvers += Resolver.mavenLocal,
|
||||||
libraryDependencies ++= Seq(
|
libraryDependencies ++= Seq(
|
||||||
"io.swagger" % "swagger-annotations" % "1.5.21",
|
"io.swagger" % "swagger-annotations" % "1.5.21",
|
||||||
"io.rest-assured" % "scala-support" % "4.0.0",
|
"io.rest-assured" % "scala-support" % "4.3.0",
|
||||||
{{#jackson}}
|
{{#jackson}}
|
||||||
"com.fasterxml.jackson.core" % "jackson-core" % "2.9.9" % "compile",
|
"com.fasterxml.jackson.core" % "jackson-core" % "2.10.3" % "compile",
|
||||||
"com.fasterxml.jackson.core" % "jackson-annotations" % "2.9.9" % "compile",
|
"com.fasterxml.jackson.core" % "jackson-annotations" % "2.10.3" % "compile",
|
||||||
"com.fasterxml.jackson.core" % "jackson-databind" % "2.9.9" % "compile",
|
"com.fasterxml.jackson.core" % "jackson-databind" % "2.10.3" % "compile",
|
||||||
{{/jackson}}
|
{{/jackson}}
|
||||||
{{#gson}}
|
{{#gson}}
|
||||||
"com.google.code.gson" % "gson" % "2.8.5",
|
"com.google.code.gson" % "gson" % "2.8.6",
|
||||||
"io.gsonfire" % "gson-fire" % "1.8.3" % "compile",
|
"io.gsonfire" % "gson-fire" % "1.8.4" % "compile",
|
||||||
{{/gson}}
|
{{/gson}}
|
||||||
{{#joda}}
|
{{#joda}}
|
||||||
"joda-time" % "joda-time" % "2.9.9" % "compile",
|
"joda-time" % "joda-time" % "2.10.5" % "compile",
|
||||||
{{/joda}}
|
{{/joda}}
|
||||||
{{#threetenbp}}
|
{{#threetenbp}}
|
||||||
"org.threeten" % "threetenbp" % "1.4.0" % "compile",
|
"org.threeten" % "threetenbp" % "1.4.3" % "compile",
|
||||||
{{/threetenbp}}
|
{{/threetenbp}}
|
||||||
"com.squareup.okio" % "okio" % "1.13.0" % "compile",
|
"com.squareup.okio" % "okio" % "1.17.5" % "compile",
|
||||||
|
{{#useBeanValidation}}
|
||||||
|
"javax.validation" % "validation-api" % "2.0.1.Final" % "compile",
|
||||||
|
{{/useBeanValidation}}
|
||||||
|
{{#performBeanValidation}}
|
||||||
|
"org.hibernate" % "hibernate-validator" "6.0.19.Final" % "compile",
|
||||||
|
{{/performBeanValidation}}
|
||||||
"junit" % "junit" % "4.13" % "test",
|
"junit" % "junit" % "4.13" % "test",
|
||||||
"com.novocode" % "junit-interface" % "0.10" % "test"
|
"com.novocode" % "junit-interface" % "0.10" % "test"
|
||||||
)
|
)
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-enforcer-plugin</artifactId>
|
<artifactId>maven-enforcer-plugin</artifactId>
|
||||||
<version>3.0.0-M1</version>
|
<version>3.0.0-M3</version>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>enforce-maven</id>
|
<id>enforce-maven</id>
|
||||||
@ -53,7 +53,7 @@
|
|||||||
<configuration>
|
<configuration>
|
||||||
<rules>
|
<rules>
|
||||||
<requireMavenVersion>
|
<requireMavenVersion>
|
||||||
<version>2.2.0</version>
|
<version>3.0.5</version>
|
||||||
</requireMavenVersion>
|
</requireMavenVersion>
|
||||||
</rules>
|
</rules>
|
||||||
</configuration>
|
</configuration>
|
||||||
@ -63,7 +63,7 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-surefire-plugin</artifactId>
|
<artifactId>maven-surefire-plugin</artifactId>
|
||||||
<version>2.12</version>
|
<version>2.22.2</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<systemProperties>
|
<systemProperties>
|
||||||
<property>
|
<property>
|
||||||
@ -71,9 +71,8 @@
|
|||||||
<value>conf/log4j.properties</value>
|
<value>conf/log4j.properties</value>
|
||||||
</property>
|
</property>
|
||||||
</systemProperties>
|
</systemProperties>
|
||||||
<argLine>-Xms512m -Xmx1500m</argLine>
|
<reuseForks>false</reuseForks>
|
||||||
<parallel>methods</parallel>
|
<forkCount>1C</forkCount>
|
||||||
<forkMode>pertest</forkMode>
|
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
@ -111,6 +110,7 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
<artifactId>build-helper-maven-plugin</artifactId>
|
<artifactId>build-helper-maven-plugin</artifactId>
|
||||||
|
<version>3.1.0</version>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>add_sources</id>
|
<id>add_sources</id>
|
||||||
@ -141,7 +141,7 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
<version>3.6.1</version>
|
<version>3.8.1</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<source>1.8</source>
|
<source>1.8</source>
|
||||||
<target>1.8</target>
|
<target>1.8</target>
|
||||||
@ -150,7 +150,7 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-javadoc-plugin</artifactId>
|
<artifactId>maven-javadoc-plugin</artifactId>
|
||||||
<version>3.1.1</version>
|
<version>3.2.0</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<doclint>none</doclint>
|
<doclint>none</doclint>
|
||||||
</configuration>
|
</configuration>
|
||||||
@ -166,7 +166,7 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-source-plugin</artifactId>
|
<artifactId>maven-source-plugin</artifactId>
|
||||||
<version>2.2.1</version>
|
<version>3.2.0</version>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>attach-sources</id>
|
<id>attach-sources</id>
|
||||||
@ -187,7 +187,7 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-gpg-plugin</artifactId>
|
<artifactId>maven-gpg-plugin</artifactId>
|
||||||
<version>1.5</version>
|
<version>1.6</version>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>sign-artifacts</id>
|
<id>sign-artifacts</id>
|
||||||
@ -203,6 +203,20 @@
|
|||||||
</profile>
|
</profile>
|
||||||
</profiles>
|
</profiles>
|
||||||
|
|
||||||
|
{{#jackson}}
|
||||||
|
<dependencyManagement>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.fasterxml.jackson</groupId>
|
||||||
|
<artifactId>jackson-bom</artifactId>
|
||||||
|
<version>${jackson-version}</version>
|
||||||
|
<type>pom</type>
|
||||||
|
<scope>import</scope>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
</dependencyManagement>
|
||||||
|
{{/jackson}}
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>io.swagger</groupId>
|
<groupId>io.swagger</groupId>
|
||||||
@ -215,6 +229,14 @@
|
|||||||
<artifactId>jsr305</artifactId>
|
<artifactId>jsr305</artifactId>
|
||||||
<version>3.0.2</version>
|
<version>3.0.2</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
{{^hideGenerationTimestamp}}
|
||||||
|
<dependency>
|
||||||
|
<groupId>javax.annotation</groupId>
|
||||||
|
<artifactId>javax.annotation-api</artifactId>
|
||||||
|
<version>1.3.2</version>
|
||||||
|
<scope>provided</scope>
|
||||||
|
</dependency>
|
||||||
|
{{/hideGenerationTimestamp}}
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>io.rest-assured</groupId>
|
<groupId>io.rest-assured</groupId>
|
||||||
<artifactId>rest-assured</artifactId>
|
<artifactId>rest-assured</artifactId>
|
||||||
@ -253,17 +275,14 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.fasterxml.jackson.core</groupId>
|
<groupId>com.fasterxml.jackson.core</groupId>
|
||||||
<artifactId>jackson-core</artifactId>
|
<artifactId>jackson-core</artifactId>
|
||||||
<version>${jackson-version}</version>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.fasterxml.jackson.core</groupId>
|
<groupId>com.fasterxml.jackson.core</groupId>
|
||||||
<artifactId>jackson-annotations</artifactId>
|
<artifactId>jackson-annotations</artifactId>
|
||||||
<version>${jackson-version}</version>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.fasterxml.jackson.core</groupId>
|
<groupId>com.fasterxml.jackson.core</groupId>
|
||||||
<artifactId>jackson-databind</artifactId>
|
<artifactId>jackson-databind</artifactId>
|
||||||
<version>${jackson-databind-version}</version>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.openapitools</groupId>
|
<groupId>org.openapitools</groupId>
|
||||||
@ -274,21 +293,18 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.fasterxml.jackson.dataformat</groupId>
|
<groupId>com.fasterxml.jackson.dataformat</groupId>
|
||||||
<artifactId>jackson-dataformat-xml</artifactId>
|
<artifactId>jackson-dataformat-xml</artifactId>
|
||||||
<version>${jackson-version}</version>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
{{/withXml}}
|
{{/withXml}}
|
||||||
{{#joda}}
|
{{#joda}}
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.fasterxml.jackson.datatype</groupId>
|
<groupId>com.fasterxml.jackson.datatype</groupId>
|
||||||
<artifactId>jackson-datatype-joda</artifactId>
|
<artifactId>jackson-datatype-joda</artifactId>
|
||||||
<version>${jackson-version}</version>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
{{/joda}}
|
{{/joda}}
|
||||||
{{#java8}}
|
{{#java8}}
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.fasterxml.jackson.datatype</groupId>
|
<groupId>com.fasterxml.jackson.datatype</groupId>
|
||||||
<artifactId>jackson-datatype-jsr310</artifactId>
|
<artifactId>jackson-datatype-jsr310</artifactId>
|
||||||
<version>${jackson-version}</version>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
{{/java8}}
|
{{/java8}}
|
||||||
{{#threetenbp}}
|
{{#threetenbp}}
|
||||||
@ -304,6 +320,23 @@
|
|||||||
<artifactId>okio</artifactId>
|
<artifactId>okio</artifactId>
|
||||||
<version>${okio-version}</version>
|
<version>${okio-version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
{{#useBeanValidation}}
|
||||||
|
<!-- Bean Validation API support -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>javax.validation</groupId>
|
||||||
|
<artifactId>validation-api</artifactId>
|
||||||
|
<version>2.0.1.Final</version>
|
||||||
|
<scope>provided</scope>
|
||||||
|
</dependency>
|
||||||
|
{{/useBeanValidation}}
|
||||||
|
{{#performBeanValidation}}
|
||||||
|
<!-- Bean Validation Impl. used to perform BeanValidation -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.hibernate</groupId>
|
||||||
|
<artifactId>hibernate-validator</artifactId>
|
||||||
|
<version>6.0.19.Final</version>
|
||||||
|
</dependency>
|
||||||
|
{{/performBeanValidation}}
|
||||||
<!-- test dependencies -->
|
<!-- test dependencies -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>junit</groupId>
|
<groupId>junit</groupId>
|
||||||
@ -315,25 +348,23 @@
|
|||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<swagger-annotations-version>1.5.21</swagger-annotations-version>
|
<swagger-annotations-version>1.5.21</swagger-annotations-version>
|
||||||
<rest-assured.version>4.0.0</rest-assured.version>
|
<rest-assured.version>4.3.0</rest-assured.version>
|
||||||
<gson-version>2.8.5</gson-version>
|
<gson-version>2.8.6</gson-version>
|
||||||
<gson-fire-version>1.8.3</gson-fire-version>
|
<gson-fire-version>1.8.4</gson-fire-version>
|
||||||
<maven-plugin-version>1.0.0</maven-plugin-version>
|
|
||||||
{{#joda}}
|
{{#joda}}
|
||||||
<jodatime-version>2.9.9</jodatime-version>
|
<jodatime-version>2.10.5</jodatime-version>
|
||||||
{{/joda}}
|
{{/joda}}
|
||||||
{{#threetenbp}}
|
{{#threetenbp}}
|
||||||
<threetenbp-version>1.4.0</threetenbp-version>
|
<threetenbp-version>1.4.3</threetenbp-version>
|
||||||
{{/threetenbp}}
|
{{/threetenbp}}
|
||||||
{{#jackson}}
|
{{#jackson}}
|
||||||
<jackson-version>2.10.1</jackson-version>
|
<jackson-version>2.10.3</jackson-version>
|
||||||
<jackson-databind-version>2.9.10</jackson-databind-version>
|
|
||||||
<jackson-databind-nullable-version>0.2.1</jackson-databind-nullable-version>
|
<jackson-databind-nullable-version>0.2.1</jackson-databind-nullable-version>
|
||||||
{{#threetenbp}}
|
{{#threetenbp}}
|
||||||
<jackson-threetenbp-version>2.9.10</jackson-threetenbp-version>
|
<jackson-threetenbp-version>2.10.0</jackson-threetenbp-version>
|
||||||
{{/threetenbp}}
|
{{/threetenbp}}
|
||||||
{{/jackson}}
|
{{/jackson}}
|
||||||
<okio-version>1.13.0</okio-version>
|
<okio-version>1.17.5</okio-version>
|
||||||
<junit-version>4.13</junit-version>
|
<junit-version>4.13</junit-version>
|
||||||
</properties>
|
</properties>
|
||||||
</project>
|
</project>
|
||||||
|
@ -96,12 +96,12 @@ if(hasProperty('target') && target == 'android') {
|
|||||||
|
|
||||||
ext {
|
ext {
|
||||||
swagger_annotations_version = "1.5.21"
|
swagger_annotations_version = "1.5.21"
|
||||||
rest_assured_version = "4.0.0"
|
rest_assured_version = "4.3.0"
|
||||||
junit_version = "4.13"
|
junit_version = "4.13"
|
||||||
gson_version = "2.8.5"
|
gson_version = "2.8.6"
|
||||||
gson_fire_version = "1.8.3"
|
gson_fire_version = "1.8.4"
|
||||||
threetenbp_version = "1.4.0"
|
threetenbp_version = "1.4.3"
|
||||||
okio_version = "1.13.0"
|
okio_version = "1.17.5"
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
@ -112,5 +112,7 @@ dependencies {
|
|||||||
compile 'com.google.code.gson:gson:$gson_version'
|
compile 'com.google.code.gson:gson:$gson_version'
|
||||||
compile "org.threeten:threetenbp:$threetenbp_version"
|
compile "org.threeten:threetenbp:$threetenbp_version"
|
||||||
compile "com.squareup.okio:okio:$okio_version"
|
compile "com.squareup.okio:okio:$okio_version"
|
||||||
|
compile "javax.validation:validation-api:2.0.1.Final"
|
||||||
|
compile "org.hibernate:hibernate-validator:6.0.19.Final"
|
||||||
testCompile "junit:junit:$junit_version"
|
testCompile "junit:junit:$junit_version"
|
||||||
}
|
}
|
||||||
|
@ -10,11 +10,13 @@ lazy val root = (project in file(".")).
|
|||||||
resolvers += Resolver.mavenLocal,
|
resolvers += Resolver.mavenLocal,
|
||||||
libraryDependencies ++= Seq(
|
libraryDependencies ++= Seq(
|
||||||
"io.swagger" % "swagger-annotations" % "1.5.21",
|
"io.swagger" % "swagger-annotations" % "1.5.21",
|
||||||
"io.rest-assured" % "scala-support" % "4.0.0",
|
"io.rest-assured" % "scala-support" % "4.3.0",
|
||||||
"com.google.code.gson" % "gson" % "2.8.5",
|
"com.google.code.gson" % "gson" % "2.8.6",
|
||||||
"io.gsonfire" % "gson-fire" % "1.8.3" % "compile",
|
"io.gsonfire" % "gson-fire" % "1.8.4" % "compile",
|
||||||
"org.threeten" % "threetenbp" % "1.4.0" % "compile",
|
"org.threeten" % "threetenbp" % "1.4.3" % "compile",
|
||||||
"com.squareup.okio" % "okio" % "1.13.0" % "compile",
|
"com.squareup.okio" % "okio" % "1.17.5" % "compile",
|
||||||
|
"javax.validation" % "validation-api" % "2.0.1.Final" % "compile",
|
||||||
|
"org.hibernate" % "hibernate-validator" "6.0.19.Final" % "compile",
|
||||||
"junit" % "junit" % "4.13" % "test",
|
"junit" % "junit" % "4.13" % "test",
|
||||||
"com.novocode" % "junit-interface" % "0.10" % "test"
|
"com.novocode" % "junit-interface" % "0.10" % "test"
|
||||||
)
|
)
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-enforcer-plugin</artifactId>
|
<artifactId>maven-enforcer-plugin</artifactId>
|
||||||
<version>3.0.0-M1</version>
|
<version>3.0.0-M3</version>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>enforce-maven</id>
|
<id>enforce-maven</id>
|
||||||
@ -46,7 +46,7 @@
|
|||||||
<configuration>
|
<configuration>
|
||||||
<rules>
|
<rules>
|
||||||
<requireMavenVersion>
|
<requireMavenVersion>
|
||||||
<version>2.2.0</version>
|
<version>3.0.5</version>
|
||||||
</requireMavenVersion>
|
</requireMavenVersion>
|
||||||
</rules>
|
</rules>
|
||||||
</configuration>
|
</configuration>
|
||||||
@ -56,7 +56,7 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-surefire-plugin</artifactId>
|
<artifactId>maven-surefire-plugin</artifactId>
|
||||||
<version>2.12</version>
|
<version>2.22.2</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<systemProperties>
|
<systemProperties>
|
||||||
<property>
|
<property>
|
||||||
@ -64,9 +64,8 @@
|
|||||||
<value>conf/log4j.properties</value>
|
<value>conf/log4j.properties</value>
|
||||||
</property>
|
</property>
|
||||||
</systemProperties>
|
</systemProperties>
|
||||||
<argLine>-Xms512m -Xmx1500m</argLine>
|
<reuseForks>false</reuseForks>
|
||||||
<parallel>methods</parallel>
|
<forkCount>1C</forkCount>
|
||||||
<forkMode>pertest</forkMode>
|
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
@ -104,6 +103,7 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
<artifactId>build-helper-maven-plugin</artifactId>
|
<artifactId>build-helper-maven-plugin</artifactId>
|
||||||
|
<version>3.1.0</version>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>add_sources</id>
|
<id>add_sources</id>
|
||||||
@ -134,7 +134,7 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
<version>3.6.1</version>
|
<version>3.8.1</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<source>1.8</source>
|
<source>1.8</source>
|
||||||
<target>1.8</target>
|
<target>1.8</target>
|
||||||
@ -143,7 +143,7 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-javadoc-plugin</artifactId>
|
<artifactId>maven-javadoc-plugin</artifactId>
|
||||||
<version>3.1.1</version>
|
<version>3.2.0</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<doclint>none</doclint>
|
<doclint>none</doclint>
|
||||||
</configuration>
|
</configuration>
|
||||||
@ -159,7 +159,7 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-source-plugin</artifactId>
|
<artifactId>maven-source-plugin</artifactId>
|
||||||
<version>2.2.1</version>
|
<version>3.2.0</version>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>attach-sources</id>
|
<id>attach-sources</id>
|
||||||
@ -180,7 +180,7 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-gpg-plugin</artifactId>
|
<artifactId>maven-gpg-plugin</artifactId>
|
||||||
<version>1.5</version>
|
<version>1.6</version>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>sign-artifacts</id>
|
<id>sign-artifacts</id>
|
||||||
@ -196,6 +196,7 @@
|
|||||||
</profile>
|
</profile>
|
||||||
</profiles>
|
</profiles>
|
||||||
|
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>io.swagger</groupId>
|
<groupId>io.swagger</groupId>
|
||||||
@ -233,6 +234,19 @@
|
|||||||
<artifactId>okio</artifactId>
|
<artifactId>okio</artifactId>
|
||||||
<version>${okio-version}</version>
|
<version>${okio-version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<!-- Bean Validation API support -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>javax.validation</groupId>
|
||||||
|
<artifactId>validation-api</artifactId>
|
||||||
|
<version>2.0.1.Final</version>
|
||||||
|
<scope>provided</scope>
|
||||||
|
</dependency>
|
||||||
|
<!-- Bean Validation Impl. used to perform BeanValidation -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.hibernate</groupId>
|
||||||
|
<artifactId>hibernate-validator</artifactId>
|
||||||
|
<version>6.0.19.Final</version>
|
||||||
|
</dependency>
|
||||||
<!-- test dependencies -->
|
<!-- test dependencies -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>junit</groupId>
|
<groupId>junit</groupId>
|
||||||
@ -244,12 +258,11 @@
|
|||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<swagger-annotations-version>1.5.21</swagger-annotations-version>
|
<swagger-annotations-version>1.5.21</swagger-annotations-version>
|
||||||
<rest-assured.version>4.0.0</rest-assured.version>
|
<rest-assured.version>4.3.0</rest-assured.version>
|
||||||
<gson-version>2.8.5</gson-version>
|
<gson-version>2.8.6</gson-version>
|
||||||
<gson-fire-version>1.8.3</gson-fire-version>
|
<gson-fire-version>1.8.4</gson-fire-version>
|
||||||
<maven-plugin-version>1.0.0</maven-plugin-version>
|
<threetenbp-version>1.4.3</threetenbp-version>
|
||||||
<threetenbp-version>1.4.0</threetenbp-version>
|
<okio-version>1.17.5</okio-version>
|
||||||
<okio-version>1.13.0</okio-version>
|
|
||||||
<junit-version>4.13</junit-version>
|
<junit-version>4.13</junit-version>
|
||||||
</properties>
|
</properties>
|
||||||
</project>
|
</project>
|
||||||
|
@ -0,0 +1,27 @@
|
|||||||
|
package org.openapitools.client;
|
||||||
|
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
|
import javax.validation.ConstraintViolation;
|
||||||
|
import javax.validation.ValidationException;
|
||||||
|
|
||||||
|
public class BeanValidationException extends ValidationException {
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private static final long serialVersionUID = -5294733947409491364L;
|
||||||
|
Set<ConstraintViolation<Object>> violations;
|
||||||
|
|
||||||
|
public BeanValidationException(Set<ConstraintViolation<Object>> violations) {
|
||||||
|
this.violations = violations;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Set<ConstraintViolation<Object>> getViolations() {
|
||||||
|
return violations;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setViolations(Set<ConstraintViolation<Object>> violations) {
|
||||||
|
this.violations = violations;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -25,6 +25,9 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import org.hibernate.validator.constraints.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AdditionalPropertiesAnyType
|
* AdditionalPropertiesAnyType
|
||||||
|
@ -26,6 +26,9 @@ import java.io.IOException;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import org.hibernate.validator.constraints.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AdditionalPropertiesArray
|
* AdditionalPropertiesArray
|
||||||
|
@ -25,6 +25,9 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import org.hibernate.validator.constraints.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AdditionalPropertiesBoolean
|
* AdditionalPropertiesBoolean
|
||||||
|
@ -27,6 +27,9 @@ import java.math.BigDecimal;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import org.hibernate.validator.constraints.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AdditionalPropertiesClass
|
* AdditionalPropertiesClass
|
||||||
@ -128,6 +131,7 @@ public class AdditionalPropertiesClass {
|
|||||||
* @return mapNumber
|
* @return mapNumber
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
|
||||||
public Map<String, BigDecimal> getMapNumber() {
|
public Map<String, BigDecimal> getMapNumber() {
|
||||||
@ -221,6 +225,7 @@ public class AdditionalPropertiesClass {
|
|||||||
* @return mapArrayInteger
|
* @return mapArrayInteger
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
|
||||||
public Map<String, List<Integer>> getMapArrayInteger() {
|
public Map<String, List<Integer>> getMapArrayInteger() {
|
||||||
@ -252,6 +257,7 @@ public class AdditionalPropertiesClass {
|
|||||||
* @return mapArrayAnytype
|
* @return mapArrayAnytype
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
|
||||||
public Map<String, List<Object>> getMapArrayAnytype() {
|
public Map<String, List<Object>> getMapArrayAnytype() {
|
||||||
@ -283,6 +289,7 @@ public class AdditionalPropertiesClass {
|
|||||||
* @return mapMapString
|
* @return mapMapString
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
|
||||||
public Map<String, Map<String, String>> getMapMapString() {
|
public Map<String, Map<String, String>> getMapMapString() {
|
||||||
@ -314,6 +321,7 @@ public class AdditionalPropertiesClass {
|
|||||||
* @return mapMapAnytype
|
* @return mapMapAnytype
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
|
||||||
public Map<String, Map<String, Object>> getMapMapAnytype() {
|
public Map<String, Map<String, Object>> getMapMapAnytype() {
|
||||||
@ -337,6 +345,7 @@ public class AdditionalPropertiesClass {
|
|||||||
* @return anytype1
|
* @return anytype1
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
|
||||||
public Object getAnytype1() {
|
public Object getAnytype1() {
|
||||||
@ -360,6 +369,7 @@ public class AdditionalPropertiesClass {
|
|||||||
* @return anytype2
|
* @return anytype2
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
|
||||||
public Object getAnytype2() {
|
public Object getAnytype2() {
|
||||||
@ -383,6 +393,7 @@ public class AdditionalPropertiesClass {
|
|||||||
* @return anytype3
|
* @return anytype3
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
|
||||||
public Object getAnytype3() {
|
public Object getAnytype3() {
|
||||||
|
@ -25,6 +25,9 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import org.hibernate.validator.constraints.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AdditionalPropertiesInteger
|
* AdditionalPropertiesInteger
|
||||||
|
@ -26,6 +26,9 @@ import java.io.IOException;
|
|||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import org.hibernate.validator.constraints.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AdditionalPropertiesNumber
|
* AdditionalPropertiesNumber
|
||||||
|
@ -25,6 +25,9 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import org.hibernate.validator.constraints.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AdditionalPropertiesObject
|
* AdditionalPropertiesObject
|
||||||
|
@ -25,6 +25,9 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import org.hibernate.validator.constraints.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AdditionalPropertiesString
|
* AdditionalPropertiesString
|
||||||
|
@ -23,6 +23,9 @@ import com.google.gson.stream.JsonWriter;
|
|||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import org.hibernate.validator.constraints.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Animal
|
* Animal
|
||||||
@ -52,6 +55,7 @@ public class Animal {
|
|||||||
* Get className
|
* Get className
|
||||||
* @return className
|
* @return className
|
||||||
**/
|
**/
|
||||||
|
@NotNull
|
||||||
@ApiModelProperty(required = true, value = "")
|
@ApiModelProperty(required = true, value = "")
|
||||||
|
|
||||||
public String getClassName() {
|
public String getClassName() {
|
||||||
|
@ -26,6 +26,9 @@ import java.io.IOException;
|
|||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import org.hibernate.validator.constraints.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ArrayOfArrayOfNumberOnly
|
* ArrayOfArrayOfNumberOnly
|
||||||
@ -56,6 +59,7 @@ public class ArrayOfArrayOfNumberOnly {
|
|||||||
* @return arrayArrayNumber
|
* @return arrayArrayNumber
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
|
||||||
public List<List<BigDecimal>> getArrayArrayNumber() {
|
public List<List<BigDecimal>> getArrayArrayNumber() {
|
||||||
|
@ -26,6 +26,9 @@ import java.io.IOException;
|
|||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import org.hibernate.validator.constraints.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ArrayOfNumberOnly
|
* ArrayOfNumberOnly
|
||||||
@ -56,6 +59,7 @@ public class ArrayOfNumberOnly {
|
|||||||
* @return arrayNumber
|
* @return arrayNumber
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
|
||||||
public List<BigDecimal> getArrayNumber() {
|
public List<BigDecimal> getArrayNumber() {
|
||||||
|
@ -26,6 +26,9 @@ import java.io.IOException;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import org.openapitools.client.model.ReadOnlyFirst;
|
import org.openapitools.client.model.ReadOnlyFirst;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import org.hibernate.validator.constraints.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ArrayTest
|
* ArrayTest
|
||||||
@ -95,6 +98,7 @@ public class ArrayTest {
|
|||||||
* @return arrayArrayOfInteger
|
* @return arrayArrayOfInteger
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
|
||||||
public List<List<Long>> getArrayArrayOfInteger() {
|
public List<List<Long>> getArrayArrayOfInteger() {
|
||||||
@ -126,6 +130,7 @@ public class ArrayTest {
|
|||||||
* @return arrayArrayOfModel
|
* @return arrayArrayOfModel
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
|
||||||
public List<List<ReadOnlyFirst>> getArrayArrayOfModel() {
|
public List<List<ReadOnlyFirst>> getArrayArrayOfModel() {
|
||||||
|
@ -25,6 +25,9 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import org.openapitools.client.model.BigCatAllOf;
|
import org.openapitools.client.model.BigCatAllOf;
|
||||||
import org.openapitools.client.model.Cat;
|
import org.openapitools.client.model.Cat;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import org.hibernate.validator.constraints.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* BigCat
|
* BigCat
|
||||||
|
@ -23,6 +23,9 @@ import com.google.gson.stream.JsonWriter;
|
|||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import org.hibernate.validator.constraints.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* BigCatAllOf
|
* BigCatAllOf
|
||||||
|
@ -23,6 +23,9 @@ import com.google.gson.stream.JsonWriter;
|
|||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import org.hibernate.validator.constraints.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Capitalization
|
* Capitalization
|
||||||
|
@ -25,6 +25,9 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import org.openapitools.client.model.Animal;
|
import org.openapitools.client.model.Animal;
|
||||||
import org.openapitools.client.model.CatAllOf;
|
import org.openapitools.client.model.CatAllOf;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import org.hibernate.validator.constraints.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Cat
|
* Cat
|
||||||
|
@ -23,6 +23,9 @@ import com.google.gson.stream.JsonWriter;
|
|||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import org.hibernate.validator.constraints.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CatAllOf
|
* CatAllOf
|
||||||
|
@ -23,6 +23,9 @@ import com.google.gson.stream.JsonWriter;
|
|||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import org.hibernate.validator.constraints.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Category
|
* Category
|
||||||
@ -71,6 +74,7 @@ public class Category {
|
|||||||
* Get name
|
* Get name
|
||||||
* @return name
|
* @return name
|
||||||
**/
|
**/
|
||||||
|
@NotNull
|
||||||
@ApiModelProperty(required = true, value = "")
|
@ApiModelProperty(required = true, value = "")
|
||||||
|
|
||||||
public String getName() {
|
public String getName() {
|
||||||
|
@ -23,6 +23,9 @@ import com.google.gson.stream.JsonWriter;
|
|||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import org.hibernate.validator.constraints.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Model for testing model with \"_class\" property
|
* Model for testing model with \"_class\" property
|
||||||
|
@ -23,6 +23,9 @@ import com.google.gson.stream.JsonWriter;
|
|||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import org.hibernate.validator.constraints.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Client
|
* Client
|
||||||
|
@ -25,6 +25,9 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import org.openapitools.client.model.Animal;
|
import org.openapitools.client.model.Animal;
|
||||||
import org.openapitools.client.model.DogAllOf;
|
import org.openapitools.client.model.DogAllOf;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import org.hibernate.validator.constraints.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Dog
|
* Dog
|
||||||
|
@ -23,6 +23,9 @@ import com.google.gson.stream.JsonWriter;
|
|||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import org.hibernate.validator.constraints.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* DogAllOf
|
* DogAllOf
|
||||||
|
@ -25,6 +25,9 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import org.hibernate.validator.constraints.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* EnumArrays
|
* EnumArrays
|
||||||
|
@ -16,6 +16,9 @@ package org.openapitools.client.model;
|
|||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import com.google.gson.annotations.SerializedName;
|
import com.google.gson.annotations.SerializedName;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import org.hibernate.validator.constraints.*;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import com.google.gson.TypeAdapter;
|
import com.google.gson.TypeAdapter;
|
||||||
|
@ -24,6 +24,9 @@ import io.swagger.annotations.ApiModel;
|
|||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import org.openapitools.client.model.OuterEnum;
|
import org.openapitools.client.model.OuterEnum;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import org.hibernate.validator.constraints.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* EnumTest
|
* EnumTest
|
||||||
@ -276,6 +279,7 @@ public class EnumTest {
|
|||||||
* Get enumStringRequired
|
* Get enumStringRequired
|
||||||
* @return enumStringRequired
|
* @return enumStringRequired
|
||||||
**/
|
**/
|
||||||
|
@NotNull
|
||||||
@ApiModelProperty(required = true, value = "")
|
@ApiModelProperty(required = true, value = "")
|
||||||
|
|
||||||
public EnumStringRequiredEnum getEnumStringRequired() {
|
public EnumStringRequiredEnum getEnumStringRequired() {
|
||||||
@ -345,6 +349,7 @@ public class EnumTest {
|
|||||||
* @return outerEnum
|
* @return outerEnum
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
|
||||||
public OuterEnum getOuterEnum() {
|
public OuterEnum getOuterEnum() {
|
||||||
|
@ -25,6 +25,9 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import org.hibernate.validator.constraints.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FileSchemaTestClass
|
* FileSchemaTestClass
|
||||||
@ -51,6 +54,7 @@ public class FileSchemaTestClass {
|
|||||||
* @return file
|
* @return file
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
|
||||||
public java.io.File getFile() {
|
public java.io.File getFile() {
|
||||||
@ -82,6 +86,7 @@ public class FileSchemaTestClass {
|
|||||||
* @return files
|
* @return files
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
|
||||||
public List<java.io.File> getFiles() {
|
public List<java.io.File> getFiles() {
|
||||||
|
@ -28,6 +28,9 @@ import java.math.BigDecimal;
|
|||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
import org.threeten.bp.LocalDate;
|
import org.threeten.bp.LocalDate;
|
||||||
import org.threeten.bp.OffsetDateTime;
|
import org.threeten.bp.OffsetDateTime;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import org.hibernate.validator.constraints.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FormatTest
|
* FormatTest
|
||||||
@ -104,7 +107,7 @@ public class FormatTest {
|
|||||||
* @return integer
|
* @return integer
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
@ApiModelProperty(value = "")
|
@Min(10) @Max(100) @ApiModelProperty(value = "")
|
||||||
|
|
||||||
public Integer getInteger() {
|
public Integer getInteger() {
|
||||||
return integer;
|
return integer;
|
||||||
@ -129,7 +132,7 @@ public class FormatTest {
|
|||||||
* @return int32
|
* @return int32
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
@ApiModelProperty(value = "")
|
@Min(20) @Max(200) @ApiModelProperty(value = "")
|
||||||
|
|
||||||
public Integer getInt32() {
|
public Integer getInt32() {
|
||||||
return int32;
|
return int32;
|
||||||
@ -176,7 +179,9 @@ public class FormatTest {
|
|||||||
* maximum: 543.2
|
* maximum: 543.2
|
||||||
* @return number
|
* @return number
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(required = true, value = "")
|
@NotNull
|
||||||
|
@Valid
|
||||||
|
@DecimalMin("32.1") @DecimalMax("543.2") @ApiModelProperty(required = true, value = "")
|
||||||
|
|
||||||
public BigDecimal getNumber() {
|
public BigDecimal getNumber() {
|
||||||
return number;
|
return number;
|
||||||
@ -201,7 +206,7 @@ public class FormatTest {
|
|||||||
* @return _float
|
* @return _float
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
@ApiModelProperty(value = "")
|
@DecimalMin("54.3") @DecimalMax("987.6") @ApiModelProperty(value = "")
|
||||||
|
|
||||||
public Float getFloat() {
|
public Float getFloat() {
|
||||||
return _float;
|
return _float;
|
||||||
@ -226,7 +231,7 @@ public class FormatTest {
|
|||||||
* @return _double
|
* @return _double
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
@ApiModelProperty(value = "")
|
@DecimalMin("67.8") @DecimalMax("123.4") @ApiModelProperty(value = "")
|
||||||
|
|
||||||
public Double getDouble() {
|
public Double getDouble() {
|
||||||
return _double;
|
return _double;
|
||||||
@ -249,7 +254,7 @@ public class FormatTest {
|
|||||||
* @return string
|
* @return string
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
@ApiModelProperty(value = "")
|
@Pattern(regexp="/[a-z]/i") @ApiModelProperty(value = "")
|
||||||
|
|
||||||
public String getString() {
|
public String getString() {
|
||||||
return string;
|
return string;
|
||||||
@ -271,7 +276,8 @@ public class FormatTest {
|
|||||||
* Get _byte
|
* Get _byte
|
||||||
* @return _byte
|
* @return _byte
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(required = true, value = "")
|
@NotNull
|
||||||
|
@Pattern(regexp="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$") @ApiModelProperty(required = true, value = "")
|
||||||
|
|
||||||
public byte[] getByte() {
|
public byte[] getByte() {
|
||||||
return _byte;
|
return _byte;
|
||||||
@ -294,6 +300,7 @@ public class FormatTest {
|
|||||||
* @return binary
|
* @return binary
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
|
||||||
public File getBinary() {
|
public File getBinary() {
|
||||||
@ -316,6 +323,8 @@ public class FormatTest {
|
|||||||
* Get date
|
* Get date
|
||||||
* @return date
|
* @return date
|
||||||
**/
|
**/
|
||||||
|
@NotNull
|
||||||
|
@Valid
|
||||||
@ApiModelProperty(required = true, value = "")
|
@ApiModelProperty(required = true, value = "")
|
||||||
|
|
||||||
public LocalDate getDate() {
|
public LocalDate getDate() {
|
||||||
@ -339,6 +348,7 @@ public class FormatTest {
|
|||||||
* @return dateTime
|
* @return dateTime
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
|
||||||
public OffsetDateTime getDateTime() {
|
public OffsetDateTime getDateTime() {
|
||||||
@ -362,6 +372,7 @@ public class FormatTest {
|
|||||||
* @return uuid
|
* @return uuid
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
@ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "")
|
@ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "")
|
||||||
|
|
||||||
public UUID getUuid() {
|
public UUID getUuid() {
|
||||||
@ -384,7 +395,8 @@ public class FormatTest {
|
|||||||
* Get password
|
* Get password
|
||||||
* @return password
|
* @return password
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(required = true, value = "")
|
@NotNull
|
||||||
|
@Size(min=10,max=64) @ApiModelProperty(required = true, value = "")
|
||||||
|
|
||||||
public String getPassword() {
|
public String getPassword() {
|
||||||
return password;
|
return password;
|
||||||
@ -407,6 +419,7 @@ public class FormatTest {
|
|||||||
* @return bigDecimal
|
* @return bigDecimal
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
|
||||||
public BigDecimal getBigDecimal() {
|
public BigDecimal getBigDecimal() {
|
||||||
|
@ -23,6 +23,9 @@ import com.google.gson.stream.JsonWriter;
|
|||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import org.hibernate.validator.constraints.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* HasOnlyReadOnly
|
* HasOnlyReadOnly
|
||||||
|
@ -26,6 +26,9 @@ import java.io.IOException;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import org.hibernate.validator.constraints.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MapTest
|
* MapTest
|
||||||
@ -115,6 +118,7 @@ public class MapTest {
|
|||||||
* @return mapMapOfString
|
* @return mapMapOfString
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
|
||||||
public Map<String, Map<String, String>> getMapMapOfString() {
|
public Map<String, Map<String, String>> getMapMapOfString() {
|
||||||
|
@ -29,6 +29,9 @@ import java.util.Map;
|
|||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
import org.openapitools.client.model.Animal;
|
import org.openapitools.client.model.Animal;
|
||||||
import org.threeten.bp.OffsetDateTime;
|
import org.threeten.bp.OffsetDateTime;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import org.hibernate.validator.constraints.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MixedPropertiesAndAdditionalPropertiesClass
|
* MixedPropertiesAndAdditionalPropertiesClass
|
||||||
@ -59,6 +62,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
|||||||
* @return uuid
|
* @return uuid
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
|
||||||
public UUID getUuid() {
|
public UUID getUuid() {
|
||||||
@ -82,6 +86,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
|||||||
* @return dateTime
|
* @return dateTime
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
|
||||||
public OffsetDateTime getDateTime() {
|
public OffsetDateTime getDateTime() {
|
||||||
@ -113,6 +118,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
|||||||
* @return map
|
* @return map
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
|
||||||
public Map<String, Animal> getMap() {
|
public Map<String, Animal> getMap() {
|
||||||
|
@ -23,6 +23,9 @@ import com.google.gson.stream.JsonWriter;
|
|||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import org.hibernate.validator.constraints.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Model for testing model name starting with number
|
* Model for testing model name starting with number
|
||||||
|
@ -23,6 +23,9 @@ import com.google.gson.stream.JsonWriter;
|
|||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import org.hibernate.validator.constraints.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ModelApiResponse
|
* ModelApiResponse
|
||||||
|
@ -23,6 +23,9 @@ import com.google.gson.stream.JsonWriter;
|
|||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import org.hibernate.validator.constraints.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Model for testing reserved words
|
* Model for testing reserved words
|
||||||
|
@ -23,6 +23,9 @@ import com.google.gson.stream.JsonWriter;
|
|||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import org.hibernate.validator.constraints.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Model for testing model name same as property name
|
* Model for testing model name same as property name
|
||||||
@ -57,6 +60,7 @@ public class Name {
|
|||||||
* Get name
|
* Get name
|
||||||
* @return name
|
* @return name
|
||||||
**/
|
**/
|
||||||
|
@NotNull
|
||||||
@ApiModelProperty(required = true, value = "")
|
@ApiModelProperty(required = true, value = "")
|
||||||
|
|
||||||
public Integer getName() {
|
public Integer getName() {
|
||||||
|
@ -24,6 +24,9 @@ import io.swagger.annotations.ApiModel;
|
|||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import org.hibernate.validator.constraints.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* NumberOnly
|
* NumberOnly
|
||||||
@ -46,6 +49,7 @@ public class NumberOnly {
|
|||||||
* @return justNumber
|
* @return justNumber
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
|
||||||
public BigDecimal getJustNumber() {
|
public BigDecimal getJustNumber() {
|
||||||
|
@ -24,6 +24,9 @@ import io.swagger.annotations.ApiModel;
|
|||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import org.threeten.bp.OffsetDateTime;
|
import org.threeten.bp.OffsetDateTime;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import org.hibernate.validator.constraints.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Order
|
* Order
|
||||||
@ -184,6 +187,7 @@ public class Order {
|
|||||||
* @return shipDate
|
* @return shipDate
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
|
||||||
public OffsetDateTime getShipDate() {
|
public OffsetDateTime getShipDate() {
|
||||||
|
@ -24,6 +24,9 @@ import io.swagger.annotations.ApiModel;
|
|||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import org.hibernate.validator.constraints.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* OuterComposite
|
* OuterComposite
|
||||||
@ -54,6 +57,7 @@ public class OuterComposite {
|
|||||||
* @return myNumber
|
* @return myNumber
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
|
||||||
public BigDecimal getMyNumber() {
|
public BigDecimal getMyNumber() {
|
||||||
|
@ -16,6 +16,9 @@ package org.openapitools.client.model;
|
|||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import com.google.gson.annotations.SerializedName;
|
import com.google.gson.annotations.SerializedName;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import org.hibernate.validator.constraints.*;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import com.google.gson.TypeAdapter;
|
import com.google.gson.TypeAdapter;
|
||||||
|
@ -27,6 +27,9 @@ import java.util.ArrayList;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import org.openapitools.client.model.Category;
|
import org.openapitools.client.model.Category;
|
||||||
import org.openapitools.client.model.Tag;
|
import org.openapitools.client.model.Tag;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import org.hibernate.validator.constraints.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Pet
|
* Pet
|
||||||
@ -141,6 +144,7 @@ public class Pet {
|
|||||||
* @return category
|
* @return category
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
|
||||||
public Category getCategory() {
|
public Category getCategory() {
|
||||||
@ -163,6 +167,7 @@ public class Pet {
|
|||||||
* Get name
|
* Get name
|
||||||
* @return name
|
* @return name
|
||||||
**/
|
**/
|
||||||
|
@NotNull
|
||||||
@ApiModelProperty(example = "doggie", required = true, value = "")
|
@ApiModelProperty(example = "doggie", required = true, value = "")
|
||||||
|
|
||||||
public String getName() {
|
public String getName() {
|
||||||
@ -190,6 +195,7 @@ public class Pet {
|
|||||||
* Get photoUrls
|
* Get photoUrls
|
||||||
* @return photoUrls
|
* @return photoUrls
|
||||||
**/
|
**/
|
||||||
|
@NotNull
|
||||||
@ApiModelProperty(required = true, value = "")
|
@ApiModelProperty(required = true, value = "")
|
||||||
|
|
||||||
public List<String> getPhotoUrls() {
|
public List<String> getPhotoUrls() {
|
||||||
@ -221,6 +227,7 @@ public class Pet {
|
|||||||
* @return tags
|
* @return tags
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
|
||||||
public List<Tag> getTags() {
|
public List<Tag> getTags() {
|
||||||
|
@ -23,6 +23,9 @@ import com.google.gson.stream.JsonWriter;
|
|||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import org.hibernate.validator.constraints.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ReadOnlyFirst
|
* ReadOnlyFirst
|
||||||
|
@ -23,6 +23,9 @@ import com.google.gson.stream.JsonWriter;
|
|||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import org.hibernate.validator.constraints.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SpecialModelName
|
* SpecialModelName
|
||||||
|
@ -23,6 +23,9 @@ import com.google.gson.stream.JsonWriter;
|
|||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import org.hibernate.validator.constraints.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tag
|
* Tag
|
||||||
|
@ -26,6 +26,9 @@ import java.io.IOException;
|
|||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import org.hibernate.validator.constraints.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TypeHolderDefault
|
* TypeHolderDefault
|
||||||
@ -63,6 +66,7 @@ public class TypeHolderDefault {
|
|||||||
* Get stringItem
|
* Get stringItem
|
||||||
* @return stringItem
|
* @return stringItem
|
||||||
**/
|
**/
|
||||||
|
@NotNull
|
||||||
@ApiModelProperty(required = true, value = "")
|
@ApiModelProperty(required = true, value = "")
|
||||||
|
|
||||||
public String getStringItem() {
|
public String getStringItem() {
|
||||||
@ -85,6 +89,8 @@ public class TypeHolderDefault {
|
|||||||
* Get numberItem
|
* Get numberItem
|
||||||
* @return numberItem
|
* @return numberItem
|
||||||
**/
|
**/
|
||||||
|
@NotNull
|
||||||
|
@Valid
|
||||||
@ApiModelProperty(required = true, value = "")
|
@ApiModelProperty(required = true, value = "")
|
||||||
|
|
||||||
public BigDecimal getNumberItem() {
|
public BigDecimal getNumberItem() {
|
||||||
@ -107,6 +113,7 @@ public class TypeHolderDefault {
|
|||||||
* Get integerItem
|
* Get integerItem
|
||||||
* @return integerItem
|
* @return integerItem
|
||||||
**/
|
**/
|
||||||
|
@NotNull
|
||||||
@ApiModelProperty(required = true, value = "")
|
@ApiModelProperty(required = true, value = "")
|
||||||
|
|
||||||
public Integer getIntegerItem() {
|
public Integer getIntegerItem() {
|
||||||
@ -129,6 +136,7 @@ public class TypeHolderDefault {
|
|||||||
* Get boolItem
|
* Get boolItem
|
||||||
* @return boolItem
|
* @return boolItem
|
||||||
**/
|
**/
|
||||||
|
@NotNull
|
||||||
@ApiModelProperty(required = true, value = "")
|
@ApiModelProperty(required = true, value = "")
|
||||||
|
|
||||||
public Boolean isBoolItem() {
|
public Boolean isBoolItem() {
|
||||||
@ -156,6 +164,7 @@ public class TypeHolderDefault {
|
|||||||
* Get arrayItem
|
* Get arrayItem
|
||||||
* @return arrayItem
|
* @return arrayItem
|
||||||
**/
|
**/
|
||||||
|
@NotNull
|
||||||
@ApiModelProperty(required = true, value = "")
|
@ApiModelProperty(required = true, value = "")
|
||||||
|
|
||||||
public List<Integer> getArrayItem() {
|
public List<Integer> getArrayItem() {
|
||||||
|
@ -26,6 +26,9 @@ import java.io.IOException;
|
|||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import org.hibernate.validator.constraints.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TypeHolderExample
|
* TypeHolderExample
|
||||||
@ -67,6 +70,7 @@ public class TypeHolderExample {
|
|||||||
* Get stringItem
|
* Get stringItem
|
||||||
* @return stringItem
|
* @return stringItem
|
||||||
**/
|
**/
|
||||||
|
@NotNull
|
||||||
@ApiModelProperty(example = "what", required = true, value = "")
|
@ApiModelProperty(example = "what", required = true, value = "")
|
||||||
|
|
||||||
public String getStringItem() {
|
public String getStringItem() {
|
||||||
@ -89,6 +93,8 @@ public class TypeHolderExample {
|
|||||||
* Get numberItem
|
* Get numberItem
|
||||||
* @return numberItem
|
* @return numberItem
|
||||||
**/
|
**/
|
||||||
|
@NotNull
|
||||||
|
@Valid
|
||||||
@ApiModelProperty(example = "1.234", required = true, value = "")
|
@ApiModelProperty(example = "1.234", required = true, value = "")
|
||||||
|
|
||||||
public BigDecimal getNumberItem() {
|
public BigDecimal getNumberItem() {
|
||||||
@ -111,6 +117,7 @@ public class TypeHolderExample {
|
|||||||
* Get floatItem
|
* Get floatItem
|
||||||
* @return floatItem
|
* @return floatItem
|
||||||
**/
|
**/
|
||||||
|
@NotNull
|
||||||
@ApiModelProperty(example = "1.234", required = true, value = "")
|
@ApiModelProperty(example = "1.234", required = true, value = "")
|
||||||
|
|
||||||
public Float getFloatItem() {
|
public Float getFloatItem() {
|
||||||
@ -133,6 +140,7 @@ public class TypeHolderExample {
|
|||||||
* Get integerItem
|
* Get integerItem
|
||||||
* @return integerItem
|
* @return integerItem
|
||||||
**/
|
**/
|
||||||
|
@NotNull
|
||||||
@ApiModelProperty(example = "-2", required = true, value = "")
|
@ApiModelProperty(example = "-2", required = true, value = "")
|
||||||
|
|
||||||
public Integer getIntegerItem() {
|
public Integer getIntegerItem() {
|
||||||
@ -155,6 +163,7 @@ public class TypeHolderExample {
|
|||||||
* Get boolItem
|
* Get boolItem
|
||||||
* @return boolItem
|
* @return boolItem
|
||||||
**/
|
**/
|
||||||
|
@NotNull
|
||||||
@ApiModelProperty(example = "true", required = true, value = "")
|
@ApiModelProperty(example = "true", required = true, value = "")
|
||||||
|
|
||||||
public Boolean isBoolItem() {
|
public Boolean isBoolItem() {
|
||||||
@ -182,6 +191,7 @@ public class TypeHolderExample {
|
|||||||
* Get arrayItem
|
* Get arrayItem
|
||||||
* @return arrayItem
|
* @return arrayItem
|
||||||
**/
|
**/
|
||||||
|
@NotNull
|
||||||
@ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "")
|
@ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "")
|
||||||
|
|
||||||
public List<Integer> getArrayItem() {
|
public List<Integer> getArrayItem() {
|
||||||
|
@ -23,6 +23,9 @@ import com.google.gson.stream.JsonWriter;
|
|||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import org.hibernate.validator.constraints.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* User
|
* User
|
||||||
|
@ -26,6 +26,9 @@ import java.io.IOException;
|
|||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import org.hibernate.validator.constraints.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* XmlItem
|
* XmlItem
|
||||||
@ -183,6 +186,7 @@ public class XmlItem {
|
|||||||
* @return attributeNumber
|
* @return attributeNumber
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
@ApiModelProperty(example = "1.234", value = "")
|
@ApiModelProperty(example = "1.234", value = "")
|
||||||
|
|
||||||
public BigDecimal getAttributeNumber() {
|
public BigDecimal getAttributeNumber() {
|
||||||
@ -306,6 +310,7 @@ public class XmlItem {
|
|||||||
* @return nameNumber
|
* @return nameNumber
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
@ApiModelProperty(example = "1.234", value = "")
|
@ApiModelProperty(example = "1.234", value = "")
|
||||||
|
|
||||||
public BigDecimal getNameNumber() {
|
public BigDecimal getNameNumber() {
|
||||||
@ -460,6 +465,7 @@ public class XmlItem {
|
|||||||
* @return prefixNumber
|
* @return prefixNumber
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
@ApiModelProperty(example = "1.234", value = "")
|
@ApiModelProperty(example = "1.234", value = "")
|
||||||
|
|
||||||
public BigDecimal getPrefixNumber() {
|
public BigDecimal getPrefixNumber() {
|
||||||
@ -614,6 +620,7 @@ public class XmlItem {
|
|||||||
* @return namespaceNumber
|
* @return namespaceNumber
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
@ApiModelProperty(example = "1.234", value = "")
|
@ApiModelProperty(example = "1.234", value = "")
|
||||||
|
|
||||||
public BigDecimal getNamespaceNumber() {
|
public BigDecimal getNamespaceNumber() {
|
||||||
@ -768,6 +775,7 @@ public class XmlItem {
|
|||||||
* @return prefixNsNumber
|
* @return prefixNsNumber
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
@ApiModelProperty(example = "1.234", value = "")
|
@ApiModelProperty(example = "1.234", value = "")
|
||||||
|
|
||||||
public BigDecimal getPrefixNsNumber() {
|
public BigDecimal getPrefixNsNumber() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user