I don't know correct channel to post this question...
# getting-started
w
I don't know correct channel to post this question. I'll delete from getting started if it belongs only in spring. I'll delete from spring if it belongs only in getting started.
Okay I deleted from #spring as I found a language only solution.
Copy code
data class ExampleProblem(
    val id: Long,
    val notNullableField: List<String> = emptyList() 
}
i.e. don't provide a secondary constructor use a default value.