tomograph 3.2.2 → 3.2.3

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: 44f03cbdf7e9543ac0a8ef75c27b6dfb9082ef0cdeb54c2a2609c6660fb9648c
4
- data.tar.gz: 18d43a2b6765ef254249cc0b4de210ed2e8d31a4e42ccb824dd524222d0e47df
3
+ metadata.gz: dc85d4bf90afd51b699b6685ef8b55beb207e2d9da234ef69a0d878f084e72ec
4
+ data.tar.gz: c5ac1d75deaa358b507442e6e429ad0e66af5e9641d8bb604591aa1e55342cfd
5
5
  SHA512:
6
- metadata.gz: 8c0fb45d78a88835e5a276d2c88e0882bd94fea9fe5864c7793ff14283d45fe20710720486598cbe601baa3440ebabb967e434988c6b06eaa1676a44ef212f44
7
- data.tar.gz: 140b24c7fb62de2490e096126a34c374d6caa21203beda443ae48a14f85f999bd6a1bad643fefc9be51f3ef587ce0c755da3c7ab205dcee7a6f899bde91f17be
6
+ metadata.gz: e9f34fb27300d17df46781032bd83bb5a48de8d12ffd0f293dbb1f64163145d598592769b34fa65dd6f288a8e12459d4d70ee335fdd9e8438c825f79d395e91e
7
+ data.tar.gz: c0eb8517d6428198b9cf0ac00fb7d8ae90cbc6f87e3bfd83e896157d1001d2868bfcc72348506a68dca2fc9a0cf020b26a979888daf9526f3a684289a10836da
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Change log
2
2
 
3
+ ### 3.2.3 - 2024-05-28
4
+
5
+ * bug fixes
6
+ * improve parsing definitions for openapi3 [#60](https://github.com/funbox/tomograph/issues/60)
7
+
3
8
  ### 3.2.2 - 2024-05-14
4
9
 
5
10
  * bug fixes
@@ -57,7 +57,11 @@ module Tomograph
57
57
  end
58
58
 
59
59
  def schema(sche)
60
- defi = @documentation['components']['schemas'] if @documentation['components']
60
+ if @documentation['components']
61
+ defi = @documentation['components']['schemas']
62
+ elsif @documentation['definitions']
63
+ defi = @documentation['definitions']
64
+ end
61
65
  if sche.keys.include?('$ref')
62
66
  sche.merge!('components' => {})
63
67
  sche['components'].merge!('schemas' => {})
@@ -91,7 +95,7 @@ module Tomograph
91
95
  res = sche.merge('definitions' => {})
92
96
  keys = sche.to_s.split('"').find_all { |word| word.include?('definitions') }
93
97
  keys.each do |key|
94
- res['definitions'].merge!({ key[21..-1] => defi[key[21..-1]] })
98
+ res['definitions'].merge!({ key.split('/')[-1] => defi[key.split('/')[-1]] })
95
99
  end
96
100
  res
97
101
  else
@@ -1,3 +1,3 @@
1
1
  module Tomograph
2
- VERSION = '3.2.2'.freeze
2
+ VERSION = '3.2.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tomograph
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.2
4
+ version: 3.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - d.efimov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-05-13 00:00:00.000000000 Z
11
+ date: 2024-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: methadone