inmite / android-validation-komensky

A simple library for validating user input in forms using annotations.
Apache License 2.0
508 stars 78 forks source link

Adding @FieldsEqual validation annotation #36

Closed creativedrewy closed 9 years ago

creativedrewy commented 9 years ago

I thought this annotation would be useful for forms where one or more fields need to be equal (i.e. password/confirm password).

There is a "fields" property on the annotation where you provide an array of the other field ids that must be equal to the annotated field for validation to pass.

Let me know if you want unit tests included before accepting the PR.

creativedrewy commented 9 years ago

@tomas-vondracek I've made the updates you described above. Let me know if there is anything else!

tomas-vondracek commented 9 years ago

Thank you!