-
-
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][typescript-angular] generator generates invalid TypeScript for polymorphic types #5467
Comments
👍 Thanks for opening this issue! The team will review the labels and make any necessary changes. |
related: #4130 (comment) |
any update on this? AbstractTypeScriptClientCodegen.java
I saw you have this splitting logic for the imports, but I still get the same error for oneOf types. I am using openapi-gen 4.3.0 Swagger schema
The return type for the endpoints are valid, but the imports are still
|
Can this be an issue in the mustache file(s)? |
I guess it is rather a problem in the type-generation in the java code |
This is also an issue with the |
fixed in #6789 |
Bug Report Checklist
Description
[typescript-angular] generator generates invalid TypeScript for polymorphic types.
For example:
Expected:
openapi-generator version
4.2.3
How to reproduce
The text was updated successfully, but these errors were encountered: