rack-json_schema 1.1.1 → 1.1.2
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/rack/json_schema/response_validation.rb +1 -1
- data/lib/rack/json_schema/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: 7c359a173c8a15742899c048066568b9ba4e9dcc
|
4
|
+
data.tar.gz: 868a647466e9df56fd41302f74f4f768fbdccddd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31755c67da66e679a28434d7bc2fae80d1532dd56404f9a9419410e83dfd2047181c5b444dce1449d465bf24a9d74d1633df767df3b4ee078fa81cb2e582e252
|
7
|
+
data.tar.gz: 5220e8a448947182e56bf153969181ba0aa9fe81bee99b6abb943c5b13064a31d2292a9410100e6b62b3ea7949a98c0bb668fb5173ce518f14a8d63549909ea3
|
data/CHANGELOG.md
CHANGED
@@ -48,7 +48,7 @@ module Rack
|
|
48
48
|
|
49
49
|
# @return [true, false] True if given data is valid to the JSON schema
|
50
50
|
def valid?
|
51
|
-
validator.validate(example_item)
|
51
|
+
(has_list_data? && data.empty?) || validator.validate(example_item)
|
52
52
|
end
|
53
53
|
|
54
54
|
# @return [Hash] Choose an item from response data, to be validated
|