Sha256: 8452ac7b48df9e41c07696416c0ccce6301237479d16bb4b5611b38f46735d88

Contents?: true

Size: 272 Bytes

Versions: 21

Compression:

Stored size: 272 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, property: name)
        end
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
fakeit-0.11.0 lib/fakeit/openapi/example/object_example.rb
fakeit-0.10.0 lib/fakeit/openapi/example/object_example.rb
fakeit-0.9.2 lib/fakeit/openapi/example/object_example.rb
fakeit-0.9.1 lib/fakeit/openapi/example/object_example.rb
fakeit-0.9.0 lib/fakeit/openapi/example/object_example.rb
fakeit-0.8.1 lib/fakeit/openapi/example/object_example.rb
fakeit-0.8.0 lib/fakeit/openapi/example/object_example.rb
fakeit-0.7.1 lib/fakeit/openapi/example/object_example.rb
fakeit-0.7.0 lib/fakeit/openapi/example/object_example.rb
fakeit-0.6.3 lib/fakeit/openapi/example/object_example.rb
fakeit-0.6.2 lib/fakeit/openapi/example/object_example.rb
fakeit-0.6.1 lib/fakeit/openapi/example/object_example.rb
fakeit-0.6.0 lib/fakeit/openapi/example/object_example.rb
fakeit-0.5.3 lib/fakeit/openapi/example/object_example.rb
fakeit-0.5.2 lib/fakeit/openapi/example/object_example.rb
fakeit-0.5.1 lib/fakeit/openapi/example/object_example.rb
fakeit-0.5.0 lib/fakeit/openapi/example/object_example.rb
fakeit-0.4.2 lib/fakeit/openapi/example/object_example.rb
fakeit-0.4.1 lib/fakeit/openapi/example/object_example.rb
fakeit-0.4.0 lib/fakeit/openapi/example/object_example.rb