hey!
I am currently investigating what the best approach for using header validation through zod would be in regards to key case sensitivity. i'm currently in a situation where I need to have support for all headers to be supported regardless of how the casing looks when sent in from the request. any suggestions?...
Solution:Do you need to preserve the case of the incoming headers? You could transform them at runtime with .toLowerCase()
and then build your schema on the lowercased keys.