swagger-api / swagger-api/swagger-codegen

[Question][Typescript Server Stub] Is there any plan to support generating server stub in Typescript

Open
#8,081 8 comments 21 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

Description

For server stub, it supports generating server stub using NodeJS (Javascript). I am interested in writing Typescript based RESTful api using express.js and node.js. I wonder if swagger-codegen has any plan to support generating typescript based nodejs server stub?

Swagger-codegen version

2.3.1

Swagger declaration file content or url
Command line used for generation

swagger-codegen generate -i http://petstore.swagger.io/v2/swagger.json -l nodejs-server

Steps to reproduce
Related issues/PRs
Suggest a fix/enhancement

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the nodejs-server generator named in the command and inspect how it produces Node.js output. Define the scope for a TypeScript-based Express/Node.js server stub, then validate generation from the petstore Swagger URL and document the expected generated project.

Written by the indexing model from the issue text.

Assessment

Tech stack
express, node.js, typescript
Domain
api, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.