You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 14, 2022. It is now read-only.
By default, mock mode returns programmed responses, like "Sample text" for a string, a number for an integer, and so on.
However, when I write my swagger documentation in yaml, in the response, i can add an example for any response field as such:
id:
type: "string"
example: "abc_1234"
and in the swagger editor, the response would show the value that i set in the example instead of just "string".
Is there a way to have the same kind of interface when running in mock mode? I cannot seem to find anything that talks about this topic.
I traced through the code and noticed that the yaml file that is loaded is always Swagger.yaml.
I see from this post (Change default location of swagger.yml and api controllers #373) that you can override the config.
However, because I have multiple apis spread out over multiple yaml files, I am wondering if it is possible to load all those files together?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have two questions regarding mock mode and multiple swagger files:
However, when I write my swagger documentation in yaml, in the response, i can add an example for any response field as such:
and in the swagger editor, the response would show the value that i set in the example instead of just "string".
Is there a way to have the same kind of interface when running in mock mode? I cannot seem to find anything that talks about this topic.
I see from this post (Change default location of swagger.yml and api controllers #373) that you can override the config.
However, because I have multiple apis spread out over multiple yaml files, I am wondering if it is possible to load all those files together?
The text was updated successfully, but these errors were encountered: