Permalink
Browse files

Update docs

  • Loading branch information...
jamescookie committed Nov 1, 2012
1 parent c6de169 commit 7d1ae10aab34066ccd8fd420f1a708f083578303
Showing with 9 additions and 0 deletions.
  1. +9 −0 README.md
View
@@ -60,3 +60,12 @@ If a fields fails to match your defined regex, you will get an error. You can ov
default.invalid.address.line1=Address error - {0}: {2} does not match {3}
+The variables that are available for error messages are as follows:
+
+1. The address field being validated (line1, line2, etc)
+2. The Address class
+3. The value (that failed to match the regex)
+4. The regex used to validate
+
+Note that if you are using version 0.6.0 of the constraints plugin, then the last variable is not available to you.
+

0 comments on commit 7d1ae10

Please sign in to comment.