aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
AgeCommit message (Collapse)Author
2020-05-13Added some examples in the README.md #99xFrednet
2020-04-12Update readmeVincent Prouillet
2019-11-13Update struct level validation in READMEThomas Churchman
Struct-level validation has been changed in b31fd25cc5cec96ccee737ba1313c6e9f702f32a, but it appears the README was not completely updated: the return value for struct-level validation refers to the old functionality.
2019-10-31Merge pull request #90 from decapo01/masterVincent Prouillet
added installation instructions
2019-10-30added installation instructionsdecapo01
2019-10-17Fix bug + cargo fmtVincent Prouillet
2019-10-17Try with Rust 1.33Vincent Prouillet
2019-10-14Add utf-8 non-control chars validatorAndras Mocsary
2019-05-01Apparently attr_literals was stable in 1.30Vincent Prouillet
2019-05-01Cargo fmt + edition 2018 for validatorVincent Prouillet
2019-05-01attr_literals is stable \o/Vincent Prouillet
2019-05-01Merge pull request #71 from cazgp/feature/range-min-or-maxVincent Prouillet
Issue #69: Change `range` to require only one arg
2019-05-01Do not consume self when getting errorsVincent Prouillet
Close #65
2019-04-28Issue #69: Change `range` to require only one argCaroline Glassberg-Powell
Currently range is hard-coded to take both max and min. This is unhelpful in cases where we may only want to check one of the bounds. Update so that it behaves more like the `length` validator and can take either max or min, as well as both. Also ensure that at least one of them is supplied.
2018-09-30Fix a typo in schema level validation READMEMartinHowarth
2018-09-19Prepare for 0.8.0 releaseVincent Prouillet
2018-09-13Nested Validation (#60)Simon Sparks
* Nested Validation Added support for a plain validate attribute on a struct's field to imply that validate() should be called on it with results being merged. Validation errors are now keyed with a string that indicates the path to the invalid field within a complex data structure. The errors themselves also include the path to the invalid field, expressed as a vector of strings. Added support for option and vector fields where the wrapped values perform nested validation. Refactored vector wrapping for more reusable nested validation quoting. Vector index is now more conveniently represented as an individual item in the ValidationError's path attribute. A few ergonomic changes to support custom (i.e. non-derived) Validate implementations. A custom Validator implementation may either implement the validate() method as before or implement the new validate_path(ValidationPath) method which gives context of where the validation is taking place in a complex data structure. It is not necessary to implement both methods. Refactored ValidationErrors to adopt a structure reflecting that of the data being validated. Instead of holding a vector of ValidationError instances for each field, the ValidationErrors map may now include 3 different kinds of error values representing the field, nested struct and nested vector of struct scenarios. Note that this implies a breaking change to the ValidationErrors map and the "inner" method signature for accessing errors programmatically compared to previous versions. Added new accessor methods to the ValidationErrors type for retrieving either field-level errors for a validated struct or all errors for the struct and it's nested children. The existing `inner` method provides the field-level behaviour for backwards compatibility and has been marked as deprecated. Documented the new associated functions of the ValidationErrors implementation and removed unnecessary feature declaration in a test module. Refactored tests to use the new `field_errors` accessor method. Updated README.md to describe nested validation behaviour. Keats/validator#31
2018-07-27Prepare releaseVincent Prouillet
2018-07-22Fixed closing parentheses in READMEPatrick Junger
2018-06-28Prepare for releaseVincent Prouillet
2018-05-29Prepare for releaseVincent Prouillet
2018-04-14Update syn and quoteVincent Prouillet
2018-03-20Update changelogVincent Prouillet
2018-03-19Fix path starting with ::Vincent Prouillet
2018-03-17Update changelogVincent Prouillet
2017-11-08Feature gate phone feature in validator_derive as wellVincent Prouillet
2017-11-08Update changelog and versionsVincent Prouillet
2017-11-08v0.6.1 of validatorVincent Prouillet
2017-11-08Merge branch 'master' of https://github.com/valeriansaliou/validator into ↵Vincent Prouillet
valeriansaliou-master
2017-11-07Ability to validate an international phone numberValerian Saliou
Signed-off-by: Valerian Saliou <valerian@valeriansaliou.name> Derives for the ‘phone’ validator (still unsure about it) Signed-off-by: Valerian Saliou <valerian@valeriansaliou.name> Fix review Merge + Add missing documented ‘credit_cards’ feature Signed-off-by: Valerian Saliou <valerian@valeriansaliou.name> Fix Signed-off-by: Valerian Saliou <valerian@valeriansaliou.name> Fix Signed-off-by: Valerian Saliou <valerian@valeriansaliou.name> Merge Signed-off-by: Valerian Saliou <valerian@valeriansaliou.name> ‘credit_cards’ feature is no longer needed as per #33 Signed-off-by: Valerian Saliou <valerian@valeriansaliou.name>
2017-09-27Add a credit card number validatorBastien Orivel
Instead of using our own algorithm, I chose to use rs-card-validator.
2017-08-27Fix a small typo in changelog datesTom Houlé
2017-08-25Update README.mdVincent Prouillet
2017-08-120.6.0 was released today, update changelogVincent Prouillet
2017-07-19Update readmeVincent Prouillet
2017-05-22v0.5.0 of validator_deriveVincent Prouillet
2017-02-14validator_derive 0.4.1Vincent Prouillet
2017-01-30Version 0.4.0Vincent Prouillet
2017-01-19Update readmeVincent Prouillet
2017-01-18v0.3.0Vincent Prouillet
2017-01-18Add regex validatorVincent Prouillet
2017-01-18Add contains validatorVincent Prouillet
2017-01-18v0.2.0 validatorVincent Prouillet
2017-01-17Update README.mdVincent Prouillet
2017-01-17Update README.mdVincent Prouillet
2017-01-17Add changelogVincent Prouillet
2017-01-17Remove need for attr_literalsVincent Prouillet
2017-01-16Struct level validationVincent Prouillet
2016-12-29Added must_matchVincent Prouillet
2016-12-28Update README.mdVincent Prouillet