Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generateExpressControllers Plugin #132

Open
el-j opened this issue Dec 23, 2022 · 1 comment
Open

generateExpressControllers Plugin #132

el-j opened this issue Dec 23, 2022 · 1 comment

Comments

@el-j
Copy link
Contributor

el-j commented Dec 23, 2022

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

@fabien0102
Copy link
Owner

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 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants