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
Please check the tests: https://github.com/metosin/reitit/blob/master/test/cljc/reitit/ring_coercion_test.cljc
You probably want to validate it in a middleware.