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 +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/tomograph/openapi/openapi3.rb +6 -2
- data/lib/tomograph/version.rb +1 -1
- 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: dc85d4bf90afd51b699b6685ef8b55beb207e2d9da234ef69a0d878f084e72ec
|
4
|
+
data.tar.gz: c5ac1d75deaa358b507442e6e429ad0e66af5e9641d8bb604591aa1e55342cfd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9f34fb27300d17df46781032bd83bb5a48de8d12ffd0f293dbb1f64163145d598592769b34fa65dd6f288a8e12459d4d70ee335fdd9e8438c825f79d395e91e
|
7
|
+
data.tar.gz: c0eb8517d6428198b9cf0ac00fb7d8ae90cbc6f87e3bfd83e896157d1001d2868bfcc72348506a68dca2fc9a0cf020b26a979888daf9526f3a684289a10836da
|
data/CHANGELOG.md
CHANGED
@@ -57,7 +57,11 @@ module Tomograph
|
|
57
57
|
end
|
58
58
|
|
59
59
|
def schema(sche)
|
60
|
-
|
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[
|
98
|
+
res['definitions'].merge!({ key.split('/')[-1] => defi[key.split('/')[-1]] })
|
95
99
|
end
|
96
100
|
res
|
97
101
|
else
|
data/lib/tomograph/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2024-05-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: methadone
|