forked from loafle/openapi-generator-original
[java] update jakarta.validation-api to 3.0.2 (#18124)
* fix: jersey3 library fix issue that library failed in case pattern matching was used in the api. * add tests, update version * update * fix tag * fix, update samples * update build * more update * update workflow * test useJakarta --------- Co-authored-by: holomekc <30546982+holomekc@users.noreply.github.com>
This commit is contained in:
parent
de081e4edf
commit
09af44eca3
@ -4,6 +4,7 @@ library: jersey3
|
||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/java/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml
|
||||
templateDir: modules/openapi-generator/src/main/resources/Java
|
||||
additionalProperties:
|
||||
useBeanValidation: true
|
||||
artifactId: petstore-jersey3
|
||||
hideGenerationTimestamp: true
|
||||
serverPort: "8082"
|
||||
|
@ -10,3 +10,4 @@ additionalProperties:
|
||||
playVersion: play26
|
||||
artifactId: petstore-java-client-retrofit2-play26
|
||||
hideGenerationTimestamp: "true"
|
||||
useJakartaEe: "true"
|
||||
|
@ -120,6 +120,9 @@ ext {
|
||||
jackson_databind_nullable_version = "0.2.6"
|
||||
{{/openApiNullable}}
|
||||
jakarta_annotation_version = "1.3.5"
|
||||
{{#useBeanValidation}}
|
||||
bean_validation_version = "3.0.2"
|
||||
{{/useBeanValidation}}
|
||||
jersey_version = "1.19.4"
|
||||
jodatime_version = "2.9.9"
|
||||
junit_version = "4.13.2"
|
||||
@ -142,5 +145,8 @@ dependencies {
|
||||
{{/joda}}
|
||||
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jackson_version"
|
||||
implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version"
|
||||
{{#useBeanValidation}}
|
||||
implementation "jakarta.validation:jakarta.validation-api:$bean_validation_version"
|
||||
{{/useBeanValidation}}
|
||||
testImplementation "junit:junit:$junit_version"
|
||||
}
|
||||
|
@ -11,6 +11,11 @@ import {{javaxPackage}}.ws.rs.core.GenericType;
|
||||
{{#imports}}import {{import}};
|
||||
{{/imports}}
|
||||
|
||||
{{#useBeanValidation}}
|
||||
import {{javaxPackage}}.validation.constraints.*;
|
||||
import {{javaxPackage}}.validation.Valid;
|
||||
|
||||
{{/useBeanValidation}}
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.LinkedHashMap;
|
||||
|
@ -105,6 +105,9 @@ ext {
|
||||
jackson_databind_nullable_version = "0.2.6"
|
||||
{{/openApiNullable}}
|
||||
jakarta_annotation_version = "1.3.5"
|
||||
{{#useBeanValidation}}
|
||||
bean_validation_version = "3.0.2"
|
||||
{{/useBeanValidation}}
|
||||
jersey_version = "2.35"
|
||||
junit_version = "5.8.2"
|
||||
{{#hasOAuthMethods}}
|
||||
@ -140,6 +143,9 @@ dependencies {
|
||||
implementation "org.tomitribe:tomitribe-http-signatures:$tomitribe_http_signatures_version"
|
||||
{{/hasHttpSignatureMethods}}
|
||||
implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version"
|
||||
{{#useBeanValidation}}
|
||||
implementation "jakarta.validation:jakarta.validation-api:$bean_validation_version"
|
||||
{{/useBeanValidation}}
|
||||
testImplementation "org.junit.jupiter:junit-jupiter-api:$junit_version"
|
||||
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junit_version"
|
||||
}
|
||||
|
@ -406,7 +406,7 @@
|
||||
<jakarta-annotation-version>1.3.5</jakarta-annotation-version>
|
||||
{{/useJakartaEe}}
|
||||
{{#useBeanValidation}}
|
||||
<beanvalidation-version>2.0.2</beanvalidation-version>
|
||||
<beanvalidation-version>3.0.2</beanvalidation-version>
|
||||
{{/useBeanValidation}}
|
||||
<junit-version>5.10.0</junit-version>
|
||||
{{#hasHttpSignatureMethods}}
|
||||
|
@ -11,6 +11,11 @@ import {{javaxPackage}}.ws.rs.core.GenericType;
|
||||
{{#imports}}import {{import}};
|
||||
{{/imports}}
|
||||
|
||||
{{#useBeanValidation}}
|
||||
import {{javaxPackage}}.validation.constraints.*;
|
||||
import {{javaxPackage}}.validation.Valid;
|
||||
|
||||
{{/useBeanValidation}}
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.LinkedHashMap;
|
||||
|
@ -105,6 +105,9 @@ ext {
|
||||
jackson_databind_nullable_version = "0.2.6"
|
||||
{{/openApiNullable}}
|
||||
jakarta_annotation_version = "2.1.0"
|
||||
{{#useBeanValidation}}
|
||||
bean_validation_version = "3.0.2"
|
||||
{{/useBeanValidation}}
|
||||
jersey_version = "3.0.4"
|
||||
junit_version = "5.8.2"
|
||||
{{#hasOAuthMethods}}
|
||||
@ -140,6 +143,10 @@ dependencies {
|
||||
implementation "org.tomitribe:tomitribe-http-signatures:$tomitribe_http_signatures_version"
|
||||
{{/hasHttpSignatureMethods}}
|
||||
implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version"
|
||||
{{#useBeanValidation}}
|
||||
implementation "jakarta.validation:jakarta.validation-api:$bean_validation_version"
|
||||
{{/useBeanValidation}}
|
||||
|
||||
testImplementation "org.junit.jupiter:junit-jupiter-api:$junit_version"
|
||||
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junit_version"
|
||||
}
|
||||
|
@ -401,7 +401,7 @@
|
||||
<jackson-databind-nullable-version>0.2.6</jackson-databind-nullable-version>
|
||||
<jakarta-annotation-version>2.1.1</jakarta-annotation-version>
|
||||
{{#useBeanValidation}}
|
||||
<beanvalidation-version>2.0.2</beanvalidation-version>
|
||||
<beanvalidation-version>3.0.2</beanvalidation-version>
|
||||
{{/useBeanValidation}}
|
||||
<junit-version>5.10.0</junit-version>
|
||||
{{#hasHttpSignatureMethods}}
|
||||
|
@ -215,7 +215,7 @@
|
||||
<junit.version>4.13.2</junit.version>
|
||||
<logback.version>1.4.14</logback.version>
|
||||
{{#useBeanValidation}}
|
||||
<beanvalidation.version>2.0.2</beanvalidation.version>
|
||||
<beanvalidation.version>3.0.2</beanvalidation.version>
|
||||
{{/useBeanValidation}}
|
||||
<cxf.version>3.2.7</cxf.version>
|
||||
<jackson.jaxrs.version>2.15.2</jackson.jaxrs.version>
|
||||
|
@ -436,7 +436,7 @@
|
||||
<jakarta.el-version>3.0.3</jakarta.el-version>
|
||||
{{/performBeanValidation}}
|
||||
{{#useBeanValidation}}
|
||||
<beanvalidation-version>2.0.2</beanvalidation-version>
|
||||
<beanvalidation-version>3.0.2</beanvalidation-version>
|
||||
{{/useBeanValidation}}
|
||||
<junit-version>5.10.0</junit-version>
|
||||
<junit-platform-runner.version>1.10.0</junit-platform-runner.version>
|
||||
|
@ -157,7 +157,7 @@ dependencies {
|
||||
{{/joda}}
|
||||
implementation "com.squareup.okio:okio:$okio_version"
|
||||
{{#useBeanValidation}}
|
||||
implementation "jakarta.validation:jakarta.validation-api:2.0.2"
|
||||
implementation "jakarta.validation:jakarta.validation-api:3.0.2"
|
||||
{{/useBeanValidation}}
|
||||
{{#performBeanValidation}}
|
||||
implementation "org.hibernate:hibernate-validator:6.0.19.Final"
|
||||
|
@ -37,7 +37,7 @@ lazy val root = (project in file(".")).
|
||||
{{/joda}}
|
||||
"com.squareup.okio" % "okio" % "1.17.5" % "compile",
|
||||
{{#useBeanValidation}}
|
||||
"jakarta.validation" % "jakarta.validation-api" % "2.0.2" % "compile",
|
||||
"jakarta.validation" % "jakarta.validation-api" % "3.0.2" % "compile",
|
||||
{{/useBeanValidation}}
|
||||
{{#performBeanValidation}}
|
||||
"org.hibernate" % "hibernate-validator" % "6.0.19.Final" % "compile",
|
||||
|
@ -364,7 +364,7 @@
|
||||
<jakarta-annotation-version>1.3.5</jakarta-annotation-version>
|
||||
{{/useJakartaEe}}
|
||||
{{#useBeanValidation}}
|
||||
<beanvalidation-version>2.0.2</beanvalidation-version>
|
||||
<beanvalidation-version>3.0.2</beanvalidation-version>
|
||||
{{/useBeanValidation}}
|
||||
<okio-version>3.6.0</okio-version>
|
||||
<junit-version>4.13.2</junit-version>
|
||||
|
@ -374,7 +374,7 @@
|
||||
<jodatime-version>2.9.9</jodatime-version>
|
||||
{{/joda}}
|
||||
{{#useBeanValidation}}
|
||||
<beanvalidation-version>2.0.2</beanvalidation-version>
|
||||
<beanvalidation-version>3.0.2</beanvalidation-version>
|
||||
{{/useBeanValidation}}
|
||||
{{#performBeanValidation}}
|
||||
<hibernate-validator-version>5.4.3.Final</hibernate-validator-version>
|
||||
|
@ -150,7 +150,7 @@ dependencies {
|
||||
implementation "com.typesafe.play:play-ahc-ws_2.12:$play_version"
|
||||
{{/usePlayWS}}
|
||||
{{#jackson}}
|
||||
implementation "jakarta.validation:jakarta.validation-api:2.0.2"
|
||||
implementation "jakarta.validation:jakarta.validation-api:3.0.2"
|
||||
implementation "com.squareup.retrofit2:converter-jackson:$retrofit_version"
|
||||
implementation "com.fasterxml.jackson.core:jackson-core:$jackson_version"
|
||||
implementation "com.fasterxml.jackson.core:jackson-annotations:$jackson_version"
|
||||
|
@ -16,7 +16,7 @@ lazy val root = (project in file(".")).
|
||||
{{/usePlayWS}}
|
||||
{{#usePlayWS}}
|
||||
"com.typesafe.play" % "play-ahc-ws_2.12" % "2.6.7" % "compile",
|
||||
"jakarta.validation" % "jakarta.validation-api" % "2.0.2" % "compile",
|
||||
"jakarta.validation" % "jakarta.validation-api" % "3.0.2" % "compile",
|
||||
"com.squareup.retrofit2" % "converter-jackson" % "2.3.0" % "compile",
|
||||
"com.fasterxml.jackson.core" % "jackson-core" % "2.15.2" % "compile",
|
||||
"com.fasterxml.jackson.core" % "jackson-annotations" % "2.15.2" % "compile",
|
||||
|
@ -405,7 +405,7 @@
|
||||
<jakarta-annotation-version>1.3.5</jakarta-annotation-version>
|
||||
{{/useJakartaEe}}
|
||||
{{#useBeanValidation}}
|
||||
<beanvalidation-version>2.0.2</beanvalidation-version>
|
||||
<beanvalidation-version>3.0.2</beanvalidation-version>
|
||||
{{/useBeanValidation}}
|
||||
<oltu-version>1.0.1</oltu-version>
|
||||
<junit-version>4.13.2</junit-version>
|
||||
|
@ -358,9 +358,8 @@
|
||||
{{^useJakartaEe}}
|
||||
<jakarta-annotation-version>1.3.5</jakarta-annotation-version>
|
||||
{{/useJakartaEe}}
|
||||
|
||||
{{#useBeanValidation}}
|
||||
<beanvalidation-version>2.0.2</beanvalidation-version>
|
||||
<beanvalidation-version>3.0.2</beanvalidation-version>
|
||||
{{/useBeanValidation}}
|
||||
<maven-plugin-version>1.0.0</maven-plugin-version>
|
||||
<junit-version>4.13.2</junit-version>
|
||||
|
@ -1168,6 +1168,23 @@ paths:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/ArrayOfEnums'
|
||||
/fake/request-array-string:
|
||||
post:
|
||||
tags:
|
||||
- fake
|
||||
summary: Array of string
|
||||
operationId: postArrayOfString
|
||||
requestBody:
|
||||
content:
|
||||
"application/json":
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
pattern: "[A-Z0-9]+"
|
||||
responses:
|
||||
200:
|
||||
description: ok
|
||||
servers:
|
||||
- url: 'http://{server}.swagger.io:{port}/v2'
|
||||
description: petstore server
|
||||
|
@ -123,6 +123,7 @@ Class | Method | HTTP request | Description
|
||||
*FakeApi* | [**fakeOuterNumberSerialize**](docs/FakeApi.md#fakeOuterNumberSerialize) | **POST** /fake/outer/number |
|
||||
*FakeApi* | [**fakeOuterStringSerialize**](docs/FakeApi.md#fakeOuterStringSerialize) | **POST** /fake/outer/string |
|
||||
*FakeApi* | [**getArrayOfEnums**](docs/FakeApi.md#getArrayOfEnums) | **GET** /fake/array-of-enums | Array of Enums
|
||||
*FakeApi* | [**postArrayOfString**](docs/FakeApi.md#postArrayOfString) | **POST** /fake/request-array-string | Array of string
|
||||
*FakeApi* | [**testAdditionalPropertiesReference**](docs/FakeApi.md#testAdditionalPropertiesReference) | **POST** /fake/additionalProperties-reference | test referenced additionalProperties
|
||||
*FakeApi* | [**testBodyWithFileSchema**](docs/FakeApi.md#testBodyWithFileSchema) | **PUT** /fake/body-with-file-schema |
|
||||
*FakeApi* | [**testBodyWithQueryParams**](docs/FakeApi.md#testBodyWithQueryParams) | **PUT** /fake/body-with-query-params |
|
||||
|
@ -1193,6 +1193,25 @@ paths:
|
||||
tags:
|
||||
- fake
|
||||
x-accepts: application/json
|
||||
/fake/request-array-string:
|
||||
post:
|
||||
operationId: postArrayOfString
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
items:
|
||||
pattern: "[A-Z0-9]+"
|
||||
type: string
|
||||
type: array
|
||||
responses:
|
||||
"200":
|
||||
description: ok
|
||||
summary: Array of string
|
||||
tags:
|
||||
- fake
|
||||
x-content-type: application/json
|
||||
x-accepts: application/json
|
||||
components:
|
||||
requestBodies:
|
||||
UserArray:
|
||||
|
@ -103,6 +103,7 @@ ext {
|
||||
jackson_databind_version = "2.13.4.2"
|
||||
jackson_databind_nullable_version = "0.2.6"
|
||||
jakarta_annotation_version = "2.1.0"
|
||||
bean_validation_version = "3.0.2"
|
||||
jersey_version = "3.0.4"
|
||||
junit_version = "5.8.2"
|
||||
scribejava_apis_version = "8.3.1"
|
||||
@ -125,6 +126,8 @@ dependencies {
|
||||
implementation "com.github.scribejava:scribejava-apis:$scribejava_apis_version"
|
||||
implementation "org.tomitribe:tomitribe-http-signatures:$tomitribe_http_signatures_version"
|
||||
implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version"
|
||||
implementation "jakarta.validation:jakarta.validation-api:$bean_validation_version"
|
||||
|
||||
testImplementation "org.junit.jupiter:junit-jupiter-api:$junit_version"
|
||||
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junit_version"
|
||||
}
|
||||
|
@ -9,7 +9,7 @@
|
||||
|------------ | ------------- | ------------- | -------------|
|
||||
|**arrayOfString** | **List<String>** | | [optional] |
|
||||
|**arrayArrayOfInteger** | **List<List<Long>>** | | [optional] |
|
||||
|**arrayArrayOfModel** | **List<List<ReadOnlyFirst>>** | | [optional] |
|
||||
|**arrayArrayOfModel** | **List<List<@Valid ReadOnlyFirst>>** | | [optional] |
|
||||
|
||||
|
||||
|
||||
|
@ -10,6 +10,7 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
|
||||
| [**fakeOuterNumberSerialize**](FakeApi.md#fakeOuterNumberSerialize) | **POST** /fake/outer/number | |
|
||||
| [**fakeOuterStringSerialize**](FakeApi.md#fakeOuterStringSerialize) | **POST** /fake/outer/string | |
|
||||
| [**getArrayOfEnums**](FakeApi.md#getArrayOfEnums) | **GET** /fake/array-of-enums | Array of Enums |
|
||||
| [**postArrayOfString**](FakeApi.md#postArrayOfString) | **POST** /fake/request-array-string | Array of string |
|
||||
| [**testAdditionalPropertiesReference**](FakeApi.md#testAdditionalPropertiesReference) | **POST** /fake/additionalProperties-reference | test referenced additionalProperties |
|
||||
| [**testBodyWithFileSchema**](FakeApi.md#testBodyWithFileSchema) | **PUT** /fake/body-with-file-schema | |
|
||||
| [**testBodyWithQueryParams**](FakeApi.md#testBodyWithQueryParams) | **PUT** /fake/body-with-query-params | |
|
||||
@ -404,6 +405,68 @@ No authorization required
|
||||
| **200** | Got named array of enums | - |
|
||||
|
||||
|
||||
## postArrayOfString
|
||||
|
||||
> postArrayOfString(requestBody)
|
||||
|
||||
Array of string
|
||||
|
||||
### Example
|
||||
|
||||
```java
|
||||
// Import classes:
|
||||
import org.openapitools.client.ApiClient;
|
||||
import org.openapitools.client.ApiException;
|
||||
import org.openapitools.client.Configuration;
|
||||
import org.openapitools.client.model.*;
|
||||
import org.openapitools.client.api.FakeApi;
|
||||
|
||||
public class Example {
|
||||
public static void main(String[] args) {
|
||||
ApiClient defaultClient = Configuration.getDefaultApiClient();
|
||||
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
||||
|
||||
FakeApi apiInstance = new FakeApi(defaultClient);
|
||||
List<@Pattern(regexp = "[A-Z0-9]+")String> requestBody = Arrays.asList(); // List<@Pattern(regexp = "[A-Z0-9]+")String> |
|
||||
try {
|
||||
apiInstance.postArrayOfString(requestBody);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling FakeApi#postArrayOfString");
|
||||
System.err.println("Status code: " + e.getCode());
|
||||
System.err.println("Reason: " + e.getResponseBody());
|
||||
System.err.println("Response headers: " + e.getResponseHeaders());
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
| Name | Type | Description | Notes |
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **requestBody** | **List<String>**| | [optional] |
|
||||
|
||||
### Return type
|
||||
|
||||
null (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: Not defined
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | ok | - |
|
||||
|
||||
|
||||
## testAdditionalPropertiesReference
|
||||
|
||||
> testAdditionalPropertiesReference(requestBody)
|
||||
|
@ -103,7 +103,7 @@ public class Example {
|
||||
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
||||
|
||||
UserApi apiInstance = new UserApi(defaultClient);
|
||||
List<User> user = Arrays.asList(); // List<User> | List of user object
|
||||
List<@Valid User> user = Arrays.asList(); // List<@Valid User> | List of user object
|
||||
try {
|
||||
apiInstance.createUsersWithArrayInput(user);
|
||||
} catch (ApiException e) {
|
||||
@ -167,7 +167,7 @@ public class Example {
|
||||
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
||||
|
||||
UserApi apiInstance = new UserApi(defaultClient);
|
||||
List<User> user = Arrays.asList(); // List<User> | List of user object
|
||||
List<@Valid User> user = Arrays.asList(); // List<@Valid User> | List of user object
|
||||
try {
|
||||
apiInstance.createUsersWithListInput(user);
|
||||
} catch (ApiException e) {
|
||||
|
@ -317,6 +317,13 @@
|
||||
<artifactId>scribejava-apis</artifactId>
|
||||
<version>${scribejava-apis-version}</version>
|
||||
</dependency>
|
||||
<!-- Bean Validation API support -->
|
||||
<dependency>
|
||||
<groupId>jakarta.validation</groupId>
|
||||
<artifactId>jakarta.validation-api</artifactId>
|
||||
<version>${beanvalidation-version}</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>jakarta.annotation</groupId>
|
||||
<artifactId>jakarta.annotation-api</artifactId>
|
||||
@ -343,6 +350,7 @@
|
||||
<jackson-databind-version>2.15.2</jackson-databind-version>
|
||||
<jackson-databind-nullable-version>0.2.6</jackson-databind-nullable-version>
|
||||
<jakarta-annotation-version>2.1.1</jakarta-annotation-version>
|
||||
<beanvalidation-version>3.0.2</beanvalidation-version>
|
||||
<junit-version>5.10.0</junit-version>
|
||||
<http-signature-version>1.8</http-signature-version>
|
||||
<scribejava-apis-version>8.3.3</scribejava-apis-version>
|
||||
|
@ -10,6 +10,9 @@ import jakarta.ws.rs.core.GenericType;
|
||||
|
||||
import org.openapitools.client.model.Client;
|
||||
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.LinkedHashMap;
|
||||
|
@ -10,6 +10,9 @@ import jakarta.ws.rs.core.GenericType;
|
||||
|
||||
import org.openapitools.client.model.FooGetDefaultResponse;
|
||||
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.LinkedHashMap;
|
||||
|
@ -20,6 +20,9 @@ import org.openapitools.client.model.OuterEnum;
|
||||
import org.openapitools.client.model.TestInlineFreeformAdditionalPropertiesRequest;
|
||||
import org.openapitools.client.model.User;
|
||||
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.LinkedHashMap;
|
||||
@ -268,6 +271,40 @@ public class FakeApi {
|
||||
new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType,
|
||||
null, localVarReturnType, false);
|
||||
}
|
||||
/**
|
||||
* Array of string
|
||||
*
|
||||
* @param requestBody (optional)
|
||||
* @throws ApiException if fails to make API call
|
||||
* @http.response.details
|
||||
<table summary="Response Details" border="1">
|
||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
||||
<tr><td> 200 </td><td> ok </td><td> - </td></tr>
|
||||
</table>
|
||||
*/
|
||||
public void postArrayOfString(List<@Pattern(regexp = "[A-Z0-9]+")String> requestBody) throws ApiException {
|
||||
postArrayOfStringWithHttpInfo(requestBody);
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of string
|
||||
*
|
||||
* @param requestBody (optional)
|
||||
* @return ApiResponse<Void>
|
||||
* @throws ApiException if fails to make API call
|
||||
* @http.response.details
|
||||
<table summary="Response Details" border="1">
|
||||
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
|
||||
<tr><td> 200 </td><td> ok </td><td> - </td></tr>
|
||||
</table>
|
||||
*/
|
||||
public ApiResponse<Void> postArrayOfStringWithHttpInfo(List<@Pattern(regexp = "[A-Z0-9]+")String> requestBody) throws ApiException {
|
||||
String localVarAccept = apiClient.selectHeaderAccept();
|
||||
String localVarContentType = apiClient.selectHeaderContentType("application/json");
|
||||
return apiClient.invokeAPI("FakeApi.postArrayOfString", "/fake/request-array-string", "POST", new ArrayList<>(), requestBody,
|
||||
new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType,
|
||||
null, null, false);
|
||||
}
|
||||
/**
|
||||
* test referenced additionalProperties
|
||||
*
|
||||
|
@ -10,6 +10,9 @@ import jakarta.ws.rs.core.GenericType;
|
||||
|
||||
import org.openapitools.client.model.Client;
|
||||
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.LinkedHashMap;
|
||||
|
@ -12,6 +12,9 @@ import java.io.File;
|
||||
import org.openapitools.client.model.ModelApiResponse;
|
||||
import org.openapitools.client.model.Pet;
|
||||
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.LinkedHashMap;
|
||||
|
@ -10,6 +10,9 @@ import jakarta.ws.rs.core.GenericType;
|
||||
|
||||
import org.openapitools.client.model.Order;
|
||||
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.LinkedHashMap;
|
||||
|
@ -11,6 +11,9 @@ import jakarta.ws.rs.core.GenericType;
|
||||
import java.time.OffsetDateTime;
|
||||
import org.openapitools.client.model.User;
|
||||
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.LinkedHashMap;
|
||||
@ -97,7 +100,7 @@ public class UserApi {
|
||||
<tr><td> 0 </td><td> successful operation </td><td> - </td></tr>
|
||||
</table>
|
||||
*/
|
||||
public void createUsersWithArrayInput(List<User> user) throws ApiException {
|
||||
public void createUsersWithArrayInput(List<@Valid User> user) throws ApiException {
|
||||
createUsersWithArrayInputWithHttpInfo(user);
|
||||
}
|
||||
|
||||
@ -113,7 +116,7 @@ public class UserApi {
|
||||
<tr><td> 0 </td><td> successful operation </td><td> - </td></tr>
|
||||
</table>
|
||||
*/
|
||||
public ApiResponse<Void> createUsersWithArrayInputWithHttpInfo(List<User> user) throws ApiException {
|
||||
public ApiResponse<Void> createUsersWithArrayInputWithHttpInfo(List<@Valid User> user) throws ApiException {
|
||||
// Check required parameters
|
||||
if (user == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'user' when calling createUsersWithArrayInput");
|
||||
@ -136,7 +139,7 @@ public class UserApi {
|
||||
<tr><td> 0 </td><td> successful operation </td><td> - </td></tr>
|
||||
</table>
|
||||
*/
|
||||
public void createUsersWithListInput(List<User> user) throws ApiException {
|
||||
public void createUsersWithListInput(List<@Valid User> user) throws ApiException {
|
||||
createUsersWithListInputWithHttpInfo(user);
|
||||
}
|
||||
|
||||
@ -152,7 +155,7 @@ public class UserApi {
|
||||
<tr><td> 0 </td><td> successful operation </td><td> - </td></tr>
|
||||
</table>
|
||||
*/
|
||||
public ApiResponse<Void> createUsersWithListInputWithHttpInfo(List<User> user) throws ApiException {
|
||||
public ApiResponse<Void> createUsersWithListInputWithHttpInfo(List<@Valid User> user) throws ApiException {
|
||||
// Check required parameters
|
||||
if (user == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'user' when calling createUsersWithListInput");
|
||||
|
@ -29,6 +29,8 @@ import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import org.openapitools.jackson.nullable.JsonNullable;
|
||||
import java.util.NoSuchElementException;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
@ -92,6 +94,7 @@ public class AdditionalPropertiesClass {
|
||||
* @return mapProperty
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_MAP_PROPERTY)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -125,6 +128,8 @@ public class AdditionalPropertiesClass {
|
||||
* @return mapOfMapProperty
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
@Valid
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_MAP_OF_MAP_PROPERTY)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -150,6 +155,7 @@ public class AdditionalPropertiesClass {
|
||||
* @return anytype1
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonIgnore
|
||||
|
||||
public Object getAnytype1() {
|
||||
@ -183,6 +189,7 @@ public class AdditionalPropertiesClass {
|
||||
* @return mapWithUndeclaredPropertiesAnytype1
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE1)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -208,6 +215,7 @@ public class AdditionalPropertiesClass {
|
||||
* @return mapWithUndeclaredPropertiesAnytype2
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE2)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -241,6 +249,7 @@ public class AdditionalPropertiesClass {
|
||||
* @return mapWithUndeclaredPropertiesAnytype3
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE3)
|
||||
@JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -266,6 +275,7 @@ public class AdditionalPropertiesClass {
|
||||
* @return emptyMap
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_EMPTY_MAP)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -299,6 +309,7 @@ public class AdditionalPropertiesClass {
|
||||
* @return mapWithUndeclaredPropertiesString
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_STRING)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
|
@ -26,6 +26,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Arrays;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
@ -67,6 +69,8 @@ public class Animal {
|
||||
* @return className
|
||||
**/
|
||||
@jakarta.annotation.Nonnull
|
||||
@NotNull
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_CLASS_NAME)
|
||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||
|
||||
@ -92,6 +96,7 @@ public class Animal {
|
||||
* @return color
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_COLOR)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
|
@ -23,6 +23,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Arrays;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
@ -55,6 +57,7 @@ public class Apple {
|
||||
* @return cultivar
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
@Pattern(regexp="^[a-zA-Z\\s]*$")
|
||||
@JsonProperty(JSON_PROPERTY_CULTIVAR)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -80,6 +83,7 @@ public class Apple {
|
||||
* @return origin
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
@Pattern(regexp="/^[A-Z\\s]*$/i")
|
||||
@JsonProperty(JSON_PROPERTY_ORIGIN)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
|
@ -23,6 +23,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Arrays;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
@ -55,6 +57,8 @@ public class AppleReq {
|
||||
* @return cultivar
|
||||
**/
|
||||
@jakarta.annotation.Nonnull
|
||||
@NotNull
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_CULTIVAR)
|
||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||
|
||||
@ -80,6 +84,7 @@ public class AppleReq {
|
||||
* @return mealy
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_MEALY)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
|
@ -26,6 +26,8 @@ import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
@ -61,6 +63,8 @@ public class ArrayOfArrayOfNumberOnly {
|
||||
* @return arrayArrayNumber
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
@Valid
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
|
@ -26,6 +26,8 @@ import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
@ -61,6 +63,8 @@ public class ArrayOfNumberOnly {
|
||||
* @return arrayNumber
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
@Valid
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_NUMBER)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
|
@ -26,6 +26,8 @@ import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import org.openapitools.client.model.ReadOnlyFirst;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
@ -46,7 +48,7 @@ public class ArrayTest {
|
||||
private List<List<Long>> arrayArrayOfInteger = new ArrayList<>();
|
||||
|
||||
public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model";
|
||||
private List<List<ReadOnlyFirst>> arrayArrayOfModel = new ArrayList<>();
|
||||
private List<List<@Valid ReadOnlyFirst>> arrayArrayOfModel = new ArrayList<>();
|
||||
|
||||
public ArrayTest() {
|
||||
}
|
||||
@ -69,6 +71,7 @@ public class ArrayTest {
|
||||
* @return arrayOfString
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -102,6 +105,8 @@ public class ArrayTest {
|
||||
* @return arrayArrayOfInteger
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
@Valid
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -117,12 +122,12 @@ public class ArrayTest {
|
||||
}
|
||||
|
||||
|
||||
public ArrayTest arrayArrayOfModel(List<List<ReadOnlyFirst>> arrayArrayOfModel) {
|
||||
public ArrayTest arrayArrayOfModel(List<List<@Valid ReadOnlyFirst>> arrayArrayOfModel) {
|
||||
this.arrayArrayOfModel = arrayArrayOfModel;
|
||||
return this;
|
||||
}
|
||||
|
||||
public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
|
||||
public ArrayTest addArrayArrayOfModelItem(List<@Valid ReadOnlyFirst> arrayArrayOfModelItem) {
|
||||
if (this.arrayArrayOfModel == null) {
|
||||
this.arrayArrayOfModel = new ArrayList<>();
|
||||
}
|
||||
@ -135,17 +140,19 @@ public class ArrayTest {
|
||||
* @return arrayArrayOfModel
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
@Valid
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
public List<List<ReadOnlyFirst>> getArrayArrayOfModel() {
|
||||
public List<List<@Valid ReadOnlyFirst>> getArrayArrayOfModel() {
|
||||
return arrayArrayOfModel;
|
||||
}
|
||||
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setArrayArrayOfModel(List<List<ReadOnlyFirst>> arrayArrayOfModel) {
|
||||
public void setArrayArrayOfModel(List<List<@Valid ReadOnlyFirst>> arrayArrayOfModel) {
|
||||
this.arrayArrayOfModel = arrayArrayOfModel;
|
||||
}
|
||||
|
||||
|
@ -24,6 +24,8 @@ import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Arrays;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
@ -52,6 +54,8 @@ public class Banana {
|
||||
* @return lengthCm
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
@Valid
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_LENGTH_CM)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
|
@ -24,6 +24,8 @@ import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Arrays;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
@ -56,6 +58,9 @@ public class BananaReq {
|
||||
* @return lengthCm
|
||||
**/
|
||||
@jakarta.annotation.Nonnull
|
||||
@NotNull
|
||||
@Valid
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_LENGTH_CM)
|
||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||
|
||||
@ -81,6 +86,7 @@ public class BananaReq {
|
||||
* @return sweet
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_SWEET)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
|
@ -23,6 +23,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Arrays;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
@ -50,6 +52,8 @@ public class BasquePig {
|
||||
* @return className
|
||||
**/
|
||||
@jakarta.annotation.Nonnull
|
||||
@NotNull
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_CLASS_NAME)
|
||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||
|
||||
|
@ -23,6 +23,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Arrays;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
@ -70,6 +72,7 @@ public class Capitalization {
|
||||
* @return smallCamel
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_SMALL_CAMEL)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -95,6 +98,7 @@ public class Capitalization {
|
||||
* @return capitalCamel
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -120,6 +124,7 @@ public class Capitalization {
|
||||
* @return smallSnake
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_SMALL_SNAKE)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -145,6 +150,7 @@ public class Capitalization {
|
||||
* @return capitalSnake
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -170,6 +176,7 @@ public class Capitalization {
|
||||
* @return scAETHFlowPoints
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -195,6 +202,7 @@ public class Capitalization {
|
||||
* @return ATT_NAME
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
|
@ -31,6 +31,8 @@ import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Arrays;
|
||||
import org.openapitools.client.model.Animal;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
@ -64,6 +66,7 @@ public class Cat extends Animal {
|
||||
* @return declawed
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_DECLAWED)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
|
@ -23,6 +23,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Arrays;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
@ -54,6 +56,7 @@ public class Category {
|
||||
* @return id
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ID)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -79,6 +82,8 @@ public class Category {
|
||||
* @return name
|
||||
**/
|
||||
@jakarta.annotation.Nonnull
|
||||
@NotNull
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||
|
||||
|
@ -33,6 +33,8 @@ import org.openapitools.client.model.ParentPet;
|
||||
import java.util.Set;
|
||||
import java.util.HashSet;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
@ -70,6 +72,7 @@ public class ChildCat extends ParentPet {
|
||||
* @return name
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -103,6 +106,7 @@ public class ChildCat extends ParentPet {
|
||||
* @return petType
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_PET_TYPE)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
|
@ -23,6 +23,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Arrays;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
@ -50,6 +52,7 @@ public class ClassModel {
|
||||
* @return propertyClass
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_PROPERTY_CLASS)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
|
@ -23,6 +23,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Arrays;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
@ -50,6 +52,7 @@ public class Client {
|
||||
* @return client
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_CLIENT)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
|
@ -27,6 +27,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Arrays;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
@ -58,6 +60,8 @@ public class ComplexQuadrilateral {
|
||||
* @return shapeType
|
||||
**/
|
||||
@jakarta.annotation.Nonnull
|
||||
@NotNull
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_SHAPE_TYPE)
|
||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||
|
||||
@ -83,6 +87,8 @@ public class ComplexQuadrilateral {
|
||||
* @return quadrilateralType
|
||||
**/
|
||||
@jakarta.annotation.Nonnull
|
||||
@NotNull
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE)
|
||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||
|
||||
|
@ -23,6 +23,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Arrays;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
@ -50,6 +52,8 @@ public class DanishPig {
|
||||
* @return className
|
||||
**/
|
||||
@jakarta.annotation.Nonnull
|
||||
@NotNull
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_CLASS_NAME)
|
||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||
|
||||
|
@ -23,6 +23,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Arrays;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
@ -52,6 +54,7 @@ public class DeprecatedObject {
|
||||
* @return name
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
|
@ -31,6 +31,8 @@ import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Arrays;
|
||||
import org.openapitools.client.model.Animal;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
@ -64,6 +66,7 @@ public class Dog extends Animal {
|
||||
* @return breed
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_BREED)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
|
@ -37,6 +37,8 @@ import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import org.openapitools.jackson.nullable.JsonNullable;
|
||||
import java.util.NoSuchElementException;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
@ -76,6 +78,8 @@ public class Drawing {
|
||||
* @return mainShape
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
@Valid
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_MAIN_SHAPE)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -101,6 +105,8 @@ public class Drawing {
|
||||
* @return shapeOrNull
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
@Valid
|
||||
|
||||
@JsonIgnore
|
||||
|
||||
public ShapeOrNull getShapeOrNull() {
|
||||
@ -134,6 +140,8 @@ public class Drawing {
|
||||
* @return nullableShape
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
@Valid
|
||||
|
||||
@JsonIgnore
|
||||
|
||||
public NullableShape getNullableShape() {
|
||||
@ -175,6 +183,8 @@ public class Drawing {
|
||||
* @return shapes
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
@Valid
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_SHAPES)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
|
@ -25,6 +25,8 @@ import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
@ -126,6 +128,7 @@ public class EnumArrays {
|
||||
* @return justSymbol
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_JUST_SYMBOL)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -159,6 +162,7 @@ public class EnumArrays {
|
||||
* @return arrayEnum
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_ENUM)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
|
@ -17,6 +17,8 @@ import java.util.Objects;
|
||||
import java.util.Map;
|
||||
import java.util.HashMap;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
|
@ -31,6 +31,8 @@ import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import org.openapitools.jackson.nullable.JsonNullable;
|
||||
import java.util.NoSuchElementException;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
@ -270,6 +272,7 @@ public class EnumTest {
|
||||
* @return enumString
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ENUM_STRING)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -295,6 +298,8 @@ public class EnumTest {
|
||||
* @return enumStringRequired
|
||||
**/
|
||||
@jakarta.annotation.Nonnull
|
||||
@NotNull
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED)
|
||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||
|
||||
@ -320,6 +325,7 @@ public class EnumTest {
|
||||
* @return enumInteger
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ENUM_INTEGER)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -345,6 +351,7 @@ public class EnumTest {
|
||||
* @return enumIntegerOnly
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ENUM_INTEGER_ONLY)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -370,6 +377,7 @@ public class EnumTest {
|
||||
* @return enumNumber
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ENUM_NUMBER)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -395,6 +403,8 @@ public class EnumTest {
|
||||
* @return outerEnum
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
@Valid
|
||||
|
||||
@JsonIgnore
|
||||
|
||||
public OuterEnum getOuterEnum() {
|
||||
@ -428,6 +438,8 @@ public class EnumTest {
|
||||
* @return outerEnumInteger
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
@Valid
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -453,6 +465,8 @@ public class EnumTest {
|
||||
* @return outerEnumDefaultValue
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
@Valid
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -478,6 +492,8 @@ public class EnumTest {
|
||||
* @return outerEnumIntegerDefaultValue
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
@Valid
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
|
@ -27,6 +27,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Arrays;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
@ -58,6 +60,8 @@ public class EquilateralTriangle {
|
||||
* @return shapeType
|
||||
**/
|
||||
@jakarta.annotation.Nonnull
|
||||
@NotNull
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_SHAPE_TYPE)
|
||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||
|
||||
@ -83,6 +87,8 @@ public class EquilateralTriangle {
|
||||
* @return triangleType
|
||||
**/
|
||||
@jakarta.annotation.Nonnull
|
||||
@NotNull
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE)
|
||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||
|
||||
|
@ -26,6 +26,8 @@ import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import org.openapitools.client.model.ModelFile;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
@ -42,7 +44,7 @@ public class FileSchemaTestClass {
|
||||
private ModelFile _file;
|
||||
|
||||
public static final String JSON_PROPERTY_FILES = "files";
|
||||
private List<ModelFile> files = new ArrayList<>();
|
||||
private List<@Valid ModelFile> files = new ArrayList<>();
|
||||
|
||||
public FileSchemaTestClass() {
|
||||
}
|
||||
@ -57,6 +59,8 @@ public class FileSchemaTestClass {
|
||||
* @return _file
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
@Valid
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_FILE)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -72,7 +76,7 @@ public class FileSchemaTestClass {
|
||||
}
|
||||
|
||||
|
||||
public FileSchemaTestClass files(List<ModelFile> files) {
|
||||
public FileSchemaTestClass files(List<@Valid ModelFile> files) {
|
||||
this.files = files;
|
||||
return this;
|
||||
}
|
||||
@ -90,17 +94,19 @@ public class FileSchemaTestClass {
|
||||
* @return files
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
@Valid
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_FILES)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
public List<ModelFile> getFiles() {
|
||||
public List<@Valid ModelFile> getFiles() {
|
||||
return files;
|
||||
}
|
||||
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_FILES)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setFiles(List<ModelFile> files) {
|
||||
public void setFiles(List<@Valid ModelFile> files) {
|
||||
this.files = files;
|
||||
}
|
||||
|
||||
|
@ -23,6 +23,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Arrays;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
@ -50,6 +52,7 @@ public class Foo {
|
||||
* @return bar
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_BAR)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
|
@ -24,6 +24,8 @@ import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Arrays;
|
||||
import org.openapitools.client.model.Foo;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
@ -52,6 +54,8 @@ public class FooGetDefaultResponse {
|
||||
* @return string
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
@Valid
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_STRING)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
|
@ -28,6 +28,8 @@ import java.time.OffsetDateTime;
|
||||
import java.util.Arrays;
|
||||
import java.util.UUID;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
@ -118,6 +120,7 @@ public class FormatTest {
|
||||
* @return integer
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
@Min(10) @Max(100)
|
||||
@JsonProperty(JSON_PROPERTY_INTEGER)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -145,6 +148,7 @@ public class FormatTest {
|
||||
* @return int32
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
@Min(20) @Max(200)
|
||||
@JsonProperty(JSON_PROPERTY_INT32)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -170,6 +174,7 @@ public class FormatTest {
|
||||
* @return int64
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_INT64)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -197,6 +202,9 @@ public class FormatTest {
|
||||
* @return number
|
||||
**/
|
||||
@jakarta.annotation.Nonnull
|
||||
@NotNull
|
||||
@Valid
|
||||
@DecimalMin("32.1") @DecimalMax("543.2")
|
||||
@JsonProperty(JSON_PROPERTY_NUMBER)
|
||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||
|
||||
@ -224,6 +232,7 @@ public class FormatTest {
|
||||
* @return _float
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
@DecimalMin("54.3") @DecimalMax("987.6")
|
||||
@JsonProperty(JSON_PROPERTY_FLOAT)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -251,6 +260,7 @@ public class FormatTest {
|
||||
* @return _double
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
@DecimalMin("67.8") @DecimalMax("123.4")
|
||||
@JsonProperty(JSON_PROPERTY_DOUBLE)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -276,6 +286,8 @@ public class FormatTest {
|
||||
* @return decimal
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
@Valid
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_DECIMAL)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -301,6 +313,7 @@ public class FormatTest {
|
||||
* @return string
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
@Pattern(regexp="/[a-z]/i")
|
||||
@JsonProperty(JSON_PROPERTY_STRING)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -326,6 +339,8 @@ public class FormatTest {
|
||||
* @return _byte
|
||||
**/
|
||||
@jakarta.annotation.Nonnull
|
||||
@NotNull
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_BYTE)
|
||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||
|
||||
@ -351,6 +366,8 @@ public class FormatTest {
|
||||
* @return binary
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
@Valid
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_BINARY)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -376,6 +393,9 @@ public class FormatTest {
|
||||
* @return date
|
||||
**/
|
||||
@jakarta.annotation.Nonnull
|
||||
@NotNull
|
||||
@Valid
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_DATE)
|
||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||
|
||||
@ -401,6 +421,8 @@ public class FormatTest {
|
||||
* @return dateTime
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
@Valid
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_DATE_TIME)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -426,6 +448,8 @@ public class FormatTest {
|
||||
* @return uuid
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
@Valid
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_UUID)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -451,6 +475,8 @@ public class FormatTest {
|
||||
* @return password
|
||||
**/
|
||||
@jakarta.annotation.Nonnull
|
||||
@NotNull
|
||||
@Size(min=10,max=64)
|
||||
@JsonProperty(JSON_PROPERTY_PASSWORD)
|
||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||
|
||||
@ -476,6 +502,7 @@ public class FormatTest {
|
||||
* @return patternWithDigits
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
@Pattern(regexp="^\\d{10}$")
|
||||
@JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -501,6 +528,7 @@ public class FormatTest {
|
||||
* @return patternWithDigitsAndDelimiter
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
@Pattern(regexp="/^image_\\d{1,3}$/i")
|
||||
@JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
|
@ -26,6 +26,8 @@ import java.util.Arrays;
|
||||
import org.openapitools.client.model.Apple;
|
||||
import org.openapitools.client.model.Banana;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
|
@ -26,6 +26,8 @@ import java.util.Arrays;
|
||||
import org.openapitools.client.model.AppleReq;
|
||||
import org.openapitools.client.model.BananaReq;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
|
@ -26,6 +26,8 @@ import java.util.Arrays;
|
||||
import org.openapitools.client.model.Apple;
|
||||
import org.openapitools.client.model.Banana;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
|
@ -26,6 +26,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Arrays;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
@ -63,6 +65,8 @@ public class GrandparentAnimal {
|
||||
* @return petType
|
||||
**/
|
||||
@jakarta.annotation.Nonnull
|
||||
@NotNull
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_PET_TYPE)
|
||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||
|
||||
|
@ -23,6 +23,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Arrays;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
@ -60,6 +62,7 @@ public class HasOnlyReadOnly {
|
||||
* @return bar
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_BAR)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -75,6 +78,7 @@ public class HasOnlyReadOnly {
|
||||
* @return foo
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_FOO)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
|
@ -27,6 +27,8 @@ import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import org.openapitools.jackson.nullable.JsonNullable;
|
||||
import java.util.NoSuchElementException;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
@ -54,6 +56,7 @@ public class HealthCheckResult {
|
||||
* @return nullableMessage
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonIgnore
|
||||
|
||||
public String getNullableMessage() {
|
||||
|
@ -23,6 +23,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Arrays;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
@ -54,6 +56,8 @@ public class IsoscelesTriangle {
|
||||
* @return shapeType
|
||||
**/
|
||||
@jakarta.annotation.Nonnull
|
||||
@NotNull
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_SHAPE_TYPE)
|
||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||
|
||||
@ -79,6 +83,8 @@ public class IsoscelesTriangle {
|
||||
* @return triangleType
|
||||
**/
|
||||
@jakarta.annotation.Nonnull
|
||||
@NotNull
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE)
|
||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||
|
||||
|
@ -33,6 +33,8 @@ import org.openapitools.client.model.Pig;
|
||||
import org.openapitools.client.model.Whale;
|
||||
import org.openapitools.client.model.Zebra;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
|
@ -25,6 +25,8 @@ import java.util.Arrays;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
@ -107,6 +109,8 @@ public class MapTest {
|
||||
* @return mapMapOfString
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
@Valid
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -140,6 +144,7 @@ public class MapTest {
|
||||
* @return mapOfEnumString
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -173,6 +178,7 @@ public class MapTest {
|
||||
* @return directMap
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_DIRECT_MAP)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -206,6 +212,7 @@ public class MapTest {
|
||||
* @return indirectMap
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_INDIRECT_MAP)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
|
@ -28,6 +28,8 @@ import java.util.Map;
|
||||
import java.util.UUID;
|
||||
import org.openapitools.client.model.Animal;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
@ -63,6 +65,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
||||
* @return uuid
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
@Valid
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_UUID)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -88,6 +92,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
||||
* @return dateTime
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
@Valid
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_DATE_TIME)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -121,6 +127,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
||||
* @return map
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
@Valid
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_MAP)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
|
@ -23,6 +23,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Arrays;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
@ -55,6 +57,7 @@ public class Model200Response {
|
||||
* @return name
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -80,6 +83,7 @@ public class Model200Response {
|
||||
* @return propertyClass
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_PROPERTY_CLASS)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
|
@ -23,6 +23,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Arrays;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
@ -59,6 +61,7 @@ public class ModelApiResponse {
|
||||
* @return code
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_CODE)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -84,6 +87,7 @@ public class ModelApiResponse {
|
||||
* @return type
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_TYPE)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -109,6 +113,7 @@ public class ModelApiResponse {
|
||||
* @return message
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_MESSAGE)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
|
@ -23,6 +23,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Arrays;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
@ -51,6 +53,7 @@ public class ModelFile {
|
||||
* @return sourceURI
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_SOURCE_U_R_I)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
|
@ -23,6 +23,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Arrays;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
@ -51,6 +53,7 @@ public class ModelList {
|
||||
* @return _123list
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_123LIST)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
|
@ -23,6 +23,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Arrays;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
@ -51,6 +53,7 @@ public class ModelReturn {
|
||||
* @return _return
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_RETURN)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
|
@ -23,6 +23,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Arrays;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
@ -72,6 +74,8 @@ public class Name {
|
||||
* @return name
|
||||
**/
|
||||
@jakarta.annotation.Nonnull
|
||||
@NotNull
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||
|
||||
@ -92,6 +96,7 @@ public class Name {
|
||||
* @return snakeCase
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_SNAKE_CASE)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -112,6 +117,7 @@ public class Name {
|
||||
* @return property
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_PROPERTY)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -132,6 +138,7 @@ public class Name {
|
||||
* @return _123number
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_123NUMBER)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
|
@ -38,6 +38,8 @@ import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import org.openapitools.jackson.nullable.JsonNullable;
|
||||
import java.util.NoSuchElementException;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
@ -109,6 +111,7 @@ public class NullableClass {
|
||||
* @return integerProp
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonIgnore
|
||||
|
||||
public Integer getIntegerProp() {
|
||||
@ -142,6 +145,8 @@ public class NullableClass {
|
||||
* @return numberProp
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
@Valid
|
||||
|
||||
@JsonIgnore
|
||||
|
||||
public BigDecimal getNumberProp() {
|
||||
@ -175,6 +180,7 @@ public class NullableClass {
|
||||
* @return booleanProp
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonIgnore
|
||||
|
||||
public Boolean getBooleanProp() {
|
||||
@ -208,6 +214,7 @@ public class NullableClass {
|
||||
* @return stringProp
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonIgnore
|
||||
|
||||
public String getStringProp() {
|
||||
@ -241,6 +248,8 @@ public class NullableClass {
|
||||
* @return dateProp
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
@Valid
|
||||
|
||||
@JsonIgnore
|
||||
|
||||
public LocalDate getDateProp() {
|
||||
@ -274,6 +283,8 @@ public class NullableClass {
|
||||
* @return datetimeProp
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
@Valid
|
||||
|
||||
@JsonIgnore
|
||||
|
||||
public OffsetDateTime getDatetimeProp() {
|
||||
@ -319,6 +330,7 @@ public class NullableClass {
|
||||
* @return arrayNullableProp
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonIgnore
|
||||
|
||||
public List<Object> getArrayNullableProp() {
|
||||
@ -364,6 +376,7 @@ public class NullableClass {
|
||||
* @return arrayAndItemsNullableProp
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonIgnore
|
||||
|
||||
public List<Object> getArrayAndItemsNullableProp() {
|
||||
@ -405,6 +418,7 @@ public class NullableClass {
|
||||
* @return arrayItemsNullable
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -442,6 +456,7 @@ public class NullableClass {
|
||||
* @return objectNullableProp
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonIgnore
|
||||
|
||||
public Map<String, Object> getObjectNullableProp() {
|
||||
@ -487,6 +502,7 @@ public class NullableClass {
|
||||
* @return objectAndItemsNullableProp
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonIgnore
|
||||
|
||||
public Map<String, Object> getObjectAndItemsNullableProp() {
|
||||
@ -528,6 +544,7 @@ public class NullableClass {
|
||||
* @return objectItemsNullable
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE)
|
||||
@JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
|
@ -32,6 +32,8 @@ import java.util.Arrays;
|
||||
import org.openapitools.client.model.Quadrilateral;
|
||||
import org.openapitools.client.model.Triangle;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
|
@ -24,6 +24,8 @@ import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Arrays;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
@ -51,6 +53,8 @@ public class NumberOnly {
|
||||
* @return justNumber
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
@Valid
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_JUST_NUMBER)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
|
@ -27,6 +27,8 @@ import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import org.openapitools.client.model.DeprecatedObject;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
@ -69,6 +71,7 @@ public class ObjectWithDeprecatedFields {
|
||||
* @return uuid
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_UUID)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -97,6 +100,8 @@ public class ObjectWithDeprecatedFields {
|
||||
**/
|
||||
@Deprecated
|
||||
@jakarta.annotation.Nullable
|
||||
@Valid
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ID)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -126,6 +131,8 @@ public class ObjectWithDeprecatedFields {
|
||||
**/
|
||||
@Deprecated
|
||||
@jakarta.annotation.Nullable
|
||||
@Valid
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_DEPRECATED_REF)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -163,6 +170,7 @@ public class ObjectWithDeprecatedFields {
|
||||
**/
|
||||
@Deprecated
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_BARS)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
|
@ -24,6 +24,8 @@ import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.time.OffsetDateTime;
|
||||
import java.util.Arrays;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
@ -108,6 +110,7 @@ public class Order {
|
||||
* @return id
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ID)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -133,6 +136,7 @@ public class Order {
|
||||
* @return petId
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_PET_ID)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -158,6 +162,7 @@ public class Order {
|
||||
* @return quantity
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_QUANTITY)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -183,6 +188,8 @@ public class Order {
|
||||
* @return shipDate
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
@Valid
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_SHIP_DATE)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -208,6 +215,7 @@ public class Order {
|
||||
* @return status
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_STATUS)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -233,6 +241,7 @@ public class Order {
|
||||
* @return complete
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_COMPLETE)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
|
@ -24,6 +24,8 @@ import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Arrays;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
@ -59,6 +61,8 @@ public class OuterComposite {
|
||||
* @return myNumber
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
@Valid
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_MY_NUMBER)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -84,6 +88,7 @@ public class OuterComposite {
|
||||
* @return myString
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_MY_STRING)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -109,6 +114,7 @@ public class OuterComposite {
|
||||
* @return myBoolean
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_MY_BOOLEAN)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
|
@ -17,6 +17,8 @@ import java.util.Objects;
|
||||
import java.util.Map;
|
||||
import java.util.HashMap;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
|
@ -17,6 +17,8 @@ import java.util.Objects;
|
||||
import java.util.Map;
|
||||
import java.util.HashMap;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
|
@ -17,6 +17,8 @@ import java.util.Objects;
|
||||
import java.util.Map;
|
||||
import java.util.HashMap;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
|
@ -17,6 +17,8 @@ import java.util.Objects;
|
||||
import java.util.Map;
|
||||
import java.util.HashMap;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
|
@ -31,6 +31,8 @@ import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Arrays;
|
||||
import org.openapitools.client.model.GrandparentAnimal;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
|
@ -27,6 +27,8 @@ import java.util.List;
|
||||
import org.openapitools.client.model.Category;
|
||||
import org.openapitools.client.model.Tag;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
@ -56,7 +58,7 @@ public class Pet {
|
||||
private List<String> photoUrls = new ArrayList<>();
|
||||
|
||||
public static final String JSON_PROPERTY_TAGS = "tags";
|
||||
private List<Tag> tags = new ArrayList<>();
|
||||
private List<@Valid Tag> tags = new ArrayList<>();
|
||||
|
||||
/**
|
||||
* pet status in the store
|
||||
@ -111,6 +113,7 @@ public class Pet {
|
||||
* @return id
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ID)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -136,6 +139,8 @@ public class Pet {
|
||||
* @return category
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
@Valid
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_CATEGORY)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -161,6 +166,8 @@ public class Pet {
|
||||
* @return name
|
||||
**/
|
||||
@jakarta.annotation.Nonnull
|
||||
@NotNull
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||
|
||||
@ -194,6 +201,8 @@ public class Pet {
|
||||
* @return photoUrls
|
||||
**/
|
||||
@jakarta.annotation.Nonnull
|
||||
@NotNull
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_PHOTO_URLS)
|
||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||
|
||||
@ -209,7 +218,7 @@ public class Pet {
|
||||
}
|
||||
|
||||
|
||||
public Pet tags(List<Tag> tags) {
|
||||
public Pet tags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
return this;
|
||||
}
|
||||
@ -227,17 +236,19 @@ public class Pet {
|
||||
* @return tags
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
@Valid
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_TAGS)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
public List<Tag> getTags() {
|
||||
public List<@Valid Tag> getTags() {
|
||||
return tags;
|
||||
}
|
||||
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_TAGS)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setTags(List<Tag> tags) {
|
||||
public void setTags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
@ -252,6 +263,7 @@ public class Pet {
|
||||
* @return status
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_STATUS)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
|
@ -32,6 +32,8 @@ import java.util.Arrays;
|
||||
import org.openapitools.client.model.BasquePig;
|
||||
import org.openapitools.client.model.DanishPig;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
|
@ -32,6 +32,8 @@ import java.util.Arrays;
|
||||
import org.openapitools.client.model.ComplexQuadrilateral;
|
||||
import org.openapitools.client.model.SimpleQuadrilateral;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
|
@ -23,6 +23,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Arrays;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
@ -50,6 +52,8 @@ public class QuadrilateralInterface {
|
||||
* @return quadrilateralType
|
||||
**/
|
||||
@jakarta.annotation.Nonnull
|
||||
@NotNull
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE)
|
||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||
|
||||
|
@ -23,6 +23,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Arrays;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
@ -57,6 +59,7 @@ public class ReadOnlyFirst {
|
||||
* @return bar
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_BAR)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
@ -77,6 +80,7 @@ public class ReadOnlyFirst {
|
||||
* @return baz
|
||||
**/
|
||||
@jakarta.annotation.Nullable
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_BAZ)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
|
||||
|
@ -27,6 +27,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Arrays;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
@ -58,6 +60,8 @@ public class ScaleneTriangle {
|
||||
* @return shapeType
|
||||
**/
|
||||
@jakarta.annotation.Nonnull
|
||||
@NotNull
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_SHAPE_TYPE)
|
||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||
|
||||
@ -83,6 +87,8 @@ public class ScaleneTriangle {
|
||||
* @return triangleType
|
||||
**/
|
||||
@jakarta.annotation.Nonnull
|
||||
@NotNull
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE)
|
||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||
|
||||
|
@ -32,6 +32,8 @@ import java.util.Arrays;
|
||||
import org.openapitools.client.model.Quadrilateral;
|
||||
import org.openapitools.client.model.Triangle;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
|
@ -23,6 +23,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Arrays;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
@ -50,6 +52,8 @@ public class ShapeInterface {
|
||||
* @return shapeType
|
||||
**/
|
||||
@jakarta.annotation.Nonnull
|
||||
@NotNull
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_SHAPE_TYPE)
|
||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||
|
||||
|
@ -32,6 +32,8 @@ import java.util.Arrays;
|
||||
import org.openapitools.client.model.Quadrilateral;
|
||||
import org.openapitools.client.model.Triangle;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
|
@ -27,6 +27,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.Arrays;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.Valid;
|
||||
import org.openapitools.client.JSON;
|
||||
|
||||
|
||||
@ -58,6 +60,8 @@ public class SimpleQuadrilateral {
|
||||
* @return shapeType
|
||||
**/
|
||||
@jakarta.annotation.Nonnull
|
||||
@NotNull
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_SHAPE_TYPE)
|
||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||
|
||||
@ -83,6 +87,8 @@ public class SimpleQuadrilateral {
|
||||
* @return quadrilateralType
|
||||
**/
|
||||
@jakarta.annotation.Nonnull
|
||||
@NotNull
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE)
|
||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user