forked from loafle/openapi-generator-original
* [Java][Client] Fix #12556 Support primitives and arrays in oneOf * Regenerate petstore samples * Regenerate petstore test samples * Treat 'BigDecimal' as primtive datatype * Fix integration tests
This commit is contained in:
@@ -640,7 +640,7 @@ public class Example {
|
||||
|
||||
### Return type
|
||||
|
||||
CompletableFuture<[**BigDecimal**](BigDecimal.md)>
|
||||
CompletableFuture<**BigDecimal**>
|
||||
|
||||
|
||||
### Authorization
|
||||
@@ -716,7 +716,7 @@ public class Example {
|
||||
|
||||
### Return type
|
||||
|
||||
CompletableFuture<ApiResponse<[**BigDecimal**](BigDecimal.md)>>
|
||||
CompletableFuture<ApiResponse<**BigDecimal**>>
|
||||
|
||||
|
||||
### Authorization
|
||||
|
||||
@@ -153,11 +153,9 @@ public class ArrayOfArrayOfNumberOnly {
|
||||
// add `ArrayArrayNumber` to the URL query string
|
||||
if (getArrayArrayNumber() != null) {
|
||||
for (int i = 0; i < getArrayArrayNumber().size(); i++) {
|
||||
if (getArrayArrayNumber().get(i) != null) {
|
||||
joiner.add(String.format("%sArrayArrayNumber%s%s=%s", prefix, suffix,
|
||||
"".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix),
|
||||
URLEncoder.encode(String.valueOf(getArrayArrayNumber().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
|
||||
}
|
||||
joiner.add(String.format("%sArrayArrayNumber%s%s=%s", prefix, suffix,
|
||||
"".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix),
|
||||
URLEncoder.encode(String.valueOf(getArrayArrayNumber().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -153,11 +153,9 @@ public class ArrayOfNumberOnly {
|
||||
// add `ArrayNumber` to the URL query string
|
||||
if (getArrayNumber() != null) {
|
||||
for (int i = 0; i < getArrayNumber().size(); i++) {
|
||||
if (getArrayNumber().get(i) != null) {
|
||||
joiner.add(String.format("%sArrayNumber%s%s=%s", prefix, suffix,
|
||||
"".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix),
|
||||
URLEncoder.encode(String.valueOf(getArrayNumber().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
|
||||
}
|
||||
joiner.add(String.format("%sArrayNumber%s%s=%s", prefix, suffix,
|
||||
"".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix),
|
||||
URLEncoder.encode(String.valueOf(getArrayNumber().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user