lib/fakeit/openapi/example/object_example.rb in fakeit-0.3.0 vs lib/fakeit/openapi/example/object_example.rb in fakeit-0.3.1
- old
+ new
@@ -1,10 +1,10 @@
module Fakeit
module Openapi
module Example
def object_example(example_options)
properties.each_with_object({}) do |(name, schema), obj|
- obj[name] = schema.to_example(example_options.merge(property: name))
+ obj[name] = schema.to_example(**example_options, property: name)
end
end
end
end
end