Only generate models and export at root level #1506
Labels
enhancement
New feature or request
openapi-ts
Relevant to the openapi-typescript library
PRs welcome
PRs are welcome to solve this issue!
stale
Description
As for now, this tool "translate" the OpenAPI specification and export everything inside a single file.
If the YAML/JSON specification is big enough (eg. we have a microservice which its JSON spec is ~ 2MB) and you need only to obtain the models from, the information overflow is not trascurable.
Proposal
My proposal is to define an option (eg
--only-schemas
) which export only the component schemas and export them at root level as done in #1260export type PersonModel = { name: string; surname: string: }
What do you think about?
The text was updated successfully, but these errors were encountered: