[openapi-ts] Feature Request: Configurable Output modes #1718
nikitastryuk
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
Hi @nikitastryuk and thank you! I'm onboard with this, it just hasn't been prioritised. When you mention navigating a single file, can you describe what you're looking for in that file? Personally, I rarely go into the generated files and my spec is 36k+ lines of pretty JSON. This is for my own context, not directly related to the request |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Firstly, I would like to extend my gratitude for the outstanding work. It is an invaluable tool, and I truly appreciate the effort and dedication that has gone into it.
I would like to propose an enhancement particularly for users managing large projects and openapi specs. This feature would enhance searchability, navigation, and overall management of generated files.
Feature Proposal: Configurable Output Generation Modes
It introduces tags-split mode that organizes tag-specific (openapi tag) files into directories while retaining all core files.
Example Configuration:
Modes
1. Client-based (Current Implementation)
Description: All logic (client, SDK, types) is bundled into a few core files.
Example:
2. Tags-split Mode
Description: Files are grouped by openapi tag (e.g., pets, users) into folders, keeping core files intact.
Example:
3. Per-request Mode
Description: The generated files will be broken down by each operation:
Example:
I believe there could be several more useful options, such as a single-file option for really tiny projects. However, I’m personally more interested in the tags-split option, as navigating a single file that contains all domains can be quite difficult.
Beta Was this translation helpful? Give feedback.
All reactions