json_schema 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e99a8e1142fc7a9629bb3c8af18b4f257b85e278
|
4
|
+
data.tar.gz: 7f6d730a5d32c5326b79c69e1184e893aa03a890
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 575c4b1b0d0b59315128b01bf6659aa4619276686747389623bcc28f917579f409c46662d14c940aa3ef6561f0abe03dcd6a713817e35fa5da280ce92a82f38b
|
7
|
+
data.tar.gz: 99eea0dd8d3d826ff55d2dae235aacebebaba6a03486dd7f9b4368f752a55f3a632e8fb2dd783a54aeb072295d46b20d410bccbe279ccff267584fb8fd13081d
|
@@ -34,6 +34,11 @@ module JsonSchema
|
|
34
34
|
private
|
35
35
|
|
36
36
|
def first_visit(schema, errors, path)
|
37
|
+
true
|
38
|
+
# removed until more comprehensive testing can be performed .. this is
|
39
|
+
# currently causing validation loop detections to go off on all non-trivial
|
40
|
+
# schemas
|
41
|
+
=begin
|
37
42
|
key = "#{schema.object_id}-#{schema.pointer}-#{path.join("/")}"
|
38
43
|
if !@visits.key?(key)
|
39
44
|
@visits[key] = true
|
@@ -43,6 +48,7 @@ module JsonSchema
|
|
43
48
|
errors << ValidationError.new(schema, path, message)
|
44
49
|
false
|
45
50
|
end
|
51
|
+
=end
|
46
52
|
end
|
47
53
|
|
48
54
|
# for use with additionalProperties and strictProperties
|
@@ -680,6 +680,7 @@ describe JsonSchema::Validator do
|
|
680
680
|
assert_equal "#/visibility", @validator.errors[0].pointer
|
681
681
|
end
|
682
682
|
|
683
|
+
=begin
|
683
684
|
it "handles a validation loop" do
|
684
685
|
pointer("#/definitions/app").merge!(
|
685
686
|
"not" => { "$ref" => "#/definitions/app" }
|
@@ -688,6 +689,7 @@ describe JsonSchema::Validator do
|
|
688
689
|
refute validate
|
689
690
|
assert_includes error_messages, %{Validation loop detected.}
|
690
691
|
end
|
692
|
+
=end
|
691
693
|
|
692
694
|
def data_sample
|
693
695
|
@data_sample ||= DataScaffold.data_sample
|
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.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandur
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|