Sha256: f479b7d760cd1bde56e3ae50587b2a24cf1ff1e25638e273ce11bdbdaacbdbbd

Contents?: true

Size: 269 Bytes

Versions: 1

Compression:

Stored size: 269 Bytes

Contents

module Fakeit
  module Openapi
    module Example
      MAX_SIZE = 50

      def array_example(use_example)
        Array.new(Faker::Number.between(minItems || 1, maxItems || MAX_SIZE)) do
          items.to_example(use_example)
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fakeit-0.1.2 lib/fakeit/openapi/example/array_example.rb