Open hmil opened 4 years ago
ng-openapi-gen may generate interface code which extends a type alias, which is not permitted in TypeScript.
extends
This happens when combining allOf with oneOf, because allOf is implemented as interface inheritance whereas oneOf is implemented as a type alias.
allOf
oneOf
I think the safest approach is to generate a type alias for schemas which are allOf combinations.
Potential fix in #110
ng-openapi-gen may generate interface code which
extends
a type alias, which is not permitted in TypeScript.This happens when combining
allOf
withoneOf
, becauseallOf
is implemented as interface inheritance whereasoneOf
is implemented as a type alias.I think the safest approach is to generate a type alias for schemas which are
allOf
combinations.