-
Notifications
You must be signed in to change notification settings - Fork 472
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
Change output to be compatible with swagger-ui #105
Conversation
Conflicts: README.markdown lib/grape-swagger.rb
These changes were implemented to support this PR swagger-api/swagger-ui#398 which will soon be moved to master. This PR will truly make swagger very useful for Railers, more specifically, will make it so nested attributes is more how Railers use them. |
Ugh. I just discovered that in the process of collecting commits for this PR some code got left out. I'll fix it and add more commits. |
Note that this PR now contains at least most of #104. |
A lot of these changes were driven by looking at the JSON produced by the sample code for swagger-api/swagger-ui#398 and making the JSON produced by grape-swagger as similar as possible. New values in
New values in
Additionally, Finally, for |
+1 |
…root documentation
@tim-vandecasteele I've verified that these changes are producing valid swagger-json! There's a full sample project here. Would be great to get this merged back to your gem! |
This is on top of pull request ruby-grape#105. Conflicts: lib/grape-swagger.rb
This would be super helpful 👍 |
Change output to be compatible with swagger-ui
I tried to keep the output backward compatible. If I broke something, please let me know.