File tree Expand file tree Collapse file tree 3 files changed +27
-2
lines changed
src/main/resources/handlebars/JavaJaxRS Expand file tree Collapse file tree 3 files changed +27
-2
lines changed Original file line number Diff line number Diff line change 1
1
{ {#required} }
2
2
@NotNull
3
3
{ {/required} }
4
- { {> beanValidationCore} }
4
+ { {#is this ' container' } }
5
+ { {#isNot this ' primitive-type' } }
6
+ { {#isNot this ' enum' } }
7
+ @Valid
8
+ { {/isNot} }
9
+ { {/isNot} }
10
+ { {/is} }
11
+ { {#isNot this ' container' } }
12
+ { {#isNot this ' primitive-type' } }
13
+ @Valid
14
+ { {/isNot} }
15
+ { {/isNot} }
16
+ { {> beanValidationCore} }
Original file line number Diff line number Diff line change 1
1
{ {#required} }
2
2
@NotNull
3
3
{ {/required} }
4
- { {> beanValidationCore} }
4
+ { {#isContainer} }
5
+ { {^isPrimitiveType} }
6
+ { {^isEnum} }
7
+ @Valid
8
+ { {/isEnum} }
9
+ { {/isPrimitiveType} }
10
+ { {/isContainer} }
11
+ { {#isNotContainer} }
12
+ { {^isPrimitiveType} }
13
+ @Valid
14
+ { {/isPrimitiveType} }
15
+ { {/isNotContainer} }
16
+ { {> beanValidationCore} }
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import java.io.Serializable;
16
16
{ {/serializableModel} }
17
17
{ {#useBeanValidation} }
18
18
import javax.validation.constraints.*;
19
+ import javax.validation.Valid;
19
20
{ {/useBeanValidation} }
20
21
{ {/x-is-composed-model} }
21
22
You can’t perform that action at this time.
0 commit comments