Similar to generator-dto-records-use-requirenonnull
For code using the generated DTOs primary as a receiver, a null-input in wire data will cause deserialization to fail.
Which causes an unspecified 500 to be returned to the caller.
But if the DTO gets created (with a bad null field) it will be passed to the bean validator, which will return a better 4xx with a description of which field is wrong.
Similar to generator-dto-records-use-requirenonnull
For code using the generated DTOs primary as a receiver, a null-input in wire data will cause deserialization to fail. Which causes an unspecified 500 to be returned to the caller. But if the DTO gets created (with a bad null field) it will be passed to the bean validator, which will return a better 4xx with a description of which field is wrong.
(Allan)