I'm currently using Swagger node.js and I am able to get a response through swagger with the mock option enabled (swagger project start -m
)
However, when I hit the API, the mock response is very primitive.
"description": "Sample text",
"disabled": true,
So for string properties, I get back "Sample Text" and for Boolean, I get back True. Is there any way to control these values? Maybe force swagger to refer to the example property?
I looked online, but couldn't find any way to achieve this.