Repository: bval
Updated Branches:
  refs/heads/master cd98363fc -> 83f28d84c


reorder, add missing, align with spec default validation messages


Project: http://git-wip-us.apache.org/repos/asf/bval/repo
Commit: http://git-wip-us.apache.org/repos/asf/bval/commit/676f320c
Tree: http://git-wip-us.apache.org/repos/asf/bval/tree/676f320c
Diff: http://git-wip-us.apache.org/repos/asf/bval/diff/676f320c

Branch: refs/heads/master
Commit: 676f320c8efc7eef856117980da452857e129098
Parents: 9171e1c
Author: Matt Benson <[email protected]>
Authored: Fri Nov 9 12:31:26 2018 -0600
Committer: Matt Benson <[email protected]>
Committed: Fri Nov 9 12:31:26 2018 -0600

----------------------------------------------------------------------
 .../bval/jsr/ValidationMessages.properties      | 25 +++++++++++++-------
 1 file changed, 17 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bval/blob/676f320c/bval-jsr/src/main/resources/org/apache/bval/jsr/ValidationMessages.properties
----------------------------------------------------------------------
diff --git 
a/bval-jsr/src/main/resources/org/apache/bval/jsr/ValidationMessages.properties 
b/bval-jsr/src/main/resources/org/apache/bval/jsr/ValidationMessages.properties
index 5e4fd97..00d70d7 100644
--- 
a/bval-jsr/src/main/resources/org/apache/bval/jsr/ValidationMessages.properties
+++ 
b/bval-jsr/src/main/resources/org/apache/bval/jsr/ValidationMessages.properties
@@ -18,19 +18,28 @@
 # The properties listed below are resolved by the default message resolver.
 
 # standard
-javax.validation.constraints.Null.message=must be null
-javax.validation.constraints.NotNull.message=may not be null
 javax.validation.constraints.AssertTrue.message=must be true
 javax.validation.constraints.AssertFalse.message=must be false
-javax.validation.constraints.Min.message=must be greater than or equal to 
{value}
+javax.validation.constraints.DecimalMax.message=must be less than ${inclusive 
== true ? 'or equal to ' : ''}{value}
+javax.validation.constraints.DecimalMin.message=must be greater than 
${inclusive == true ? 'or equal to ' : ''}{value}
+javax.validation.constraints.Digits.message=numeric value out of bounds        
 (<{integer} digits>.<{fraction} digits> expected)
+javax.validation.constraints.Email.message=must be a well-formed email address
+javax.validation.constraints.Future.message=must be a future date
+javax.validation.constraints.FutureOrPresent.message=must be a date in the 
present or in the future
 javax.validation.constraints.Max.message=must be less than or equal to {value}
-javax.validation.constraints.Size.message=size must be between {min} and {max}
-javax.validation.constraints.Digits.message=numeric value out of bounds 
(<{integer} digits>.<{fraction} digits> expected)
+javax.validation.constraints.Min.message=must be greater than or equal to 
{value}
+javax.validation.constraints.Negative.message=must be less than 0
+javax.validation.constraints.NegativeOrZero.message=must be less than or equal 
to 0
+javax.validation.constraints.NotBlank.message=must not be blank
+javax.validation.constraints.NotEmpty.message=must not be empty
+javax.validation.constraints.NotNull.message=may not be null
+javax.validation.constraints.Null.message=must be null
 javax.validation.constraints.Past.message=must be a past date
-javax.validation.constraints.Future.message=must be a future date
+javax.validation.constraints.PastOrPresent.message=must be a date in the past 
or in the present
+javax.validation.constraints.Positive.message=must be greater than 0
+javax.validation.constraints.PositiveOrZero.message=must be greater than or 
equal to 0
 javax.validation.constraints.Pattern.message=must match the following regular 
expression: {regexp}
-javax.validation.constraints.DecimalMax.message=must be less than or equal to 
{value}
-javax.validation.constraints.DecimalMin.message=must be greater than or equal 
to {value}
+javax.validation.constraints.Size.message=size must be between {min} and {max}
 
 # additional built-ins
 org.apache.bval.constraints.NotEmpty.message=may not be empty

Reply via email to