json-schema 0.2.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.textile +25 -4
- data/lib/json-schema.rb +2 -1
- data/lib/json-schema/attributes/maxdecimal.rb +15 -0
- data/lib/json-schema/attributes/maximum_inclusive.rb +16 -0
- data/lib/json-schema/attributes/minimum_inclusive.rb +16 -0
- data/lib/json-schema/attributes/properties_optional.rb +23 -0
- data/lib/json-schema/uri/uuid.rb +387 -0
- data/lib/json-schema/validator.rb +28 -9
- data/lib/json-schema/validators/draft1.rb +32 -0
- data/lib/json-schema/validators/draft2.rb +33 -0
- data/test/test_jsonschema_draft1.rb +760 -0
- data/test/test_jsonschema_draft2.rb +832 -0
- metadata +15 -4
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: json-schema
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 59
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
8
|
+
- 9
|
9
9
|
- 0
|
10
|
-
version: 0.
|
10
|
+
version: 0.9.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Kenny Hoxworth
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-03-
|
18
|
+
date: 2011-03-19 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|
@@ -37,26 +37,35 @@ files:
|
|
37
37
|
- lib/json-schema/attributes/extends.rb
|
38
38
|
- lib/json-schema/attributes/format.rb
|
39
39
|
- lib/json-schema/attributes/items.rb
|
40
|
+
- lib/json-schema/attributes/maxdecimal.rb
|
40
41
|
- lib/json-schema/attributes/maximum.rb
|
42
|
+
- lib/json-schema/attributes/maximum_inclusive.rb
|
41
43
|
- lib/json-schema/attributes/maxitems.rb
|
42
44
|
- lib/json-schema/attributes/maxlength.rb
|
43
45
|
- lib/json-schema/attributes/minimum.rb
|
46
|
+
- lib/json-schema/attributes/minimum_inclusive.rb
|
44
47
|
- lib/json-schema/attributes/minitems.rb
|
45
48
|
- lib/json-schema/attributes/minlength.rb
|
46
49
|
- lib/json-schema/attributes/pattern.rb
|
47
50
|
- lib/json-schema/attributes/patternproperties.rb
|
48
51
|
- lib/json-schema/attributes/properties.rb
|
52
|
+
- lib/json-schema/attributes/properties_optional.rb
|
49
53
|
- lib/json-schema/attributes/ref.rb
|
50
54
|
- lib/json-schema/attributes/type.rb
|
51
55
|
- lib/json-schema/attributes/uniqueitems.rb
|
52
56
|
- lib/json-schema/schema.rb
|
53
57
|
- lib/json-schema/uri/file.rb
|
58
|
+
- lib/json-schema/uri/uuid.rb
|
54
59
|
- lib/json-schema/validator.rb
|
60
|
+
- lib/json-schema/validators/draft1.rb
|
61
|
+
- lib/json-schema/validators/draft2.rb
|
55
62
|
- lib/json-schema/validators/draft3.rb
|
56
63
|
- lib/json-schema.rb
|
57
64
|
- README.textile
|
58
65
|
- test/test_extended_schema.rb
|
59
66
|
- test/test_files.rb
|
67
|
+
- test/test_jsonschema_draft1.rb
|
68
|
+
- test/test_jsonschema_draft2.rb
|
60
69
|
- test/test_jsonschema_draft3.rb
|
61
70
|
has_rdoc: true
|
62
71
|
homepage: http://github.com/hoxworth/json-schema/tree/master
|
@@ -95,4 +104,6 @@ summary: Ruby JSON Schema Validator
|
|
95
104
|
test_files:
|
96
105
|
- test/test_extended_schema.rb
|
97
106
|
- test/test_files.rb
|
107
|
+
- test/test_jsonschema_draft1.rb
|
108
|
+
- test/test_jsonschema_draft2.rb
|
98
109
|
- test/test_jsonschema_draft3.rb
|