Sha256: c34301fad3987cafe801fb14323d25f279347381e2e14f4568ab5976b3d7995f

Contents?: true

Size: 250 Bytes

Versions: 2

Compression:

Stored size: 250 Bytes

Contents

require 'json'
require 'regxing'

require_relative './json_test_data/json_schema'

module JsonTestData
  def self.generate!(schema, opts={})
    schema = JsonSchema.new(schema).generate_example
    opts[:ruby] ? JSON.parse(schema) : schema
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
json_test_data-0.4.0 lib/json_test_data.rb
json_test_data-0.4.0.beta lib/json_test_data.rb