Constraint @NotNull doesn't work for field instance of Instant after migration from java to kotlin. I mean that in java because of this constraint I got 422 in case of updatedAt was null but in kotlin I have 400. Could you give me some clues why is that and how I can resolve it?
data class User(
@NotNull
val updatedAt: Instant
)