Skip to content

absent properties sets to zero for primitives by default #4585

@Boeing1337

Description

@Boeing1337

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    to-evaluateIssue that has been received but not yet evaluated

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions