Commit Graph

235 Commits

Author SHA1 Message Date
Rutger Gelling
f331e064fd Add yaml support (#7) 2020-01-27 20:24:27 -05:00
Rutger Gelling
79304a1bc1 Add support for multiple content types in examples (#8) 2020-01-27 20:20:36 -05:00
Rutger Gelling
b9ac008a9f Point to the correct version of rswag-specs (#6) 2020-01-27 20:20:07 -05:00
jdanielian
72becffefe
Merge pull request #5 from gravityslave92/master
Remove hindrance for migrating to rails 6
2019-09-07 08:33:01 -04:00
Jay Danielian
6a4cc8de8d Adds fix for multiple files to be marked in request_body_multipart 2019-09-07 08:21:56 -04:00
gravityslave92
5fe1637407
update dependency add protection 2019-09-06 14:59:25 +03:00
gravityslave92
275c3b1994
Update dependency add versional protection 2019-09-06 14:58:00 +03:00
gravityslave92
3da9eda063
Update dependency add protecting check 2019-09-06 14:57:22 +03:00
gravityslave92
8f2378eb6f Remove hinders for migrating to rails 6 2019-09-06 12:57:44 +03:00
jdanielian
6467ce6543
Merge pull request #4 from jdanielian/response-example
Only automatically save examples if examples are not given explicitly…
2019-08-26 23:08:44 -04:00
Jay Danielian
4670dcd4b0 Removes rails 4.2.8 due to bundler conflicts 2019-08-26 23:01:38 -04:00
Jay Danielian
91ae7732c2 Adding services startup for travis 2019-08-26 22:57:05 -04:00
Jay Danielian
90af919af3 Removes startup script trying to get travis build to work 2019-08-26 22:46:30 -04:00
Jay Danielian
02f72a4b1a Trying to fix capybara 2019-08-26 22:39:13 -04:00
Jay Danielian
5555edc59f Only automatically save examples if examples are not given explicitly in the spec itself 2019-08-26 22:25:53 -04:00
Jay Danielian
ce8237110f Updates travis script 2019-08-04 11:51:17 -04:00
Jay Danielian
5e48a2cae3 fixes badge path 2019-08-04 11:23:45 -04:00
jdanielian
9ba484dc37
Merge pull request #3 from jdanielian/documentation
Updates README with proper links and examples
2019-08-04 11:13:31 -04:00
Jay Danielian
5a8d1ce359 Updates README with proper links and examples for new OpenApi 3.0 syntax / features
Missed a few generator items as part of the rename
2019-08-04 11:00:33 -04:00
Jay Danielian
9bc6e2e16a Adds 4.2.8 to minimum rails version, as rails 4.2.0 was erroring out on certain ::Numeric extensions 2019-08-01 14:19:11 -04:00
jdanielian
04298d655b
Merge pull request #2 from jdanielian/travis-ci
Finishes some renaming elements that were missed previously
2019-08-01 14:09:24 -04:00
Jay Danielian
157175c90f Finishes some renaming elements that were missed previously
Modifes the travis.yml in trying to setup travis CI build
2019-08-01 14:05:57 -04:00
Jay Danielian
6d285d2c4f Notes in the todos 2019-08-01 13:05:44 -04:00
jdanielian
c889e407ec
Merge pull request #1 from jdanielian/open-api-rename
Open api rename
2019-08-01 09:15:52 -04:00
Jay Danielian
032ad5dc54 Fixes last little pathing mistakes from rename
All specs are passing in all gems and in test-app

Properly generates open api 3 swagger via rake rswag:specs:swaggerize and via bundle exec rspec in test-app dir
2019-08-01 09:10:38 -04:00
Jay Danielian
475929e9aa Renames gems to open_api-rswag-* 2019-08-01 08:37:05 -04: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
db3f321b45 References newly named open_api-rswag-api gem 2019-07-23 22:24:23 -04:00
Jay Danielian
27a7481b48 Renames rswag-api to open_api-rswag-api 2019-07-23 22:23:59 -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
cd348b53f8 Adds anyOf support to requestBody 2019-07-20 13:50:38 -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
04564d933f Fixes example group helpers spec with new 3.0 format 2019-07-18 22:19:10 -04:00
Jay Danielian
aa59c5ff91 Fixes response validators specs for v3 structure 2019-07-18 22:01:00 -04:00
Jay Danielian
659b328eda Fixes spec for #stop writing swagger docs 2019-07-17 20:35:56 -04:00
Jay Danielian
5e71651d6d Adds auth_tests_spec and validated that it is generating valid 3.0 security related swagger 2019-07-17 20:18:12 -04:00
Jay Danielian
28bcc121ba formatting 2019-07-17 20:10:10 -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
23349b2678 Adds byebug_history file in gitignore 2019-07-14 14:26:50 -04:00
Jay Danielian
fd061a2a7f Removes byebug history 2019-07-14 14:26:16 -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
5d7fc44af4 Updates docs to include setting up rswag-ui assets first time locally 2019-06-30 13:06:12 -04:00
Jay Danielian
768a1a1d43 Initial commit for trying to produce and consume v3 swagger 2019-06-29 18:12:21 -04:00
Richard Morris
10bb732148
Merge pull request #177 from FormAPI/show_response_body_for_invalid_code
Show response body when the response code is unexpected.
2019-04-08 12:25:28 +01:00
Richard Morris
c74c88fd46
Merge pull request #176 from BookOfGreg/patch-1
Update swagger_helper.rb
2019-04-08 12:24:54 +01:00
Richard Morris
9cb187192d
Merge pull request #23 from drewish/contributing
Add a contributing file
2019-04-08 12:17:32 +01:00