json-schema 2.8.1 → 6.1.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/README.md +55 -11
- data/lib/json-schema/attribute.rb +15 -16
- data/lib/json-schema/attributes/additionalitems.rb +1 -0
- data/lib/json-schema/attributes/additionalproperties.rb +4 -7
- data/lib/json-schema/attributes/allof.rb +33 -6
- data/lib/json-schema/attributes/anyof.rb +4 -4
- data/lib/json-schema/attributes/const.rb +15 -0
- data/lib/json-schema/attributes/dependencies.rb +1 -0
- data/lib/json-schema/attributes/disallow.rb +2 -1
- data/lib/json-schema/attributes/divisibleby.rb +1 -1
- data/lib/json-schema/attributes/enum.rb +3 -3
- data/lib/json-schema/attributes/extends.rb +10 -8
- data/lib/json-schema/attributes/format.rb +2 -1
- data/lib/json-schema/attributes/formats/custom.rb +5 -7
- data/lib/json-schema/attributes/formats/date.rb +2 -1
- data/lib/json-schema/attributes/formats/date_time.rb +4 -3
- data/lib/json-schema/attributes/formats/date_time_v4.rb +2 -1
- data/lib/json-schema/attributes/formats/ip.rb +3 -3
- data/lib/json-schema/attributes/formats/time.rb +1 -1
- data/lib/json-schema/attributes/formats/uri.rb +2 -1
- data/lib/json-schema/attributes/items.rb +1 -0
- data/lib/json-schema/attributes/limit.rb +2 -2
- data/lib/json-schema/attributes/limits/numeric.rb +1 -1
- data/lib/json-schema/attributes/maxdecimal.rb +2 -2
- data/lib/json-schema/attributes/not.rb +2 -2
- data/lib/json-schema/attributes/oneof.rb +9 -11
- data/lib/json-schema/attributes/pattern.rb +1 -1
- data/lib/json-schema/attributes/patternproperties.rb +2 -1
- data/lib/json-schema/attributes/properties.rb +10 -10
- data/lib/json-schema/attributes/properties_v4.rb +2 -2
- data/lib/json-schema/attributes/propertynames.rb +23 -0
- data/lib/json-schema/attributes/ref.rb +19 -18
- data/lib/json-schema/attributes/required.rb +6 -5
- data/lib/json-schema/attributes/type.rb +11 -10
- data/lib/json-schema/attributes/type_v4.rb +3 -3
- data/lib/json-schema/attributes/uniqueitems.rb +1 -1
- data/lib/json-schema/errors/validation_error.rb +10 -10
- data/lib/json-schema/schema/reader.rb +4 -2
- data/lib/json-schema/schema/validator.rb +4 -4
- data/lib/json-schema/schema.rb +13 -14
- data/lib/json-schema/util/array_set.rb +2 -4
- data/lib/json-schema/util/uri.rb +100 -77
- data/lib/json-schema/util/uuid.rb +204 -226
- data/lib/json-schema/validator.rb +173 -156
- data/lib/json-schema/validators/draft1.rb +21 -23
- data/lib/json-schema/validators/draft2.rb +22 -24
- data/lib/json-schema/validators/draft3.rb +26 -28
- data/lib/json-schema/validators/draft4.rb +34 -36
- data/lib/json-schema/validators/draft6.rb +36 -36
- data/lib/json-schema/validators/hyper-draft1.rb +2 -3
- data/lib/json-schema/validators/hyper-draft2.rb +2 -3
- data/lib/json-schema/validators/hyper-draft3.rb +2 -3
- data/lib/json-schema/validators/hyper-draft4.rb +2 -3
- data/lib/json-schema/validators/hyper-draft6.rb +2 -3
- data/lib/json-schema.rb +3 -3
- data/resources/draft-06.json +12 -12
- metadata +60 -32
metadata
CHANGED
|
@@ -1,92 +1,117 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: json-schema
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 6.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kenny Hoxworth
|
|
8
|
-
|
|
8
|
+
- Vox Pupuli
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
|
-
name:
|
|
14
|
+
name: minitest
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
17
|
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '0'
|
|
19
|
+
version: '5.0'
|
|
20
|
+
- - "<"
|
|
21
|
+
- !ruby/object:Gem::Version
|
|
22
|
+
version: '7'
|
|
20
23
|
type: :development
|
|
21
24
|
prerelease: false
|
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
26
|
requirements:
|
|
24
27
|
- - ">="
|
|
25
28
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '0'
|
|
29
|
+
version: '5.0'
|
|
30
|
+
- - "<"
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: '7'
|
|
27
33
|
- !ruby/object:Gem::Dependency
|
|
28
|
-
name:
|
|
34
|
+
name: rake
|
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
|
30
36
|
requirements:
|
|
31
37
|
- - "~>"
|
|
32
38
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '
|
|
39
|
+
version: '13.0'
|
|
34
40
|
type: :development
|
|
35
41
|
prerelease: false
|
|
36
42
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
43
|
requirements:
|
|
38
44
|
- - "~>"
|
|
39
45
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: '
|
|
46
|
+
version: '13.0'
|
|
41
47
|
- !ruby/object:Gem::Dependency
|
|
42
|
-
name:
|
|
48
|
+
name: voxpupuli-rubocop
|
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
|
44
50
|
requirements:
|
|
45
|
-
- - "
|
|
51
|
+
- - "~>"
|
|
46
52
|
- !ruby/object:Gem::Version
|
|
47
|
-
version:
|
|
53
|
+
version: 5.1.0
|
|
48
54
|
type: :development
|
|
49
55
|
prerelease: false
|
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
57
|
requirements:
|
|
52
|
-
- - "
|
|
58
|
+
- - "~>"
|
|
53
59
|
- !ruby/object:Gem::Version
|
|
54
|
-
version:
|
|
60
|
+
version: 5.1.0
|
|
55
61
|
- !ruby/object:Gem::Dependency
|
|
56
|
-
name:
|
|
62
|
+
name: webmock
|
|
57
63
|
requirement: !ruby/object:Gem::Requirement
|
|
58
64
|
requirements:
|
|
59
|
-
- - "
|
|
65
|
+
- - "~>"
|
|
60
66
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: '
|
|
67
|
+
version: '3.23'
|
|
62
68
|
type: :development
|
|
63
69
|
prerelease: false
|
|
64
70
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
71
|
requirements:
|
|
66
|
-
- - "
|
|
72
|
+
- - "~>"
|
|
67
73
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: '
|
|
74
|
+
version: '3.23'
|
|
69
75
|
- !ruby/object:Gem::Dependency
|
|
70
76
|
name: addressable
|
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
|
78
|
+
requirements:
|
|
79
|
+
- - "~>"
|
|
80
|
+
- !ruby/object:Gem::Version
|
|
81
|
+
version: '2.8'
|
|
82
|
+
type: :runtime
|
|
83
|
+
prerelease: false
|
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
85
|
+
requirements:
|
|
86
|
+
- - "~>"
|
|
87
|
+
- !ruby/object:Gem::Version
|
|
88
|
+
version: '2.8'
|
|
89
|
+
- !ruby/object:Gem::Dependency
|
|
90
|
+
name: bigdecimal
|
|
71
91
|
requirement: !ruby/object:Gem::Requirement
|
|
72
92
|
requirements:
|
|
73
93
|
- - ">="
|
|
74
94
|
- !ruby/object:Gem::Version
|
|
75
|
-
version: '
|
|
95
|
+
version: '3.1'
|
|
96
|
+
- - "<"
|
|
97
|
+
- !ruby/object:Gem::Version
|
|
98
|
+
version: '5'
|
|
76
99
|
type: :runtime
|
|
77
100
|
prerelease: false
|
|
78
101
|
version_requirements: !ruby/object:Gem::Requirement
|
|
79
102
|
requirements:
|
|
80
103
|
- - ">="
|
|
81
104
|
- !ruby/object:Gem::Version
|
|
82
|
-
version: '
|
|
83
|
-
|
|
84
|
-
|
|
105
|
+
version: '3.1'
|
|
106
|
+
- - "<"
|
|
107
|
+
- !ruby/object:Gem::Version
|
|
108
|
+
version: '5'
|
|
109
|
+
email: voxpupuli@groups.io
|
|
85
110
|
executables: []
|
|
86
111
|
extensions: []
|
|
87
112
|
extra_rdoc_files:
|
|
88
|
-
- README.md
|
|
89
113
|
- LICENSE.md
|
|
114
|
+
- README.md
|
|
90
115
|
files:
|
|
91
116
|
- LICENSE.md
|
|
92
117
|
- README.md
|
|
@@ -96,6 +121,7 @@ files:
|
|
|
96
121
|
- lib/json-schema/attributes/additionalproperties.rb
|
|
97
122
|
- lib/json-schema/attributes/allof.rb
|
|
98
123
|
- lib/json-schema/attributes/anyof.rb
|
|
124
|
+
- lib/json-schema/attributes/const.rb
|
|
99
125
|
- lib/json-schema/attributes/dependencies.rb
|
|
100
126
|
- lib/json-schema/attributes/dependencies_v4.rb
|
|
101
127
|
- lib/json-schema/attributes/disallow.rb
|
|
@@ -135,6 +161,7 @@ files:
|
|
|
135
161
|
- lib/json-schema/attributes/properties.rb
|
|
136
162
|
- lib/json-schema/attributes/properties_optional.rb
|
|
137
163
|
- lib/json-schema/attributes/properties_v4.rb
|
|
164
|
+
- lib/json-schema/attributes/propertynames.rb
|
|
138
165
|
- lib/json-schema/attributes/ref.rb
|
|
139
166
|
- lib/json-schema/attributes/required.rb
|
|
140
167
|
- lib/json-schema/attributes/type.rb
|
|
@@ -169,11 +196,14 @@ files:
|
|
|
169
196
|
- resources/draft-03.json
|
|
170
197
|
- resources/draft-04.json
|
|
171
198
|
- resources/draft-06.json
|
|
172
|
-
homepage:
|
|
199
|
+
homepage: https://github.com/voxpupuli/json-schema/
|
|
173
200
|
licenses:
|
|
174
201
|
- MIT
|
|
175
|
-
metadata:
|
|
176
|
-
|
|
202
|
+
metadata:
|
|
203
|
+
source_code_uri: https://github.com/voxpupuli/json-schema/
|
|
204
|
+
changelog_uri: https://github.com/voxpupuli/json-schema//blob/master/CHANGELOG.md
|
|
205
|
+
bug_tracker_uri: https://github.com/voxpupuli/json-schema//issues
|
|
206
|
+
funding_uri: https://github.com/sponsors/voxpupuli
|
|
177
207
|
rdoc_options: []
|
|
178
208
|
require_paths:
|
|
179
209
|
- lib
|
|
@@ -181,16 +211,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
181
211
|
requirements:
|
|
182
212
|
- - ">="
|
|
183
213
|
- !ruby/object:Gem::Version
|
|
184
|
-
version: '
|
|
214
|
+
version: '3.2'
|
|
185
215
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
186
216
|
requirements:
|
|
187
217
|
- - ">="
|
|
188
218
|
- !ruby/object:Gem::Version
|
|
189
|
-
version: '
|
|
219
|
+
version: '0'
|
|
190
220
|
requirements: []
|
|
191
|
-
|
|
192
|
-
rubygems_version: 2.7.6
|
|
193
|
-
signing_key:
|
|
221
|
+
rubygems_version: 3.6.9
|
|
194
222
|
specification_version: 4
|
|
195
223
|
summary: Ruby JSON Schema Validator
|
|
196
224
|
test_files: []
|