OpenAPITools / OpenAPITools/openapi-generator
Nodejs code generator stable version
Open
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,
- Using https://editor.swagger.io/ and then generated code for node-server from "generate-server" menu
- 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. - 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?
- 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
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
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