lib/json_schema/schema.rb in json_schema-0.0.18 vs lib/json_schema/schema.rb in json_schema-0.0.19
- old
+ new
@@ -196,20 +196,20 @@
@@copyable.each do |copyable|
instance_variable_set(copyable, schema.instance_variable_get(copyable))
end
end
- def expand_references
+ def expand_references(options = {})
expander = ReferenceExpander.new
- if expander.expand(self)
+ if expander.expand(self, options)
[true, nil]
else
[false, expander.errors]
end
end
- def expand_references!
- ReferenceExpander.new.expand!(self)
+ def expand_references!(options = {})
+ ReferenceExpander.new.expand!(self, options)
true
end
def inspect
str = inspect_schema