forked from ruby-grape/grape-swagger
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow extension keys in Info Object (ruby-grape#588)
* Allow extension keys in Info Object, per http://swagger.io/specification/#infoObject * address comments - make rubocop happy - add changelog entry - add entry to extension section in the README * fix changelog entry * another changelog fix
- Loading branch information
Showing
5 changed files
with
34 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -98,7 +98,10 @@ def app | |
license: 'Apache 2', | ||
license_url: 'http://test.com', | ||
terms_of_service_url: 'http://terms.com', | ||
contact_email: '[email protected]' | ||
contact_email: '[email protected]', | ||
x: { | ||
logo: 'http://logo.com/img.png' | ||
} | ||
} | ||
end | ||
end | ||
|
@@ -131,5 +134,9 @@ def app | |
it 'documents the contact email' do | ||
expect(subject['contact']['email']).to eql('[email protected]') | ||
end | ||
|
||
it 'documents the extension field' do | ||
expect(subject['x-logo']).to eql('http://logo.com/img.png') | ||
end | ||
end | ||
end |