Luca Gentile
08/11/2021, 3:43 PMcall.receive<FooRequest>()
to sanitize all fields declared as String in FooRequest
What would you suggest?Aleksei Tirman [JB]
08/11/2021, 3:53 PMe5l
08/12/2021, 8:38 AMinit
block of the FooRequest
Luca Gentile
08/12/2021, 9:13 AMe5l
08/12/2021, 9:13 AMLuca Gentile
08/12/2021, 9:14 AMe5l
08/12/2021, 9:14 AMkotlinx.serialization
allow you to do this in the init block, it should be default way in JacksonLuca Gentile
08/12/2021, 9:16 AMLuca Gentile
08/12/2021, 9:17 AMLuca Gentile
08/12/2021, 9:17 AMval dto = call.receive<AnyRequest>()
inside dto
every String is already trimmed, html escaped etc.Luca Gentile
08/12/2021, 9:17 AMLuca Gentile
08/12/2021, 9:18 AMFooRequest
BarRequest
Aleksei Tirman [JB]
08/12/2021, 11:54 AMLuca Gentile
08/12/2021, 11:58 AMLuca Gentile
08/12/2021, 11:58 AM