swagalicious 0.4.9 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0c8a067a1f9513407e71eb9fc8b0417a7ee1902b0a57f64fc6f8350d19547120
4
- data.tar.gz: ae6daf40f2d7d2103cd7f02ab681ac668aad4a17dd62ff91116ada20d1efa8e2
3
+ metadata.gz: 9390b8f1cc7a642960bf7034d19cfced2473bcc8fae6c7c8d2f496f90a3021d8
4
+ data.tar.gz: 5a2fcf532d9a334ee083998d0df6477c0c106bc651447a88df9c0a649c569bf1
5
5
  SHA512:
6
- metadata.gz: 4e56b57b18b5a810b75ea4ac18cab307fd0d57c713b4c6fb832d55870dcecc26bdf6ff6f521829a0dd5fe55fcd47f11582ca8f4aa4b483432b0bf4d7c6bb7c69
7
- data.tar.gz: 153859f7e8a64f7b49f8c18776d2b86691ee29c83fb8e19113b4cd2fc00a08b3090ea07e386f6430d8328a541c5d513e3083ec51dcf6f89bebfbc79153558042
6
+ metadata.gz: 913d388442cb821df24ed4cba9624f3196b4503ba07b6b1a071ca7de44ad98495f3fcfe6356250d011a4da131d7a780e664f8932223f901a520c6c203c099c9a
7
+ data.tar.gz: 69a467ca5f92f3ec1794121b1caca3a0a82eff0d953f7eec082776999f754579ab4033144589b252c6867130001de611ab40bc50152b762afc599493eb193c80
@@ -39,8 +39,9 @@ class Swagalicious
39
39
  schemes = security_version(scheme_names, swagger_doc)
40
40
 
41
41
  schemes.map do |scheme|
42
- param = (scheme[:type] == :apiKey) ? scheme.slice(:name, :in) : { name: "Authorization", in: :header }
43
- param.merge(type: :string, required: requirements.one?)
42
+ param = (scheme[:type] == :apiKey) ? scheme.slice(:name, :in, :required) : { name: "Authorization", in: :header }
43
+ param.merge(required: requirements.one?) unless param.has_key?(:required)
44
+ param.merge(type: :string)
44
45
  end
45
46
  end
46
47
 
@@ -1,3 +1,3 @@
1
1
  class Swagalicious
2
- VERSION = "0.4.9"
2
+ VERSION = "0.5.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: swagalicious
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.9
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eugene Howe
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-03 00:00:00.000000000 Z
11
+ date: 2022-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -160,7 +160,7 @@ metadata:
160
160
  allowed_push_host: https://rubygems.org
161
161
  homepage_uri: https://github.com/ehowe/swagalicious
162
162
  source_code_uri: https://github.com/ehowe/swagalicious
163
- post_install_message:
163
+ post_install_message:
164
164
  rdoc_options: []
165
165
  require_paths:
166
166
  - lib
@@ -175,8 +175,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
175
175
  - !ruby/object:Gem::Version
176
176
  version: '0'
177
177
  requirements: []
178
- rubygems_version: 3.3.7
179
- signing_key:
178
+ rubygems_version: 3.0.3.1
179
+ signing_key:
180
180
  specification_version: 4
181
181
  summary: RSwag without Rails
182
182
  test_files: []