I've got a question. When I receive data like this...
# ktor
j
I've got a question. When I receive data like this with an object
Copy code
val data = call.receive<CreateExperienceRequestData>()
like this, and the object looks like this
Copy code
data class CreateExperienceRequestData(
    val companyName: String,
    val jobTitle: String,
    val yearMonthRange: YearMonthRange,
    val profileId: ProfileId
)
If I don't specify, for example, the companyName in the JSON it'll be NULL. I want it to fail when the companyName is not specified, because the data class shouldn't be created with a null value for a non nullable field in the data class.