Sha256: 5111538d2357e73b41ea9dfd8eaa059a36c0932548c819fbf4d474465ac2f566

Contents?: true

Size: 273 Bytes

Versions: 5

Compression:

Stored size: 273 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, symbolize_names: true) : schema
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
json_test_data-0.8.0 lib/json_test_data.rb
json_test_data-0.7.0 lib/json_test_data.rb
json_test_data-0.6.0 lib/json_test_data.rb
json_test_data-0.5.1 lib/json_test_data.rb
json_test_data-0.5.0 lib/json_test_data.rb