Replies: 2 comments 1 reply
-
Beta Was this translation helpful? Give feedback.
0 replies
-
If you're using Jackson, it's probably being coerced from integer to boolean. Zero == false, else true [1]. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, Can you answer me please when i added field Boolean in my class (quarkus project). For Example:
public class MyClass {
@notblank
private String newVersion;
@NotNull
private AppName newName;
@NotNull
private Boolean isStart;
}
And when i want use it in my json request body
{
"newVersion": "8.67.79.9",
"newName": "NAME",
"isStart": 45678
}
) and give initial value except true or false (example: 45678), then it understands numbers as true. How to fix the problem?
Beta Was this translation helpful? Give feedback.
All reactions