json_schemer 0.2.9 → 0.2.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +3 -9
- data/Gemfile.lock +6 -6
- data/json_schemer.gemspec +2 -2
- data/lib/json_schemer.rb +2 -0
- data/lib/json_schemer/errors.rb +31 -0
- data/lib/json_schemer/schema/base.rb +13 -16
- data/lib/json_schemer/version.rb +1 -1
- metadata +5 -234
- data/JSON-Schema-Test-Suite/.gitignore +0 -1
- data/JSON-Schema-Test-Suite/.travis.yml +0 -8
- data/JSON-Schema-Test-Suite/LICENSE +0 -19
- data/JSON-Schema-Test-Suite/README.md +0 -181
- data/JSON-Schema-Test-Suite/bin/jsonschema_suite +0 -298
- data/JSON-Schema-Test-Suite/index.js +0 -45
- data/JSON-Schema-Test-Suite/package.json +0 -28
- data/JSON-Schema-Test-Suite/remotes/folder/folderInteger.json +0 -3
- data/JSON-Schema-Test-Suite/remotes/integer.json +0 -3
- data/JSON-Schema-Test-Suite/remotes/name-defs.json +0 -15
- data/JSON-Schema-Test-Suite/remotes/name.json +0 -15
- data/JSON-Schema-Test-Suite/remotes/subSchemas.json +0 -8
- data/JSON-Schema-Test-Suite/test-schema.json +0 -59
- data/JSON-Schema-Test-Suite/tests/draft2019-09/additionalItems.json +0 -87
- data/JSON-Schema-Test-Suite/tests/draft2019-09/additionalProperties.json +0 -133
- data/JSON-Schema-Test-Suite/tests/draft2019-09/allOf.json +0 -218
- data/JSON-Schema-Test-Suite/tests/draft2019-09/anchor.json +0 -87
- data/JSON-Schema-Test-Suite/tests/draft2019-09/anyOf.json +0 -189
- data/JSON-Schema-Test-Suite/tests/draft2019-09/boolean_schema.json +0 -104
- data/JSON-Schema-Test-Suite/tests/draft2019-09/const.json +0 -170
- data/JSON-Schema-Test-Suite/tests/draft2019-09/contains.json +0 -95
- data/JSON-Schema-Test-Suite/tests/draft2019-09/default.json +0 -49
- data/JSON-Schema-Test-Suite/tests/draft2019-09/defs.json +0 -24
- data/JSON-Schema-Test-Suite/tests/draft2019-09/dependencies.json +0 -268
- data/JSON-Schema-Test-Suite/tests/draft2019-09/enum.json +0 -179
- data/JSON-Schema-Test-Suite/tests/draft2019-09/exclusiveMaximum.json +0 -30
- data/JSON-Schema-Test-Suite/tests/draft2019-09/exclusiveMinimum.json +0 -30
- data/JSON-Schema-Test-Suite/tests/draft2019-09/format.json +0 -614
- data/JSON-Schema-Test-Suite/tests/draft2019-09/if-then-else.json +0 -188
- data/JSON-Schema-Test-Suite/tests/draft2019-09/items.json +0 -250
- data/JSON-Schema-Test-Suite/tests/draft2019-09/maxItems.json +0 -28
- data/JSON-Schema-Test-Suite/tests/draft2019-09/maxLength.json +0 -33
- data/JSON-Schema-Test-Suite/tests/draft2019-09/maxProperties.json +0 -38
- data/JSON-Schema-Test-Suite/tests/draft2019-09/maximum.json +0 -28
- data/JSON-Schema-Test-Suite/tests/draft2019-09/minItems.json +0 -28
- data/JSON-Schema-Test-Suite/tests/draft2019-09/minLength.json +0 -33
- data/JSON-Schema-Test-Suite/tests/draft2019-09/minProperties.json +0 -38
- data/JSON-Schema-Test-Suite/tests/draft2019-09/minimum.json +0 -59
- data/JSON-Schema-Test-Suite/tests/draft2019-09/multipleOf.json +0 -60
- data/JSON-Schema-Test-Suite/tests/draft2019-09/not.json +0 -117
- data/JSON-Schema-Test-Suite/tests/draft2019-09/oneOf.json +0 -206
- data/JSON-Schema-Test-Suite/tests/draft2019-09/optional/bignum.json +0 -105
- data/JSON-Schema-Test-Suite/tests/draft2019-09/optional/content.json +0 -77
- data/JSON-Schema-Test-Suite/tests/draft2019-09/optional/ecmascript-regex.json +0 -213
- data/JSON-Schema-Test-Suite/tests/draft2019-09/optional/format/date-time.json +0 -53
- data/JSON-Schema-Test-Suite/tests/draft2019-09/optional/format/date.json +0 -23
- data/JSON-Schema-Test-Suite/tests/draft2019-09/optional/format/email.json +0 -18
- data/JSON-Schema-Test-Suite/tests/draft2019-09/optional/format/hostname.json +0 -33
- data/JSON-Schema-Test-Suite/tests/draft2019-09/optional/format/idn-email.json +0 -18
- data/JSON-Schema-Test-Suite/tests/draft2019-09/optional/format/idn-hostname.json +0 -28
- data/JSON-Schema-Test-Suite/tests/draft2019-09/optional/format/ipv4.json +0 -33
- data/JSON-Schema-Test-Suite/tests/draft2019-09/optional/format/ipv6.json +0 -28
- data/JSON-Schema-Test-Suite/tests/draft2019-09/optional/format/iri-reference.json +0 -43
- data/JSON-Schema-Test-Suite/tests/draft2019-09/optional/format/iri.json +0 -53
- data/JSON-Schema-Test-Suite/tests/draft2019-09/optional/format/json-pointer.json +0 -168
- data/JSON-Schema-Test-Suite/tests/draft2019-09/optional/format/regex.json +0 -18
- data/JSON-Schema-Test-Suite/tests/draft2019-09/optional/format/relative-json-pointer.json +0 -33
- data/JSON-Schema-Test-Suite/tests/draft2019-09/optional/format/time.json +0 -23
- data/JSON-Schema-Test-Suite/tests/draft2019-09/optional/format/uri-reference.json +0 -43
- data/JSON-Schema-Test-Suite/tests/draft2019-09/optional/format/uri-template.json +0 -28
- data/JSON-Schema-Test-Suite/tests/draft2019-09/optional/format/uri.json +0 -103
- data/JSON-Schema-Test-Suite/tests/draft2019-09/optional/zeroTerminatedFloats.json +0 -15
- data/JSON-Schema-Test-Suite/tests/draft2019-09/pattern.json +0 -34
- data/JSON-Schema-Test-Suite/tests/draft2019-09/patternProperties.json +0 -151
- data/JSON-Schema-Test-Suite/tests/draft2019-09/properties.json +0 -167
- data/JSON-Schema-Test-Suite/tests/draft2019-09/propertyNames.json +0 -78
- data/JSON-Schema-Test-Suite/tests/draft2019-09/ref.json +0 -359
- data/JSON-Schema-Test-Suite/tests/draft2019-09/refRemote.json +0 -167
- data/JSON-Schema-Test-Suite/tests/draft2019-09/required.json +0 -105
- data/JSON-Schema-Test-Suite/tests/draft2019-09/type.json +0 -464
- data/JSON-Schema-Test-Suite/tests/draft2019-09/uniqueItems.json +0 -173
- data/JSON-Schema-Test-Suite/tests/draft3/additionalItems.json +0 -82
- data/JSON-Schema-Test-Suite/tests/draft3/additionalProperties.json +0 -133
- data/JSON-Schema-Test-Suite/tests/draft3/default.json +0 -49
- data/JSON-Schema-Test-Suite/tests/draft3/dependencies.json +0 -118
- data/JSON-Schema-Test-Suite/tests/draft3/disallow.json +0 -80
- data/JSON-Schema-Test-Suite/tests/draft3/divisibleBy.json +0 -60
- data/JSON-Schema-Test-Suite/tests/draft3/enum.json +0 -71
- data/JSON-Schema-Test-Suite/tests/draft3/extends.json +0 -94
- data/JSON-Schema-Test-Suite/tests/draft3/format.json +0 -362
- data/JSON-Schema-Test-Suite/tests/draft3/items.json +0 -46
- data/JSON-Schema-Test-Suite/tests/draft3/maxItems.json +0 -28
- data/JSON-Schema-Test-Suite/tests/draft3/maxLength.json +0 -33
- data/JSON-Schema-Test-Suite/tests/draft3/maximum.json +0 -42
- data/JSON-Schema-Test-Suite/tests/draft3/minItems.json +0 -28
- data/JSON-Schema-Test-Suite/tests/draft3/minLength.json +0 -33
- data/JSON-Schema-Test-Suite/tests/draft3/minimum.json +0 -73
- data/JSON-Schema-Test-Suite/tests/draft3/optional/bignum.json +0 -107
- data/JSON-Schema-Test-Suite/tests/draft3/optional/ecmascript-regex.json +0 -18
- data/JSON-Schema-Test-Suite/tests/draft3/optional/format.json +0 -227
- data/JSON-Schema-Test-Suite/tests/draft3/optional/zeroTerminatedFloats.json +0 -15
- data/JSON-Schema-Test-Suite/tests/draft3/pattern.json +0 -34
- data/JSON-Schema-Test-Suite/tests/draft3/patternProperties.json +0 -115
- data/JSON-Schema-Test-Suite/tests/draft3/properties.json +0 -97
- data/JSON-Schema-Test-Suite/tests/draft3/ref.json +0 -192
- data/JSON-Schema-Test-Suite/tests/draft3/refRemote.json +0 -74
- data/JSON-Schema-Test-Suite/tests/draft3/required.json +0 -53
- data/JSON-Schema-Test-Suite/tests/draft3/type.json +0 -489
- data/JSON-Schema-Test-Suite/tests/draft3/uniqueItems.json +0 -163
- data/JSON-Schema-Test-Suite/tests/draft4/additionalItems.json +0 -87
- data/JSON-Schema-Test-Suite/tests/draft4/additionalProperties.json +0 -133
- data/JSON-Schema-Test-Suite/tests/draft4/allOf.json +0 -185
- data/JSON-Schema-Test-Suite/tests/draft4/anyOf.json +0 -156
- data/JSON-Schema-Test-Suite/tests/draft4/default.json +0 -49
- data/JSON-Schema-Test-Suite/tests/draft4/definitions.json +0 -32
- data/JSON-Schema-Test-Suite/tests/draft4/dependencies.json +0 -194
- data/JSON-Schema-Test-Suite/tests/draft4/enum.json +0 -179
- data/JSON-Schema-Test-Suite/tests/draft4/format.json +0 -218
- data/JSON-Schema-Test-Suite/tests/draft4/items.json +0 -195
- data/JSON-Schema-Test-Suite/tests/draft4/maxItems.json +0 -28
- data/JSON-Schema-Test-Suite/tests/draft4/maxLength.json +0 -33
- data/JSON-Schema-Test-Suite/tests/draft4/maxProperties.json +0 -38
- data/JSON-Schema-Test-Suite/tests/draft4/maximum.json +0 -73
- data/JSON-Schema-Test-Suite/tests/draft4/minItems.json +0 -28
- data/JSON-Schema-Test-Suite/tests/draft4/minLength.json +0 -33
- data/JSON-Schema-Test-Suite/tests/draft4/minProperties.json +0 -38
- data/JSON-Schema-Test-Suite/tests/draft4/minimum.json +0 -104
- data/JSON-Schema-Test-Suite/tests/draft4/multipleOf.json +0 -60
- data/JSON-Schema-Test-Suite/tests/draft4/not.json +0 -96
- data/JSON-Schema-Test-Suite/tests/draft4/oneOf.json +0 -162
- data/JSON-Schema-Test-Suite/tests/draft4/optional/bignum.json +0 -107
- data/JSON-Schema-Test-Suite/tests/draft4/optional/ecmascript-regex.json +0 -213
- data/JSON-Schema-Test-Suite/tests/draft4/optional/format.json +0 -253
- data/JSON-Schema-Test-Suite/tests/draft4/optional/zeroTerminatedFloats.json +0 -15
- data/JSON-Schema-Test-Suite/tests/draft4/pattern.json +0 -34
- data/JSON-Schema-Test-Suite/tests/draft4/patternProperties.json +0 -120
- data/JSON-Schema-Test-Suite/tests/draft4/properties.json +0 -136
- data/JSON-Schema-Test-Suite/tests/draft4/ref.json +0 -411
- data/JSON-Schema-Test-Suite/tests/draft4/refRemote.json +0 -171
- data/JSON-Schema-Test-Suite/tests/draft4/required.json +0 -89
- data/JSON-Schema-Test-Suite/tests/draft4/type.json +0 -464
- data/JSON-Schema-Test-Suite/tests/draft4/uniqueItems.json +0 -173
- data/JSON-Schema-Test-Suite/tests/draft6/additionalItems.json +0 -87
- data/JSON-Schema-Test-Suite/tests/draft6/additionalProperties.json +0 -133
- data/JSON-Schema-Test-Suite/tests/draft6/allOf.json +0 -218
- data/JSON-Schema-Test-Suite/tests/draft6/anyOf.json +0 -189
- data/JSON-Schema-Test-Suite/tests/draft6/boolean_schema.json +0 -104
- data/JSON-Schema-Test-Suite/tests/draft6/const.json +0 -170
- data/JSON-Schema-Test-Suite/tests/draft6/contains.json +0 -100
- data/JSON-Schema-Test-Suite/tests/draft6/default.json +0 -49
- data/JSON-Schema-Test-Suite/tests/draft6/definitions.json +0 -32
- data/JSON-Schema-Test-Suite/tests/draft6/dependencies.json +0 -268
- data/JSON-Schema-Test-Suite/tests/draft6/enum.json +0 -179
- data/JSON-Schema-Test-Suite/tests/draft6/exclusiveMaximum.json +0 -30
- data/JSON-Schema-Test-Suite/tests/draft6/exclusiveMinimum.json +0 -30
- data/JSON-Schema-Test-Suite/tests/draft6/format.json +0 -326
- data/JSON-Schema-Test-Suite/tests/draft6/items.json +0 -250
- data/JSON-Schema-Test-Suite/tests/draft6/maxItems.json +0 -28
- data/JSON-Schema-Test-Suite/tests/draft6/maxLength.json +0 -33
- data/JSON-Schema-Test-Suite/tests/draft6/maxProperties.json +0 -38
- data/JSON-Schema-Test-Suite/tests/draft6/maximum.json +0 -28
- data/JSON-Schema-Test-Suite/tests/draft6/minItems.json +0 -28
- data/JSON-Schema-Test-Suite/tests/draft6/minLength.json +0 -33
- data/JSON-Schema-Test-Suite/tests/draft6/minProperties.json +0 -38
- data/JSON-Schema-Test-Suite/tests/draft6/minimum.json +0 -59
- data/JSON-Schema-Test-Suite/tests/draft6/multipleOf.json +0 -60
- data/JSON-Schema-Test-Suite/tests/draft6/not.json +0 -117
- data/JSON-Schema-Test-Suite/tests/draft6/oneOf.json +0 -206
- data/JSON-Schema-Test-Suite/tests/draft6/optional/bignum.json +0 -105
- data/JSON-Schema-Test-Suite/tests/draft6/optional/ecmascript-regex.json +0 -213
- data/JSON-Schema-Test-Suite/tests/draft6/optional/format.json +0 -491
- data/JSON-Schema-Test-Suite/tests/draft6/optional/zeroTerminatedFloats.json +0 -15
- data/JSON-Schema-Test-Suite/tests/draft6/pattern.json +0 -34
- data/JSON-Schema-Test-Suite/tests/draft6/patternProperties.json +0 -151
- data/JSON-Schema-Test-Suite/tests/draft6/properties.json +0 -167
- data/JSON-Schema-Test-Suite/tests/draft6/propertyNames.json +0 -78
- data/JSON-Schema-Test-Suite/tests/draft6/ref.json +0 -443
- data/JSON-Schema-Test-Suite/tests/draft6/refRemote.json +0 -171
- data/JSON-Schema-Test-Suite/tests/draft6/required.json +0 -105
- data/JSON-Schema-Test-Suite/tests/draft6/type.json +0 -464
- data/JSON-Schema-Test-Suite/tests/draft6/uniqueItems.json +0 -173
- data/JSON-Schema-Test-Suite/tests/draft7/additionalItems.json +0 -87
- data/JSON-Schema-Test-Suite/tests/draft7/additionalProperties.json +0 -133
- data/JSON-Schema-Test-Suite/tests/draft7/allOf.json +0 -218
- data/JSON-Schema-Test-Suite/tests/draft7/anyOf.json +0 -189
- data/JSON-Schema-Test-Suite/tests/draft7/boolean_schema.json +0 -104
- data/JSON-Schema-Test-Suite/tests/draft7/const.json +0 -170
- data/JSON-Schema-Test-Suite/tests/draft7/contains.json +0 -100
- data/JSON-Schema-Test-Suite/tests/draft7/default.json +0 -49
- data/JSON-Schema-Test-Suite/tests/draft7/definitions.json +0 -32
- data/JSON-Schema-Test-Suite/tests/draft7/dependencies.json +0 -268
- data/JSON-Schema-Test-Suite/tests/draft7/enum.json +0 -179
- data/JSON-Schema-Test-Suite/tests/draft7/exclusiveMaximum.json +0 -30
- data/JSON-Schema-Test-Suite/tests/draft7/exclusiveMinimum.json +0 -30
- data/JSON-Schema-Test-Suite/tests/draft7/format.json +0 -614
- data/JSON-Schema-Test-Suite/tests/draft7/if-then-else.json +0 -188
- data/JSON-Schema-Test-Suite/tests/draft7/items.json +0 -250
- data/JSON-Schema-Test-Suite/tests/draft7/maxItems.json +0 -28
- data/JSON-Schema-Test-Suite/tests/draft7/maxLength.json +0 -33
- data/JSON-Schema-Test-Suite/tests/draft7/maxProperties.json +0 -38
- data/JSON-Schema-Test-Suite/tests/draft7/maximum.json +0 -28
- data/JSON-Schema-Test-Suite/tests/draft7/minItems.json +0 -28
- data/JSON-Schema-Test-Suite/tests/draft7/minLength.json +0 -33
- data/JSON-Schema-Test-Suite/tests/draft7/minProperties.json +0 -38
- data/JSON-Schema-Test-Suite/tests/draft7/minimum.json +0 -59
- data/JSON-Schema-Test-Suite/tests/draft7/multipleOf.json +0 -60
- data/JSON-Schema-Test-Suite/tests/draft7/not.json +0 -117
- data/JSON-Schema-Test-Suite/tests/draft7/oneOf.json +0 -206
- data/JSON-Schema-Test-Suite/tests/draft7/optional/bignum.json +0 -105
- data/JSON-Schema-Test-Suite/tests/draft7/optional/content.json +0 -77
- data/JSON-Schema-Test-Suite/tests/draft7/optional/ecmascript-regex.json +0 -213
- data/JSON-Schema-Test-Suite/tests/draft7/optional/format/date-time.json +0 -53
- data/JSON-Schema-Test-Suite/tests/draft7/optional/format/date.json +0 -23
- data/JSON-Schema-Test-Suite/tests/draft7/optional/format/email.json +0 -18
- data/JSON-Schema-Test-Suite/tests/draft7/optional/format/hostname.json +0 -33
- data/JSON-Schema-Test-Suite/tests/draft7/optional/format/idn-email.json +0 -18
- data/JSON-Schema-Test-Suite/tests/draft7/optional/format/idn-hostname.json +0 -28
- data/JSON-Schema-Test-Suite/tests/draft7/optional/format/ipv4.json +0 -33
- data/JSON-Schema-Test-Suite/tests/draft7/optional/format/ipv6.json +0 -28
- data/JSON-Schema-Test-Suite/tests/draft7/optional/format/iri-reference.json +0 -43
- data/JSON-Schema-Test-Suite/tests/draft7/optional/format/iri.json +0 -53
- data/JSON-Schema-Test-Suite/tests/draft7/optional/format/json-pointer.json +0 -168
- data/JSON-Schema-Test-Suite/tests/draft7/optional/format/regex.json +0 -18
- data/JSON-Schema-Test-Suite/tests/draft7/optional/format/relative-json-pointer.json +0 -33
- data/JSON-Schema-Test-Suite/tests/draft7/optional/format/time.json +0 -23
- data/JSON-Schema-Test-Suite/tests/draft7/optional/format/uri-reference.json +0 -43
- data/JSON-Schema-Test-Suite/tests/draft7/optional/format/uri-template.json +0 -28
- data/JSON-Schema-Test-Suite/tests/draft7/optional/format/uri.json +0 -103
- data/JSON-Schema-Test-Suite/tests/draft7/optional/zeroTerminatedFloats.json +0 -15
- data/JSON-Schema-Test-Suite/tests/draft7/pattern.json +0 -34
- data/JSON-Schema-Test-Suite/tests/draft7/patternProperties.json +0 -151
- data/JSON-Schema-Test-Suite/tests/draft7/properties.json +0 -167
- data/JSON-Schema-Test-Suite/tests/draft7/propertyNames.json +0 -78
- data/JSON-Schema-Test-Suite/tests/draft7/ref.json +0 -443
- data/JSON-Schema-Test-Suite/tests/draft7/refRemote.json +0 -171
- data/JSON-Schema-Test-Suite/tests/draft7/required.json +0 -105
- data/JSON-Schema-Test-Suite/tests/draft7/type.json +0 -464
- data/JSON-Schema-Test-Suite/tests/draft7/uniqueItems.json +0 -173
- data/JSON-Schema-Test-Suite/tests/latest +0 -1
- data/JSON-Schema-Test-Suite/tox.ini +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7cecb91727873d8e1a7ff2351c3405bbe888d609830f2223eb1e4d33073c0831
|
4
|
+
data.tar.gz: a363562768cac825d339c9cb188d49f60ff0dc325f4e21cc84ee5384d2b1244a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d0a060a13b5c2596d7c60f6c701f46d5cdb9c9e545737e76486f5228945544b2c6b5e01a47f826c9c508993df801e1314ee330c8a3cf6d7f701f7f6b2c526d6
|
7
|
+
data.tar.gz: d49827287d183c83ade04e2fc817687445c1754d60a101cec79e97c26780b513994c47ca097bcfb4b05daf2b82c706200200272e45f3f30b66f06cb19e73e00e
|
data/.github/workflows/ci.yml
CHANGED
@@ -4,19 +4,13 @@ jobs:
|
|
4
4
|
ruby:
|
5
5
|
strategy:
|
6
6
|
matrix:
|
7
|
-
ruby: [2.4
|
7
|
+
ruby: [2.4, 2.5, 2.6, 2.7, truffleruby-head]
|
8
8
|
runs-on: ubuntu-latest
|
9
9
|
steps:
|
10
|
-
- uses: actions/checkout@
|
11
|
-
- uses:
|
10
|
+
- uses: actions/checkout@v2
|
11
|
+
- uses: ruby/setup-ruby@v1
|
12
12
|
with:
|
13
13
|
ruby-version: ${{ matrix.ruby }}
|
14
|
-
- uses: actions/setup-python@v1
|
15
|
-
with:
|
16
|
-
python-version: 3.x
|
17
14
|
- run: |
|
18
|
-
pip install --user Flask
|
19
|
-
./JSON-Schema-Test-Suite/bin/jsonschema_suite serve &
|
20
|
-
gem install bundler
|
21
15
|
bundle install
|
22
16
|
bundle exec rake test
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
json_schemer (0.2.
|
4
|
+
json_schemer (0.2.14)
|
5
5
|
ecma-re-validator (~> 0.2)
|
6
6
|
hana (~> 1.3)
|
7
7
|
regexp_parser (~> 1.5)
|
@@ -10,12 +10,12 @@ PATH
|
|
10
10
|
GEM
|
11
11
|
remote: https://rubygems.org/
|
12
12
|
specs:
|
13
|
-
ecma-re-validator (0.2.
|
13
|
+
ecma-re-validator (0.2.1)
|
14
14
|
regexp_parser (~> 1.2)
|
15
|
-
hana (1.3.
|
15
|
+
hana (1.3.6)
|
16
16
|
minitest (5.11.3)
|
17
|
-
rake (
|
18
|
-
regexp_parser (1.
|
17
|
+
rake (13.0.1)
|
18
|
+
regexp_parser (1.8.1)
|
19
19
|
uri_template (0.7.0)
|
20
20
|
|
21
21
|
PLATFORMS
|
@@ -25,7 +25,7 @@ DEPENDENCIES
|
|
25
25
|
bundler (~> 2.0)
|
26
26
|
json_schemer!
|
27
27
|
minitest (~> 5.0)
|
28
|
-
rake (~>
|
28
|
+
rake (~> 13.0)
|
29
29
|
|
30
30
|
BUNDLED WITH
|
31
31
|
2.1.4
|
data/json_schemer.gemspec
CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
|
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
17
|
-
f.match(%r{^(test|spec|features)/})
|
17
|
+
f.match(%r{^(test|spec|features|JSON-Schema-Test-Suite)/})
|
18
18
|
end
|
19
19
|
spec.bindir = "exe"
|
20
20
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.required_ruby_version = '~> 2.4'
|
24
24
|
|
25
25
|
spec.add_development_dependency "bundler", "~> 2.0"
|
26
|
-
spec.add_development_dependency "rake", "~>
|
26
|
+
spec.add_development_dependency "rake", "~> 13.0"
|
27
27
|
spec.add_development_dependency "minitest", "~> 5.0"
|
28
28
|
|
29
29
|
# spec.add_development_dependency "benchmark-ips", "~> 2.7.2"
|
data/lib/json_schemer.rb
CHANGED
@@ -14,6 +14,7 @@ require 'uri_template'
|
|
14
14
|
|
15
15
|
require 'json_schemer/version'
|
16
16
|
require 'json_schemer/format'
|
17
|
+
require 'json_schemer/errors'
|
17
18
|
require 'json_schemer/cached_ref_resolver'
|
18
19
|
require 'json_schemer/schema/base'
|
19
20
|
require 'json_schemer/schema/draft4'
|
@@ -28,6 +29,7 @@ module JSONSchemer
|
|
28
29
|
class InvalidSymbolKey < StandardError; end
|
29
30
|
|
30
31
|
DRAFT_CLASS_BY_META_SCHEMA = {
|
32
|
+
'http://json-schema.org/schema#' => Schema::Draft4, # Version-less $schema deprecated after Draft 4
|
31
33
|
'http://json-schema.org/draft-04/schema#' => Schema::Draft4,
|
32
34
|
'http://json-schema.org/draft-06/schema#' => Schema::Draft6,
|
33
35
|
'http://json-schema.org/draft-07/schema#' => Schema::Draft7
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# Based on code from @robacarp found in issue 48:
|
2
|
+
# https://github.com/davishmcclurg/json_schemer/issues/48
|
3
|
+
#
|
4
|
+
module JSONSchemer
|
5
|
+
module Errors
|
6
|
+
class << self
|
7
|
+
def pretty(error)
|
8
|
+
data_pointer, type, schema = error.values_at('data_pointer', 'type', 'schema')
|
9
|
+
location = data_pointer.empty? ? 'root' : "property '#{data_pointer}'"
|
10
|
+
|
11
|
+
case type
|
12
|
+
when 'required'
|
13
|
+
keys = error.fetch('details').fetch('missing_keys').join(', ')
|
14
|
+
"#{location} is missing required keys: #{keys}"
|
15
|
+
when 'null', 'string', 'boolean', 'integer', 'number', 'array', 'object'
|
16
|
+
"#{location} is not of type: #{type}"
|
17
|
+
when 'pattern'
|
18
|
+
"#{location} does not match pattern: #{schema.fetch('pattern')}"
|
19
|
+
when 'format'
|
20
|
+
"#{location} does not match format: #{schema.fetch('format')}"
|
21
|
+
when 'const'
|
22
|
+
"#{location} is not: #{schema.fetch('const').inspect}"
|
23
|
+
when 'enum'
|
24
|
+
"#{location} is not one of: #{schema.fetch('enum')}"
|
25
|
+
else
|
26
|
+
"#{location} is invalid: error_type=#{type}"
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -568,12 +568,10 @@ module JSONSchemer
|
|
568
568
|
end
|
569
569
|
|
570
570
|
def safe_strict_decode64(data)
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
nil
|
576
|
-
end
|
571
|
+
Base64.strict_decode64(data)
|
572
|
+
rescue ArgumentError => e
|
573
|
+
raise e unless e.message == 'invalid base64'
|
574
|
+
nil
|
577
575
|
end
|
578
576
|
|
579
577
|
def ecma_262_regex(pattern)
|
@@ -615,16 +613,15 @@ module JSONSchemer
|
|
615
613
|
if schema.is_a?(Array)
|
616
614
|
schema.each_with_index { |subschema, index| resolve_ids(subschema, ids, parent_uri, "#{pointer}/#{index}") }
|
617
615
|
elsif schema.is_a?(Hash)
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
definitions.each { |key, subschema| resolve_ids(subschema, ids, uri, "#{pointer}/definitions/#{key}") }
|
616
|
+
uri = join_uri(parent_uri, schema[id_keyword])
|
617
|
+
schema.each do |key, value|
|
618
|
+
if key == id_keyword && uri != parent_uri
|
619
|
+
ids[uri.to_s] = {
|
620
|
+
schema: schema,
|
621
|
+
pointer: pointer
|
622
|
+
}
|
623
|
+
end
|
624
|
+
resolve_ids(value, ids, uri, "#{pointer}/#{key}")
|
628
625
|
end
|
629
626
|
end
|
630
627
|
ids
|
data/lib/json_schemer/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: json_schemer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Harsha
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-09-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '13.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '13.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: minitest
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -119,236 +119,6 @@ files:
|
|
119
119
|
- ".gitignore"
|
120
120
|
- Gemfile
|
121
121
|
- Gemfile.lock
|
122
|
-
- JSON-Schema-Test-Suite/.gitignore
|
123
|
-
- JSON-Schema-Test-Suite/.travis.yml
|
124
|
-
- JSON-Schema-Test-Suite/LICENSE
|
125
|
-
- JSON-Schema-Test-Suite/README.md
|
126
|
-
- JSON-Schema-Test-Suite/bin/jsonschema_suite
|
127
|
-
- JSON-Schema-Test-Suite/index.js
|
128
|
-
- JSON-Schema-Test-Suite/package.json
|
129
|
-
- JSON-Schema-Test-Suite/remotes/folder/folderInteger.json
|
130
|
-
- JSON-Schema-Test-Suite/remotes/integer.json
|
131
|
-
- JSON-Schema-Test-Suite/remotes/name-defs.json
|
132
|
-
- JSON-Schema-Test-Suite/remotes/name.json
|
133
|
-
- JSON-Schema-Test-Suite/remotes/subSchemas.json
|
134
|
-
- JSON-Schema-Test-Suite/test-schema.json
|
135
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/additionalItems.json
|
136
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/additionalProperties.json
|
137
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/allOf.json
|
138
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/anchor.json
|
139
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/anyOf.json
|
140
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/boolean_schema.json
|
141
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/const.json
|
142
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/contains.json
|
143
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/default.json
|
144
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/defs.json
|
145
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/dependencies.json
|
146
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/enum.json
|
147
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/exclusiveMaximum.json
|
148
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/exclusiveMinimum.json
|
149
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/format.json
|
150
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/if-then-else.json
|
151
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/items.json
|
152
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/maxItems.json
|
153
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/maxLength.json
|
154
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/maxProperties.json
|
155
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/maximum.json
|
156
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/minItems.json
|
157
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/minLength.json
|
158
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/minProperties.json
|
159
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/minimum.json
|
160
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/multipleOf.json
|
161
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/not.json
|
162
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/oneOf.json
|
163
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/optional/bignum.json
|
164
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/optional/content.json
|
165
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/optional/ecmascript-regex.json
|
166
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/optional/format/date-time.json
|
167
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/optional/format/date.json
|
168
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/optional/format/email.json
|
169
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/optional/format/hostname.json
|
170
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/optional/format/idn-email.json
|
171
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/optional/format/idn-hostname.json
|
172
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/optional/format/ipv4.json
|
173
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/optional/format/ipv6.json
|
174
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/optional/format/iri-reference.json
|
175
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/optional/format/iri.json
|
176
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/optional/format/json-pointer.json
|
177
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/optional/format/regex.json
|
178
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/optional/format/relative-json-pointer.json
|
179
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/optional/format/time.json
|
180
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/optional/format/uri-reference.json
|
181
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/optional/format/uri-template.json
|
182
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/optional/format/uri.json
|
183
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/optional/zeroTerminatedFloats.json
|
184
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/pattern.json
|
185
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/patternProperties.json
|
186
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/properties.json
|
187
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/propertyNames.json
|
188
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/ref.json
|
189
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/refRemote.json
|
190
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/required.json
|
191
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/type.json
|
192
|
-
- JSON-Schema-Test-Suite/tests/draft2019-09/uniqueItems.json
|
193
|
-
- JSON-Schema-Test-Suite/tests/draft3/additionalItems.json
|
194
|
-
- JSON-Schema-Test-Suite/tests/draft3/additionalProperties.json
|
195
|
-
- JSON-Schema-Test-Suite/tests/draft3/default.json
|
196
|
-
- JSON-Schema-Test-Suite/tests/draft3/dependencies.json
|
197
|
-
- JSON-Schema-Test-Suite/tests/draft3/disallow.json
|
198
|
-
- JSON-Schema-Test-Suite/tests/draft3/divisibleBy.json
|
199
|
-
- JSON-Schema-Test-Suite/tests/draft3/enum.json
|
200
|
-
- JSON-Schema-Test-Suite/tests/draft3/extends.json
|
201
|
-
- JSON-Schema-Test-Suite/tests/draft3/format.json
|
202
|
-
- JSON-Schema-Test-Suite/tests/draft3/items.json
|
203
|
-
- JSON-Schema-Test-Suite/tests/draft3/maxItems.json
|
204
|
-
- JSON-Schema-Test-Suite/tests/draft3/maxLength.json
|
205
|
-
- JSON-Schema-Test-Suite/tests/draft3/maximum.json
|
206
|
-
- JSON-Schema-Test-Suite/tests/draft3/minItems.json
|
207
|
-
- JSON-Schema-Test-Suite/tests/draft3/minLength.json
|
208
|
-
- JSON-Schema-Test-Suite/tests/draft3/minimum.json
|
209
|
-
- JSON-Schema-Test-Suite/tests/draft3/optional/bignum.json
|
210
|
-
- JSON-Schema-Test-Suite/tests/draft3/optional/ecmascript-regex.json
|
211
|
-
- JSON-Schema-Test-Suite/tests/draft3/optional/format.json
|
212
|
-
- JSON-Schema-Test-Suite/tests/draft3/optional/zeroTerminatedFloats.json
|
213
|
-
- JSON-Schema-Test-Suite/tests/draft3/pattern.json
|
214
|
-
- JSON-Schema-Test-Suite/tests/draft3/patternProperties.json
|
215
|
-
- JSON-Schema-Test-Suite/tests/draft3/properties.json
|
216
|
-
- JSON-Schema-Test-Suite/tests/draft3/ref.json
|
217
|
-
- JSON-Schema-Test-Suite/tests/draft3/refRemote.json
|
218
|
-
- JSON-Schema-Test-Suite/tests/draft3/required.json
|
219
|
-
- JSON-Schema-Test-Suite/tests/draft3/type.json
|
220
|
-
- JSON-Schema-Test-Suite/tests/draft3/uniqueItems.json
|
221
|
-
- JSON-Schema-Test-Suite/tests/draft4/additionalItems.json
|
222
|
-
- JSON-Schema-Test-Suite/tests/draft4/additionalProperties.json
|
223
|
-
- JSON-Schema-Test-Suite/tests/draft4/allOf.json
|
224
|
-
- JSON-Schema-Test-Suite/tests/draft4/anyOf.json
|
225
|
-
- JSON-Schema-Test-Suite/tests/draft4/default.json
|
226
|
-
- JSON-Schema-Test-Suite/tests/draft4/definitions.json
|
227
|
-
- JSON-Schema-Test-Suite/tests/draft4/dependencies.json
|
228
|
-
- JSON-Schema-Test-Suite/tests/draft4/enum.json
|
229
|
-
- JSON-Schema-Test-Suite/tests/draft4/format.json
|
230
|
-
- JSON-Schema-Test-Suite/tests/draft4/items.json
|
231
|
-
- JSON-Schema-Test-Suite/tests/draft4/maxItems.json
|
232
|
-
- JSON-Schema-Test-Suite/tests/draft4/maxLength.json
|
233
|
-
- JSON-Schema-Test-Suite/tests/draft4/maxProperties.json
|
234
|
-
- JSON-Schema-Test-Suite/tests/draft4/maximum.json
|
235
|
-
- JSON-Schema-Test-Suite/tests/draft4/minItems.json
|
236
|
-
- JSON-Schema-Test-Suite/tests/draft4/minLength.json
|
237
|
-
- JSON-Schema-Test-Suite/tests/draft4/minProperties.json
|
238
|
-
- JSON-Schema-Test-Suite/tests/draft4/minimum.json
|
239
|
-
- JSON-Schema-Test-Suite/tests/draft4/multipleOf.json
|
240
|
-
- JSON-Schema-Test-Suite/tests/draft4/not.json
|
241
|
-
- JSON-Schema-Test-Suite/tests/draft4/oneOf.json
|
242
|
-
- JSON-Schema-Test-Suite/tests/draft4/optional/bignum.json
|
243
|
-
- JSON-Schema-Test-Suite/tests/draft4/optional/ecmascript-regex.json
|
244
|
-
- JSON-Schema-Test-Suite/tests/draft4/optional/format.json
|
245
|
-
- JSON-Schema-Test-Suite/tests/draft4/optional/zeroTerminatedFloats.json
|
246
|
-
- JSON-Schema-Test-Suite/tests/draft4/pattern.json
|
247
|
-
- JSON-Schema-Test-Suite/tests/draft4/patternProperties.json
|
248
|
-
- JSON-Schema-Test-Suite/tests/draft4/properties.json
|
249
|
-
- JSON-Schema-Test-Suite/tests/draft4/ref.json
|
250
|
-
- JSON-Schema-Test-Suite/tests/draft4/refRemote.json
|
251
|
-
- JSON-Schema-Test-Suite/tests/draft4/required.json
|
252
|
-
- JSON-Schema-Test-Suite/tests/draft4/type.json
|
253
|
-
- JSON-Schema-Test-Suite/tests/draft4/uniqueItems.json
|
254
|
-
- JSON-Schema-Test-Suite/tests/draft6/additionalItems.json
|
255
|
-
- JSON-Schema-Test-Suite/tests/draft6/additionalProperties.json
|
256
|
-
- JSON-Schema-Test-Suite/tests/draft6/allOf.json
|
257
|
-
- JSON-Schema-Test-Suite/tests/draft6/anyOf.json
|
258
|
-
- JSON-Schema-Test-Suite/tests/draft6/boolean_schema.json
|
259
|
-
- JSON-Schema-Test-Suite/tests/draft6/const.json
|
260
|
-
- JSON-Schema-Test-Suite/tests/draft6/contains.json
|
261
|
-
- JSON-Schema-Test-Suite/tests/draft6/default.json
|
262
|
-
- JSON-Schema-Test-Suite/tests/draft6/definitions.json
|
263
|
-
- JSON-Schema-Test-Suite/tests/draft6/dependencies.json
|
264
|
-
- JSON-Schema-Test-Suite/tests/draft6/enum.json
|
265
|
-
- JSON-Schema-Test-Suite/tests/draft6/exclusiveMaximum.json
|
266
|
-
- JSON-Schema-Test-Suite/tests/draft6/exclusiveMinimum.json
|
267
|
-
- JSON-Schema-Test-Suite/tests/draft6/format.json
|
268
|
-
- JSON-Schema-Test-Suite/tests/draft6/items.json
|
269
|
-
- JSON-Schema-Test-Suite/tests/draft6/maxItems.json
|
270
|
-
- JSON-Schema-Test-Suite/tests/draft6/maxLength.json
|
271
|
-
- JSON-Schema-Test-Suite/tests/draft6/maxProperties.json
|
272
|
-
- JSON-Schema-Test-Suite/tests/draft6/maximum.json
|
273
|
-
- JSON-Schema-Test-Suite/tests/draft6/minItems.json
|
274
|
-
- JSON-Schema-Test-Suite/tests/draft6/minLength.json
|
275
|
-
- JSON-Schema-Test-Suite/tests/draft6/minProperties.json
|
276
|
-
- JSON-Schema-Test-Suite/tests/draft6/minimum.json
|
277
|
-
- JSON-Schema-Test-Suite/tests/draft6/multipleOf.json
|
278
|
-
- JSON-Schema-Test-Suite/tests/draft6/not.json
|
279
|
-
- JSON-Schema-Test-Suite/tests/draft6/oneOf.json
|
280
|
-
- JSON-Schema-Test-Suite/tests/draft6/optional/bignum.json
|
281
|
-
- JSON-Schema-Test-Suite/tests/draft6/optional/ecmascript-regex.json
|
282
|
-
- JSON-Schema-Test-Suite/tests/draft6/optional/format.json
|
283
|
-
- JSON-Schema-Test-Suite/tests/draft6/optional/zeroTerminatedFloats.json
|
284
|
-
- JSON-Schema-Test-Suite/tests/draft6/pattern.json
|
285
|
-
- JSON-Schema-Test-Suite/tests/draft6/patternProperties.json
|
286
|
-
- JSON-Schema-Test-Suite/tests/draft6/properties.json
|
287
|
-
- JSON-Schema-Test-Suite/tests/draft6/propertyNames.json
|
288
|
-
- JSON-Schema-Test-Suite/tests/draft6/ref.json
|
289
|
-
- JSON-Schema-Test-Suite/tests/draft6/refRemote.json
|
290
|
-
- JSON-Schema-Test-Suite/tests/draft6/required.json
|
291
|
-
- JSON-Schema-Test-Suite/tests/draft6/type.json
|
292
|
-
- JSON-Schema-Test-Suite/tests/draft6/uniqueItems.json
|
293
|
-
- JSON-Schema-Test-Suite/tests/draft7/additionalItems.json
|
294
|
-
- JSON-Schema-Test-Suite/tests/draft7/additionalProperties.json
|
295
|
-
- JSON-Schema-Test-Suite/tests/draft7/allOf.json
|
296
|
-
- JSON-Schema-Test-Suite/tests/draft7/anyOf.json
|
297
|
-
- JSON-Schema-Test-Suite/tests/draft7/boolean_schema.json
|
298
|
-
- JSON-Schema-Test-Suite/tests/draft7/const.json
|
299
|
-
- JSON-Schema-Test-Suite/tests/draft7/contains.json
|
300
|
-
- JSON-Schema-Test-Suite/tests/draft7/default.json
|
301
|
-
- JSON-Schema-Test-Suite/tests/draft7/definitions.json
|
302
|
-
- JSON-Schema-Test-Suite/tests/draft7/dependencies.json
|
303
|
-
- JSON-Schema-Test-Suite/tests/draft7/enum.json
|
304
|
-
- JSON-Schema-Test-Suite/tests/draft7/exclusiveMaximum.json
|
305
|
-
- JSON-Schema-Test-Suite/tests/draft7/exclusiveMinimum.json
|
306
|
-
- JSON-Schema-Test-Suite/tests/draft7/format.json
|
307
|
-
- JSON-Schema-Test-Suite/tests/draft7/if-then-else.json
|
308
|
-
- JSON-Schema-Test-Suite/tests/draft7/items.json
|
309
|
-
- JSON-Schema-Test-Suite/tests/draft7/maxItems.json
|
310
|
-
- JSON-Schema-Test-Suite/tests/draft7/maxLength.json
|
311
|
-
- JSON-Schema-Test-Suite/tests/draft7/maxProperties.json
|
312
|
-
- JSON-Schema-Test-Suite/tests/draft7/maximum.json
|
313
|
-
- JSON-Schema-Test-Suite/tests/draft7/minItems.json
|
314
|
-
- JSON-Schema-Test-Suite/tests/draft7/minLength.json
|
315
|
-
- JSON-Schema-Test-Suite/tests/draft7/minProperties.json
|
316
|
-
- JSON-Schema-Test-Suite/tests/draft7/minimum.json
|
317
|
-
- JSON-Schema-Test-Suite/tests/draft7/multipleOf.json
|
318
|
-
- JSON-Schema-Test-Suite/tests/draft7/not.json
|
319
|
-
- JSON-Schema-Test-Suite/tests/draft7/oneOf.json
|
320
|
-
- JSON-Schema-Test-Suite/tests/draft7/optional/bignum.json
|
321
|
-
- JSON-Schema-Test-Suite/tests/draft7/optional/content.json
|
322
|
-
- JSON-Schema-Test-Suite/tests/draft7/optional/ecmascript-regex.json
|
323
|
-
- JSON-Schema-Test-Suite/tests/draft7/optional/format/date-time.json
|
324
|
-
- JSON-Schema-Test-Suite/tests/draft7/optional/format/date.json
|
325
|
-
- JSON-Schema-Test-Suite/tests/draft7/optional/format/email.json
|
326
|
-
- JSON-Schema-Test-Suite/tests/draft7/optional/format/hostname.json
|
327
|
-
- JSON-Schema-Test-Suite/tests/draft7/optional/format/idn-email.json
|
328
|
-
- JSON-Schema-Test-Suite/tests/draft7/optional/format/idn-hostname.json
|
329
|
-
- JSON-Schema-Test-Suite/tests/draft7/optional/format/ipv4.json
|
330
|
-
- JSON-Schema-Test-Suite/tests/draft7/optional/format/ipv6.json
|
331
|
-
- JSON-Schema-Test-Suite/tests/draft7/optional/format/iri-reference.json
|
332
|
-
- JSON-Schema-Test-Suite/tests/draft7/optional/format/iri.json
|
333
|
-
- JSON-Schema-Test-Suite/tests/draft7/optional/format/json-pointer.json
|
334
|
-
- JSON-Schema-Test-Suite/tests/draft7/optional/format/regex.json
|
335
|
-
- JSON-Schema-Test-Suite/tests/draft7/optional/format/relative-json-pointer.json
|
336
|
-
- JSON-Schema-Test-Suite/tests/draft7/optional/format/time.json
|
337
|
-
- JSON-Schema-Test-Suite/tests/draft7/optional/format/uri-reference.json
|
338
|
-
- JSON-Schema-Test-Suite/tests/draft7/optional/format/uri-template.json
|
339
|
-
- JSON-Schema-Test-Suite/tests/draft7/optional/format/uri.json
|
340
|
-
- JSON-Schema-Test-Suite/tests/draft7/optional/zeroTerminatedFloats.json
|
341
|
-
- JSON-Schema-Test-Suite/tests/draft7/pattern.json
|
342
|
-
- JSON-Schema-Test-Suite/tests/draft7/patternProperties.json
|
343
|
-
- JSON-Schema-Test-Suite/tests/draft7/properties.json
|
344
|
-
- JSON-Schema-Test-Suite/tests/draft7/propertyNames.json
|
345
|
-
- JSON-Schema-Test-Suite/tests/draft7/ref.json
|
346
|
-
- JSON-Schema-Test-Suite/tests/draft7/refRemote.json
|
347
|
-
- JSON-Schema-Test-Suite/tests/draft7/required.json
|
348
|
-
- JSON-Schema-Test-Suite/tests/draft7/type.json
|
349
|
-
- JSON-Schema-Test-Suite/tests/draft7/uniqueItems.json
|
350
|
-
- JSON-Schema-Test-Suite/tests/latest
|
351
|
-
- JSON-Schema-Test-Suite/tox.ini
|
352
122
|
- LICENSE.txt
|
353
123
|
- README.md
|
354
124
|
- Rakefile
|
@@ -357,6 +127,7 @@ files:
|
|
357
127
|
- json_schemer.gemspec
|
358
128
|
- lib/json_schemer.rb
|
359
129
|
- lib/json_schemer/cached_ref_resolver.rb
|
130
|
+
- lib/json_schemer/errors.rb
|
360
131
|
- lib/json_schemer/format.rb
|
361
132
|
- lib/json_schemer/schema/base.rb
|
362
133
|
- lib/json_schemer/schema/draft4.rb
|