Skip to content

Commit

Permalink
Avoid duplicated documentation of validation annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrannen authored and Zoran0104 committed Aug 20, 2021
1 parent 3daf4ea commit cfe131a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
Expand Up @@ -58,10 +58,10 @@
* Abstract base class for argument resolvers that resolve method arguments
* by reading the request body with an {@link HttpMessageReader}.
*
* <p>Applies validation if the method argument is annotated with
* {@code @javax.validation.Valid} or
* {@link org.springframework.validation.annotation.Validated}. Validation
* failure results in an {@link ServerWebInputException}.
* <p>Applies validation if the method argument is annotated with any
* {@linkplain org.springframework.validation.annotation.ValidationAnnotationUtils#determineValidationHints
* annotations that trigger validation}. Validation failure results in a
* {@link ServerWebInputException}.
*
* @author Rossen Stoyanchev
* @author Sebastien Deleuze
Expand Down
Expand Up @@ -58,11 +58,10 @@
* the part is not specified, the request part's name is derived from the name of
* the method argument.
*
* <p>Automatic validation may be applied if the argument is annotated with
* {@code @javax.validation.Valid}, Spring's {@link org.springframework.validation.annotation.Validated}
* annotation, or a custom annotation whose name starts with "Valid". In case of
* validation failure, a {@link MethodArgumentNotValidException} is raised and a
* 400 response status code returned if the
* <p>Automatic validation may be applied if the argument is annotated with any
* {@linkplain org.springframework.validation.annotation.ValidationAnnotationUtils#determineValidationHints
* annotations that trigger validation}. In case of validation failure, a
* {@link MethodArgumentNotValidException} is raised and a 400 response status code returned if the
* {@link org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver}
* is configured.
*
Expand Down
Expand Up @@ -51,8 +51,9 @@
* to the body of the request or response with an {@link HttpMessageConverter}.
*
* <p>An {@code @RequestBody} method argument is also validated if it is annotated
* with {@code @javax.validation.Valid}, Spring's {@link org.springframework.validation.annotation.Validated}
* or custom annotations whose name starts with "Valid". In case of validation failure,
* with any
* {@linkplain org.springframework.validation.annotation.ValidationAnnotationUtils#determineValidationHints
* annotations that trigger validation}. In case of validation failure,
* {@link MethodArgumentNotValidException} is raised and results in an HTTP 400
* response status code if {@link DefaultHandlerExceptionResolver} is configured.
*
Expand Down

0 comments on commit cfe131a

Please sign in to comment.