reitit 2024-12-28

folks, I am using plumatic schema to validate my reitit route body parameters, is it possible to validate a header too? I want to ensure that my authorization header is a non-empty string

coercion works for all :parameters, even :headers

we might not have an example of this, but it works in exactly the same way as :query parameter coercion

👀 1

You probably want to validate it in a middleware.