Commit Graph

306 Commits

Author SHA1 Message Date
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
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
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
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
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
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
Greg Myers
dad99930aa trigger build 2019-11-02 15:56:08 +00:00
Greg Myers
c108a8367c try conditional stages 2019-11-02 15:48:29 +00:00
Greg Myers
8d8fc11e55 correct ruby-version for travis 2019-11-02 15:35:51 +00:00
Greg Myers
8d04646341 Cache the correct directory 2019-11-02 15:09:21 +00:00
Greg Myers
f8fb73fb14 Use a prebuilt ruby
https://docs.travis-ci.com/user/reference/bionic/
Pre-installed Rubies: 2.3.8, 2.4.5, 2.5.3 and 2.6.3.
2019-11-02 15:03:45 +00:00
Greg Myers
4516ad4b78 Update changelog and tweak readme 2019-11-02 14:52:37 +00:00
Greg Myers
2d5da62bf1 CHANGELOG.md 2019-11-02 14:02:31 +00:00
Greg Myers
dc161fe275 Serve yaml files as yaml instead of converting them to json 2019-11-02 13:57:47 +00:00
Greg Myers
eeb1026691 Fix invalid Swagger in YAML values
The original fix failed because though the Keys were now strings, some
of the values for path variables were also symbols.
Psych does have a safe_load which has a whitelist of classes but it does
not have a safe_dump mode. We could have used deep_transform_values and
manually converted the classes we did not want, but why risk a buggy
implementation when JSON.generate works just fine?
2019-11-02 13:13:06 +00:00
Greg Myers
2c0f3c9396 Fix invalid Swagger in YAML 2019-11-02 12:58:36 +00:00
Greg Myers
acab437a7d Add failing test showing Psych errors 2019-11-02 12:55:09 +00:00
Greg Myers
3ff1de5d65 Update changelog 2019-11-02 11:40:07 +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
Hayley Prior
9cbd85a22a
Delete yarn.lock 2019-10-24 22:06:26 +01:00
Hayley Prior
ef78b0c98f
Delete .yarn-integrity 2019-10-24 22:06:00 +01:00
Hayley Prior
354208ac03
Merge pull request #3 from hdpuk86/fix/swagger-ui-update
update swagger-ui to 3.23.11
2019-10-24 21:55:08 +01:00
hdpuk86
b29373c0c4 update swagger-ui to 3.23.11 2019-10-24 21:53:48 +01:00
Hayley Prior
2e9015dd12
Merge pull request #2 from hdpuk86/merge-master-fork
Merge master fork
2019-10-24 21:34:04 +01:00
hdpuk86
db45cafea2 merge master fork 2019-10-24 21:17:23 +01:00
Greg Myers
2cf6812ae0
Update README.md 2019-10-19 21:39:24 +01:00
Greg Myers
90d7fada85
Merge pull request #249 from BookOfGreg/fix/swagger-generator
Point the railtie to the correct file
2019-10-18 23:28:43 +01:00
Greg Myers
c14f72a45e Point the railtie to the correct file
Fixes #248
2019-10-18 23:18:32 +01:00
Greg Myers
9722419647
Merge pull request #180 from fishpercolator/default_swaggerize
Add a 'rake rswag' that runs swaggerize as the default
2019-10-17 22:35:50 +01:00