Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Header brokes the autogen client #269

Open
jacopocarlini opened this issue Jan 21, 2022 · 2 comments
Open

Custom Header brokes the autogen client #269

jacopocarlini opened this issue Jan 21, 2022 · 2 comments

Comments

@jacopocarlini
Copy link

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";

@gquadrati
Copy link
Contributor

The PR #271 have been tested within your project and it fixes the error.

@jacopocarlini
Copy link
Author

thanks a lot! 🤩

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants