Skip to content

Commit

Permalink
[minor] Add messages for more constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
pksunkara committed Jun 15, 2012
1 parent 259cec1 commit 7b437ae
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/revalidator.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,11 @@
minItems: "must contain more than %{expected} items",
maxItems: "must contain less than %{expected} items",
uniqueItems: "must hold a unique set of values",
format: "is not a valid %{expected}"
format: "is not a valid %{expected}",
conform: "must conform to given constraint",
type: "must be of %{expected} type"
};
validate.messages['enum'] = "must be present in given enumerator";

/**
*
Expand Down

0 comments on commit 7b437ae

Please sign in to comment.