https://kotlinlang.org logo
#ktor
Title
# ktor
t

Timur Atakishiev

01/06/2020, 4:33 PM
Hi guys! I am trying to implement simple crud in ktor and can not find any validations, something like javax.validation. Is it something existing i ktor? Or should I write my own?
t

tjohnn

01/07/2020, 7:09 AM
I had to add it to my gradle deps when I needed it, not sure if there’s other way around it
z

zpearce

01/07/2020, 3:50 PM
We implement it in a custom feature. Intercept
ApplicationReceivePipeline.After
, grab
subject.value
and run it through your validator instance.