Karl Johansson
4c613af2ba
Allow tests to be run without generating docs
...
By providing the 'document: false' metadata, tests will be run but no swagger
documentation will be generated for the tagged example groups. It works on all
kinds of example groups (responses, verbs, paths etc..).
2019-11-15 16:21:04 +01:00
Greg Myers
acab437a7d
Add failing test showing Psych errors
2019-11-02 12:55:09 +00:00
Greg Myers
0e04635b15
Write the files using specified format
2019-11-02 11:19:01 +00:00
Greg Myers
73b84101cc
Adding yaml as option for generator
...
New installations will get :yaml as it's default with openapi 3 as the
version. Old installations will have the key missing and will default
to :json with an easy upgrade path.
2019-11-02 10:45:38 +00:00
Nathan Broadbent
e5eb44191c
Use RSpec.describe to fix IRB context warning in Rails console
2019-10-17 16:40:31 +07:00
Greg Myers
4d29e09010
Add spec generator test
2019-10-16 23:19:24 +01:00
Peter McCready
5c9154864e
add options and trace verbs
2019-10-04 14:51:41 +01:00
domaindrivendev
26a3bf5079
avoid metadata mutation in request_factory
2018-04-23 16:00:07 -07:00
Andrey Kurashev
05e1e2271f
Fix Authorization header missing and duplicating
2018-02-20 14:49:13 +06:00
domaindrivendev
06d00de992
Assume symbol for referenced parameter key
2017-09-06 13:38:36 -07:00
domaindrivendev
ad9cd5de66
Support paired security requirements - e.g. basic and apiKey
2017-08-21 01:07:47 -07:00
Travis Hooper
037c0e374a
Allows for parameters to be defined without the 'in' key defined to allow for parameter
2017-07-31 17:44:43 -05:00
domaindrivendev
732cab994c
simplify validation blocks and use correct scope
2017-07-21 22:26:14 -07:00
domaindrivendev
b16198377b
Merge branch 'add-formData-support' of https://github.com/thg303/rswag into thg303-add-formData-support
2017-07-21 14:25:29 -07:00
domaindrivendev
e18a001e9b
Move rackify headers to RequestFactory + other minor refactors
2017-07-21 13:49:01 -07:00
domaindrivendev
97c2a39cfa
Refactor request_factory & response_validator
2017-07-20 23:42:40 -07:00
Andrew Hobson
1515ce4fcb
Support optional query parameters
2017-07-11 16:28:45 -04:00
Ali Qanavatian
44840ab836
Merge branch 'master' into add-formData-support
2017-07-04 09:45:33 +04:30
domaindrivendev
de7ec5f15d
Leverage security definitions for headers in example requests
2017-06-26 17:52:00 -07:00
ali.q
182ee093f4
add formData support
2017-05-11 05:06:46 +04:30
Horia Radu
f195c82759
yield entire response instead of only the body
2017-04-29 21:17:53 +03:00
Horia Radu
37f86f6d94
yield entire response instead of only the body
2017-04-29 12:06:57 +03:00
Horia Radu
51c9f4e5e6
Response body value validation
...
Add the possibility to pass a block to the run_test!
method in order to add expectations on your response
2017-04-28 11:46:52 +03:00
vinhbachsy
64b0de494f
Simplify response header validation
...
Change to checks for the presence of required headers instead of using
JSON::Validator
2016-10-20 01:33:43 +08:00
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
richie
23f4120fe3
Parse defined security requirements correctly
2016-10-14 17:44:27 -07:00
richie
312f68ae72
Rename ExampleHelpers.config - appeared to be conflicting in Rails 4+
2016-10-14 09:55:55 -07:00
richie
4d675056c1
Support parameters provided at the 'path' level
2016-10-13 18:17:19 -07:00
richie
de09df59e1
Move path metadata into 'path_item' hash
2016-10-13 17:23:31 -07:00
richie
b81b2927be
More useful error messages in rswag-specs
2016-10-13 16:56:44 -07:00
richie
f8c882001c
Add support for query parameters of type array
2016-10-12 14:10:01 -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