Hi, I am looking at <https://ktor.io/docs/server-r...
# ktor
f
Hi, I am looking at https://ktor.io/docs/server-request-validation.html and wondering, whether I should install RequestValidation for every route? The Docs just say it can be installed multiple times, but would that be recommended? How should I handle it if I need different validation for e.g.
GET /users/{id}
,
PUT /users/{id}
,
GET /users/
?
a
Just validate in the route handlers themselves. I’d only use this plugin to validate route groups
a
It's fine to install the plugin into each route that needs a distinct validation.