Fix usage of javax.annotation (#6645)

* Fix usage of javax.annotation:javax.annotation-api

* Regenerate samples

```
bin/generate-samples.sh bin/configs/java-* bin/configs/jaxrs-* bin/configs/spring-* bin/configs/kotlin-* bin/configs/other/java-* bin/configs/other/jaxrs-* bin/configs/other/kotlin-* bin/configs/other/openapi3/jaxrs-cxf-client.yaml bin/configs/other/openapi3/kotlin-*
```
This commit is contained in:
Jochen Schalanda
2020-06-14 11:01:18 +02:00
committed by GitHub
parent e07f084e2a
commit 32adeddd8f
3075 changed files with 6183 additions and 4573 deletions

View File

@@ -47,7 +47,7 @@ import java.util.stream.Collectors;
* <p>The setter methods of this class return the current object to facilitate
* a fluent style of configuration.</p>
*/
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class ApiClient {
private static final Charset UTF_8 = Charset.forName("UTF-8");

View File

@@ -15,7 +15,7 @@ package org.openapitools.client;
import java.net.http.HttpHeaders;
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class ApiException extends Exception {
private int code = 0;
private HttpHeaders responseHeaders = null;

View File

@@ -13,7 +13,7 @@
package org.openapitools.client;
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class Configuration {
private static ApiClient defaultApiClient = new ApiClient();

View File

@@ -13,7 +13,7 @@
package org.openapitools.client;
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class Pair {
private String name = "";
private String value = "";

View File

@@ -37,7 +37,7 @@ import java.util.Map;
import java.util.concurrent.CompletableFuture;
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class AnotherFakeApi {
private final HttpClient memberVarHttpClient;
private final ObjectMapper memberVarObjectMapper;
@@ -45,7 +45,7 @@ public class AnotherFakeApi {
private final Consumer<HttpRequest.Builder> memberVarInterceptor;
private final Duration memberVarReadTimeout;
private final Consumer<HttpResponse<InputStream>> memberVarResponseInterceptor;
public AnotherFakeApi() {
this(new ApiClient());
}
@@ -100,10 +100,14 @@ public class AnotherFakeApi {
localVarResponse.body())
);
} else {
return CompletableFuture.completedFuture(
null
);
}
try {
return CompletableFuture.completedFuture(
memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference<Client>() {})
);
} catch (IOException e) {
return CompletableFuture.failedFuture(new ApiException(e));
}
}
});
} catch (IOException e) {
return CompletableFuture.failedFuture(new ApiException(e));

View File

@@ -45,7 +45,7 @@ import java.util.Map;
import java.util.concurrent.CompletableFuture;
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class FakeApi {
private final HttpClient memberVarHttpClient;
private final ObjectMapper memberVarObjectMapper;
@@ -53,7 +53,7 @@ public class FakeApi {
private final Consumer<HttpRequest.Builder> memberVarInterceptor;
private final Duration memberVarReadTimeout;
private final Consumer<HttpResponse<InputStream>> memberVarResponseInterceptor;
public FakeApi() {
this(new ApiClient());
}
@@ -107,9 +107,8 @@ public class FakeApi {
localVarResponse.body())
);
} else {
return CompletableFuture.completedFuture(
null
);
return CompletableFuture.completedFuture(null);
}
});
} catch (IOException e) {
@@ -153,10 +152,14 @@ public class FakeApi {
localVarResponse.body())
);
} else {
return CompletableFuture.completedFuture(
null
);
}
try {
return CompletableFuture.completedFuture(
memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference<Boolean>() {})
);
} catch (IOException e) {
return CompletableFuture.failedFuture(new ApiException(e));
}
}
});
} catch (IOException e) {
return CompletableFuture.failedFuture(new ApiException(e));
@@ -199,10 +202,14 @@ public class FakeApi {
localVarResponse.body())
);
} else {
return CompletableFuture.completedFuture(
null
);
}
try {
return CompletableFuture.completedFuture(
memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference<OuterComposite>() {})
);
} catch (IOException e) {
return CompletableFuture.failedFuture(new ApiException(e));
}
}
});
} catch (IOException e) {
return CompletableFuture.failedFuture(new ApiException(e));
@@ -245,10 +252,14 @@ public class FakeApi {
localVarResponse.body())
);
} else {
return CompletableFuture.completedFuture(
null
);
}
try {
return CompletableFuture.completedFuture(
memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference<BigDecimal>() {})
);
} catch (IOException e) {
return CompletableFuture.failedFuture(new ApiException(e));
}
}
});
} catch (IOException e) {
return CompletableFuture.failedFuture(new ApiException(e));
@@ -291,10 +302,14 @@ public class FakeApi {
localVarResponse.body())
);
} else {
return CompletableFuture.completedFuture(
null
);
}
try {
return CompletableFuture.completedFuture(
memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference<String>() {})
);
} catch (IOException e) {
return CompletableFuture.failedFuture(new ApiException(e));
}
}
});
} catch (IOException e) {
return CompletableFuture.failedFuture(new ApiException(e));
@@ -340,9 +355,8 @@ public class FakeApi {
localVarResponse.body())
);
} else {
return CompletableFuture.completedFuture(
null
);
return CompletableFuture.completedFuture(null);
}
});
} catch (IOException e) {
@@ -403,9 +417,8 @@ public class FakeApi {
localVarResponse.body())
);
} else {
return CompletableFuture.completedFuture(
null
);
return CompletableFuture.completedFuture(null);
}
});
} catch (IOException e) {
@@ -453,10 +466,14 @@ public class FakeApi {
localVarResponse.body())
);
} else {
return CompletableFuture.completedFuture(
null
);
}
try {
return CompletableFuture.completedFuture(
memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference<Client>() {})
);
} catch (IOException e) {
return CompletableFuture.failedFuture(new ApiException(e));
}
}
});
} catch (IOException e) {
return CompletableFuture.failedFuture(new ApiException(e));
@@ -524,9 +541,8 @@ public class FakeApi {
localVarResponse.body())
);
} else {
return CompletableFuture.completedFuture(
null
);
return CompletableFuture.completedFuture(null);
}
});
}
@@ -588,12 +604,27 @@ public class FakeApi {
localVarResponse.body())
);
} else {
return CompletableFuture.completedFuture(
null
);
return CompletableFuture.completedFuture(null);
}
});
}
/**
* Fake endpoint to test group parameters (optional)
* Fake endpoint to test group parameters (optional)
* @param testGroupParametersRequest {@link APItestGroupParametersRequest}
* @throws ApiException if fails to make API call
*/
public CompletableFuture<Void> testGroupParameters(APItestGroupParametersRequest testGroupParametersRequest) throws ApiException {
Integer requiredStringGroup = testGroupParametersRequest.requiredStringGroup();
Boolean requiredBooleanGroup = testGroupParametersRequest.requiredBooleanGroup();
Long requiredInt64Group = testGroupParametersRequest.requiredInt64Group();
Integer stringGroup = testGroupParametersRequest.stringGroup();
Boolean booleanGroup = testGroupParametersRequest.booleanGroup();
Long int64Group = testGroupParametersRequest.int64Group();
return testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group);
}
/**
* Fake endpoint to test group parameters (optional)
* Fake endpoint to test group parameters (optional)
@@ -662,12 +693,88 @@ public class FakeApi {
localVarResponse.body())
);
} else {
return CompletableFuture.completedFuture(
null
);
return CompletableFuture.completedFuture(null);
}
});
}
public static final class APItestGroupParametersRequest {
private Integer requiredStringGroup; // Required String in group parameters (required)
private Boolean requiredBooleanGroup; // Required Boolean in group parameters (required)
private Long requiredInt64Group; // Required Integer in group parameters (required)
private Integer stringGroup; // String in group parameters (optional)
private Boolean booleanGroup; // Boolean in group parameters (optional)
private Long int64Group; // Integer in group parameters (optional)
private APItestGroupParametersRequest(Builder builder) {
this.requiredStringGroup = builder.requiredStringGroup;
this.requiredBooleanGroup = builder.requiredBooleanGroup;
this.requiredInt64Group = builder.requiredInt64Group;
this.stringGroup = builder.stringGroup;
this.booleanGroup = builder.booleanGroup;
this.int64Group = builder.int64Group;
}
public Integer requiredStringGroup() {
return requiredStringGroup;
}
public Boolean requiredBooleanGroup() {
return requiredBooleanGroup;
}
public Long requiredInt64Group() {
return requiredInt64Group;
}
public Integer stringGroup() {
return stringGroup;
}
public Boolean booleanGroup() {
return booleanGroup;
}
public Long int64Group() {
return int64Group;
}
public static Builder newBuilder() {
return new Builder();
}
public static class Builder {
private Integer requiredStringGroup;
private Boolean requiredBooleanGroup;
private Long requiredInt64Group;
private Integer stringGroup;
private Boolean booleanGroup;
private Long int64Group;
public Builder requiredStringGroup(Integer requiredStringGroup) {
this.requiredStringGroup = requiredStringGroup;
return this;
}
public Builder requiredBooleanGroup(Boolean requiredBooleanGroup) {
this.requiredBooleanGroup = requiredBooleanGroup;
return this;
}
public Builder requiredInt64Group(Long requiredInt64Group) {
this.requiredInt64Group = requiredInt64Group;
return this;
}
public Builder stringGroup(Integer stringGroup) {
this.stringGroup = stringGroup;
return this;
}
public Builder booleanGroup(Boolean booleanGroup) {
this.booleanGroup = booleanGroup;
return this;
}
public Builder int64Group(Long int64Group) {
this.int64Group = int64Group;
return this;
}
public APItestGroupParametersRequest build() {
return new APItestGroupParametersRequest(this);
}
}
}
/**
* test inline additionalProperties
*
@@ -708,9 +815,8 @@ public class FakeApi {
localVarResponse.body())
);
} else {
return CompletableFuture.completedFuture(
null
);
return CompletableFuture.completedFuture(null);
}
});
} catch (IOException e) {
@@ -759,9 +865,8 @@ public class FakeApi {
localVarResponse.body())
);
} else {
return CompletableFuture.completedFuture(
null
);
return CompletableFuture.completedFuture(null);
}
});
}
@@ -804,7 +909,7 @@ public class FakeApi {
List<Pair> localVarQueryParams = new ArrayList<>();
localVarQueryParams.addAll(ApiClient.parameterToPairs("csv", "pipe", pipe));
localVarQueryParams.addAll(ApiClient.parameterToPairs("csv", "ioutil", ioutil));
localVarQueryParams.addAll(ApiClient.parameterToPairs("space", "http", http));
localVarQueryParams.addAll(ApiClient.parameterToPairs("ssv", "http", http));
localVarQueryParams.addAll(ApiClient.parameterToPairs("csv", "url", url));
localVarQueryParams.addAll(ApiClient.parameterToPairs("multi", "context", context));
@@ -835,9 +940,8 @@ public class FakeApi {
localVarResponse.body())
);
} else {
return CompletableFuture.completedFuture(
null
);
return CompletableFuture.completedFuture(null);
}
});
}

View File

@@ -37,7 +37,7 @@ import java.util.Map;
import java.util.concurrent.CompletableFuture;
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class FakeClassnameTags123Api {
private final HttpClient memberVarHttpClient;
private final ObjectMapper memberVarObjectMapper;
@@ -45,7 +45,7 @@ public class FakeClassnameTags123Api {
private final Consumer<HttpRequest.Builder> memberVarInterceptor;
private final Duration memberVarReadTimeout;
private final Consumer<HttpResponse<InputStream>> memberVarResponseInterceptor;
public FakeClassnameTags123Api() {
this(new ApiClient());
}
@@ -100,10 +100,14 @@ public class FakeClassnameTags123Api {
localVarResponse.body())
);
} else {
return CompletableFuture.completedFuture(
null
);
}
try {
return CompletableFuture.completedFuture(
memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference<Client>() {})
);
} catch (IOException e) {
return CompletableFuture.failedFuture(new ApiException(e));
}
}
});
} catch (IOException e) {
return CompletableFuture.failedFuture(new ApiException(e));

View File

@@ -19,6 +19,7 @@ import org.openapitools.client.Pair;
import java.io.File;
import org.openapitools.client.model.ModelApiResponse;
import org.openapitools.client.model.Pet;
import java.util.Set;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
@@ -39,7 +40,7 @@ import java.util.Map;
import java.util.concurrent.CompletableFuture;
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class PetApi {
private final HttpClient memberVarHttpClient;
private final ObjectMapper memberVarObjectMapper;
@@ -47,7 +48,7 @@ public class PetApi {
private final Consumer<HttpRequest.Builder> memberVarInterceptor;
private final Duration memberVarReadTimeout;
private final Consumer<HttpResponse<InputStream>> memberVarResponseInterceptor;
public PetApi() {
this(new ApiClient());
}
@@ -101,9 +102,8 @@ public class PetApi {
localVarResponse.body())
);
} else {
return CompletableFuture.completedFuture(
null
);
return CompletableFuture.completedFuture(null);
}
});
} catch (IOException e) {
@@ -152,9 +152,8 @@ public class PetApi {
localVarResponse.body())
);
} else {
return CompletableFuture.completedFuture(
null
);
return CompletableFuture.completedFuture(null);
}
});
}
@@ -205,22 +204,26 @@ public class PetApi {
localVarResponse.body())
);
} else {
return CompletableFuture.completedFuture(
null
);
}
try {
return CompletableFuture.completedFuture(
memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference<List<Pet>>() {})
);
} catch (IOException e) {
return CompletableFuture.failedFuture(new ApiException(e));
}
}
});
}
/**
* Finds Pets by tags
* Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
* @param tags Tags to filter by (required)
* @return List&lt;Pet&gt;
* @return Set&lt;Pet&gt;
* @throws ApiException if fails to make API call
* @deprecated
*/
@Deprecated
public CompletableFuture<List<Pet>> findPetsByTags (List<String> tags) throws ApiException {
public CompletableFuture<Set<Pet>> findPetsByTags (Set<String> tags) throws ApiException {
// verify the required parameter 'tags' is set
if (tags == null) {
return CompletableFuture.failedFuture(new ApiException(400, "Missing the required parameter 'tags' when calling findPetsByTags"));
@@ -260,10 +263,14 @@ public class PetApi {
localVarResponse.body())
);
} else {
return CompletableFuture.completedFuture(
null
);
}
try {
return CompletableFuture.completedFuture(
memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference<Set<Pet>>() {})
);
} catch (IOException e) {
return CompletableFuture.failedFuture(new ApiException(e));
}
}
});
}
/**
@@ -305,10 +312,14 @@ public class PetApi {
localVarResponse.body())
);
} else {
return CompletableFuture.completedFuture(
null
);
}
try {
return CompletableFuture.completedFuture(
memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference<Pet>() {})
);
} catch (IOException e) {
return CompletableFuture.failedFuture(new ApiException(e));
}
}
});
}
/**
@@ -351,9 +362,8 @@ public class PetApi {
localVarResponse.body())
);
} else {
return CompletableFuture.completedFuture(
null
);
return CompletableFuture.completedFuture(null);
}
});
} catch (IOException e) {
@@ -400,9 +410,8 @@ public class PetApi {
localVarResponse.body())
);
} else {
return CompletableFuture.completedFuture(
null
);
return CompletableFuture.completedFuture(null);
}
});
}
@@ -447,10 +456,14 @@ public class PetApi {
localVarResponse.body())
);
} else {
return CompletableFuture.completedFuture(
null
);
}
try {
return CompletableFuture.completedFuture(
memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference<ModelApiResponse>() {})
);
} catch (IOException e) {
return CompletableFuture.failedFuture(new ApiException(e));
}
}
});
}
/**
@@ -498,10 +511,14 @@ public class PetApi {
localVarResponse.body())
);
} else {
return CompletableFuture.completedFuture(
null
);
}
try {
return CompletableFuture.completedFuture(
memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference<ModelApiResponse>() {})
);
} catch (IOException e) {
return CompletableFuture.failedFuture(new ApiException(e));
}
}
});
}
}

View File

@@ -37,7 +37,7 @@ import java.util.Map;
import java.util.concurrent.CompletableFuture;
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class StoreApi {
private final HttpClient memberVarHttpClient;
private final ObjectMapper memberVarObjectMapper;
@@ -45,7 +45,7 @@ public class StoreApi {
private final Consumer<HttpRequest.Builder> memberVarInterceptor;
private final Duration memberVarReadTimeout;
private final Consumer<HttpResponse<InputStream>> memberVarResponseInterceptor;
public StoreApi() {
this(new ApiClient());
}
@@ -97,9 +97,8 @@ public class StoreApi {
localVarResponse.body())
);
} else {
return CompletableFuture.completedFuture(
null
);
return CompletableFuture.completedFuture(null);
}
});
}
@@ -136,10 +135,14 @@ public class StoreApi {
localVarResponse.body())
);
} else {
return CompletableFuture.completedFuture(
null
);
}
try {
return CompletableFuture.completedFuture(
memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference<Map<String, Integer>>() {})
);
} catch (IOException e) {
return CompletableFuture.failedFuture(new ApiException(e));
}
}
});
}
/**
@@ -181,10 +184,14 @@ public class StoreApi {
localVarResponse.body())
);
} else {
return CompletableFuture.completedFuture(
null
);
}
try {
return CompletableFuture.completedFuture(
memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference<Order>() {})
);
} catch (IOException e) {
return CompletableFuture.failedFuture(new ApiException(e));
}
}
});
}
/**
@@ -228,10 +235,14 @@ public class StoreApi {
localVarResponse.body())
);
} else {
return CompletableFuture.completedFuture(
null
);
}
try {
return CompletableFuture.completedFuture(
memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference<Order>() {})
);
} catch (IOException e) {
return CompletableFuture.failedFuture(new ApiException(e));
}
}
});
} catch (IOException e) {
return CompletableFuture.failedFuture(new ApiException(e));

View File

@@ -37,7 +37,7 @@ import java.util.Map;
import java.util.concurrent.CompletableFuture;
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class UserApi {
private final HttpClient memberVarHttpClient;
private final ObjectMapper memberVarObjectMapper;
@@ -45,7 +45,7 @@ public class UserApi {
private final Consumer<HttpRequest.Builder> memberVarInterceptor;
private final Duration memberVarReadTimeout;
private final Consumer<HttpResponse<InputStream>> memberVarResponseInterceptor;
public UserApi() {
this(new ApiClient());
}
@@ -99,9 +99,8 @@ public class UserApi {
localVarResponse.body())
);
} else {
return CompletableFuture.completedFuture(
null
);
return CompletableFuture.completedFuture(null);
}
});
} catch (IOException e) {
@@ -148,9 +147,8 @@ public class UserApi {
localVarResponse.body())
);
} else {
return CompletableFuture.completedFuture(
null
);
return CompletableFuture.completedFuture(null);
}
});
} catch (IOException e) {
@@ -197,9 +195,8 @@ public class UserApi {
localVarResponse.body())
);
} else {
return CompletableFuture.completedFuture(
null
);
return CompletableFuture.completedFuture(null);
}
});
} catch (IOException e) {
@@ -244,9 +241,8 @@ public class UserApi {
localVarResponse.body())
);
} else {
return CompletableFuture.completedFuture(
null
);
return CompletableFuture.completedFuture(null);
}
});
}
@@ -289,10 +285,14 @@ public class UserApi {
localVarResponse.body())
);
} else {
return CompletableFuture.completedFuture(
null
);
}
try {
return CompletableFuture.completedFuture(
memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference<User>() {})
);
} catch (IOException e) {
return CompletableFuture.failedFuture(new ApiException(e));
}
}
});
}
/**
@@ -348,10 +348,14 @@ public class UserApi {
localVarResponse.body())
);
} else {
return CompletableFuture.completedFuture(
null
);
}
try {
return CompletableFuture.completedFuture(
memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference<String>() {})
);
} catch (IOException e) {
return CompletableFuture.failedFuture(new ApiException(e));
}
}
});
}
/**
@@ -386,9 +390,8 @@ public class UserApi {
localVarResponse.body())
);
} else {
return CompletableFuture.completedFuture(
null
);
return CompletableFuture.completedFuture(null);
}
});
}
@@ -438,9 +441,8 @@ public class UserApi {
localVarResponse.body())
);
} else {
return CompletableFuture.completedFuture(
null
);
return CompletableFuture.completedFuture(null);
}
});
} catch (IOException e) {

View File

@@ -31,7 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
@JsonPropertyOrder({
AdditionalPropertiesAnyType.JSON_PROPERTY_NAME
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class AdditionalPropertiesAnyType extends HashMap<String, Object> {
public static final String JSON_PROPERTY_NAME = "name";
private String name;

View File

@@ -32,7 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
@JsonPropertyOrder({
AdditionalPropertiesArray.JSON_PROPERTY_NAME
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class AdditionalPropertiesArray extends HashMap<String, List> {
public static final String JSON_PROPERTY_NAME = "name";
private String name;

View File

@@ -31,7 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
@JsonPropertyOrder({
AdditionalPropertiesBoolean.JSON_PROPERTY_NAME
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class AdditionalPropertiesBoolean extends HashMap<String, Boolean> {
public static final String JSON_PROPERTY_NAME = "name";
private String name;

View File

@@ -43,7 +43,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
AdditionalPropertiesClass.JSON_PROPERTY_ANYTYPE2,
AdditionalPropertiesClass.JSON_PROPERTY_ANYTYPE3
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class AdditionalPropertiesClass {
public static final String JSON_PROPERTY_MAP_STRING = "map_string";
private Map<String, String> mapString = null;

View File

@@ -31,7 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
@JsonPropertyOrder({
AdditionalPropertiesInteger.JSON_PROPERTY_NAME
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class AdditionalPropertiesInteger extends HashMap<String, Integer> {
public static final String JSON_PROPERTY_NAME = "name";
private String name;

View File

@@ -32,7 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
@JsonPropertyOrder({
AdditionalPropertiesNumber.JSON_PROPERTY_NAME
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class AdditionalPropertiesNumber extends HashMap<String, BigDecimal> {
public static final String JSON_PROPERTY_NAME = "name";
private String name;

View File

@@ -31,7 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
@JsonPropertyOrder({
AdditionalPropertiesObject.JSON_PROPERTY_NAME
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class AdditionalPropertiesObject extends HashMap<String, Map> {
public static final String JSON_PROPERTY_NAME = "name";
private String name;

View File

@@ -31,7 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
@JsonPropertyOrder({
AdditionalPropertiesString.JSON_PROPERTY_NAME
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class AdditionalPropertiesString extends HashMap<String, String> {
public static final String JSON_PROPERTY_NAME = "name";
private String name;

View File

@@ -23,6 +23,9 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.openapitools.client.model.BigCat;
import org.openapitools.client.model.Cat;
import org.openapitools.client.model.Dog;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
@@ -32,12 +35,12 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
Animal.JSON_PROPERTY_CLASS_NAME,
Animal.JSON_PROPERTY_COLOR
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true)
@JsonSubTypes({
@JsonSubTypes.Type(value = Dog.class, name = "Dog"),
@JsonSubTypes.Type(value = Cat.class, name = "Cat"),
@JsonSubTypes.Type(value = BigCat.class, name = "BigCat"),
@JsonSubTypes.Type(value = Cat.class, name = "Cat"),
@JsonSubTypes.Type(value = Dog.class, name = "Dog"),
})
public class Animal {

View File

@@ -32,7 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
@JsonPropertyOrder({
ArrayOfArrayOfNumberOnly.JSON_PROPERTY_ARRAY_ARRAY_NUMBER
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class ArrayOfArrayOfNumberOnly {
public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber";
private List<List<BigDecimal>> arrayArrayNumber = null;

View File

@@ -32,7 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
@JsonPropertyOrder({
ArrayOfNumberOnly.JSON_PROPERTY_ARRAY_NUMBER
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class ArrayOfNumberOnly {
public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber";
private List<BigDecimal> arrayNumber = null;

View File

@@ -34,7 +34,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
ArrayTest.JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER,
ArrayTest.JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class ArrayTest {
public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string";
private List<String> arrayOfString = null;

View File

@@ -18,6 +18,8 @@ import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@@ -31,6 +33,10 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
@JsonPropertyOrder({
BigCat.JSON_PROPERTY_KIND
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true)
@JsonSubTypes({
})
public class BigCat extends Cat {
/**

View File

@@ -29,7 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
@JsonPropertyOrder({
BigCatAllOf.JSON_PROPERTY_KIND
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class BigCatAllOf {
/**
* Gets or Sets kind

View File

@@ -34,7 +34,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
Capitalization.JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS,
Capitalization.JSON_PROPERTY_A_T_T_N_A_M_E
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class Capitalization {
public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel";
private String smallCamel;

View File

@@ -18,10 +18,13 @@ import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.openapitools.client.model.Animal;
import org.openapitools.client.model.BigCat;
import org.openapitools.client.model.CatAllOf;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
@@ -31,6 +34,11 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
@JsonPropertyOrder({
Cat.JSON_PROPERTY_DECLAWED
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true)
@JsonSubTypes({
@JsonSubTypes.Type(value = BigCat.class, name = "BigCat"),
})
public class Cat extends Animal {
public static final String JSON_PROPERTY_DECLAWED = "declawed";

View File

@@ -29,7 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
@JsonPropertyOrder({
CatAllOf.JSON_PROPERTY_DECLAWED
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class CatAllOf {
public static final String JSON_PROPERTY_DECLAWED = "declawed";
private Boolean declawed;

View File

@@ -30,7 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
Category.JSON_PROPERTY_ID,
Category.JSON_PROPERTY_NAME
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class Category {
public static final String JSON_PROPERTY_ID = "id";
private Long id;

View File

@@ -30,7 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
@JsonPropertyOrder({
ClassModel.JSON_PROPERTY_PROPERTY_CLASS
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class ClassModel {
public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class";
private String propertyClass;

View File

@@ -29,7 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
@JsonPropertyOrder({
Client.JSON_PROPERTY_CLIENT
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class Client {
public static final String JSON_PROPERTY_CLIENT = "client";
private String client;

View File

@@ -18,6 +18,8 @@ import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@@ -31,6 +33,10 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
@JsonPropertyOrder({
Dog.JSON_PROPERTY_BREED
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true)
@JsonSubTypes({
})
public class Dog extends Animal {
public static final String JSON_PROPERTY_BREED = "breed";

View File

@@ -29,7 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
@JsonPropertyOrder({
DogAllOf.JSON_PROPERTY_BREED
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class DogAllOf {
public static final String JSON_PROPERTY_BREED = "breed";
private String breed;

View File

@@ -32,7 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
EnumArrays.JSON_PROPERTY_JUST_SYMBOL,
EnumArrays.JSON_PROPERTY_ARRAY_ENUM
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class EnumArrays {
/**
* Gets or Sets justSymbol

View File

@@ -34,7 +34,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
EnumTest.JSON_PROPERTY_ENUM_NUMBER,
EnumTest.JSON_PROPERTY_OUTER_ENUM
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class EnumTest {
/**
* Gets or Sets enumString

View File

@@ -32,7 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
FileSchemaTestClass.JSON_PROPERTY_FILE,
FileSchemaTestClass.JSON_PROPERTY_FILES
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class FileSchemaTestClass {
public static final String JSON_PROPERTY_FILE = "file";
private java.io.File file;

View File

@@ -47,7 +47,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
FormatTest.JSON_PROPERTY_PASSWORD,
FormatTest.JSON_PROPERTY_BIG_DECIMAL
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class FormatTest {
public static final String JSON_PROPERTY_INTEGER = "integer";
private Integer integer;

View File

@@ -30,7 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
HasOnlyReadOnly.JSON_PROPERTY_BAR,
HasOnlyReadOnly.JSON_PROPERTY_FOO
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class HasOnlyReadOnly {
public static final String JSON_PROPERTY_BAR = "bar";
private String bar;

View File

@@ -35,7 +35,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
MapTest.JSON_PROPERTY_DIRECT_MAP,
MapTest.JSON_PROPERTY_INDIRECT_MAP
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class MapTest {
public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string";
private Map<String, Map<String, String>> mapMapOfString = null;

View File

@@ -37,7 +37,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
MixedPropertiesAndAdditionalPropertiesClass.JSON_PROPERTY_DATE_TIME,
MixedPropertiesAndAdditionalPropertiesClass.JSON_PROPERTY_MAP
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class MixedPropertiesAndAdditionalPropertiesClass {
public static final String JSON_PROPERTY_UUID = "uuid";
private UUID uuid;

View File

@@ -31,7 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
Model200Response.JSON_PROPERTY_NAME,
Model200Response.JSON_PROPERTY_PROPERTY_CLASS
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class Model200Response {
public static final String JSON_PROPERTY_NAME = "name";
private Integer name;

View File

@@ -31,7 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
ModelApiResponse.JSON_PROPERTY_TYPE,
ModelApiResponse.JSON_PROPERTY_MESSAGE
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class ModelApiResponse {
public static final String JSON_PROPERTY_CODE = "code";
private Integer code;

View File

@@ -30,7 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
@JsonPropertyOrder({
ModelReturn.JSON_PROPERTY_RETURN
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class ModelReturn {
public static final String JSON_PROPERTY_RETURN = "return";
private Integer _return;

View File

@@ -33,7 +33,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
Name.JSON_PROPERTY_PROPERTY,
Name.JSON_PROPERTY_123NUMBER
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class Name {
public static final String JSON_PROPERTY_NAME = "name";
private Integer name;

View File

@@ -30,7 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
@JsonPropertyOrder({
NumberOnly.JSON_PROPERTY_JUST_NUMBER
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class NumberOnly {
public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber";
private BigDecimal justNumber;

View File

@@ -35,7 +35,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
Order.JSON_PROPERTY_STATUS,
Order.JSON_PROPERTY_COMPLETE
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class Order {
public static final String JSON_PROPERTY_ID = "id";
private Long id;

View File

@@ -32,7 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
OuterComposite.JSON_PROPERTY_MY_STRING,
OuterComposite.JSON_PROPERTY_MY_BOOLEAN
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class OuterComposite {
public static final String JSON_PROPERTY_MY_NUMBER = "my_number";
private BigDecimal myNumber;

View File

@@ -22,7 +22,9 @@ import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;
import org.openapitools.client.model.Category;
import org.openapitools.client.model.Tag;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
@@ -38,7 +40,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
Pet.JSON_PROPERTY_TAGS,
Pet.JSON_PROPERTY_STATUS
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class Pet {
public static final String JSON_PROPERTY_ID = "id";
private Long id;
@@ -50,7 +52,7 @@ public class Pet {
private String name;
public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls";
private List<String> photoUrls = new ArrayList<>();
private Set<String> photoUrls = new LinkedHashSet<>();
public static final String JSON_PROPERTY_TAGS = "tags";
private List<Tag> tags = null;
@@ -170,7 +172,7 @@ public class Pet {
}
public Pet photoUrls(List<String> photoUrls) {
public Pet photoUrls(Set<String> photoUrls) {
this.photoUrls = photoUrls;
return this;
@@ -189,12 +191,12 @@ public class Pet {
@JsonProperty(JSON_PROPERTY_PHOTO_URLS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public List<String> getPhotoUrls() {
public Set<String> getPhotoUrls() {
return photoUrls;
}
public void setPhotoUrls(List<String> photoUrls) {
public void setPhotoUrls(Set<String> photoUrls) {
this.photoUrls = photoUrls;
}

View File

@@ -30,7 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
ReadOnlyFirst.JSON_PROPERTY_BAR,
ReadOnlyFirst.JSON_PROPERTY_BAZ
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class ReadOnlyFirst {
public static final String JSON_PROPERTY_BAR = "bar";
private String bar;

View File

@@ -29,7 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
@JsonPropertyOrder({
SpecialModelName.JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class SpecialModelName {
public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]";
private Long $specialPropertyName;

View File

@@ -30,7 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
Tag.JSON_PROPERTY_ID,
Tag.JSON_PROPERTY_NAME
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class Tag {
public static final String JSON_PROPERTY_ID = "id";
private Long id;

View File

@@ -36,7 +36,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
TypeHolderDefault.JSON_PROPERTY_BOOL_ITEM,
TypeHolderDefault.JSON_PROPERTY_ARRAY_ITEM
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class TypeHolderDefault {
public static final String JSON_PROPERTY_STRING_ITEM = "string_item";
private String stringItem = "what";

View File

@@ -37,7 +37,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
TypeHolderExample.JSON_PROPERTY_BOOL_ITEM,
TypeHolderExample.JSON_PROPERTY_ARRAY_ITEM
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class TypeHolderExample {
public static final String JSON_PROPERTY_STRING_ITEM = "string_item";
private String stringItem;

View File

@@ -36,7 +36,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
User.JSON_PROPERTY_PHONE,
User.JSON_PROPERTY_USER_STATUS
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class User {
public static final String JSON_PROPERTY_ID = "id";
private Long id;

View File

@@ -60,7 +60,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
XmlItem.JSON_PROPERTY_PREFIX_NS_ARRAY,
XmlItem.JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class XmlItem {
public static final String JSON_PROPERTY_ATTRIBUTE_STRING = "attribute_string";
private String attributeString;