Skip to content
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

Add fixed fields #431

Closed
wants to merge 2 commits into from
Closed

Conversation

aschuster3
Copy link
Contributor

Between Swagger v1.2 and v2, the description took a slightly different meaning and summary took it's place. I had to re-work a handful of tests so that summary was accepted and in order to be somewhat forward compatible, I made the string passed to desc on paths fill in the value for the summary by default with the option to override it.

While I was at it, I also added deprecated and built tests around that logic.

I based my additions on this resource

I tested and confirmed that these changes reflect on SwaggerUI appropriately.

@aschuster3 aschuster3 force-pushed the add-fixed-fields branch 3 times, most recently from 54e9b7f to f3dcb1d Compare May 20, 2016 03:14

```ruby
namespace 'order' do
desc 'This will be your summary', summary: 'Now this is your summary!'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please move summaryto new line and intend it, for better finding

@aschuster3 aschuster3 closed this May 20, 2016
@aschuster3 aschuster3 deleted the add-fixed-fields branch May 20, 2016 22:17
@aschuster3 aschuster3 mentioned this pull request May 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants