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.
- data/lib/json_schema/schema.rb +4 -4
- data/lib/json_schema.rb +3 -0
- metadata +1 -1
data/lib/json_schema/schema.rb
CHANGED
@@ -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