File tree Expand file tree Collapse file tree
src/main/resources/handlebars/JavaJaxRS Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{ {#required} }
22 @NotNull
33{ {/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 11{ {#required} }
22 @NotNull
33{ {/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;
1616{ {/serializableModel} }
1717{ {#useBeanValidation} }
1818import javax.validation.constraints.*;
19+ import javax.validation.Valid;
1920{ {/useBeanValidation} }
2021{ {/x-is-composed-model} }
2122
You can’t perform that action at this time.
0 commit comments