Commit Graph

61 Commits

Author SHA1 Message Date
vinhbachsy
0b0acfe4c7 Rename response_examples to examples for consistent DSL
Special handling `examples` invocation with no parameters to avoid
overriding the `examples` method of rspec-core ExampleGroup
2016-10-19 03:04:03 +08:00
vinhbachsy
5cf376891a Validate response headers based on specified header
Add validate_headers step in response validator.
Using JSON::Validator with validate header value with swagger header 
object.
2016-10-18 21:46:35 +08:00
vinhbachsy
10dd37896f Support setting examples for response
Add helper method `response_examples` to inject response examples to swagger
2016-10-18 21:46:35 +08:00
richie
23f4120fe3 Parse defined security requirements correctly 2016-10-14 17:44:27 -07:00
richie
4d675056c1 Support parameters provided at the 'path' level 2016-10-13 18:17:19 -07:00
richie
941b195f68 In .travis.yml, use Rails 3 version that's compatable with Ruby 2.2 2016-10-11 23:00:12 -07:00
richie
f8df35d338 More tweaks to travis/ci scripts 2016-10-11 22:31:29 -07:00
richie
b503e0c74b Remove local path from Gemfile 2016-10-11 22:09:56 -07:00
richie
02a15d131c Add travis.yml 2016-10-11 22:01:10 -07:00
richie
02159f2136 Cleanup .gitignore files etc. 2016-10-11 18:53:53 -07:00
richie
c558098c39 rename to rswag plus major refactor - almost a rewrite 2016-10-11 18:31:12 -07:00