All Downloads are FREE. Search and download functionalities are using the official Maven repository.

handlebars.JavaJaxRS.resteasy.eap.beanValidation.mustache Maven / Gradle / Ivy

There is a newer version: 1.0.54
Show newest version
{{#required}}
  @NotNull
{{/required}}
{{#pattern}}
  @Pattern(regexp="{{{pattern}}}")
{{/pattern}}
{{#minLength}}
{{#maxLength}}
  @Size(min={{minLength}},max={{maxLength}})
{{/maxLength}}
{{/minLength}}
{{#minLength}}
{{^maxLength}}
  @Size(min={{minLength}})
{{/maxLength}}
{{/minLength}}
{{^minLength}}
{{#maxLength}}
  @Size(max={{maxLength}})
  {{/maxLength}}
  {{/minLength}}
{{#minItems}}
{{#maxItems}}
  @Size(min={{minItems}},max={{maxItems}})
{{/maxItems}}
{{/minItems}}
{{#minItems}}
{{^maxItems}}
  @Size(min={{minItems}})
{{/maxItems}}
{{/minItems}}
{{^minItems}}
{{#maxItems}}
  @Size(max={{maxItems}})
{{/maxItems}}
{{/minItems}}
{{! check for integer / number=decimal type}}
{{#is this 'integer'}}
{{#minimum}}
  @Min({{minimum}})
{{/minimum}}
{{#maximum}}
  @Max({{maximum}})
{{/maximum}}
{{/is}}
{{#isNot this 'integer'}}
{{#minimum}}
  @DecimalMin("{{minimum}}")
{{/minimum}}
{{#maximum}}
  @DecimalMax("{{maximum}}")
{{/maximum}}
{{/isNot}}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy