lib/fakeit/openapi/example/object_example.rb in fakeit-0.2.1 vs lib/fakeit/openapi/example/object_example.rb in fakeit-0.3.0

- old
+ new

@@ -1,9 +1,11 @@ module Fakeit module Openapi module Example def object_example(example_options) - properties.each_with_object({}) { |(name, schema), obj| obj[name] = schema.to_example(example_options) } + properties.each_with_object({}) do |(name, schema), obj| + obj[name] = schema.to_example(example_options.merge(property: name)) + end end end end end