@@ -209,6 +215,7 @@
11
2.9.9
0.2.1
+ 1.3.2
4.13
diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/ApiClient.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/ApiClient.java
index b805d0f4b42..aac27630361 100644
--- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/ApiClient.java
+++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/ApiClient.java
@@ -47,7 +47,7 @@ import java.util.stream.Collectors;
* The setter methods of this class return the current object to facilitate
* a fluent style of configuration.
*/
-
+@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class ApiClient {
private static final Charset UTF_8 = Charset.forName("UTF-8");
diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/ApiException.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/ApiException.java
index f5427482e3a..9b6bbf0dc38 100644
--- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/ApiException.java
+++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/ApiException.java
@@ -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;
diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/Configuration.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/Configuration.java
index acbecda489d..29538391ae0 100644
--- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/Configuration.java
+++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/Configuration.java
@@ -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();
diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/Pair.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/Pair.java
index ae89aa61454..e1afb8c039f 100644
--- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/Pair.java
+++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/Pair.java
@@ -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 = "";
diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
index 3fc1152250c..f94a3b1b318 100644
--- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
+++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
@@ -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 memberVarInterceptor;
private final Duration memberVarReadTimeout;
private final Consumer> 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() {})
+ );
+ } catch (IOException e) {
+ return CompletableFuture.failedFuture(new ApiException(e));
+ }
+ }
});
} catch (IOException e) {
return CompletableFuture.failedFuture(new ApiException(e));
diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/FakeApi.java
index 6c2fc476779..0afe9f3ae2a 100644
--- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/FakeApi.java
+++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/FakeApi.java
@@ -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 memberVarInterceptor;
private final Duration memberVarReadTimeout;
private final Consumer> 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() {})
+ );
+ } 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() {})
+ );
+ } 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() {})
+ );
+ } 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() {})
+ );
+ } 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() {})
+ );
+ } 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 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 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);
}
});
}
diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java
index 8e69ccdbff5..dd3899a3b70 100644
--- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java
+++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java
@@ -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 memberVarInterceptor;
private final Duration memberVarReadTimeout;
private final Consumer> 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() {})
+ );
+ } catch (IOException e) {
+ return CompletableFuture.failedFuture(new ApiException(e));
+ }
+ }
});
} catch (IOException e) {
return CompletableFuture.failedFuture(new ApiException(e));
diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/PetApi.java
index 6315984a9f2..f9bb772ebe6 100644
--- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/PetApi.java
+++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/PetApi.java
@@ -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 memberVarInterceptor;
private final Duration memberVarReadTimeout;
private final Consumer> 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>() {})
+ );
+ } 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<Pet>
+ * @return Set<Pet>
* @throws ApiException if fails to make API call
* @deprecated
*/
@Deprecated
- public CompletableFuture> findPetsByTags (List tags) throws ApiException {
+ public CompletableFuture> findPetsByTags (Set 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>() {})
+ );
+ } 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() {})
+ );
+ } 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() {})
+ );
+ } 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() {})
+ );
+ } catch (IOException e) {
+ return CompletableFuture.failedFuture(new ApiException(e));
+ }
+ }
});
}
}
diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/StoreApi.java
index 16712948a94..971f2610c00 100644
--- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/StoreApi.java
+++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/StoreApi.java
@@ -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 memberVarInterceptor;
private final Duration memberVarReadTimeout;
private final Consumer> 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
+