-
Notifications
You must be signed in to change notification settings - Fork 5
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
Polymorph interfaces #13
Comments
Hello, Yes, you can try to open a PR if you want |
Working on it already, do you know how to use ts-morph to only get the own props of a node? BTW. I think that ONLY interface should generate explicit schema objects, all other types should always be inlined. Otherwise, you get a bunch of weird intermediate explicit schema types in the schema, like this:
which stems from
These make it hard to maintain a stable OpenAPI spec and the codegens and users downstream cry. (BTW I have handwritten codegens for openAPI -> TypeScript and openAPI -> Dart) |
Nope sorry, I think you'll need to dig into ts-morph to find the method
IMO interfaces & types (i.e. |
should be better with bba5a24 |
Consider
Currently,
Bar
generates a "flat" representation. However, we should embedFoo
usingallOf
intoBar
.Happy to work on a PR if you agree!
The text was updated successfully, but these errors were encountered: