-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
[BUG] v7.0.0 typescript-axios generator generates export interface ProtobufAny different from v6.6.0 #16494
Comments
thanks for reporting the issue. Do you mind doing a git bisect to identify the commit causing the change? |
looks like the change is introduced in https://github.com/OpenAPITools/openapi-generator/pull/16227/files#diff-63a9b6b47bf90864cbaba673df9dc3f390ecab6183e6b0608147921d7de42b16 i'll take a look this weekend to see if I restore the previous behaviour. |
ProtobufAny has one property - [key: string]: object | any;
+ [key: string]: object; I tested with
Should this be the correct output instead? |
This change is too big to understand. :(
I'm not sure, why not try my steps to reproduce? |
I'm running into the same issue, with v7, the index signature for one of my generated interfaces is being changed from
Generated interface:
Causing the error I downgraded to v6.6 and everything works fine. |
Any updates on when this bug might be fixed? It's preventing us from upgrading to v7. |
Bug Report Checklist
Description
v6.6.0 generates what we and tsc expected, v7.0.0 doesn't.
openapi-generator version
v7.0.0
OpenAPI declaration file content or url
swagger spec file t.json
openapi tool configuration file foo.openapitools.json
Generation Details
Steps to reproduce
generate code from spec
openapi-generator-cli version-manager set 7.0.0 openapi-generator-cli generate -i t.json --generator-name typescript-axios -o src/gen/foo -c foo.openapitools.json
tsc build failed with v7.0.0
Related issues/PRs
Suggest a fix
If we switch back to 6.6.0 everything works as expected:
openapi-generator-cli version-manager set 6.6.0 openapi-generator-cli generate -i t.json --generator-name typescript-axios -o src/gen/foo -c foo.openapitools.json npm run --prefix src/gen/foo build
we diff v6.6.0 and v7.0.0
The text was updated successfully, but these errors were encountered: