open_api_import 0.10.5 → 0.10.6

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/open_api_import.rb +2 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bf4a735fd2ca50a6f7d5070a96fef58896e1783834f586548deb943cee3aac49
4
- data.tar.gz: 148fca2cc536cd64fbe1b70d21f902810659d67579922ae04cfaeda621400f17
3
+ metadata.gz: 7e2d63c9969ed846faa5814e9c3319a7121605da7fe911cf6415a37fcd3dbdc7
4
+ data.tar.gz: 83e6a9b21f9f98ecff6890bc03131298e5be709532ad083251d6f637ad8cec3e
5
5
  SHA512:
6
- metadata.gz: d31884dda9909b9e6bba2eec6fbfb83967a8d3d4b35e5e0826027e066a2f42c7a496d021257ec905f1b54a47da3e05177dab7bd3d7a8d0ba9ea3547edbd52166
7
- data.tar.gz: 0c35baa4265c34312f2c2b6866a7197ecb3403a230dccdba20b03f04282674e3e97b6c1f80fd4142862788a351b759802a172a880b967de1e95a357a17cc9471
6
+ metadata.gz: 3a5fba54dce9426862ab81b4cf1c3497eba59582667633a4db4695d398e56145812b0ad56bfa19ecce52b0f6e905aeeffb421fcce168974d90a9c24c998d260b
7
+ data.tar.gz: 39c464058f3d82079d7404e7a5b512208b67487411117960954011c46353d2a7198036522482511dd62258d6f9eb824a193bf8e4b7d78861da75d718c7d2cd53
@@ -389,7 +389,8 @@ class OpenApiImport
389
389
  end
390
390
 
391
391
  #todo: consider check default and insert it
392
- if dpv.key?(:type)
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.5
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-06-12 00:00:00.000000000 Z
11
+ date: 2020-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oas_parser