Nullity validation for Controller #406
babyfish-ct
started this conversation in
Ideas
Replies: 3 comments
-
我建议是不要动这一块,controller的入参,惯性太大了,此举会劝退不少想要尝试jimmer的新用户。如果非要做这个事情的话,我建议给一个配置项,默认关闭,想开启严格校验时,由用户手动开启配置项。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
和 database-validation 类似的整一个配置项,默认关闭 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In
0.8.86
, Jimmer validates the nullity of the parameters of RestController, including primitive types and there box types. Eg:will cause an error, because
Long
means optional but@RequestParam(required = true)
means mandatory.In order to fix it, users have 2 choices:
Is it validation too strict? Would jimmer keep the validation for primitive/box types or remove it?
Beta Was this translation helpful? Give feedback.
All reactions