-
Notifications
You must be signed in to change notification settings - Fork 36
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
Automatic mock responses #114
Comments
You're not the first person to ask about this. It should definitely be possible. We have infrastructure for plugins already which should have most of what you'd need to do this. Off the top of my head, if I was going to do this, I'd traverse all the The first tricky bit is constructing a valid response; if there's an The second tricky bit is, I'm not sure where you'd get a chance to insert the I wouldn't mind taking a stab at something like this, but I can tell you we're a little short staffed at work right now, and I'm pretending to be DevOps and learning Kubernetes, so it might be a little while before I get a chance. But if you think that's enough to get you started, feel free to give it a go - I'm happy to answer any questions if you get stuck. :) |
json-schema-faker might be a good place to start for generating responses, although I bet it ignores the |
Is-it possible to have an option or a plugin to automatically returns the answers provided in the swagger specification file inside a controller?
That will avoid us to create the same thing from the Swagger specification file and inside the controller.
Thanks a lot for your help.
The text was updated successfully, but these errors were encountered: