absent properties sets to zero for primitives by default #4586
Closed
Boeing1337
started this conversation in
General
Replies: 1 comment 1 reply
-
If you want it to be required, use As to why default of |
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.
-
Describe your Issue
When we use constructor injections
record DTORecord(int id) {}
with empty body request
{}
it should be consider as bad request, property id is mandatory.What is the reason to consider absent value as zero? Zero is a value, why does framework decides for me which value I send?
Am I missing some logic?
so why FAIL_ON_MISSING_CREATOR_PROPERTIES is not a default behavior?
Beta Was this translation helpful? Give feedback.
All reactions