-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
[BUG] [typescript-fetch] serialize/deserialze not working with inheritence #3646
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
Comments
👍 Thanks for opening this issue! The team will review the labels and make any necessary changes. |
May be related to #2845. |
Maybe. But I tested the fix I suggested and it works. It simply seems to be forgotten. |
Concerning #2845: I suffured this bug in Java-Service with 4.0.0. In this situation the template was ok but the parent-value seems not to be filled. With 4.1.0 and typescript-fetch the parent-value is filled, but the template is not ok :-| |
@stephanpelikan can you open an PR? |
@macjohnny PR created |
…#3767) * #3646 - fix inheritence * #3646: Fix imports * Update modules/openapi-generator/src/main/resources/typescript-fetch/modelGeneric.mustache Co-Authored-By: Esteban Gehring <[email protected]> * generate typeescript-fetch samples
There's a bug when there's more than one model inheriting from the base class. In your example, if you have both a B and a C inheriting A's property, the template does not generate valid typescript.
It's a quick fix, I'll push a PR |
Description
Properties of super-classes are not serialized/deserialized.
openapi-generator version
4.1.0
OpenAPI declaration file content or url
Suggest a fix
in modelGeneric.mustache add the lines with comment:
and
The text was updated successfully, but these errors were encountered: