-
Notifications
You must be signed in to change notification settings - Fork 6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10519 from swagger-api/issue-8641
added @Valid annotation on bean validation template for java jaxs
- Loading branch information
Showing
3 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
modules/swagger-codegen/src/main/resources/JavaJaxRS/beanValidation.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,16 @@ | ||
{{#required}} | ||
@NotNull | ||
{{/required}} | ||
{{#isContainer}} | ||
{{^isPrimitiveType}} | ||
{{^isEnum}} | ||
@Valid | ||
{{/isEnum}} | ||
{{/isPrimitiveType}} | ||
{{/isContainer}} | ||
{{#isNotContainer}} | ||
{{^isPrimitiveType}} | ||
@Valid | ||
{{/isPrimitiveType}} | ||
{{/isNotContainer}} | ||
{{>beanValidationCore}} |
12 changes: 12 additions & 0 deletions
12
modules/swagger-codegen/src/main/resources/JavaJaxRS/cxf-cdi/beanValidation.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,16 @@ | ||
{{#required}} | ||
@NotNull | ||
{{/required}} | ||
{{#isContainer}} | ||
{{^isPrimitiveType}} | ||
{{^isEnum}} | ||
@Valid | ||
{{/isEnum}} | ||
{{/isPrimitiveType}} | ||
{{/isContainer}} | ||
{{#isNotContainer}} | ||
{{^isPrimitiveType}} | ||
@Valid | ||
{{/isPrimitiveType}} | ||
{{/isNotContainer}} | ||
{{>beanValidationCore}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters