I'm looking at the `RequestValidation` plugin and ...
# ktor
r
I'm looking at the
RequestValidation
plugin and I wonder how you're supposed to use it https://ktor.io/docs/request-validation.html Are people really listing all their request payload models in the plugin
install(…)
call? This doesn't seem logical to me, validation should be defined close to the route definition / action itself and not grouped up somewhere like that I think. Thoughts?
👍 1
Should you install the
RequestValidation
plugin once per route instead?
a
I can see, from the same docs, that it is possible to setup Request Validation per route. 👍🏾