micronaut-core icon indicating copy to clipboard operation
micronaut-core copied to clipboard

Add config option for strict request argument error checking

Open yawkat opened this issue 2 years ago • 12 comments

When the value of a request argument (e.g. a @QueryValue) is invalid, but the parameter is marked @Nullable, strict conversion checking will produce an error. Without this option enabled, the parameter will simply be set to null.

I've added a parameter to the RequestArgumentSatisfier constructor. The class is @Internal and a code search of the micronaut-projects org shows no subclasses outside micronaut-core, so this seems safe.

Fixes #5135

yawkat avatar Feb 01 '22 10:02 yawkat