Skip to content

Reference Documentation: instruct how RestTemplate should handle the errors thrown about @Validated (JSR 303/349) [SPR-14724] #19289

Closed
@spring-projects-issues

Description

@spring-projects-issues

Manuel Jordan opened SPR-14724 and commented

Hello

In the current Reference Documentation, for the 28.10 Accessing RESTful services on the Client section.

Why not add a section about how RestTemplate should handle the errors thrown by validation (JSR 303/349)?. It when a @Controller for Rest is using @Validated. Consider cover the testing scenarios too.

I have seen some tutorials but seems the developer must write his own code. Even more, I did realise exists many approaches, in some way verbose until some point.

Therefore just curious what is the best approach recommended by the source (Spring Reference documentation) with the current version 4.3.2 and 5 coming, just curious if the API is friendly for this.

Thanks by your understanding.


Affects: 4.3 GA, 4.3.1, 4.3.2, 5.0 M1

Metadata

Metadata

Assignees

Labels

in: testIssues in the test modulein: webIssues in web modules (web, webmvc, webflux, websocket)type: documentationA documentation task

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions