mirror of
https://github.com/jlengrand/openapi-generator.git
synced 2026-05-16 08:31:26 +00:00
Feature: Enable validation (#5391)
When useBeanValidation is enabled make sure the annotation @Valid is added to the attributes of the model.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
{{#required}}
|
||||
@NotNull
|
||||
{{/required}}
|
||||
{{>beanValidationCore}}
|
||||
{{>beanValidationCore}}
|
||||
@Valid
|
||||
|
||||
Reference in New Issue
Block a user