-
-
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
allOf ignored when the property is used on its own #4146
Comments
@smasala right looks like we need an option for different use cases. |
We have the same problem. If the model has allOf with a single subschema, the generated interface is incorrect in typescript-angular (but correct in typescript-node). I think allOf with single subschema is not normal way. But, we want to keep same format for shared schemas that may be added later.
After generate to
|
Perhaps a duplicate of #4770 ? |
Description
#3771 (v4.1.2) breaks code generation (TypeScript) when a model only defines a single
allOf/$ref
and no other properties.Example
Generated output
@wing328 I assume this is what you meant could happen by your comment #3771 (comment)
openapi-generator version
latest
The text was updated successfully, but these errors were encountered: