Add an option to generate type aliases for schemas #1543
Labels
enhancement
New feature or request
openapi-ts
Relevant to the openapi-typescript library
PRs welcome
PRs are welcome to solve this issue!
Description
Schemas are probably the closest representation of TS types and are reused in similar ways. It is somewhat awkward to refer to them using their string paths all the time.
Proposal
Add a flag like
--generate-schema-type-aliases
that will generate type aliases for schema types. For example, with the below:With the flag, there would be a new alias that could be directly imported:
Checklist
The text was updated successfully, but these errors were encountered: