Skip to content

Commit 129f88f

Browse files
committed
handled extension for pattern message.
1 parent c4c5c06 commit 129f88f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/swagger-codegen/src/main/resources/JavaSpring/beanValidationCore.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{#pattern}}@Pattern(regexp="{{{pattern}}}") {{/pattern}}{{!
1+
{{#pattern}}@Pattern(regexp="{{{pattern}}}"{{#vendorExtensions.x-pattern-message}}, message="{{vendorExtensions.x-pattern-message}}"{{/vendorExtensions.x-pattern-message}}) {{/pattern}}{{!
22
minLength && maxLength set
33
}}{{#minLength}}{{#maxLength}}@Size(min={{minLength}},max={{maxLength}}) {{/maxLength}}{{/minLength}}{{!
44
minLength set, maxLength not

0 commit comments

Comments
 (0)