Commit Graph

424 Commits

Author SHA1 Message Date
Greg Myers
d32f098e0b
Merge pull request #187 from pjdavis/configure-response-header-in-rswag-api
allow headers to be set in the configuration of rswag-api
2020-04-04 20:01:04 +01:00
Greg Myers
1996f5130f
doc: note that content-type is dynamic 2020-04-04 20:00:39 +01:00
Greg Myers
8ae6653cf7
Merge branch 'master' into configure-response-header-in-rswag-api 2020-04-04 19:57:16 +01:00
Greg Myers
05dfd08f15
Merge pull request #239 from hdpuk86/master
update swagger-ui to 3.23.11
2020-04-04 19:53:18 +01:00
Greg Myers
e0ed6bb646
Merge branch 'master' into openapi/merge 2020-04-04 19:47:12 +01:00
Greg Myers
5e2663eb6a
Merge pull request #293 from BookOfGreg/extend-output
add output for swaggerize command by inheriting thhe base text formatter
2020-04-04 19:46:37 +01:00
Greg Myers
bd06ebe526
Merge pull request #167 from akabiru/feat/add-basic-auth
🔒Add Optional Basic Auth for Rswag UI
2020-04-04 18:29:39 +01:00
Greg Myers
b000c94ea0 add output for swaggerize command by inheriting thhe base text formatter 2020-03-29 20:27:36 +01:00
Greg Myers
02cf2e668b doc update message about metadata[:operation] 2020-03-29 20:25:27 +01:00
Greg Myers
1f745003ff fix do not delete from operation level metadata 2020-03-29 20:16:03 +01:00
Greg Myers
cddb7ae614
add preamble to contributing guide
we wish to make it easier to know what to expect as a contributor.
That is we want semantic versioning, and we want you to know that contributions are valuable, and that as a contributor you don't own anyone anything so there's no pressure.
2020-03-27 00:16:07 +00:00
Greg Myers
405ccca494 Add upgrades for consumes and produces in content with schemas 2020-03-26 23:37:00 +00:00
Greg Myers
c739228c89 ignore byebugs anywhere 2020-03-26 23:36:12 +00:00
Greg Myers
3393263df7 Remove duplicate test block 2020-03-26 22:17:16 +00:00
Greg Myers
6b4f49aacb Basic rubocops 2020-03-24 16:02:13 +00:00
Greg Myers
5060697761 add conversion oauth flow to flows 2020-03-24 15:20:15 +00:00
Greg Myers
231a2d135c add rewrite for securitySchemes into swagger_doc 2020-03-24 14:56:24 +00:00
Greg Myers
b70e3a0794
Merge pull request #289 from bjelline/patch-1
fix README.md: dry_run goes into test.rb, not application.rb
2020-03-23 15:14:18 +00:00
Brigitte Jellinek
3046ea9f33
fix README.md: dry_run goes into test.rb, not application.rb
adding RSpec.configure to application.rb can lead to problems in production, where rspec may not be present.
config/environments/test.rb avoids these problems.
2020-03-23 07:10:23 +01:00
Greg Myers
e9aebe6221 fix mistake in assigning header nodes for type 2020-03-22 23:45:47 +00:00
Greg Myers
eb58fe687a add upgrade for basepath and host to server urls 2020-03-22 23:39:48 +00:00
Greg Myers
da230a4f3e add header type schema support for openapi3 2020-03-21 23:17:00 +00:00
Greg Myers
a25307dc69 add support for openapi 3 securitySchemas 2020-03-21 23:14:58 +00:00
Greg Myers
9414ca16b6 add upgrade parameters refs to openapi3 2020-03-21 22:38:49 +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
23a1074d07 Add tests for OA3 components/schemas loader with upgrade notice 2020-03-21 20:24:04 +00:00
Greg Myers
095067792f add loader for OA3 schema definitions with version based deprecation
notice
2020-03-21 19:51:01 +00:00
Greg Myers
2b239ef0f3 Reverted some files related to definitions changes 2020-03-21 17:04:41 +00:00
Greg Myers
0020d71c90 Remove deprecation warnings for Rails 5 and 6 2020-03-20 20:52:36 +00:00
Greg Myers
b5e210cd96 Merge branch 'openapi/master' into openapi/merge 2020-03-20 15:38:40 +00:00
Kabiru Mwenja
333a0b535a
Merge pull request #1 from PSPinc/feat/add-basic-auth
fix(references): update reference to Rswag::Ui::BasicAuth and env_mat…
2020-01-30 10:18:58 +03:00
Chris Miller
e21f786926 fix(references): update reference to Rswag::Ui::BasicAuth and env_matching_path environment accessor 2020-01-29 16:28:06 -08:00
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
Kabiru Mwenja
a43e6f6546
fix(rswag-ui): Define BasicAuth in Rswag::Ui module 2020-01-06 10:55:43 +03:00
Kabiru Mwenja
6e706c04d7
Merge branch 'origin/master' into feat/add-basic-auth 2020-01-06 10:01:19 +03:00
Kabiru Mwenja
19e985a828
chore(rswag-ui): Organise basic auth files 2020-01-06 09:50:30 +03:00
Greg Myers
63f01962ad
Merge pull request #254 from fooki/master
Parameterize the pattern for test locations
2019-11-17 09:55:54 +00:00
Greg Myers
e6bfba23d7
Merge pull request #255 from fooki/skip-documentation
Allow tests to be run without generating docs
2019-11-17 09:53:45 +00:00
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
Karl Johansson
3cd9d38e19 Parameterize the pattern for test locations
This commit allows users to specify search patterns when finding tests to
swaggerize. Omitting the pattern parameter makes rswag search with the default
patterns.

A typical usecase for this feature is when you already have a test suite set up
and you want to use rswag for generating swagger docs rather than high-coverage
testing.

Usage:

rake rswag:specs:swaggerize PATTERN='/your_path..'
2019-11-15 14:51:17 +01:00
Greg Myers
02a5bc988f
Merge pull request #253 from BookOfGreg/rails-7-constraint
Move constraint to less than rails 7
2019-11-02 17:09:24 +00:00
Greg Myers
c904a32e51 Move constraint to less than rails 7 2019-11-02 17:06:21 +00:00
Greg Myers
a46a5be3bb Use presence on tags in travis 2019-11-02 16:55:21 +00:00
Greg Myers
ccce4d6360 Fix travis.yml 2019-11-02 16:11:42 +00:00
Greg Myers
663294b84b
Merge pull request #251 from BookOfGreg/improved-yaml-support
Improved yaml support
2019-11-02 16:09:50 +00:00
Greg Myers
889dd0922a Merge branch 'master' into improved-yaml-support 2019-11-02 16:03:11 +00:00
Greg Myers
99281f96be
Merge pull request #252 from BookOfGreg/speedup-travis
Use a prebuilt ruby
2019-11-02 16:02:51 +00:00
Greg Myers
3dc0909a6a Use specific directory. We dont bundle to vendor/bundle 2019-11-02 15:59:48 +00:00