You shouldn't need any annotations to handle a null non-nullable property. Unless you're using gson as your json module (which I don't reccommend), the json module will catch the non value, and Ktor will return a 400.
a
Ahmed
08/04/2023, 9:13 PM
yeah, I'm using json module,
also want to get the jakerta built-in email validator,
or something similar in ktor