json_schema_power_validator 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -1
- data/lib/json_schema_power_validator.rb +1 -1
- data/lib/json_schema_power_validator/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: 3a0a4e19feeb3ed199bf020f13828a754d4fe286
|
4
|
+
data.tar.gz: 0973c09be3661db7a6094b60ec614786495d3876
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8936466d4df3143de6d9c628c9c720a75686c2817ef61bd65b097998915ee29bf165786f10eb7cf6b22bcba4e4789ce873a9dfd894a3d3e78f7d86f1047e8871
|
7
|
+
data.tar.gz: d6a63801b6a57fad236ea4839a967a1f68d9305ae35a18c3e33536c8f2f5fd1722f1428ad9f5f0ad8c03a58f6ebe11924df2bf1ada87cf55bdfbd377c39291bf
|
data/README.md
CHANGED
@@ -25,7 +25,7 @@ module JsonSchema
|
|
25
25
|
@suites["examples"].each do |suite|
|
26
26
|
begin
|
27
27
|
JSON::Validator.validate!(@schema, suite["values"])
|
28
|
-
@raw_results.push("Success")
|
28
|
+
suite["expect"] == "valid" ? @raw_results.push("Success") : "A validation passed, but it opposites the expectation."
|
29
29
|
rescue JSON::Schema::ValidationError
|
30
30
|
suite["expect"] == "invalid" ? @raw_results.push("Success") : @raw_results.push($!.message)
|
31
31
|
end
|