Browse files

Add info aout type-casting to the README

  • Loading branch information...
1 parent 2ea90bf commit f6ae78a48da6ed9e5f24bbcc494e70db0c8f5019 @ixti ixti committed Aug 7, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0
@@ -73,6 +73,7 @@ This will return with a value indicating if the `obj` conforms to the `schema`.
* __validateFormats__: Enforce format constraints (_default true_)
* __validateFormatsStrict__: When `validateFormats` is _true_ treat unrecognized formats as validation errors (_default false_)
* __validateFormatExtensions__: When `validateFormats` is _true_ also validate formats defined in `validate.formatExtensions` (_default true_)
+* __cast__: Enforce casting of some types (for integers/numbers are only supported) when it's possible, e.g. `"42" => 42`, but `"forty2" => "forty2"` for the `integer` type.
### Schema
For a property an `value` is that which is given as input for validation where as an `expected value` is the value of the below fields

0 comments on commit f6ae78a

Please sign in to comment.