OpenAPITools / openapi-generator

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
https://openapi-generator.tech
Apache License 2.0
20.76k stars 6.32k forks source link

[REQ] [typescript-fetch] Add support for splitting models into separate files when runtime checks are disabled. #18845

Open suneettipirneni opened 1 month ago

suneettipirneni commented 1 month ago

Is your feature request related to a problem? Please describe.

Right now in the typescript-fetch generator if you opt out of runtime all interfaces/schemas are placed in a single index.ts file.

Describe the solution you'd like

Similarly to typescript-axios and option should be exposed withSeperateModelsAndApi. That controls the splitting behavior of the files.

Describe alternatives you've considered

Additional context