This article was originally published at 47deg.com on April 13, 2021. In a previous blog post about Functional Domain Modeling in Kotlin, we discussed how we can use data class, enum class, sealed class, and inline class to describe our business domain as accurately as possible to achieve more type-safety, maximize the use of the compiler with our domain, and thus, prevent bugs and reduce unit tes
![Functional Domain Modeling in Kotlin - Validation](https://cdn-ak-scissors.b.st-hatena.com/image/square/77a293a48b03011b3244cbeedd7470ed50f76840/height=288;version=1;width=512/https%3A%2F%2Fxebia.com%2Fwp-content%2Fuploads%2F2022%2F12%2Ffunctional-domain-modeling-kotlin-ftr.jpg)