Skip to content

Method validation error handling by controller method parameter type #30813

Closed
@rstoyanchev

Description

@rstoyanchev

As described under #26219, in #26219 (comment) and #26219 (comment), when handling method validation errors, it's useful to know what it relates to, e.g. header name, cookie value, etc.

After #29825 and #30644 it is already possible to get a MethodParameter from each ParameterValidationResult and check parameter annotations. We can make it even easier to handle validation results for controller methods by method parameter type.

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions