json-schema-openc-fork 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/LICENSE.md +19 -0
- data/README.textile +452 -0
- data/lib/json-schema.rb +19 -0
- data/lib/json-schema/attribute.rb +43 -0
- data/lib/json-schema/attributes/additionalitems.rb +28 -0
- data/lib/json-schema/attributes/additionalproperties.rb +58 -0
- data/lib/json-schema/attributes/allof.rb +39 -0
- data/lib/json-schema/attributes/anyof.rb +47 -0
- data/lib/json-schema/attributes/dependencies.rb +44 -0
- data/lib/json-schema/attributes/disallow.rb +12 -0
- data/lib/json-schema/attributes/divisibleby.rb +22 -0
- data/lib/json-schema/attributes/enum.rb +24 -0
- data/lib/json-schema/attributes/extends.rb +50 -0
- data/lib/json-schema/attributes/format.rb +14 -0
- data/lib/json-schema/attributes/formats/custom.rb +21 -0
- data/lib/json-schema/attributes/formats/date.rb +24 -0
- data/lib/json-schema/attributes/formats/date_time.rb +36 -0
- data/lib/json-schema/attributes/formats/date_time_v4.rb +15 -0
- data/lib/json-schema/attributes/formats/ip.rb +41 -0
- data/lib/json-schema/attributes/formats/time.rb +22 -0
- data/lib/json-schema/attributes/formats/uri.rb +20 -0
- data/lib/json-schema/attributes/items.rb +26 -0
- data/lib/json-schema/attributes/limit.rb +179 -0
- data/lib/json-schema/attributes/maxdecimal.rb +18 -0
- data/lib/json-schema/attributes/multipleof.rb +11 -0
- data/lib/json-schema/attributes/not.rb +30 -0
- data/lib/json-schema/attributes/oneof.rb +56 -0
- data/lib/json-schema/attributes/pattern.rb +18 -0
- data/lib/json-schema/attributes/patternproperties.rb +22 -0
- data/lib/json-schema/attributes/properties.rb +74 -0
- data/lib/json-schema/attributes/properties_optional.rb +26 -0
- data/lib/json-schema/attributes/ref.rb +74 -0
- data/lib/json-schema/attributes/required.rb +28 -0
- data/lib/json-schema/attributes/type.rb +83 -0
- data/lib/json-schema/attributes/type_v4.rb +29 -0
- data/lib/json-schema/attributes/uniqueitems.rb +16 -0
- data/lib/json-schema/errors/custom_format_error.rb +6 -0
- data/lib/json-schema/errors/json_parse_error.rb +6 -0
- data/lib/json-schema/errors/schema_error.rb +6 -0
- data/lib/json-schema/errors/validation_error.rb +46 -0
- data/lib/json-schema/schema.rb +63 -0
- data/lib/json-schema/schema/reader.rb +113 -0
- data/lib/json-schema/schema/validator.rb +36 -0
- data/lib/json-schema/util/array_set.rb +14 -0
- data/lib/json-schema/util/uri.rb +16 -0
- data/lib/json-schema/util/uuid.rb +285 -0
- data/lib/json-schema/validator.rb +592 -0
- data/lib/json-schema/validators/draft1.rb +45 -0
- data/lib/json-schema/validators/draft2.rb +46 -0
- data/lib/json-schema/validators/draft3.rb +50 -0
- data/lib/json-schema/validators/draft4.rb +56 -0
- data/lib/json-schema/validators/hyper-draft4.rb +14 -0
- data/resources/draft-01.json +155 -0
- data/resources/draft-02.json +166 -0
- data/resources/draft-03.json +174 -0
- data/resources/draft-04.json +150 -0
- data/test/data/all_of_ref_data.json +3 -0
- data/test/data/any_of_ref_data.json +7 -0
- data/test/data/bad_data_1.json +3 -0
- data/test/data/good_data_1.json +3 -0
- data/test/data/one_of_ref_links_data.json +5 -0
- data/test/schemas/address_microformat.json +18 -0
- data/test/schemas/all_of_ref_base_schema.json +6 -0
- data/test/schemas/all_of_ref_schema.json +7 -0
- data/test/schemas/any_of_ref_jane_schema.json +4 -0
- data/test/schemas/any_of_ref_jimmy_schema.json +4 -0
- data/test/schemas/any_of_ref_john_schema.json +4 -0
- data/test/schemas/any_of_ref_schema.json +15 -0
- data/test/schemas/definition_schema.json +15 -0
- data/test/schemas/extends_and_additionalProperties-1-filename.schema.json +34 -0
- data/test/schemas/extends_and_additionalProperties-1-ref.schema.json +34 -0
- data/test/schemas/extends_and_additionalProperties-2-filename.schema.json +33 -0
- data/test/schemas/extends_and_additionalProperties-2-ref.schema.json +33 -0
- data/test/schemas/good_schema_1.json +10 -0
- data/test/schemas/good_schema_2.json +10 -0
- data/test/schemas/good_schema_extends1.json +10 -0
- data/test/schemas/good_schema_extends2.json +13 -0
- data/test/schemas/inner.schema.json +21 -0
- data/test/schemas/one_of_ref_links_schema.json +16 -0
- data/test/schemas/ref john with spaces schema.json +11 -0
- data/test/schemas/relative_definition_schema.json +8 -0
- data/test/schemas/self_link_schema.json +17 -0
- data/test/schemas/up_link_schema.json +17 -0
- data/test/test_all_of_ref_schema.rb +35 -0
- data/test/test_any_of_ref_schema.rb +35 -0
- data/test/test_bad_schema_ref.rb +39 -0
- data/test/test_common_test_suite.rb +66 -0
- data/test/test_custom_format.rb +116 -0
- data/test/test_definition.rb +15 -0
- data/test/test_extended_schema.rb +62 -0
- data/test/test_extends_and_additionalProperties.rb +52 -0
- data/test/test_files_v3.rb +43 -0
- data/test/test_fragment_resolution.rb +30 -0
- data/test/test_fragment_validation_with_ref.rb +34 -0
- data/test/test_full_validation.rb +208 -0
- data/test/test_helper.rb +47 -0
- data/test/test_initialize_data.rb +118 -0
- data/test/test_jsonschema_draft1.rb +171 -0
- data/test/test_jsonschema_draft2.rb +142 -0
- data/test/test_jsonschema_draft3.rb +502 -0
- data/test/test_jsonschema_draft4.rb +704 -0
- data/test/test_list_option.rb +21 -0
- data/test/test_merge_missing_values.rb +45 -0
- data/test/test_minitems.rb +16 -0
- data/test/test_one_of.rb +85 -0
- data/test/test_ruby_schema.rb +59 -0
- data/test/test_schema_loader.rb +74 -0
- data/test/test_schema_type_attribute.rb +20 -0
- data/test/test_schema_validation.rb +185 -0
- data/test/test_stringify.rb +48 -0
- data/test/test_uri_related.rb +67 -0
- data/test/test_validator.rb +53 -0
- metadata +284 -0
@@ -0,0 +1,48 @@
|
|
1
|
+
require File.expand_path('../test_helper', __FILE__)
|
2
|
+
|
3
|
+
class StringifyTest < Minitest::Test
|
4
|
+
def test_stringify_on_hash
|
5
|
+
hash = {
|
6
|
+
:a => 'foo',
|
7
|
+
'b' => :bar
|
8
|
+
}
|
9
|
+
assert_equal({'a' => 'foo', 'b' => 'bar'}, JSON::Schema.stringify(hash), 'symbol keys should be converted to strings')
|
10
|
+
end
|
11
|
+
|
12
|
+
def test_stringify_on_array
|
13
|
+
array = [
|
14
|
+
:a,
|
15
|
+
'b'
|
16
|
+
]
|
17
|
+
assert_equal(['a', 'b'], JSON::Schema.stringify(array), 'symbols in an array should be converted to strings')
|
18
|
+
end
|
19
|
+
|
20
|
+
def test_stringify_on_hash_of_arrays
|
21
|
+
hash = {
|
22
|
+
:a => [:foo],
|
23
|
+
'b' => :bar
|
24
|
+
}
|
25
|
+
assert_equal({'a' => ['foo'], 'b' => 'bar'}, JSON::Schema.stringify(hash), 'symbols in a nested array should be converted to strings')
|
26
|
+
end
|
27
|
+
|
28
|
+
def test_stringify_on_array_of_hashes
|
29
|
+
array = [
|
30
|
+
:a,
|
31
|
+
{
|
32
|
+
:b => :bar
|
33
|
+
}
|
34
|
+
]
|
35
|
+
assert_equal(['a', {'b' => 'bar'}], JSON::Schema.stringify(array), 'symbols keys in a nested hash should be converted to strings')
|
36
|
+
end
|
37
|
+
|
38
|
+
def test_stringify_on_hash_of_hashes
|
39
|
+
hash = {
|
40
|
+
:a => {
|
41
|
+
:b => {
|
42
|
+
:foo => :bar
|
43
|
+
}
|
44
|
+
}
|
45
|
+
}
|
46
|
+
assert_equal({'a' => {'b' => {'foo' => 'bar'} } }, JSON::Schema.stringify(hash), 'symbols in a nested hash of hashes should be converted to strings')
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,67 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
require File.expand_path('../test_helper', __FILE__)
|
3
|
+
|
4
|
+
class UriRelatedTest < Minitest::Test
|
5
|
+
def test_asian_characters
|
6
|
+
schema = {
|
7
|
+
"$schema"=> "http://json-schema.org/draft-04/schema#",
|
8
|
+
"id"=> "http://俺:鍵@例え.テスト/p?条件#ここ#",
|
9
|
+
"type" => "object",
|
10
|
+
"required" => ["a"],
|
11
|
+
"properties" => {
|
12
|
+
"a" => {
|
13
|
+
"id" => "a",
|
14
|
+
"type" => "integer"
|
15
|
+
}
|
16
|
+
}
|
17
|
+
}
|
18
|
+
data = { "a" => 5 }
|
19
|
+
assert_valid schema, data
|
20
|
+
end
|
21
|
+
|
22
|
+
def test_schema_ref_with_empty_fragment
|
23
|
+
schema = {
|
24
|
+
"$schema" => "http://json-schema.org/draft-04/schema#",
|
25
|
+
"type" => "object",
|
26
|
+
"required" => ["names"],
|
27
|
+
"properties"=> {
|
28
|
+
"names"=> {
|
29
|
+
"type"=> "array",
|
30
|
+
"items"=> {
|
31
|
+
"anyOf"=> [
|
32
|
+
{ "$ref" => "test/schemas/ref john with spaces schema.json#" },
|
33
|
+
]
|
34
|
+
}
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}
|
38
|
+
data = {"names" => [{"first" => "john"}]}
|
39
|
+
assert_valid schema, data
|
40
|
+
end
|
41
|
+
|
42
|
+
def test_schema_ref_from_file_with_spaces
|
43
|
+
schema = {
|
44
|
+
"$schema" => "http://json-schema.org/draft-04/schema#",
|
45
|
+
"type" => "object",
|
46
|
+
"required" => ["names"],
|
47
|
+
"properties"=> {
|
48
|
+
"names"=> {
|
49
|
+
"type"=> "array",
|
50
|
+
"items"=> {
|
51
|
+
"anyOf"=> [
|
52
|
+
{ "$ref" => "test/schemas/ref john with spaces schema.json" }
|
53
|
+
]
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
data = {"names" => [{"first" => "john"}]}
|
59
|
+
assert_valid schema, data
|
60
|
+
end
|
61
|
+
|
62
|
+
def test_schema_from_file_with_spaces
|
63
|
+
data = {"first" => "john"}
|
64
|
+
schema = "test/schemas/ref john with spaces schema.json"
|
65
|
+
assert_valid schema, data
|
66
|
+
end
|
67
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
require File.expand_path('../test_helper', __FILE__)
|
2
|
+
|
3
|
+
class TestValidator < Minitest::Test
|
4
|
+
|
5
|
+
class MockReader
|
6
|
+
def read(location)
|
7
|
+
schema = {
|
8
|
+
'$schema' => 'http://json-schema.org/draft-04/schema#',
|
9
|
+
'type' => 'string',
|
10
|
+
'minLength' => 2
|
11
|
+
}
|
12
|
+
|
13
|
+
JSON::Schema.new(schema, Addressable::URI.parse(location.to_s))
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
def setup
|
18
|
+
@original_reader = JSON::Validator.schema_reader
|
19
|
+
end
|
20
|
+
|
21
|
+
def teardown
|
22
|
+
JSON::Validator.schema_reader = @original_reader
|
23
|
+
end
|
24
|
+
|
25
|
+
def test_default_schema_reader
|
26
|
+
reader = JSON::Validator.schema_reader
|
27
|
+
assert reader.accept_uri?(Addressable::URI.parse('http://example.com'))
|
28
|
+
assert reader.accept_file?(Pathname.new('/etc/passwd'))
|
29
|
+
end
|
30
|
+
|
31
|
+
def test_set_default_schema_reader
|
32
|
+
JSON::Validator.schema_reader = MockReader.new
|
33
|
+
|
34
|
+
schema = { '$ref' => 'http://any.url/at/all' }
|
35
|
+
assert_valid schema, 'abc'
|
36
|
+
refute_valid schema, 'a'
|
37
|
+
end
|
38
|
+
|
39
|
+
def test_validate_with_reader
|
40
|
+
reader = MockReader.new
|
41
|
+
schema = { '$ref' => 'http://any.url/at/all' }
|
42
|
+
assert_valid schema, 'abc', :schema_reader => reader
|
43
|
+
refute_valid schema, 'a', :schema_reader => reader
|
44
|
+
end
|
45
|
+
|
46
|
+
def test_validate_list_with_reader
|
47
|
+
reader = MockReader.new
|
48
|
+
schema = { '$ref' => 'http://what.ever/schema' }
|
49
|
+
assert_valid schema, ['abc', 'def'], :schema_reader => reader, :list => true
|
50
|
+
refute_valid schema, ['abc', 'a'], :schema_reader => reader, :list => true
|
51
|
+
end
|
52
|
+
|
53
|
+
end
|
metadata
ADDED
@@ -0,0 +1,284 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: json-schema-openc-fork
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Kenny Hoxworth
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-02-18 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rake
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ! '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ! '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: minitest
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '5.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '5.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: webmock
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ! '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: bundler
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ! '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: addressable
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ~>
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '2.3'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ~>
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '2.3'
|
83
|
+
description:
|
84
|
+
email: hoxworth@gmail.com
|
85
|
+
executables: []
|
86
|
+
extensions: []
|
87
|
+
extra_rdoc_files:
|
88
|
+
- README.textile
|
89
|
+
- LICENSE.md
|
90
|
+
files:
|
91
|
+
- LICENSE.md
|
92
|
+
- README.textile
|
93
|
+
- lib/json-schema.rb
|
94
|
+
- lib/json-schema/attribute.rb
|
95
|
+
- lib/json-schema/attributes/additionalitems.rb
|
96
|
+
- lib/json-schema/attributes/additionalproperties.rb
|
97
|
+
- lib/json-schema/attributes/allof.rb
|
98
|
+
- lib/json-schema/attributes/anyof.rb
|
99
|
+
- lib/json-schema/attributes/dependencies.rb
|
100
|
+
- lib/json-schema/attributes/disallow.rb
|
101
|
+
- lib/json-schema/attributes/divisibleby.rb
|
102
|
+
- lib/json-schema/attributes/enum.rb
|
103
|
+
- lib/json-schema/attributes/extends.rb
|
104
|
+
- lib/json-schema/attributes/format.rb
|
105
|
+
- lib/json-schema/attributes/formats/custom.rb
|
106
|
+
- lib/json-schema/attributes/formats/date.rb
|
107
|
+
- lib/json-schema/attributes/formats/date_time.rb
|
108
|
+
- lib/json-schema/attributes/formats/date_time_v4.rb
|
109
|
+
- lib/json-schema/attributes/formats/ip.rb
|
110
|
+
- lib/json-schema/attributes/formats/time.rb
|
111
|
+
- lib/json-schema/attributes/formats/uri.rb
|
112
|
+
- lib/json-schema/attributes/items.rb
|
113
|
+
- lib/json-schema/attributes/limit.rb
|
114
|
+
- lib/json-schema/attributes/maxdecimal.rb
|
115
|
+
- lib/json-schema/attributes/multipleof.rb
|
116
|
+
- lib/json-schema/attributes/not.rb
|
117
|
+
- lib/json-schema/attributes/oneof.rb
|
118
|
+
- lib/json-schema/attributes/pattern.rb
|
119
|
+
- lib/json-schema/attributes/patternproperties.rb
|
120
|
+
- lib/json-schema/attributes/properties.rb
|
121
|
+
- lib/json-schema/attributes/properties_optional.rb
|
122
|
+
- lib/json-schema/attributes/ref.rb
|
123
|
+
- lib/json-schema/attributes/required.rb
|
124
|
+
- lib/json-schema/attributes/type.rb
|
125
|
+
- lib/json-schema/attributes/type_v4.rb
|
126
|
+
- lib/json-schema/attributes/uniqueitems.rb
|
127
|
+
- lib/json-schema/errors/custom_format_error.rb
|
128
|
+
- lib/json-schema/errors/json_parse_error.rb
|
129
|
+
- lib/json-schema/errors/schema_error.rb
|
130
|
+
- lib/json-schema/errors/validation_error.rb
|
131
|
+
- lib/json-schema/schema.rb
|
132
|
+
- lib/json-schema/schema/reader.rb
|
133
|
+
- lib/json-schema/schema/validator.rb
|
134
|
+
- lib/json-schema/util/array_set.rb
|
135
|
+
- lib/json-schema/util/uri.rb
|
136
|
+
- lib/json-schema/util/uuid.rb
|
137
|
+
- lib/json-schema/validator.rb
|
138
|
+
- lib/json-schema/validators/draft1.rb
|
139
|
+
- lib/json-schema/validators/draft2.rb
|
140
|
+
- lib/json-schema/validators/draft3.rb
|
141
|
+
- lib/json-schema/validators/draft4.rb
|
142
|
+
- lib/json-schema/validators/hyper-draft4.rb
|
143
|
+
- resources/draft-01.json
|
144
|
+
- resources/draft-02.json
|
145
|
+
- resources/draft-03.json
|
146
|
+
- resources/draft-04.json
|
147
|
+
- test/data/all_of_ref_data.json
|
148
|
+
- test/data/any_of_ref_data.json
|
149
|
+
- test/data/bad_data_1.json
|
150
|
+
- test/data/good_data_1.json
|
151
|
+
- test/data/one_of_ref_links_data.json
|
152
|
+
- test/schemas/address_microformat.json
|
153
|
+
- test/schemas/all_of_ref_base_schema.json
|
154
|
+
- test/schemas/all_of_ref_schema.json
|
155
|
+
- test/schemas/any_of_ref_jane_schema.json
|
156
|
+
- test/schemas/any_of_ref_jimmy_schema.json
|
157
|
+
- test/schemas/any_of_ref_john_schema.json
|
158
|
+
- test/schemas/any_of_ref_schema.json
|
159
|
+
- test/schemas/definition_schema.json
|
160
|
+
- test/schemas/extends_and_additionalProperties-1-filename.schema.json
|
161
|
+
- test/schemas/extends_and_additionalProperties-1-ref.schema.json
|
162
|
+
- test/schemas/extends_and_additionalProperties-2-filename.schema.json
|
163
|
+
- test/schemas/extends_and_additionalProperties-2-ref.schema.json
|
164
|
+
- test/schemas/good_schema_1.json
|
165
|
+
- test/schemas/good_schema_2.json
|
166
|
+
- test/schemas/good_schema_extends1.json
|
167
|
+
- test/schemas/good_schema_extends2.json
|
168
|
+
- test/schemas/inner.schema.json
|
169
|
+
- test/schemas/one_of_ref_links_schema.json
|
170
|
+
- test/schemas/ref john with spaces schema.json
|
171
|
+
- test/schemas/relative_definition_schema.json
|
172
|
+
- test/schemas/self_link_schema.json
|
173
|
+
- test/schemas/up_link_schema.json
|
174
|
+
- test/test_all_of_ref_schema.rb
|
175
|
+
- test/test_any_of_ref_schema.rb
|
176
|
+
- test/test_bad_schema_ref.rb
|
177
|
+
- test/test_common_test_suite.rb
|
178
|
+
- test/test_custom_format.rb
|
179
|
+
- test/test_definition.rb
|
180
|
+
- test/test_extended_schema.rb
|
181
|
+
- test/test_extends_and_additionalProperties.rb
|
182
|
+
- test/test_files_v3.rb
|
183
|
+
- test/test_fragment_resolution.rb
|
184
|
+
- test/test_fragment_validation_with_ref.rb
|
185
|
+
- test/test_full_validation.rb
|
186
|
+
- test/test_helper.rb
|
187
|
+
- test/test_initialize_data.rb
|
188
|
+
- test/test_jsonschema_draft1.rb
|
189
|
+
- test/test_jsonschema_draft2.rb
|
190
|
+
- test/test_jsonschema_draft3.rb
|
191
|
+
- test/test_jsonschema_draft4.rb
|
192
|
+
- test/test_list_option.rb
|
193
|
+
- test/test_merge_missing_values.rb
|
194
|
+
- test/test_minitems.rb
|
195
|
+
- test/test_one_of.rb
|
196
|
+
- test/test_ruby_schema.rb
|
197
|
+
- test/test_schema_loader.rb
|
198
|
+
- test/test_schema_type_attribute.rb
|
199
|
+
- test/test_schema_validation.rb
|
200
|
+
- test/test_stringify.rb
|
201
|
+
- test/test_uri_related.rb
|
202
|
+
- test/test_validator.rb
|
203
|
+
homepage: http://github.com/openc/json-schema/tree/master
|
204
|
+
licenses:
|
205
|
+
- MIT
|
206
|
+
metadata: {}
|
207
|
+
post_install_message:
|
208
|
+
rdoc_options: []
|
209
|
+
require_paths:
|
210
|
+
- lib
|
211
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - ! '>='
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: 1.8.7
|
216
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
217
|
+
requirements:
|
218
|
+
- - ! '>='
|
219
|
+
- !ruby/object:Gem::Version
|
220
|
+
version: '1.8'
|
221
|
+
requirements: []
|
222
|
+
rubyforge_project:
|
223
|
+
rubygems_version: 2.2.2
|
224
|
+
signing_key:
|
225
|
+
specification_version: 4
|
226
|
+
summary: OpenCorporates temporary fork of Ruby JSON Schema Validator
|
227
|
+
test_files:
|
228
|
+
- test/test_all_of_ref_schema.rb
|
229
|
+
- test/test_any_of_ref_schema.rb
|
230
|
+
- test/test_bad_schema_ref.rb
|
231
|
+
- test/test_common_test_suite.rb
|
232
|
+
- test/test_custom_format.rb
|
233
|
+
- test/test_definition.rb
|
234
|
+
- test/test_extended_schema.rb
|
235
|
+
- test/test_extends_and_additionalProperties.rb
|
236
|
+
- test/test_files_v3.rb
|
237
|
+
- test/test_fragment_resolution.rb
|
238
|
+
- test/test_fragment_validation_with_ref.rb
|
239
|
+
- test/test_full_validation.rb
|
240
|
+
- test/test_helper.rb
|
241
|
+
- test/test_initialize_data.rb
|
242
|
+
- test/test_jsonschema_draft1.rb
|
243
|
+
- test/test_jsonschema_draft2.rb
|
244
|
+
- test/test_jsonschema_draft3.rb
|
245
|
+
- test/test_jsonschema_draft4.rb
|
246
|
+
- test/test_list_option.rb
|
247
|
+
- test/test_merge_missing_values.rb
|
248
|
+
- test/test_minitems.rb
|
249
|
+
- test/test_one_of.rb
|
250
|
+
- test/test_ruby_schema.rb
|
251
|
+
- test/test_schema_loader.rb
|
252
|
+
- test/test_schema_type_attribute.rb
|
253
|
+
- test/test_schema_validation.rb
|
254
|
+
- test/test_stringify.rb
|
255
|
+
- test/test_uri_related.rb
|
256
|
+
- test/test_validator.rb
|
257
|
+
- test/data/all_of_ref_data.json
|
258
|
+
- test/data/any_of_ref_data.json
|
259
|
+
- test/data/bad_data_1.json
|
260
|
+
- test/data/good_data_1.json
|
261
|
+
- test/data/one_of_ref_links_data.json
|
262
|
+
- test/schemas/address_microformat.json
|
263
|
+
- test/schemas/all_of_ref_base_schema.json
|
264
|
+
- test/schemas/all_of_ref_schema.json
|
265
|
+
- test/schemas/any_of_ref_jane_schema.json
|
266
|
+
- test/schemas/any_of_ref_jimmy_schema.json
|
267
|
+
- test/schemas/any_of_ref_john_schema.json
|
268
|
+
- test/schemas/any_of_ref_schema.json
|
269
|
+
- test/schemas/definition_schema.json
|
270
|
+
- test/schemas/extends_and_additionalProperties-1-filename.schema.json
|
271
|
+
- test/schemas/extends_and_additionalProperties-1-ref.schema.json
|
272
|
+
- test/schemas/extends_and_additionalProperties-2-filename.schema.json
|
273
|
+
- test/schemas/extends_and_additionalProperties-2-ref.schema.json
|
274
|
+
- test/schemas/good_schema_1.json
|
275
|
+
- test/schemas/good_schema_2.json
|
276
|
+
- test/schemas/good_schema_extends1.json
|
277
|
+
- test/schemas/good_schema_extends2.json
|
278
|
+
- test/schemas/inner.schema.json
|
279
|
+
- test/schemas/one_of_ref_links_schema.json
|
280
|
+
- test/schemas/ref john with spaces schema.json
|
281
|
+
- test/schemas/relative_definition_schema.json
|
282
|
+
- test/schemas/self_link_schema.json
|
283
|
+
- test/schemas/up_link_schema.json
|
284
|
+
has_rdoc:
|