openapi-codegen-ts
openapi-codegen-ts copied to clipboard
Custom Header brokes the autogen client
I try to use this tool to generate the client from this swagger
In the swagger we have a custom X-Request-Id header in request and response and this is a problem for the tool.
I found that the only allowed headers are:
export declare type RequestHeaderKey = "Accept-Encoding" | "Authorization" | "Content-Type" | "Host" | "If-None-Match" | "Ocp-Apim-Subscription-Key" | "X-Functions-Key";
The PR #271 have been tested within your project and it fixes the error.
thanks a lot! 🤩