json_schema 0.15.0 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/json_schema/validator.rb +1 -1
- data/test/json_schema/validator_test.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6798bbb08d26485699a7ca30447f8f75294dd137
|
|
4
|
+
data.tar.gz: cd8ba74cdef026cb26ea3055d9da4c2971b621ff
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9b16a4b7cdc6541e8ece27ad3224e414183ef43ebe7970e301a6485f9066a9c1464827e92f6f9b841acf0ab81c366f8789e3db062b960464105d479218cdfbba
|
|
7
|
+
data.tar.gz: 5233dc1555a2c24489fcf366d9b91dc324f7efafe627dad16081e7afd281b6369d873efcd3680b520241460be642173bae8a207c05d6137bf1dba1f95b84eabe
|
|
@@ -503,7 +503,7 @@ module JsonSchema
|
|
|
503
503
|
message = %{"#{missing.sort.join('", "')}" } +
|
|
504
504
|
(missing.length == 1 ? "wasn't" : "weren't") +
|
|
505
505
|
%{ supplied.}
|
|
506
|
-
errors << ValidationError.new(schema, path, message, :required_failed)
|
|
506
|
+
errors << ValidationError.new(schema, path, message, :required_failed, data: missing)
|
|
507
507
|
false
|
|
508
508
|
end
|
|
509
509
|
end
|
|
@@ -566,6 +566,7 @@ describe JsonSchema::Validator do
|
|
|
566
566
|
refute validate
|
|
567
567
|
assert_includes error_messages, %{"name" wasn't supplied.}
|
|
568
568
|
assert_includes error_types, :required_failed
|
|
569
|
+
assert_includes error_data, ["name"]
|
|
569
570
|
end
|
|
570
571
|
|
|
571
572
|
it "validates strictProperties successfully" do
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: json_schema
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.16.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Brandur
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-12-
|
|
11
|
+
date: 2016-12-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: ecma-re-validator
|