aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2020-06-09Merge pull request #102 from LucasPickering/blanket-ref-implVincent Prouillet
Add a blanket Validate implementation for references
2020-05-27Add a blanket Validate implementation for referencesLucas Pickering
2020-05-13Merge pull request #100 from xFrednet/more-examplesVincent Prouillet
Added some examples in the README.md #99
2020-05-13Added some examples in the README.md #99xFrednet
2020-04-12Update readmeVincent Prouillet
2020-04-12Merge pull request #97 from barskern/static-str-field-errorsVincent Prouillet
Specify static lifetime for field_errors
2020-04-12Fix CIVincent Prouillet
2020-04-12Merge pull request #94 from AndiDog/must-useVincent Prouillet
Add `must_use` attribute to functions returning `bool`
2020-04-10Specify static lifetime for field_errorsOle Martin Ruud
2020-02-15Add `must_use` attribute to functions returning `bool`Andreas Sommer
2019-11-13Merge pull request #91 from Beskhue/patch-1Vincent Prouillet
Update struct level validation in README
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-20Merge pull request #87 from Keats/nextVincent Prouillet
Use Github actions for CI
2019-10-17Fix bug + cargo fmtVincent Prouillet
2019-10-17Fix bug with card importVincent Prouillet
2019-10-17Try with Rust 1.33Vincent Prouillet
2019-10-14Update depsVincent Prouillet
2019-10-14Merge pull request #79 from mocsy/masterVincent Prouillet
Add utf-8 non-control characters validator
2019-10-14Add utf-8 non-control chars validatorAndras Mocsary
2019-10-07Use Github actions for CIVincent Prouillet
2019-07-13Merge pull request #72 from Keats/nextVincent Prouillet
Next version
2019-07-13Update if_chainVincent Prouillet
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-01Update deps of validator_deriveVincent 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-30Merge pull request #61 from MartinHowarth/fix-readme-typoVincent Prouillet
Fix a typo in schema level validation README
2018-09-30Fix a typo in schema level validation READMEMartinHowarth
2018-09-19Update deps of validatorVincent Prouillet
2018-09-19Prepare for 0.8.0 releaseVincent Prouillet
2018-09-13Update synVincent Prouillet
2018-09-13RustfmtVincent 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-27Added support for validating Cow<'a, str> fields. (#56)Simon Sparks
* Added support for validating Cow<'a, str> fields. Keats/validator#55 * Corrected error message comparison in compiler-fail/length test. Keats/validator#55
2018-07-22Merge pull request #54 from pJunger/patch-1Vincent Prouillet
Fixed closing parentheses in README
2018-07-22Fixed closing parentheses in READMEPatrick Junger
2018-06-28Prepare for releaseVincent Prouillet
2018-06-28Do not cache to avoid compiletest errorVincent Prouillet
https://github.com/laumann/compiletest-rs/issues/114
2018-06-28Merge pull request #52 from Eijebong/synVincent Prouillet
Update syn, quote and bump version
2018-06-20Update syn, quote and bump versionBastien Orivel
2018-05-29compiletest only work on nightly...Vincent Prouillet
2018-05-29Forget itVincent Prouillet
2018-05-29Try 1.20 for lowest versionVincent Prouillet
2018-05-29Some more tweaksVincent Prouillet