OpenAPITools / OpenAPITools/openapi-generator

Nodejs code generator stable version

Open
#18,946 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
26.8k
Forks
7.7k
PR merge metrics
PR metrics pending

Description

Hello ,
I am using the openapi generator in one of my node project.I have tried below 2 ways to generate code,

  1. Using https://editor.swagger.io/ and then generated code for node-server from "generate-server" menu
  2. Using codegen and nodejs-express-server plugin, But in both cases, I am facing below issues,
    a. Code is generated for controllers and services using promises architecture instead of async-await
    b. If I use, oas-tools plugin to imply validations from yaml file, there is no provision, to add middleware for data validation, bearer token validation etc.
  3. Also, nodejs-express-server this plugin is in beta state and subjected to breaking changes without further notice. So is there any roadmap/plan for stable release?
  4. Is there any way to specify custom configurations similar to JAVA plugin. ex. folder for generated code, coding styles to use etc
    can you please let me know is there a way to resolve above issues? Is there any roadmap for stable version of node generator release.

Thank you!

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 by reviewing the nodejs-express-server generator and the oas-tools integration mentioned in the report. The request combines async-await output, validation middleware, configuration options, and a stable-release roadmap; split these into scoped proposals with explicit acceptance criteria and tests before implementation.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.