swagger-api / swagger-api/swagger-codegen
[REQ] [Typescript] Only generate types with no services calls
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Description
There is no way (from what I can tell) to generate Typescript Types only with no service calls. We have written our service layer already, but want to be able to take advantage of the types that we can generate using this library.
Alternative condidered: https://github.com/horiuchi/dtsgenerator, but would like to use the types generated from swagger-codegen since it has a larger user-base/support.
Swagger-codegen version
Latest
Swagger declaration file content or url
N/A
Command line used for generation
N/A
Steps to reproduce
N/A
Related issues/PRs
N/A
Suggest a fix/enhancement
Include an option to generate types only.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no files, tests, command, or Swagger declaration to use. Start by locating the TypeScript generator and its generation options, then determine how a types-only mode should be exposed and verify that generated output contains types without service calls.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100