-
Notifications
You must be signed in to change notification settings - Fork 6k
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
[TypeScript-Angular] Override keyword needed in encoder.ts file #11852
Comments
Same issue here. Our project use it and we have to add the We are using Swagger-codegen version This is how we called it: java -jar ./openapi-generator/swagger-codegen-cli-3.0.35.jar generate -l typescript-angular -i ./apps/api/openapi/openapi.json -o ./libs/dashboard-sdk -c ./apps/api/openapi/config.json |
Same issue here. I'm using swagger-codegen version |
Same issue. |
Same issue here. Just fixed and created a PR. |
If you do not explicitly need to have the override keyword then set the compilerOptions.noImplicitOverride to false in the tsconfig.json file. |
What is the resolution for this? I am facing the same issue.. |
…cript #11852 fix override in typescript
the override keyword can be set using:
This will be available for next release |
Description
When generating the Angular TypeScript api from my
swagger.yaml
file I have to manually fix the below error, which is presented when runningng serve
to serve the application.error TS4114: This member must have an 'override' modifier because it overrides a member in the base class 'HttpUrlEncodingCodec'.
This fix is to navigate to the generated
encoder.ts
file and manually prepend the two methods with theoverride
keyword.Swagger-codegen version
2.4.27 (current stable)
Command line used for generation
Steps to reproduce
The text was updated successfully, but these errors were encountered: