open_api_import 0.10.5 → 0.10.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/open_api_import.rb +2 -2
- 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: 7e2d63c9969ed846faa5814e9c3319a7121605da7fe911cf6415a37fcd3dbdc7
|
4
|
+
data.tar.gz: 83e6a9b21f9f98ecff6890bc03131298e5be709532ad083251d6f637ad8cec3e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a5fba54dce9426862ab81b4cf1c3497eba59582667633a4db4695d398e56145812b0ad56bfa19ecce52b0f6e905aeeffb421fcce168974d90a9c24c998d260b
|
7
|
+
data.tar.gz: 39c464058f3d82079d7404e7a5b512208b67487411117960954011c46353d2a7198036522482511dd62258d6f9eb824a193bf8e4b7d78861da75d718c7d2cd53
|
data/lib/open_api_import.rb
CHANGED
@@ -389,7 +389,8 @@ class OpenApiImport
|
|
389
389
|
end
|
390
390
|
|
391
391
|
#todo: consider check default and insert it
|
392
|
-
|
392
|
+
#todo: remove array from here and add the option to get_examples for the case thisisthekey: ['xxxx']
|
393
|
+
if dpv.key?(:type) and dpv[:type]!='array'
|
393
394
|
params_data << get_examples({dpk => dpv}, :only_value, true).join
|
394
395
|
params_data[-1].chop!.chop! if params_data[-1].to_s[-2..-1]==', '
|
395
396
|
params_data.pop if params_data[-1].match?(/^\s*$/im)
|
@@ -400,7 +401,6 @@ class OpenApiImport
|
|
400
401
|
params_data << "#{dpk}: #{valv}"
|
401
402
|
end
|
402
403
|
}
|
403
|
-
|
404
404
|
if params_data.size > 0
|
405
405
|
if data_examples_all_of == true and data_examples.size > 0
|
406
406
|
data_examples[0]+=params_data
|
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.10.
|
4
|
+
version: 0.10.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mario Ruiz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oas_parser
|