lib/json_schemer/keyword.rb in json_schemer-2.1.1 vs lib/json_schemer/keyword.rb in json_schemer-2.2.0
- old
+ new
@@ -43,11 +43,14 @@
def parse
value
end
def subschema(value, keyword = nil, **options)
+ options[:configuration] ||= schema.configuration
options[:base_uri] ||= schema.base_uri
options[:meta_schema] ||= schema.meta_schema
+ options[:ref_resolver] ||= schema.ref_resolver
+ options[:regexp_resolver] ||= schema.regexp_resolver
Schema.new(value, self, root, keyword, **options)
end
end
end