Skip to content

Only generate models and export at root level #1506

Closed as not planned
Closed as not planned
@alessiomatricardi

Description

@alessiomatricardi

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 #1260
export type PersonModel = { name: string; surname: string: }

What do you think about?

Metadata

Metadata

Assignees

No one assigned

    Labels

    PRs welcomePRs are welcome to solve this issue!enhancementNew feature or requestopenapi-tsRelevant to the openapi-typescript librarystale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions