I wrote a blog post with the main changes of this new version: https://dev.to/henriquemoody/what-is-new-on-respectvalidation-30-37no
To-dos
I'm almost there, and there are some awesome improvements coming!
Core
Rules
Other
Nice to have
- [ ] More integration tests for `oneOf`, `allOf` and `each` validator messages.
- [ ] Create `DateTimeParseable` or (`DateTimeLenient`) rule
- [ ] Increase code coverage to 98%
- [ ] Share credentials for @TheRespectPanda with @alganet
- [ ] Extra documentation for most common support issues
- [ ] Message translation approaches
- [ ] Navigating the messages tree manually
- [ ] Using validators with custom names
- [ ] Expressing boolean algebra
I wrote a blog post with the main changes of this new version: https://dev.to/henriquemoody/what-is-new-on-respectvalidation-30-37no
To-dos
I'm almost there, and there are some awesome improvements coming!
Core
Subjectvalue object)Allrule (similar toEachbut creates results with subsequents)Factoryinto a interfaceValidator::validate()that returns an object with errorsResult->isValidtoResult->hasPassedSimple::isValidpublic{{placeholder|quote}}setName()withNamedrulesetTemplate()withTemplatedruleCreate class alias for old abstract classesValidator::assert()ComponentExceptionextendLogicExceptiongetMessages()return__self__setName()update names, but not IDsRules
Attributesto deal with inheritanceMaxwith subsequents when possibleMinwith subsequents when possibleLengthwith subsequents when possibleDateTimeDiffto generate results with subsequentsUndefOrandNullOrKeySetruleDateDiffruleMinAge,MaxAge, andAgerulesNotOptionaltoNotUndefBetweenExclusiveruleConsecutiveruleLazySequenceruleMaxruleMinruleKeyValueruleLengthruleNullabletoNullOrOptionaltoUndefOrMaxrule toLessThanOrEqualMinrule toGreaterThanOrEqualKeyrule intoKey,KeyExists, andKeyOptionalPropertyrule intoProperty,PropertyExists, andPropertyOptionalOther
mastertomainNice to have