dry-swagger 0.4.1 → 0.4.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 +6 -2
- 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: b13a0cda4f7abf7bc7e5438b5b4be9e91f2a06f46abc38d431ce8f6df9ba20ed
|
4
|
+
data.tar.gz: 7d3d42835269384bd81df3a687528e23a125bdbb40a30d54b34d0c517fbe5993
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ffb3be97689579101a317b3e3747b6fd033a2d66bd37644135a029a6a5ca228e4bec4974d2a59ae1339a720b11f5de2bb32aa9f94e7f6be3dac4e9b87b699a7d
|
7
|
+
data.tar.gz: e7164332db7a8c1e07048632180c1a4576ea4608e530fc4545ca5358e2169dc2db16236df17ed7356e8888bd8ed492ed196688df9113905521e7a94801d69ecb
|
data/Gemfile.lock
CHANGED
@@ -110,8 +110,12 @@ module Dry
|
|
110
110
|
end
|
111
111
|
|
112
112
|
def visit_sum(node, opts = {})
|
113
|
-
|
114
|
-
|
113
|
+
if node[0][0].equal?(:constrained)
|
114
|
+
opts[:nullable] = true
|
115
|
+
visit(node[1], opts) # ignore NilClass constrained
|
116
|
+
elsif node[0][0].equal?(:struct)
|
117
|
+
visit(node[0], opts) # grab left operand, this means if you have it defined as DTO1 | DTO2, it will grab DTO1
|
118
|
+
end
|
115
119
|
end
|
116
120
|
|
117
121
|
def visit_struct(node, opts = {})
|
data/lib/dry/swagger/version.rb
CHANGED