JustinFeng/fakeit

View on GitHub
lib/fakeit/openapi/example/object_example.rb

Summary

Maintainability
A
0 mins
Test Coverage
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, property: name)
        end
      end
    end
  end
end