Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 1.81 KB

README.md

File metadata and controls

23 lines (14 loc) · 1.81 KB

Android Functional Validation

Simple form validation using Arrow

Option - PR - Doc

Using this data type we can't know which field is wrong.

Either - PR - Doc

Using this data type we know which field is wrong, but when both are wrong we get just the first error.

Validated With Nel String - Commit - Doc

Using this data type we are accumulating all errors in a NotEmptyList so we get all of them. But we are still not showing them in the proper UI.

Validated With Nel ValidationError - Commit - Doc

Using this data type we are accumulating all errors in a NotEmptyList so we get all of them. Using a sealed class instead just a string allows us to understand exactly which field is wrong and we can show errors in right TextInputLayout