Ilhasoft / data-binding-validator

Android fields validation library based on data binding adapters.
Apache License 2.0
344 stars 53 forks source link

How do I validate CNPJ? #16

Closed melanke closed 5 years ago

melanke commented 6 years ago

Is there a way to validate CNPJ? Or can I implement a custom validator that does more than only check if matches the regex pattern?

joneserick commented 6 years ago

Actually there isn't a CNPJ validation available by default. You can implement your own validation as well. Feel free to contribute a reopen this issue it's certainly a really good enhancement.