json_schema 0.0.18 → 0.0.19

Sign up to get free protection for your applications and to get access to all the features.
@@ -198,17 +198,17 @@ module JsonSchema
198
198
  end
199
199
  end
200
200
 
201
- def expand_references
201
+ def expand_references(options = {})
202
202
  expander = ReferenceExpander.new
203
- if expander.expand(self)
203
+ if expander.expand(self, options)
204
204
  [true, nil]
205
205
  else
206
206
  [false, expander.errors]
207
207
  end
208
208
  end
209
209
 
210
- def expand_references!
211
- ReferenceExpander.new.expand!(self)
210
+ def expand_references!(options = {})
211
+ ReferenceExpander.new.expand!(self, options)
212
212
  true
213
213
  end
214
214
 
data/lib/json_schema.rb CHANGED
@@ -25,4 +25,7 @@ module JsonSchema
25
25
  schema.expand_references!
26
26
  schema
27
27
  end
28
+
29
+ def self.validate(schema, data)
30
+ end
28
31
  end
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.18
4
+ version: 0.0.19
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: