File tree Expand file tree Collapse file tree 2 files changed +27
-15
lines changed
modules/swagger-codegen/src/main/resources Expand file tree Collapse file tree 2 files changed +27
-15
lines changed Original file line number Diff line number Diff line change 3232{ {^minItems} }
3333{ {#maxItems} }
3434 @Size(max={ {maxItems} })
35- { {/maxItems} }
36- { {/minItems} }
35+ { {/maxItems} }
36+ { {/minItems} }
37+ { {! check for integer / number= decimal type} }
38+ { {#isInteger} }
3739{ {#minimum} }
38- { {#isInteger} }
3940 @Min({ {minimum} })
40- { {/isInteger} }
41- { {#isLong} }
42- @Min({ {minimum} })
43- { {/isLong} }
4441{ {/minimum} }
4542{ {#maximum} }
46- { {#isInteger} }
47- @Max({ {maximum} })
48- { {/isInteger} }
49- { {#isLong} }
5043 @Max({ {maximum} })
51- { {/isLong} }
5244{ {/maximum} }
45+ { {/isInteger} }
46+ { {^isInteger} }
47+ { {#minimum} }
48+ @DecimalMin("{ {minimum} }")
49+ { {/minimum} }
50+ { {#maximum} }
51+ @DecimalMax("{ {maximum} }")
52+ { {/maximum} }
53+ { {/isInteger} }
Original file line number Diff line number Diff line change 3232{ {^minItems} }
3333{ {#maxItems} }
3434 @Size(max={ {maxItems} })
35- { {/maxItems} }
36- { {/minItems} }
35+ { {/maxItems} }
36+ { {/minItems} }
37+ { {! check for integer / number= decimal type} }
38+ { {#isInteger} }
3739{ {#minimum} }
3840 @Min({ {minimum} })
3941{ {/minimum} }
4042{ {#maximum} }
4143 @Max({ {maximum} })
42- { {/maximum} }
44+ { {/maximum} }
45+ { {/isInteger} }
46+ { {^isInteger} }
47+ { {#minimum} }
48+ @DecimalMin("{ {minimum} }")
49+ { {/minimum} }
50+ { {#maximum} }
51+ @DecimalMax("{ {maximum} }")
52+ { {/maximum} }
53+ { {/isInteger} }
You can’t perform that action at this time.
0 commit comments