aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md6
-rw-r--r--validator/Cargo.toml2
-rw-r--r--validator_derive/Cargo.toml6
3 files changed, 9 insertions, 5 deletions
diff --git a/README.md b/README.md
index aea76d4..aca88a9 100644
--- a/README.md
+++ b/README.md
@@ -53,7 +53,7 @@ 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
+If you are adding a validation on a `Option<..>` field, it will only be ran if there is a 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.
@@ -173,6 +173,10 @@ if an error happened while validating the struct fields.
## Changelog
+### 0.4.0 (2017/01/30)
+
+- Validators now work on `Option` field and struct/fields with lifetimes
+
### 0.3.0 (2017/01/17)
- Add `contains` and `regex` validator
diff --git a/validator/Cargo.toml b/validator/Cargo.toml
index 35d8037..c20c1ac 100644
--- a/validator/Cargo.toml
+++ b/validator/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "validator"
-version = "0.3.0"
+version = "0.4.0"
authors = ["Vincent Prouillet <vincent@wearewizards.io>"]
license = "MIT"
description = "Common validation functions (email, url, length, ...) and trait"
diff --git a/validator_derive/Cargo.toml b/validator_derive/Cargo.toml
index b68ae49..ff64a40 100644
--- a/validator_derive/Cargo.toml
+++ b/validator_derive/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "validator_derive"
-version = "0.3.0"
+version = "0.4.0"
authors = ["Vincent Prouillet <vincent@wearewizards.io>"]
license = "MIT"
description = "Macros 1.1 implementation of #[derive(Validate)]"
@@ -24,5 +24,5 @@ regex = "0.2"
lazy_static = "0.2"
[dependencies.validator]
-path = "../validator"
-# version = "0.3.0"
+# path = "../validator"
+version = "0.3.0"