forked from loafle/openapi-generator-original
[Java][Client] Fix handling of 'number' types in oneOf (#16202)
This commit is contained in:
parent
d9e32a79a5
commit
e299382a42
@ -149,7 +149,6 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|
|||||||
## LANGUAGE PRIMITIVES
|
## LANGUAGE PRIMITIVES
|
||||||
|
|
||||||
<ul class="column-ul">
|
<ul class="column-ul">
|
||||||
<li>BigDecimal</li>
|
|
||||||
<li>Boolean</li>
|
<li>Boolean</li>
|
||||||
<li>Double</li>
|
<li>Double</li>
|
||||||
<li>Float</li>
|
<li>Float</li>
|
||||||
|
@ -191,8 +191,6 @@ public class JavaClientCodegen extends AbstractJavaCodegen
|
|||||||
modelPackage = "org.openapitools.client.model";
|
modelPackage = "org.openapitools.client.model";
|
||||||
rootJavaEEPackage = MICROPROFILE_REST_CLIENT_DEFAULT_ROOT_PACKAGE;
|
rootJavaEEPackage = MICROPROFILE_REST_CLIENT_DEFAULT_ROOT_PACKAGE;
|
||||||
|
|
||||||
languageSpecificPrimitives.add("BigDecimal");
|
|
||||||
|
|
||||||
// cliOptions default redefinition need to be updated
|
// cliOptions default redefinition need to be updated
|
||||||
updateOption(CodegenConstants.INVOKER_PACKAGE, this.getInvokerPackage());
|
updateOption(CodegenConstants.INVOKER_PACKAGE, this.getInvokerPackage());
|
||||||
updateOption(CodegenConstants.ARTIFACT_ID, this.getArtifactId());
|
updateOption(CodegenConstants.ARTIFACT_ID, this.getArtifactId());
|
||||||
@ -1023,16 +1021,6 @@ public class JavaClientCodegen extends AbstractJavaCodegen
|
|||||||
return codegenModel;
|
return codegenModel;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
protected boolean needToImport(String type) {
|
|
||||||
// add import for BigDecimal explicitly since it is a primitive type
|
|
||||||
if("BigDecimal".equals(type)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return super.needToImport(type) && !type.contains(".");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ModelsMap postProcessModelsEnum(ModelsMap objs) {
|
public ModelsMap postProcessModelsEnum(ModelsMap objs) {
|
||||||
objs = super.postProcessModelsEnum(objs);
|
objs = super.postProcessModelsEnum(objs);
|
||||||
|
@ -135,6 +135,13 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im
|
|||||||
// deserialize {{{dataType}}}
|
// deserialize {{{dataType}}}
|
||||||
try {
|
try {
|
||||||
// validate the JSON object to see if any exception is thrown
|
// validate the JSON object to see if any exception is thrown
|
||||||
|
{{#isNumber}}
|
||||||
|
if(!jsonElement.getAsJsonPrimitive().isNumber()) {
|
||||||
|
throw new IllegalArgumentException(String.format("Expected json element to be of type Number in the JSON string but got `%s`", jsonElement.toString()));
|
||||||
|
}
|
||||||
|
actualAdapter = adapter{{{dataType}}};
|
||||||
|
{{/isNumber}}
|
||||||
|
{{^isNumber}}
|
||||||
{{#isPrimitiveType}}
|
{{#isPrimitiveType}}
|
||||||
if(!jsonElement.getAsJsonPrimitive().is{{#isBoolean}}Boolean{{/isBoolean}}{{#isString}}String{{/isString}}{{^isString}}{{^isBoolean}}Number{{/isBoolean}}{{/isString}}()) {
|
if(!jsonElement.getAsJsonPrimitive().is{{#isBoolean}}Boolean{{/isBoolean}}{{#isString}}String{{/isString}}{{^isString}}{{^isBoolean}}Number{{/isBoolean}}{{/isString}}()) {
|
||||||
throw new IllegalArgumentException(String.format("Expected json element to be of type {{#isBoolean}}Boolean{{/isBoolean}}{{#isString}}String{{/isString}}{{^isString}}{{^isBoolean}}Number{{/isBoolean}}{{/isString}} in the JSON string but got `%s`", jsonElement.toString()));
|
throw new IllegalArgumentException(String.format("Expected json element to be of type {{#isBoolean}}Boolean{{/isBoolean}}{{#isString}}String{{/isString}}{{^isString}}{{^isBoolean}}Number{{/isBoolean}}{{/isString}} in the JSON string but got `%s`", jsonElement.toString()));
|
||||||
@ -147,6 +154,7 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im
|
|||||||
actualAdapter = adapter{{{dataType}}};
|
actualAdapter = adapter{{{dataType}}};
|
||||||
{{/isArray}}
|
{{/isArray}}
|
||||||
{{/isPrimitiveType}}
|
{{/isPrimitiveType}}
|
||||||
|
{{/isNumber}}
|
||||||
{{#isArray}}
|
{{#isArray}}
|
||||||
if (!jsonElement.isJsonArray()) {
|
if (!jsonElement.isJsonArray()) {
|
||||||
throw new IllegalArgumentException(String.format("Expected json element to be a array type in the JSON string but got `%s`", jsonElement.toString()));
|
throw new IllegalArgumentException(String.format("Expected json element to be a array type in the JSON string but got `%s`", jsonElement.toString()));
|
||||||
@ -156,6 +164,13 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im
|
|||||||
// validate array items
|
// validate array items
|
||||||
for(JsonElement element : array) {
|
for(JsonElement element : array) {
|
||||||
{{#items}}
|
{{#items}}
|
||||||
|
{{#isNumber}}
|
||||||
|
if(!jsonElement.getAsJsonPrimitive().isNumber()) {
|
||||||
|
throw new IllegalArgumentException(String.format("Expected json element to be of type Number in the JSON string but got `%s`", jsonElement.toString()));
|
||||||
|
}
|
||||||
|
actualAdapter = adapter{{{dataType}}};
|
||||||
|
{{/isNumber}}
|
||||||
|
{{^isNumber}}
|
||||||
{{#isPrimitiveType}}
|
{{#isPrimitiveType}}
|
||||||
if(!element.getAsJsonPrimitive().is{{#isBoolean}}Boolean{{/isBoolean}}{{#isString}}String{{/isString}}{{^isString}}{{^isBoolean}}Number{{/isBoolean}}{{/isString}}()) {
|
if(!element.getAsJsonPrimitive().is{{#isBoolean}}Boolean{{/isBoolean}}{{#isString}}String{{/isString}}{{^isString}}{{^isBoolean}}Number{{/isBoolean}}{{/isString}}()) {
|
||||||
throw new IllegalArgumentException(String.format("Expected array items to be of type {{#isBoolean}}Boolean{{/isBoolean}}{{#isString}}String{{/isString}}{{^isString}}{{^isBoolean}}Number{{/isBoolean}}{{/isString}} in the JSON string but got `%s`", jsonElement.toString()));
|
throw new IllegalArgumentException(String.format("Expected array items to be of type {{#isBoolean}}Boolean{{/isBoolean}}{{#isString}}String{{/isString}}{{^isString}}{{^isBoolean}}Number{{/isBoolean}}{{/isString}} in the JSON string but got `%s`", jsonElement.toString()));
|
||||||
@ -164,6 +179,7 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im
|
|||||||
{{^isPrimitiveType}}
|
{{^isPrimitiveType}}
|
||||||
{{{dataType}}}.validateJsonElement(element);
|
{{{dataType}}}.validateJsonElement(element);
|
||||||
{{/isPrimitiveType}}
|
{{/isPrimitiveType}}
|
||||||
|
{{/isNumber}}
|
||||||
{{/items}}
|
{{/items}}
|
||||||
}
|
}
|
||||||
actualAdapter = adapter{{{complexType}}}List;
|
actualAdapter = adapter{{{complexType}}}List;
|
||||||
@ -311,6 +327,12 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im
|
|||||||
// validate the json string with {{{dataType}}}
|
// validate the json string with {{{dataType}}}
|
||||||
try {
|
try {
|
||||||
{{^hasVars}}
|
{{^hasVars}}
|
||||||
|
{{#isNumber}}
|
||||||
|
if(!jsonElement.getAsJsonPrimitive().isNumber()) {
|
||||||
|
throw new IllegalArgumentException(String.format("Expected json element to be of type Number in the JSON string but got `%s`", jsonElement.toString()));
|
||||||
|
}
|
||||||
|
{{/isNumber}}
|
||||||
|
{{^isNumber}}
|
||||||
{{#isPrimitiveType}}
|
{{#isPrimitiveType}}
|
||||||
if(!jsonElement.getAsJsonPrimitive().is{{#isBoolean}}Boolean{{/isBoolean}}{{#isString}}String{{/isString}}{{^isString}}{{^isBoolean}}Number{{/isBoolean}}{{/isString}}()) {
|
if(!jsonElement.getAsJsonPrimitive().is{{#isBoolean}}Boolean{{/isBoolean}}{{#isString}}String{{/isString}}{{^isString}}{{^isBoolean}}Number{{/isBoolean}}{{/isString}}()) {
|
||||||
throw new IllegalArgumentException(String.format("Expected json element to be of type {{#isBoolean}}Boolean{{/isBoolean}}{{#isString}}String{{/isString}}{{^isString}}{{^isBoolean}}Number{{/isBoolean}}{{/isString}} in the JSON string but got `%s`", jsonElement.toString()));
|
throw new IllegalArgumentException(String.format("Expected json element to be of type {{#isBoolean}}Boolean{{/isBoolean}}{{#isString}}String{{/isString}}{{^isString}}{{^isBoolean}}Number{{/isBoolean}}{{/isString}} in the JSON string but got `%s`", jsonElement.toString()));
|
||||||
@ -321,6 +343,7 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im
|
|||||||
{{{dataType}}}.validateJsonElement(jsonElement);
|
{{{dataType}}}.validateJsonElement(jsonElement);
|
||||||
{{/isArray}}
|
{{/isArray}}
|
||||||
{{/isPrimitiveType}}
|
{{/isPrimitiveType}}
|
||||||
|
{{/isNumber}}
|
||||||
{{#isArray}}
|
{{#isArray}}
|
||||||
if (!jsonElement.isJsonArray()) {
|
if (!jsonElement.isJsonArray()) {
|
||||||
throw new IllegalArgumentException(String.format("Expected json element to be a array type in the JSON string but got `%s`", jsonElement.toString()));
|
throw new IllegalArgumentException(String.format("Expected json element to be a array type in the JSON string but got `%s`", jsonElement.toString()));
|
||||||
@ -329,6 +352,12 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im
|
|||||||
// validate array items
|
// validate array items
|
||||||
for(JsonElement element : array) {
|
for(JsonElement element : array) {
|
||||||
{{#items}}
|
{{#items}}
|
||||||
|
{{#isNumber}}
|
||||||
|
if(!jsonElement.getAsJsonPrimitive().isNumber()) {
|
||||||
|
throw new IllegalArgumentException(String.format("Expected json element to be of type Number in the JSON string but got `%s`", jsonElement.toString()));
|
||||||
|
}
|
||||||
|
{{/isNumber}}
|
||||||
|
{{^isNumber}}
|
||||||
{{#isPrimitiveType}}
|
{{#isPrimitiveType}}
|
||||||
if(!element.getAsJsonPrimitive().is{{#isBoolean}}Boolean{{/isBoolean}}{{#isString}}String{{/isString}}{{^isString}}{{^isBoolean}}Number{{/isBoolean}}{{/isString}}()) {
|
if(!element.getAsJsonPrimitive().is{{#isBoolean}}Boolean{{/isBoolean}}{{#isString}}String{{/isString}}{{^isString}}{{^isBoolean}}Number{{/isBoolean}}{{/isString}}()) {
|
||||||
throw new IllegalArgumentException(String.format("Expected array items to be of type {{#isBoolean}}Boolean{{/isBoolean}}{{#isString}}String{{/isString}}{{^isString}}{{^isBoolean}}Number{{/isBoolean}}{{/isString}} in the JSON string but got `%s`", jsonElement.toString()));
|
throw new IllegalArgumentException(String.format("Expected array items to be of type {{#isBoolean}}Boolean{{/isBoolean}}{{#isString}}String{{/isString}}{{^isString}}{{^isBoolean}}Number{{/isBoolean}}{{/isString}} in the JSON string but got `%s`", jsonElement.toString()));
|
||||||
@ -337,6 +366,7 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im
|
|||||||
{{^isPrimitiveType}}
|
{{^isPrimitiveType}}
|
||||||
{{{dataType}}}.validateJsonElement(element);
|
{{{dataType}}}.validateJsonElement(element);
|
||||||
{{/isPrimitiveType}}
|
{{/isPrimitiveType}}
|
||||||
|
{{/isNumber}}
|
||||||
{{/items}}
|
{{/items}}
|
||||||
}
|
}
|
||||||
{{/isArray}}
|
{{/isArray}}
|
||||||
|
@ -396,7 +396,7 @@ public class Example {
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
**BigDecimal**
|
[**BigDecimal**](BigDecimal.md)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
|
@ -148,13 +148,15 @@ public class ArrayOfArrayOfNumberOnly {
|
|||||||
// add `ArrayArrayNumber` to the URL query string
|
// add `ArrayArrayNumber` to the URL query string
|
||||||
if (getArrayArrayNumber() != null) {
|
if (getArrayArrayNumber() != null) {
|
||||||
for (int i = 0; i < getArrayArrayNumber().size(); i++) {
|
for (int i = 0; i < getArrayArrayNumber().size(); i++) {
|
||||||
try {
|
if (getArrayArrayNumber().get(i) != null) {
|
||||||
joiner.add(String.format("%sArrayArrayNumber%s%s=%s", prefix, suffix,
|
try {
|
||||||
"".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix),
|
joiner.add(String.format("%sArrayArrayNumber%s%s=%s", prefix, suffix,
|
||||||
URLEncoder.encode(String.valueOf(getArrayArrayNumber().get(i)), "UTF-8").replaceAll("\\+", "%20")));
|
"".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix),
|
||||||
} catch (UnsupportedEncodingException e) {
|
URLEncoder.encode(String.valueOf(getArrayArrayNumber().get(i)), "UTF-8").replaceAll("\\+", "%20")));
|
||||||
// Should never happen, UTF-8 is always supported
|
} catch (UnsupportedEncodingException e) {
|
||||||
throw new RuntimeException(e);
|
// Should never happen, UTF-8 is always supported
|
||||||
|
throw new RuntimeException(e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -148,13 +148,15 @@ public class ArrayOfNumberOnly {
|
|||||||
// add `ArrayNumber` to the URL query string
|
// add `ArrayNumber` to the URL query string
|
||||||
if (getArrayNumber() != null) {
|
if (getArrayNumber() != null) {
|
||||||
for (int i = 0; i < getArrayNumber().size(); i++) {
|
for (int i = 0; i < getArrayNumber().size(); i++) {
|
||||||
try {
|
if (getArrayNumber().get(i) != null) {
|
||||||
joiner.add(String.format("%sArrayNumber%s%s=%s", prefix, suffix,
|
try {
|
||||||
"".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix),
|
joiner.add(String.format("%sArrayNumber%s%s=%s", prefix, suffix,
|
||||||
URLEncoder.encode(String.valueOf(getArrayNumber().get(i)), "UTF-8").replaceAll("\\+", "%20")));
|
"".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix),
|
||||||
} catch (UnsupportedEncodingException e) {
|
URLEncoder.encode(String.valueOf(getArrayNumber().get(i)), "UTF-8").replaceAll("\\+", "%20")));
|
||||||
// Should never happen, UTF-8 is always supported
|
} catch (UnsupportedEncodingException e) {
|
||||||
throw new RuntimeException(e);
|
// Should never happen, UTF-8 is always supported
|
||||||
|
throw new RuntimeException(e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -266,7 +266,7 @@ public class Example {
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
**BigDecimal**
|
[**BigDecimal**](BigDecimal.md)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
|
@ -266,7 +266,7 @@ public class Example {
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
**BigDecimal**
|
[**BigDecimal**](BigDecimal.md)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
|
@ -264,7 +264,7 @@ public class Example {
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
**BigDecimal**
|
[**BigDecimal**](BigDecimal.md)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
|
@ -264,7 +264,7 @@ public class Example {
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
**BigDecimal**
|
[**BigDecimal**](BigDecimal.md)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
|
@ -260,7 +260,7 @@ public class Example {
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
**BigDecimal**
|
[**BigDecimal**](BigDecimal.md)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
|
@ -640,7 +640,7 @@ public class Example {
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
CompletableFuture<**BigDecimal**>
|
CompletableFuture<[**BigDecimal**](BigDecimal.md)>
|
||||||
|
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
@ -716,7 +716,7 @@ public class Example {
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
CompletableFuture<ApiResponse<**BigDecimal**>>
|
CompletableFuture<ApiResponse<[**BigDecimal**](BigDecimal.md)>>
|
||||||
|
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
@ -153,9 +153,11 @@ public class ArrayOfArrayOfNumberOnly {
|
|||||||
// add `ArrayArrayNumber` to the URL query string
|
// add `ArrayArrayNumber` to the URL query string
|
||||||
if (getArrayArrayNumber() != null) {
|
if (getArrayArrayNumber() != null) {
|
||||||
for (int i = 0; i < getArrayArrayNumber().size(); i++) {
|
for (int i = 0; i < getArrayArrayNumber().size(); i++) {
|
||||||
joiner.add(String.format("%sArrayArrayNumber%s%s=%s", prefix, suffix,
|
if (getArrayArrayNumber().get(i) != null) {
|
||||||
"".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix),
|
joiner.add(String.format("%sArrayArrayNumber%s%s=%s", prefix, suffix,
|
||||||
URLEncoder.encode(String.valueOf(getArrayArrayNumber().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
|
"".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix),
|
||||||
|
URLEncoder.encode(String.valueOf(getArrayArrayNumber().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -153,9 +153,11 @@ public class ArrayOfNumberOnly {
|
|||||||
// add `ArrayNumber` to the URL query string
|
// add `ArrayNumber` to the URL query string
|
||||||
if (getArrayNumber() != null) {
|
if (getArrayNumber() != null) {
|
||||||
for (int i = 0; i < getArrayNumber().size(); i++) {
|
for (int i = 0; i < getArrayNumber().size(); i++) {
|
||||||
joiner.add(String.format("%sArrayNumber%s%s=%s", prefix, suffix,
|
if (getArrayNumber().get(i) != null) {
|
||||||
"".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix),
|
joiner.add(String.format("%sArrayNumber%s%s=%s", prefix, suffix,
|
||||||
URLEncoder.encode(String.valueOf(getArrayNumber().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
|
"".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix),
|
||||||
|
URLEncoder.encode(String.valueOf(getArrayNumber().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -603,7 +603,7 @@ public class Example {
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
**BigDecimal**
|
[**BigDecimal**](BigDecimal.md)
|
||||||
|
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
@ -671,7 +671,7 @@ public class Example {
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
ApiResponse<**BigDecimal**>
|
ApiResponse<[**BigDecimal**](BigDecimal.md)>
|
||||||
|
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
@ -153,9 +153,11 @@ public class ArrayOfArrayOfNumberOnly {
|
|||||||
// add `ArrayArrayNumber` to the URL query string
|
// add `ArrayArrayNumber` to the URL query string
|
||||||
if (getArrayArrayNumber() != null) {
|
if (getArrayArrayNumber() != null) {
|
||||||
for (int i = 0; i < getArrayArrayNumber().size(); i++) {
|
for (int i = 0; i < getArrayArrayNumber().size(); i++) {
|
||||||
joiner.add(String.format("%sArrayArrayNumber%s%s=%s", prefix, suffix,
|
if (getArrayArrayNumber().get(i) != null) {
|
||||||
"".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix),
|
joiner.add(String.format("%sArrayArrayNumber%s%s=%s", prefix, suffix,
|
||||||
URLEncoder.encode(String.valueOf(getArrayArrayNumber().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
|
"".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix),
|
||||||
|
URLEncoder.encode(String.valueOf(getArrayArrayNumber().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -153,9 +153,11 @@ public class ArrayOfNumberOnly {
|
|||||||
// add `ArrayNumber` to the URL query string
|
// add `ArrayNumber` to the URL query string
|
||||||
if (getArrayNumber() != null) {
|
if (getArrayNumber() != null) {
|
||||||
for (int i = 0; i < getArrayNumber().size(); i++) {
|
for (int i = 0; i < getArrayNumber().size(); i++) {
|
||||||
joiner.add(String.format("%sArrayNumber%s%s=%s", prefix, suffix,
|
if (getArrayNumber().get(i) != null) {
|
||||||
"".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix),
|
joiner.add(String.format("%sArrayNumber%s%s=%s", prefix, suffix,
|
||||||
URLEncoder.encode(String.valueOf(getArrayNumber().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
|
"".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix),
|
||||||
|
URLEncoder.encode(String.valueOf(getArrayNumber().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -251,7 +251,7 @@ public class Example {
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
**BigDecimal**
|
[**BigDecimal**](BigDecimal.md)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
|
@ -251,7 +251,7 @@ public class Example {
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
**BigDecimal**
|
[**BigDecimal**](BigDecimal.md)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
|
@ -475,7 +475,7 @@ public class AdditionalPropertiesClass implements Parcelable {
|
|||||||
|
|
||||||
AdditionalPropertiesClass(Parcel in) {
|
AdditionalPropertiesClass(Parcel in) {
|
||||||
mapString = (Map<String, String>)in.readValue(null);
|
mapString = (Map<String, String>)in.readValue(null);
|
||||||
mapNumber = (Map<String, BigDecimal>)in.readValue(null);
|
mapNumber = (Map<String, BigDecimal>)in.readValue(BigDecimal.class.getClassLoader());
|
||||||
mapInteger = (Map<String, Integer>)in.readValue(null);
|
mapInteger = (Map<String, Integer>)in.readValue(null);
|
||||||
mapBoolean = (Map<String, Boolean>)in.readValue(null);
|
mapBoolean = (Map<String, Boolean>)in.readValue(null);
|
||||||
mapArrayInteger = (Map<String, List<Integer>>)in.readValue(List.class.getClassLoader());
|
mapArrayInteger = (Map<String, List<Integer>>)in.readValue(List.class.getClassLoader());
|
||||||
|
@ -137,7 +137,7 @@ public class ArrayOfNumberOnly implements Parcelable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ArrayOfNumberOnly(Parcel in) {
|
ArrayOfNumberOnly(Parcel in) {
|
||||||
arrayNumber = (List<BigDecimal>)in.readValue(null);
|
arrayNumber = (List<BigDecimal>)in.readValue(BigDecimal.class.getClassLoader());
|
||||||
}
|
}
|
||||||
|
|
||||||
public int describeContents() {
|
public int describeContents() {
|
||||||
|
@ -508,7 +508,7 @@ public class FormatTest implements Parcelable {
|
|||||||
integer = (Integer)in.readValue(null);
|
integer = (Integer)in.readValue(null);
|
||||||
int32 = (Integer)in.readValue(null);
|
int32 = (Integer)in.readValue(null);
|
||||||
int64 = (Long)in.readValue(null);
|
int64 = (Long)in.readValue(null);
|
||||||
number = (BigDecimal)in.readValue(null);
|
number = (BigDecimal)in.readValue(BigDecimal.class.getClassLoader());
|
||||||
_float = (Float)in.readValue(null);
|
_float = (Float)in.readValue(null);
|
||||||
_double = (Double)in.readValue(null);
|
_double = (Double)in.readValue(null);
|
||||||
string = (String)in.readValue(null);
|
string = (String)in.readValue(null);
|
||||||
@ -518,7 +518,7 @@ public class FormatTest implements Parcelable {
|
|||||||
dateTime = (OffsetDateTime)in.readValue(OffsetDateTime.class.getClassLoader());
|
dateTime = (OffsetDateTime)in.readValue(OffsetDateTime.class.getClassLoader());
|
||||||
uuid = (UUID)in.readValue(UUID.class.getClassLoader());
|
uuid = (UUID)in.readValue(UUID.class.getClassLoader());
|
||||||
password = (String)in.readValue(null);
|
password = (String)in.readValue(null);
|
||||||
bigDecimal = (BigDecimal)in.readValue(null);
|
bigDecimal = (BigDecimal)in.readValue(BigDecimal.class.getClassLoader());
|
||||||
}
|
}
|
||||||
|
|
||||||
public int describeContents() {
|
public int describeContents() {
|
||||||
|
@ -127,7 +127,7 @@ public class NumberOnly implements Parcelable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
NumberOnly(Parcel in) {
|
NumberOnly(Parcel in) {
|
||||||
justNumber = (BigDecimal)in.readValue(null);
|
justNumber = (BigDecimal)in.readValue(BigDecimal.class.getClassLoader());
|
||||||
}
|
}
|
||||||
|
|
||||||
public int describeContents() {
|
public int describeContents() {
|
||||||
|
@ -183,7 +183,7 @@ public class OuterComposite implements Parcelable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
OuterComposite(Parcel in) {
|
OuterComposite(Parcel in) {
|
||||||
myNumber = (BigDecimal)in.readValue(null);
|
myNumber = (BigDecimal)in.readValue(BigDecimal.class.getClassLoader());
|
||||||
myString = (String)in.readValue(null);
|
myString = (String)in.readValue(null);
|
||||||
myBoolean = (Boolean)in.readValue(null);
|
myBoolean = (Boolean)in.readValue(null);
|
||||||
}
|
}
|
||||||
|
@ -250,7 +250,7 @@ public class TypeHolderDefault implements Parcelable {
|
|||||||
|
|
||||||
TypeHolderDefault(Parcel in) {
|
TypeHolderDefault(Parcel in) {
|
||||||
stringItem = (String)in.readValue(null);
|
stringItem = (String)in.readValue(null);
|
||||||
numberItem = (BigDecimal)in.readValue(null);
|
numberItem = (BigDecimal)in.readValue(BigDecimal.class.getClassLoader());
|
||||||
integerItem = (Integer)in.readValue(null);
|
integerItem = (Integer)in.readValue(null);
|
||||||
boolItem = (Boolean)in.readValue(null);
|
boolItem = (Boolean)in.readValue(null);
|
||||||
arrayItem = (List<Integer>)in.readValue(null);
|
arrayItem = (List<Integer>)in.readValue(null);
|
||||||
|
@ -278,7 +278,7 @@ public class TypeHolderExample implements Parcelable {
|
|||||||
|
|
||||||
TypeHolderExample(Parcel in) {
|
TypeHolderExample(Parcel in) {
|
||||||
stringItem = (String)in.readValue(null);
|
stringItem = (String)in.readValue(null);
|
||||||
numberItem = (BigDecimal)in.readValue(null);
|
numberItem = (BigDecimal)in.readValue(BigDecimal.class.getClassLoader());
|
||||||
floatItem = (Float)in.readValue(null);
|
floatItem = (Float)in.readValue(null);
|
||||||
integerItem = (Integer)in.readValue(null);
|
integerItem = (Integer)in.readValue(null);
|
||||||
boolItem = (Boolean)in.readValue(null);
|
boolItem = (Boolean)in.readValue(null);
|
||||||
|
@ -986,30 +986,30 @@ public class XmlItem implements Parcelable {
|
|||||||
|
|
||||||
XmlItem(Parcel in) {
|
XmlItem(Parcel in) {
|
||||||
attributeString = (String)in.readValue(null);
|
attributeString = (String)in.readValue(null);
|
||||||
attributeNumber = (BigDecimal)in.readValue(null);
|
attributeNumber = (BigDecimal)in.readValue(BigDecimal.class.getClassLoader());
|
||||||
attributeInteger = (Integer)in.readValue(null);
|
attributeInteger = (Integer)in.readValue(null);
|
||||||
attributeBoolean = (Boolean)in.readValue(null);
|
attributeBoolean = (Boolean)in.readValue(null);
|
||||||
wrappedArray = (List<Integer>)in.readValue(null);
|
wrappedArray = (List<Integer>)in.readValue(null);
|
||||||
nameString = (String)in.readValue(null);
|
nameString = (String)in.readValue(null);
|
||||||
nameNumber = (BigDecimal)in.readValue(null);
|
nameNumber = (BigDecimal)in.readValue(BigDecimal.class.getClassLoader());
|
||||||
nameInteger = (Integer)in.readValue(null);
|
nameInteger = (Integer)in.readValue(null);
|
||||||
nameBoolean = (Boolean)in.readValue(null);
|
nameBoolean = (Boolean)in.readValue(null);
|
||||||
nameArray = (List<Integer>)in.readValue(null);
|
nameArray = (List<Integer>)in.readValue(null);
|
||||||
nameWrappedArray = (List<Integer>)in.readValue(null);
|
nameWrappedArray = (List<Integer>)in.readValue(null);
|
||||||
prefixString = (String)in.readValue(null);
|
prefixString = (String)in.readValue(null);
|
||||||
prefixNumber = (BigDecimal)in.readValue(null);
|
prefixNumber = (BigDecimal)in.readValue(BigDecimal.class.getClassLoader());
|
||||||
prefixInteger = (Integer)in.readValue(null);
|
prefixInteger = (Integer)in.readValue(null);
|
||||||
prefixBoolean = (Boolean)in.readValue(null);
|
prefixBoolean = (Boolean)in.readValue(null);
|
||||||
prefixArray = (List<Integer>)in.readValue(null);
|
prefixArray = (List<Integer>)in.readValue(null);
|
||||||
prefixWrappedArray = (List<Integer>)in.readValue(null);
|
prefixWrappedArray = (List<Integer>)in.readValue(null);
|
||||||
namespaceString = (String)in.readValue(null);
|
namespaceString = (String)in.readValue(null);
|
||||||
namespaceNumber = (BigDecimal)in.readValue(null);
|
namespaceNumber = (BigDecimal)in.readValue(BigDecimal.class.getClassLoader());
|
||||||
namespaceInteger = (Integer)in.readValue(null);
|
namespaceInteger = (Integer)in.readValue(null);
|
||||||
namespaceBoolean = (Boolean)in.readValue(null);
|
namespaceBoolean = (Boolean)in.readValue(null);
|
||||||
namespaceArray = (List<Integer>)in.readValue(null);
|
namespaceArray = (List<Integer>)in.readValue(null);
|
||||||
namespaceWrappedArray = (List<Integer>)in.readValue(null);
|
namespaceWrappedArray = (List<Integer>)in.readValue(null);
|
||||||
prefixNsString = (String)in.readValue(null);
|
prefixNsString = (String)in.readValue(null);
|
||||||
prefixNsNumber = (BigDecimal)in.readValue(null);
|
prefixNsNumber = (BigDecimal)in.readValue(BigDecimal.class.getClassLoader());
|
||||||
prefixNsInteger = (Integer)in.readValue(null);
|
prefixNsInteger = (Integer)in.readValue(null);
|
||||||
prefixNsBoolean = (Boolean)in.readValue(null);
|
prefixNsBoolean = (Boolean)in.readValue(null);
|
||||||
prefixNsArray = (List<Integer>)in.readValue(null);
|
prefixNsArray = (List<Integer>)in.readValue(null);
|
||||||
|
@ -248,7 +248,7 @@ public class Example {
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
**BigDecimal**
|
[**BigDecimal**](BigDecimal.md)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
|
@ -84,8 +84,8 @@ public class Scalar extends AbstractOpenApiSchema {
|
|||||||
}
|
}
|
||||||
// check if the actual instance is of the type `BigDecimal`
|
// check if the actual instance is of the type `BigDecimal`
|
||||||
if (value.getActualInstance() instanceof BigDecimal) {
|
if (value.getActualInstance() instanceof BigDecimal) {
|
||||||
JsonPrimitive primitive = adapterBigDecimal.toJsonTree((BigDecimal)value.getActualInstance()).getAsJsonPrimitive();
|
JsonElement element = adapterBigDecimal.toJsonTree((BigDecimal)value.getActualInstance());
|
||||||
elementAdapter.write(out, primitive);
|
elementAdapter.write(out, element);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// check if the actual instance is of the type `Boolean`
|
// check if the actual instance is of the type `Boolean`
|
||||||
|
@ -174,7 +174,7 @@ api.fakeOuterNumberSerialize().execute(r -> r.prettyPeek());
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
**BigDecimal**
|
[**BigDecimal**](BigDecimal.md)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
|
@ -138,6 +138,7 @@ public class AdditionalPropertiesClass {
|
|||||||
* @return mapNumber
|
* @return mapNumber
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_MAP_NUMBER)
|
@JsonProperty(JSON_PROPERTY_MAP_NUMBER)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@ -62,6 +62,7 @@ public class ArrayOfNumberOnly {
|
|||||||
* @return arrayNumber
|
* @return arrayNumber
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_ARRAY_NUMBER)
|
@JsonProperty(JSON_PROPERTY_ARRAY_NUMBER)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@ -197,6 +197,7 @@ public class FormatTest {
|
|||||||
**/
|
**/
|
||||||
@javax.annotation.Nonnull
|
@javax.annotation.Nonnull
|
||||||
@NotNull
|
@NotNull
|
||||||
|
@Valid
|
||||||
@DecimalMin("32.1") @DecimalMax("543.2")
|
@DecimalMin("32.1") @DecimalMax("543.2")
|
||||||
@JsonProperty(JSON_PROPERTY_NUMBER)
|
@JsonProperty(JSON_PROPERTY_NUMBER)
|
||||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||||
@ -478,6 +479,7 @@ public class FormatTest {
|
|||||||
* @return bigDecimal
|
* @return bigDecimal
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_BIG_DECIMAL)
|
@JsonProperty(JSON_PROPERTY_BIG_DECIMAL)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@ -52,6 +52,7 @@ public class NumberOnly {
|
|||||||
* @return justNumber
|
* @return justNumber
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_JUST_NUMBER)
|
@JsonProperty(JSON_PROPERTY_JUST_NUMBER)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@ -60,6 +60,7 @@ public class OuterComposite {
|
|||||||
* @return myNumber
|
* @return myNumber
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_MY_NUMBER)
|
@JsonProperty(JSON_PROPERTY_MY_NUMBER)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@ -99,6 +99,7 @@ public class TypeHolderDefault {
|
|||||||
**/
|
**/
|
||||||
@javax.annotation.Nonnull
|
@javax.annotation.Nonnull
|
||||||
@NotNull
|
@NotNull
|
||||||
|
@Valid
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_NUMBER_ITEM)
|
@JsonProperty(JSON_PROPERTY_NUMBER_ITEM)
|
||||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||||
|
@ -103,6 +103,7 @@ public class TypeHolderExample {
|
|||||||
**/
|
**/
|
||||||
@javax.annotation.Nonnull
|
@javax.annotation.Nonnull
|
||||||
@NotNull
|
@NotNull
|
||||||
|
@Valid
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_NUMBER_ITEM)
|
@JsonProperty(JSON_PROPERTY_NUMBER_ITEM)
|
||||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||||
|
@ -193,6 +193,7 @@ public class XmlItem {
|
|||||||
* @return attributeNumber
|
* @return attributeNumber
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER)
|
@JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
@ -336,6 +337,7 @@ public class XmlItem {
|
|||||||
* @return nameNumber
|
* @return nameNumber
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_NAME_NUMBER)
|
@JsonProperty(JSON_PROPERTY_NAME_NUMBER)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
@ -514,6 +516,7 @@ public class XmlItem {
|
|||||||
* @return prefixNumber
|
* @return prefixNumber
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_PREFIX_NUMBER)
|
@JsonProperty(JSON_PROPERTY_PREFIX_NUMBER)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
@ -692,6 +695,7 @@ public class XmlItem {
|
|||||||
* @return namespaceNumber
|
* @return namespaceNumber
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER)
|
@JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
@ -870,6 +874,7 @@ public class XmlItem {
|
|||||||
* @return prefixNsNumber
|
* @return prefixNsNumber
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER)
|
@JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@ -174,7 +174,7 @@ api.fakeOuterNumberSerialize().execute(r -> r.prettyPeek());
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
**BigDecimal**
|
[**BigDecimal**](BigDecimal.md)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
|
@ -131,6 +131,7 @@ public class AdditionalPropertiesClass {
|
|||||||
* @return mapNumber
|
* @return mapNumber
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
|
|
||||||
|
|
||||||
public Map<String, BigDecimal> getMapNumber() {
|
public Map<String, BigDecimal> getMapNumber() {
|
||||||
|
@ -59,6 +59,7 @@ public class ArrayOfNumberOnly {
|
|||||||
* @return arrayNumber
|
* @return arrayNumber
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
|
|
||||||
|
|
||||||
public List<BigDecimal> getArrayNumber() {
|
public List<BigDecimal> getArrayNumber() {
|
||||||
|
@ -181,6 +181,7 @@ public class FormatTest {
|
|||||||
**/
|
**/
|
||||||
@javax.annotation.Nonnull
|
@javax.annotation.Nonnull
|
||||||
@NotNull
|
@NotNull
|
||||||
|
@Valid
|
||||||
@DecimalMin("32.1") @DecimalMax("543.2")
|
@DecimalMin("32.1") @DecimalMax("543.2")
|
||||||
|
|
||||||
public BigDecimal getNumber() {
|
public BigDecimal getNumber() {
|
||||||
@ -422,6 +423,7 @@ public class FormatTest {
|
|||||||
* @return bigDecimal
|
* @return bigDecimal
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
|
|
||||||
|
|
||||||
public BigDecimal getBigDecimal() {
|
public BigDecimal getBigDecimal() {
|
||||||
|
@ -49,6 +49,7 @@ public class NumberOnly {
|
|||||||
* @return justNumber
|
* @return justNumber
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
|
|
||||||
|
|
||||||
public BigDecimal getJustNumber() {
|
public BigDecimal getJustNumber() {
|
||||||
|
@ -57,6 +57,7 @@ public class OuterComposite {
|
|||||||
* @return myNumber
|
* @return myNumber
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
|
|
||||||
|
|
||||||
public BigDecimal getMyNumber() {
|
public BigDecimal getMyNumber() {
|
||||||
|
@ -92,6 +92,7 @@ public class TypeHolderDefault {
|
|||||||
**/
|
**/
|
||||||
@javax.annotation.Nonnull
|
@javax.annotation.Nonnull
|
||||||
@NotNull
|
@NotNull
|
||||||
|
@Valid
|
||||||
|
|
||||||
|
|
||||||
public BigDecimal getNumberItem() {
|
public BigDecimal getNumberItem() {
|
||||||
|
@ -96,6 +96,7 @@ public class TypeHolderExample {
|
|||||||
**/
|
**/
|
||||||
@javax.annotation.Nonnull
|
@javax.annotation.Nonnull
|
||||||
@NotNull
|
@NotNull
|
||||||
|
@Valid
|
||||||
|
|
||||||
|
|
||||||
public BigDecimal getNumberItem() {
|
public BigDecimal getNumberItem() {
|
||||||
|
@ -186,6 +186,7 @@ public class XmlItem {
|
|||||||
* @return attributeNumber
|
* @return attributeNumber
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
|
|
||||||
|
|
||||||
public BigDecimal getAttributeNumber() {
|
public BigDecimal getAttributeNumber() {
|
||||||
@ -309,6 +310,7 @@ public class XmlItem {
|
|||||||
* @return nameNumber
|
* @return nameNumber
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
|
|
||||||
|
|
||||||
public BigDecimal getNameNumber() {
|
public BigDecimal getNameNumber() {
|
||||||
@ -463,6 +465,7 @@ public class XmlItem {
|
|||||||
* @return prefixNumber
|
* @return prefixNumber
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
|
|
||||||
|
|
||||||
public BigDecimal getPrefixNumber() {
|
public BigDecimal getPrefixNumber() {
|
||||||
@ -617,6 +620,7 @@ public class XmlItem {
|
|||||||
* @return namespaceNumber
|
* @return namespaceNumber
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
|
|
||||||
|
|
||||||
public BigDecimal getNamespaceNumber() {
|
public BigDecimal getNamespaceNumber() {
|
||||||
@ -771,6 +775,7 @@ public class XmlItem {
|
|||||||
* @return prefixNsNumber
|
* @return prefixNsNumber
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
|
|
||||||
|
|
||||||
public BigDecimal getPrefixNsNumber() {
|
public BigDecimal getPrefixNsNumber() {
|
||||||
|
@ -266,7 +266,7 @@ public class Example {
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
**BigDecimal**
|
[**BigDecimal**](BigDecimal.md)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
|
@ -266,7 +266,7 @@ public class Example {
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
**BigDecimal**
|
[**BigDecimal**](BigDecimal.md)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
|
@ -266,7 +266,7 @@ public class Example {
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
**BigDecimal**
|
[**BigDecimal**](BigDecimal.md)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
|
@ -266,7 +266,7 @@ public class Example {
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
**BigDecimal**
|
[**BigDecimal**](BigDecimal.md)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
|
@ -137,6 +137,7 @@ public class AdditionalPropertiesClass {
|
|||||||
* @return mapNumber
|
* @return mapNumber
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_MAP_NUMBER)
|
@JsonProperty(JSON_PROPERTY_MAP_NUMBER)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@ -61,6 +61,7 @@ public class ArrayOfNumberOnly {
|
|||||||
* @return arrayNumber
|
* @return arrayNumber
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_ARRAY_NUMBER)
|
@JsonProperty(JSON_PROPERTY_ARRAY_NUMBER)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@ -196,6 +196,7 @@ public class FormatTest {
|
|||||||
**/
|
**/
|
||||||
@javax.annotation.Nonnull
|
@javax.annotation.Nonnull
|
||||||
@NotNull
|
@NotNull
|
||||||
|
@Valid
|
||||||
@DecimalMin("32.1") @DecimalMax("543.2")
|
@DecimalMin("32.1") @DecimalMax("543.2")
|
||||||
@JsonProperty(JSON_PROPERTY_NUMBER)
|
@JsonProperty(JSON_PROPERTY_NUMBER)
|
||||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||||
@ -477,6 +478,7 @@ public class FormatTest {
|
|||||||
* @return bigDecimal
|
* @return bigDecimal
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_BIG_DECIMAL)
|
@JsonProperty(JSON_PROPERTY_BIG_DECIMAL)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@ -51,6 +51,7 @@ public class NumberOnly {
|
|||||||
* @return justNumber
|
* @return justNumber
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_JUST_NUMBER)
|
@JsonProperty(JSON_PROPERTY_JUST_NUMBER)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@ -59,6 +59,7 @@ public class OuterComposite {
|
|||||||
* @return myNumber
|
* @return myNumber
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_MY_NUMBER)
|
@JsonProperty(JSON_PROPERTY_MY_NUMBER)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@ -98,6 +98,7 @@ public class TypeHolderDefault {
|
|||||||
**/
|
**/
|
||||||
@javax.annotation.Nonnull
|
@javax.annotation.Nonnull
|
||||||
@NotNull
|
@NotNull
|
||||||
|
@Valid
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_NUMBER_ITEM)
|
@JsonProperty(JSON_PROPERTY_NUMBER_ITEM)
|
||||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||||
|
@ -102,6 +102,7 @@ public class TypeHolderExample {
|
|||||||
**/
|
**/
|
||||||
@javax.annotation.Nonnull
|
@javax.annotation.Nonnull
|
||||||
@NotNull
|
@NotNull
|
||||||
|
@Valid
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_NUMBER_ITEM)
|
@JsonProperty(JSON_PROPERTY_NUMBER_ITEM)
|
||||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||||
|
@ -192,6 +192,7 @@ public class XmlItem {
|
|||||||
* @return attributeNumber
|
* @return attributeNumber
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER)
|
@JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
@ -335,6 +336,7 @@ public class XmlItem {
|
|||||||
* @return nameNumber
|
* @return nameNumber
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_NAME_NUMBER)
|
@JsonProperty(JSON_PROPERTY_NAME_NUMBER)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
@ -513,6 +515,7 @@ public class XmlItem {
|
|||||||
* @return prefixNumber
|
* @return prefixNumber
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_PREFIX_NUMBER)
|
@JsonProperty(JSON_PROPERTY_PREFIX_NUMBER)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
@ -691,6 +694,7 @@ public class XmlItem {
|
|||||||
* @return namespaceNumber
|
* @return namespaceNumber
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER)
|
@JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
@ -869,6 +873,7 @@ public class XmlItem {
|
|||||||
* @return prefixNsNumber
|
* @return prefixNsNumber
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@Valid
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER)
|
@JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@ -266,7 +266,7 @@ public class Example {
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
**BigDecimal**
|
[**BigDecimal**](BigDecimal.md)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
|
@ -266,7 +266,7 @@ public class Example {
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
**BigDecimal**
|
[**BigDecimal**](BigDecimal.md)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
|
@ -266,7 +266,7 @@ public class Example {
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
**BigDecimal**
|
[**BigDecimal**](BigDecimal.md)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
|
@ -266,7 +266,7 @@ public class Example {
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
**BigDecimal**
|
[**BigDecimal**](BigDecimal.md)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
|
@ -266,7 +266,7 @@ public class Example {
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
**BigDecimal**
|
[**BigDecimal**](BigDecimal.md)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
|
@ -396,7 +396,7 @@ public class Example {
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
**BigDecimal**
|
[**BigDecimal**](BigDecimal.md)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
|
@ -396,7 +396,7 @@ public class Example {
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
**BigDecimal**
|
[**BigDecimal**](BigDecimal.md)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
|
@ -396,7 +396,7 @@ public class Example {
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
**BigDecimal**
|
[**BigDecimal**](BigDecimal.md)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
|
@ -260,7 +260,7 @@ public class Example {
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
**BigDecimal**
|
[**BigDecimal**](BigDecimal.md)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user