fabien0102 / openapi-codegen

A tool for generating code base on an OpenAPI schema.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

generateExpressControllers Plugin

el-j opened this issue · comments

hi, the plugin generateExpressControllers is mentioned in the readme.md in the example config. it's commented but it's in there. as far as i can see, there is no plugin now for generatingExpressControllers

i would really like to support this development. is there anyone already working on it?

use-case:
generate an express-backend-mock-server with the generatedControllers.

on the other hand i am not sure if prism is doing that already -...
https://www.npmjs.com/package/@stoplight/prism-http

Hey,
yeah, it’s an old idea that I never get time to work on.
The idea I would love to implement is to generate some zod schemas for validating the inputs (using ts-to-zod) and providing the output type of the function.

I need to go right now, but I can try to specify a bit more want I imagine for this :) And I will totally be happy to have some support 😃