Compare commits
2 Commits
431ea1d628
...
d36c366ab6
Author | SHA1 | Date | |
---|---|---|---|
d36c366ab6 | |||
cddb4dd7fe |
2
pom.xml
2
pom.xml
@ -3,7 +3,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>kangaroo-and-rabbit</groupId>
|
||||
<artifactId>archidata</artifactId>
|
||||
<version>0.23.0</version>
|
||||
<version>0.23.1-SNAPSHOT</version>
|
||||
<properties>
|
||||
<java.version>21</java.version>
|
||||
<maven.compiler.version>3.1</maven.compiler.version>
|
||||
|
@ -289,28 +289,32 @@ public class TsClassElement {
|
||||
|| clazz == long.class || clazz == Long.class || clazz == float.class || clazz == Float.class
|
||||
|| clazz == double.class || clazz == Double.class) {
|
||||
if (field.min() != null) {
|
||||
builder.append(".min(");
|
||||
builder.append(".gte(");
|
||||
builder.append(field.min().value());
|
||||
builder.append(")");
|
||||
}
|
||||
if (field.max() != null) {
|
||||
builder.append(".max(");
|
||||
builder.append(".lte(");
|
||||
builder.append(field.max().value());
|
||||
builder.append(")");
|
||||
}
|
||||
if (field.decimalMax() != null) {
|
||||
builder.append(".max(");
|
||||
if (field.decimalMax().inclusive()) {
|
||||
builder.append(".lte(");
|
||||
} else {
|
||||
builder.append(".lt(");
|
||||
}
|
||||
builder.append(field.decimalMax().value());
|
||||
builder.append(", { inclusive: ");
|
||||
builder.append(field.decimalMax().inclusive() ? "true" : "false");
|
||||
builder.append("})");
|
||||
builder.append(")");
|
||||
}
|
||||
if (field.decimalMin() != null) {
|
||||
builder.append(".min(");
|
||||
if (field.decimalMin().inclusive()) {
|
||||
builder.append(".gte(");
|
||||
} else {
|
||||
builder.append(".gt(");
|
||||
}
|
||||
builder.append(field.decimalMin().value());
|
||||
builder.append(", { inclusive: ");
|
||||
builder.append(field.decimalMin().inclusive() ? "true" : "false");
|
||||
builder.append("})");
|
||||
builder.append(")");
|
||||
}
|
||||
}
|
||||
return builder.toString();
|
||||
|
@ -1 +1 @@
|
||||
0.23.0
|
||||
0.23.1-dev
|
||||
|
Loading…
x
Reference in New Issue
Block a user