dry-swagger 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/dry/swagger/struct_parser.rb +2 -3
- data/lib/dry/swagger/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ed13f9dd94583c53a6397262cd798a8a8897b4ac7d7f1c4484116751ff37e5d
|
4
|
+
data.tar.gz: 777014e503f1f3febde2662275cf858a423806671e0ee4a843be3af43287df10
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16a4528fbed7c9dfaba78a4757f489f49e80ffef3801b8cf5a10a49c13951530789ffb2ef1e89daba94b618ef8c3348cb4d4790e4e26db420eef74548cc51664
|
7
|
+
data.tar.gz: a3411261ed52732f5d85fa7402fe232fbd4596b0d4618e22316d8f7f37ee70715481340a9256969a81418ba6c99b2321bcd09570ca371a9ec9c27702c48b5f2b
|
data/Gemfile.lock
CHANGED
@@ -119,10 +119,9 @@ module Dry
|
|
119
119
|
if node[0][0].equal?(:constrained)
|
120
120
|
opts[:nullable] = true
|
121
121
|
visit(node[1], opts) # ignore NilClass constrained
|
122
|
-
elsif node[0][0].equal?(:struct)
|
122
|
+
elsif node[0][0].equal?(:struct) || node[0][0].equal?(:sum)
|
123
123
|
opts[:oneOf] = true
|
124
|
-
visit(
|
125
|
-
visit(node[1], opts)
|
124
|
+
node.each { |child| visit(child, opts) unless child.is_a?(Hash) }
|
126
125
|
end
|
127
126
|
end
|
128
127
|
|
data/lib/dry/swagger/version.rb
CHANGED