Greg Myers
405ccca494
Add upgrades for consumes and produces in content with schemas
2020-03-26 23:37:00 +00:00
Greg Myers
6b4f49aacb
Basic rubocops
2020-03-24 16:02:13 +00:00
Greg Myers
da230a4f3e
add header type schema support for openapi3
2020-03-21 23:17:00 +00:00
Greg Myers
70eb277e04
add upgrade path and query param type output to openapi3 if selected
2020-03-21 21:38:09 +00:00
Greg Myers
b5e210cd96
Merge branch 'openapi/master' into openapi/merge
2020-03-20 15:38:40 +00:00
Peter McCready
5c9154864e
add options and trace verbs
2019-10-04 14:51:41 +01:00
Jay Danielian
13f7007b2f
Renames and fixes specs in api and specs project to prefix OpenApi module. Gem name to open_api-rswag
2019-07-27 14:53:01 -04:00
Jay Danielian
b8dcc8fe30
Adds support for proper requestBody examples. Adds mechanism to allow for adding additional ways to add request body examples
...
Can add externalValue or it will work and produce valid swagger spec.
The Symbol name matching the let parameter is always required
2019-07-21 15:03:37 -04:00
Jay Danielian
4c2097e017
Fixes response_validator to handle 3.0 responses and validate against the schema.
...
JSON::Validator already handles anyOf oneOf schema definitions, so those can be passed in and validation errors are returned properly
2019-07-20 14:33:51 -04:00
Jay Danielian
eb4e6045c5
Modifies generator and specs to look for openapi: 3.0.0 vs swagger 2.0
...
Renames rswag-api to rswag_api as that is preferred file naming convention in initializers per rubocop linting
2019-07-20 12:52:31 -04:00
Jay Danielian
4baf5efd11
Updates specs to add 3.0 compliant structure and tests around the new schema/structure
2019-07-20 12:29:44 -04:00
Jay Danielian
aa133b90fc
Adds request_body_multipart method which enables schema properties to be written for multipart upload body
...
Will inspect the provided hash and add the property file_name to the parameters collection so upload and 3.0 output will work properly
2019-07-17 20:07:30 -04:00
Jay Danielian
c820bb75e0
Modifies parameters and body request/responses to output 3.0 syntax for basic operations.
...
SwaggerEditor passes basic output
2019-07-14 17:28:11 -04:00
Jay Danielian
0093efd4bf
Adds rswag to test and development so rake tasks work
...
Adds to swagger_Formatter to remove injected body parameters since those are 2.0 and ont 3.0 compliant
Adds to example_group_helpers to only automatically save request examples in the swagger output on 2xx response, since otherwise it was getting clobbered
2019-07-07 22:57:55 -04:00
Jay Danielian
297cc447c8
Gets v3 request example saving as well as response example saving
...
Adds rubocop to the gemset
adds guard to the gemset for testing
2019-07-05 15:59:47 -04:00
Jay Danielian
768a1a1d43
Initial commit for trying to produce and consume v3 swagger
2019-06-29 18:12:21 -04: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
8f16492462
Merge pull request #82 from domaindrivendev/per-response-metadata
...
Allow arbitrary metadata for path/response blocks
2017-07-22 10:33:05 -07:00
domaindrivendev
732cab994c
simplify validation blocks and use correct scope
2017-07-21 22:26:14 -07:00
domaindrivendev
452d9176cc
Allow arbitrary metadata for path/response blocks
2017-07-21 21:19:25 -07: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
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
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
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
c558098c39
rename to rswag plus major refactor - almost a rewrite
2016-10-11 18:31:12 -07:00