Transforming response of an API that has content-type: text/html
alexandergallen opened this issue · comments
I am currently dealing with an external API that only returns responses with Content-type: text/html. (eventhough they are json)
Would it be possible to add a feature that forces the Zod response validation of an text/html response? ... Or is there any easy way for me to implement this for this specific case?
You can write an Axios plugin to patch the content-type into application/json before consumed by Zodios
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.