apia-open_api 0.1.10 → 0.1.12

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: 2018fe92f478024edd0b15086e2844c6f540cecccdc508d246c2ee9f705dde8d
4
- data.tar.gz: 0dda2bc96afb05c930a42e89d50c66bfdc38630345be9772cd06244e94cb3574
3
+ metadata.gz: f445c762934233bd8ae30ab81d42eae649a886507023cd77af081d391dc73dd5
4
+ data.tar.gz: 1d1bb43d0acaba2f81d13d2761ad2c22d122dcb6e96fe4f739f2ae9795bf78c1
5
5
  SHA512:
6
- metadata.gz: 19ff009aa99228b72250b56c354a191a2407fe5f4abde636de07d637e7ed4bc4ddd6ae419d38234f8e1fdf58c073895379144d97ce2030aab440ccc8a2f0c21e
7
- data.tar.gz: 9b739acb6d8ced837e49a5e25e46956ed2847143e3a60c0cd8fb46acbe79d6b5c2b25f64e5c9e2ba5db656f076f7add0c7e54c114e51b4b0a6d41dfcf270fec3
6
+ metadata.gz: c25a8916e5b7b34162a729e2b6e4122154f69d684879885b93b13afa44a95b6cfcab7f09a6f70d1d3f3902330b721fd8b830e87e41b57664270ee9a28c3b2854
7
+ data.tar.gz: dc8ca150d8c7796e37b118540cde389ddcc9ac75ae9c3ce2b85d2678cd7b0a7ff1082c9739d3d71f805128a3e67c425d316ec0b5f15976324588d2b62b23142e
@@ -139,7 +139,7 @@ module Apia
139
139
  auth.each_key do |key|
140
140
  scopes = @route.endpoint.definition.scopes
141
141
  if scope_prefix = @spec[:components][:securitySchemes][key][:"x-scope-prefix"]
142
- scopes = scopes.map { |v| "#{scope_prefix}/#{v}" }
142
+ scopes = scopes.map { |v| "#{scope_prefix}#{v}" }
143
143
  end
144
144
 
145
145
  @route_spec[:security] << { key => scopes }
@@ -168,7 +168,7 @@ module Apia
168
168
  def add_additional_security_schemes(security_schemes)
169
169
  security_schemes.each do |key, value|
170
170
  @spec[:components][:securitySchemes] ||= {}
171
- @spec[:components][:securitySchemes][key] = value
171
+ @spec[:components][:securitySchemes][key] = value.transform_keys(&:to_sym)
172
172
  @spec[:security] << { key => [] }
173
173
  end
174
174
  end
@@ -3,7 +3,7 @@
3
3
  module Apia
4
4
  module OpenApi
5
5
 
6
- VERSION = "0.1.10"
6
+ VERSION = "0.1.12"
7
7
 
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apia-open_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Sturgess
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-08-30 00:00:00.000000000 Z
11
+ date: 2024-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport