Releases: tpg/yerp
Releases · tpg/yerp
v0.0.4
- [feat] Added a
propertyNames
property to theValidated
class - [change] Rules without a message set will return null. Use
passed()
orfailed()
methods to determine passing validations. - [change] The
Result
class can no longer be cast as a string. Use themessage()
method instead. - [fix] Properties without rules will no longer be included in the results.
v0.0.3
- [feat] Added support to get messages for all the class properties.
v0.0.2
A few changes to make quick validation of an entire class a little easier.
- [feat] Added passed and failed methods to the Validated class.
- [change] The second parameters of the property method is now nullable.
- [fix] Minor bug fix converting array to string when validation array length.
- [tests] Added a test for custom rules.
- [tests] Added a test for validating the length of an array.
v0.0.1
Initial release