open_api_import 0.6.1 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/open_api_import.rb +2 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ec67d9d41c276e17613468cf170b74fd11e321409ff369af9f1a9c9aa34bfdd6
|
|
4
|
+
data.tar.gz: f1a122af1aa9f5c07cb2e40e2af417dbdc3cc5634d4bc14b7bf710b7239df9a8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ed6dcd007e8691aa125161c9828e2a5c6feb6b2f048d404a92d7c4425f3067a8a1362705b477285623a59bef02fa7ae846fedd6f470120158ab2f5043aa0fd54
|
|
7
|
+
data.tar.gz: fa0b20cf5adbaa49ac32967f0a966846d808e50870c1587bc37d61b6d11e4a97a8bce69c20b47be575d7e890142dbdc68783d4cf98b6026c1e0b57b73ee1754c
|
data/lib/open_api_import.rb
CHANGED
|
@@ -109,8 +109,8 @@ class OpenApiImport
|
|
|
109
109
|
raw.each do |met, cont|
|
|
110
110
|
if met != :parameters
|
|
111
111
|
if raw[met].key?(:parameters)
|
|
112
|
-
#
|
|
113
|
-
|
|
112
|
+
#in case parameters for all methods in path is present
|
|
113
|
+
raw[met][:parameters] = raw[met][:parameters] + raw[:parameters]
|
|
114
114
|
else
|
|
115
115
|
raw[met][:parameters] = raw[:parameters]
|
|
116
116
|
end
|
|
@@ -136,7 +136,6 @@ class OpenApiImport
|
|
|
136
136
|
|
|
137
137
|
# for the case operationId is missing
|
|
138
138
|
cont[:operationId] = "unknown" unless cont.key?(:operationId)
|
|
139
|
-
|
|
140
139
|
if create_method_name == :path
|
|
141
140
|
method_name = (met.to_s + "_" + path.path.to_s).snake_case
|
|
142
141
|
method_name.chop! if method_name[-1] == "_"
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: open_api_import
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mario Ruiz
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-03-
|
|
11
|
+
date: 2019-03-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: oas_parser
|