Robert Jaros
10/10/2021, 6:24 AM500 Internal Server Error
when there is a problem with deserialization (e.g. missing key in the request data). When using jackson serialization with the same data the error is 400 Bad Request
. Can I somehow configure the returned error for kotlinx.serialization?hho
10/10/2021, 7:38 PM@ControllerAdvice
for the exceptions thrown by kotlinx.serialization.thanksforallthefish
10/12/2021, 6:23 AMEmil Kantis
10/12/2021, 6:29 AMthanksforallthefish
10/12/2021, 6:33 AMnull
point? I switched to nullable properties a while back with javax validation annotation (most often then not we anyway have other constraints, like numbers must be positive, or string non blanks etc), but I remember getting some binding exception when sending null
to non null fields.
I guess kotlin serialization would throw an exception in this case, right?Emil Kantis
10/12/2021, 6:42 AMEmil Kantis
10/12/2021, 6:48 AMRobert Jaros
10/12/2021, 7:30 AMBruno Medeiros
07/04/2024, 1:24 AM