json_schema_power_validator 0.1.0 → 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 104009841ae93f951d284ab087d5ea5db299fe07
4
- data.tar.gz: b82b77bc1871a147a6f781c6165d8a2aa1a58c17
3
+ metadata.gz: 3a0a4e19feeb3ed199bf020f13828a754d4fe286
4
+ data.tar.gz: 0973c09be3661db7a6094b60ec614786495d3876
5
5
  SHA512:
6
- metadata.gz: f27e883f0c380629525fe9daba9193795f333be02cfbc546c10b4d384f190b036f71152f495e61c3083a0bd42457534e92954ad46e422582cf391566448f2f74
7
- data.tar.gz: 8b4771bf56788d4f69588c3a49a369f3232ff0e9fd172ad99942a1c1f9f11f4fa49470144ca030044d431eabbcf2291e327086de9bea7fed957de32f1f0a5635
6
+ metadata.gz: 8936466d4df3143de6d9c628c9c720a75686c2817ef61bd65b097998915ee29bf165786f10eb7cf6b22bcba4e4789ce873a9dfd894a3d3e78f7d86f1047e8871
7
+ data.tar.gz: d6a63801b6a57fad236ea4839a967a1f68d9305ae35a18c3e33536c8f2f5fd1722f1428ad9f5f0ad8c03a58f6ebe11924df2bf1ada87cf55bdfbd377c39291bf
data/README.md CHANGED
@@ -94,7 +94,6 @@ validated_schema.get_result
94
94
  # {
95
95
  # "context": "Fail",
96
96
  # "description": "fail"
97
- # "result": "fail",
98
97
  # "reason": "Invalid parameter: id should satisfy the condition minimumLength"
99
98
  # }
100
99
  # ]
@@ -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
@@ -1,3 +1,3 @@
1
1
  module JsonSchema
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json_schema_power_validator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - timakin