json_schema 0.0.7 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +9 -0
- data/bin/validate-schema +37 -0
- data/lib/commands/validate_schema.rb +102 -0
- data/lib/json_reference.rb +18 -2
- data/lib/json_schema.rb +1 -0
- data/lib/json_schema/document_store.rb +48 -0
- data/lib/json_schema/parser.rb +36 -14
- data/lib/json_schema/reference_expander.rb +128 -77
- data/lib/json_schema/schema.rb +140 -8
- data/lib/json_schema/validator.rb +22 -7
- data/schemas/hyper-schema.json +168 -0
- data/schemas/schema.json +150 -0
- data/test/commands/validate_schema_test.rb +103 -0
- data/test/json_reference/reference_test.rb +45 -0
- data/test/json_schema/parser_test.rb +18 -1
- data/test/json_schema/reference_expander_test.rb +81 -39
- data/test/json_schema/validator_test.rb +60 -4
- metadata +11 -3
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: json_schema
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,27 +9,35 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-05-
|
12
|
+
date: 2014-05-21 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description:
|
15
15
|
email:
|
16
16
|
- brandur@mutelight.org
|
17
|
-
executables:
|
17
|
+
executables:
|
18
|
+
- validate-schema
|
18
19
|
extensions: []
|
19
20
|
extra_rdoc_files: []
|
20
21
|
files:
|
21
22
|
- README.md
|
23
|
+
- bin/validate-schema
|
24
|
+
- schemas/hyper-schema.json
|
25
|
+
- schemas/schema.json
|
26
|
+
- lib/commands/validate_schema.rb
|
22
27
|
- lib/json_pointer/evaluator.rb
|
23
28
|
- lib/json_pointer.rb
|
24
29
|
- lib/json_reference.rb
|
30
|
+
- lib/json_schema/document_store.rb
|
25
31
|
- lib/json_schema/parser.rb
|
26
32
|
- lib/json_schema/reference_expander.rb
|
27
33
|
- lib/json_schema/schema.rb
|
28
34
|
- lib/json_schema/schema_error.rb
|
29
35
|
- lib/json_schema/validator.rb
|
30
36
|
- lib/json_schema.rb
|
37
|
+
- test/commands/validate_schema_test.rb
|
31
38
|
- test/data_scaffold.rb
|
32
39
|
- test/json_pointer/evaluator_test.rb
|
40
|
+
- test/json_reference/reference_test.rb
|
33
41
|
- test/json_schema/parser_test.rb
|
34
42
|
- test/json_schema/reference_expander_test.rb
|
35
43
|
- test/json_schema/validator_test.rb
|