openapi-codegen icon indicating copy to clipboard operation
openapi-codegen copied to clipboard

generateExpressControllers Plugin

Open el-j opened this issue 3 years ago • 1 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

el-j avatar Dec 23 '22 16:12 el-j

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 😃

fabien0102 avatar Dec 23 '22 17:12 fabien0102