Sha256: d394066912e27ec9160d09799e309fe5fc5a423a37c3b163d40337f0ee549d67

Contents?: true

Size: 276 Bytes

Versions: 1

Compression:

Stored size: 276 Bytes

Contents

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))
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fakeit-0.3.0 lib/fakeit/openapi/example/object_example.rb