blumquist 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/blumquist.rb +10 -0
- data/lib/blumquist/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a56519a62c8cda5595755e7e4a02c59ceaf06fdb
|
4
|
+
data.tar.gz: 35fe0e245587b62219342a67541f86fa7f0cbf5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d34430761c31b38a0800a3cb8c7f38e3d4ad673560f8a6fc5e2fbd195e1f76dc3db14730146e8c60ac25ba93a5387a5d1c8a55b5bae301f8599cb97032bf95e
|
7
|
+
data.tar.gz: 3ca561664c837fb74a0f2eea5e5de158dd263a0eaf2c4a17496a141cfaa49c7d00201d213dcdd2dbd3cbc415b78180f73702a126f503609384825b0110ca71f5
|
data/CHANGELOG.md
CHANGED
data/lib/blumquist.rb
CHANGED
@@ -187,6 +187,16 @@ class Blumquist
|
|
187
187
|
@data[property] = @data[property].map do |item|
|
188
188
|
Blumquist.new(schema: sub_schema, data: item, validate: @validate)
|
189
189
|
end
|
190
|
+
elsif type_def[:type] == 'object'
|
191
|
+
sub_schema = type_def.merge(
|
192
|
+
definitions: @schema[:definitions]
|
193
|
+
)
|
194
|
+
|
195
|
+
@data[property] ||= []
|
196
|
+
@data[property] = @data[property].map do |item|
|
197
|
+
Blumquist.new(schema: sub_schema, data: item, validate: @validate)
|
198
|
+
end
|
199
|
+
|
190
200
|
elsif primitive_type?(type_def[:type])
|
191
201
|
|
192
202
|
# We don't know what to do, so let's panic
|
data/lib/blumquist/version.rb
CHANGED