-
Notifications
You must be signed in to change notification settings - Fork 463
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
support property example #901
support property example #901
Conversation
[WHY] * the generated swagger json didn't include the example for the response [HOW] * add a new option for params description `ex` to provided example for the specific parameters
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work 🚀 Thank you for working on it 🙏 example
is indeed a valid swagger attribute.
Perhaps the options can be named example
? Do you know if there was a reason not to do that?
spec/lib/apipie/generator/swagger/param_description/builder_spec.rb
Outdated
Show resolved
Hide resolved
Co-authored-by: Panos Dalitsouris <22100396+PanosCodes@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you maybe add a reference to README too?
Co-authored-by: Panos Dalitsouris <22100396+PanosCodes@users.noreply.github.com>
[WHY]
[HOW]
ex
to provide an example for the specific parametersHere is a swagger editor preview with the ex option, which correctly shows the example in response: