mirror of
https://github.com/jlengrand/openapi-generator.git
synced 2026-05-17 15:54:36 +00:00
Adds @Valid to request body for the JavaSpring (#4850)
* Adds Valid annotation for request body (#4847) If useBeanValidation is active, this change will add Valid annotation to ReqeustBody * Adds generated samples for bean vaildation in spring boot (#4847) * Adds Valid import to Controller * Adds generated code for bean validation change
This commit is contained in:
@@ -24,6 +24,7 @@ import java.util.concurrent.Callable;
|
||||
{{/async}}{{/jdk8-no-delegate}}
|
||||
{{#useBeanValidation}}
|
||||
import javax.validation.constraints.*;
|
||||
import javax.validation.Valid;
|
||||
{{/useBeanValidation}}
|
||||
{{>generatedAnnotation}}
|
||||
@Controller
|
||||
|
||||
Reference in New Issue
Block a user