rspec_api_documentation-open_api 0.2.7 → 0.2.8

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: 4dcf1702539bee864518b07dfc2d4a866ba97ec9dd00867e78f9a75b2f7d9db3
4
- data.tar.gz: a3091c28a0c90979cc7c11ea108d385f224741dc7193e2e4494857b0f9d4c0d2
3
+ metadata.gz: 95553a6c8288c8818a3c5f5569d280997cc627d8cd3959f9f5dfa1909d40b8bb
4
+ data.tar.gz: a547745dfc569d785bcbbdec1e8a133c8b48f722e328bc22fe0735c595d62f17
5
5
  SHA512:
6
- metadata.gz: 98c706b8d9287c51097b1a26af2c20536d3f95cb02ebe314bf25799095e747388727c671757dba19b5c93d7a74dce5a7c67903717e55f3c85bb1f4aa779cb798
7
- data.tar.gz: 4f1cd0d20abae4af4c172ed56ff9547fb8503415dbb0b1422e8473ca749232f461ee95b496402352bc7f7aee6361a0e3f28b7e48500a759f19f792e708c92fd5
6
+ metadata.gz: 368105dbd3fffab68b062807219a69f70ec0badc08184d6c6673a5adf9f2da79ab8389416239979d50f79889ff55bf013249c5061b5efcd6917fdab7d0aa7827
7
+ data.tar.gz: 6d24c95621cd081f1dbb6915e3e97d9256b3e28f4dc6a99e71336009c3945c25141bc7f6a5a4add281b7532fcb2739b0e64c5e37f576b04a9b52a3301af20c80
@@ -1,5 +1,5 @@
1
1
  module RspecApiDocumentation
2
2
  module OpenApi
3
- VERSION = "0.2.7".freeze
3
+ VERSION = "0.2.8".freeze
4
4
  end
5
5
  end
@@ -79,7 +79,7 @@ module RspecApiDocumentation
79
79
  req["request_headers"]&.each do |name, value|
80
80
  if name == "Authorization"
81
81
  swagger["paths"][route][method]["security"] = if /Bearer (.*)/.match?(value)
82
- if !responses[401]
82
+ unless responses[401] && responses["401"]
83
83
  responses[401] = {
84
84
  "description" => "Unauthorized Access",
85
85
  "content" => {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec_api_documentation-open_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaditya Taparia