This is an etude about our validation approach in android projects It consists of best practices used by our team including
- value objects validation with type-safe errors
- only one check at a time: fail-first Secure by Design
- errors in check result are not throwable but typed errors of sealed classes
- parse, don't validate and
About Etudes series. Etudes were established to reflect the best practices developed by our team in order to use in our projects. We try to keep Etudes as a reference both with docs and code as well with sufficient tests. We understand Etude with both musical and painting essentials - to prepare a part of masterpiece and to practice for perfecting a skill.
- lib: Konform - Portable validations for Kotlin
- article: Parse, don’t validate
- lib: Tribune - parse don't validate for Kotlin.
- lib: Arrow Validation
- article: Domain Model Validation In Kotlin: Part 1
- article: Object validation in Ktor/Kotlin