We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When generating a service, the default headers are set as follows:
public defaultHeaders = new Map();
However this does not match the type of the headers parameter in AxiosRequestConfig which is
AxiosRequestConfig
Record<string,string>
5.2.1 - not a regression
The issue is present directly in the template of the service, located here: https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/typescript-nestjs/api.service.mustache
I have created a pr to address this
The text was updated successfully, but these errors were encountered:
fix(NestJS): use correct typing for default headers
ffc691d
closes OpenAPITools#10615
fix(NestJS): use correct typing for default headers (#10616)
4c8279e
* fix(NestJS): use correct typing for default headers closes #10615 * Update modules/openapi-generator/src/main/resources/typescript-nestjs/api.service.mustache Co-authored-by: Alexey Makhrov <amakhrov@gmail.com> * update Co-authored-by: Alexey Makhrov <amakhrov@gmail.com>
Successfully merging a pull request may close this issue.
Description
When generating a service, the default headers are set as follows:
However this does not match the type of the headers parameter in
AxiosRequestConfig
which isopenapi-generator version
5.2.1 - not a regression
Generation Details
The issue is present directly in the template of the service, located here:
https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/typescript-nestjs/api.service.mustache
Suggest a fix
I have created a pr to address this
The text was updated successfully, but these errors were encountered: