From f0d905a77c2d546ae99e26818cd1a7ddec9f0c70 Mon Sep 17 00:00:00 2001 From: Vincent Prouillet Date: Thu, 19 Jan 2017 13:43:47 +0900 Subject: Update readme --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 45a30f1..aea76d4 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,10 @@ Note that `validator` works in conjunction with serde: in the example we can see field is renamed from/to `firstName`. Any error on that field will be in the `firstName` key of the hashmap, not `first_name`. +If you are adding a validation on a `Option<..>` field, it will only be ran if there is value. The exception +being `must_match` that doesn't currently work with `Option` due to me not finding a use case for it. If you have one, +please comment on https://github.com/Keats/validator/issues/7. + ## Usage You will need to import the `Validate` trait, and optionally use the `attr_literals` feature. -- cgit v1.2.3