Sha256: b07c0580ef6f845f9c9a142899a9ef724406f9ea83048b5191fadeb4d82d8c28

Contents?: true

Size: 281 Bytes

Versions: 5

Compression:

Stored size: 281 Bytes

Contents

require "json"
require "regexp-examples"

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-1.1.3 lib/json_test_data.rb
json_test_data-1.1.2 lib/json_test_data.rb
json_test_data-1.1.1 lib/json_test_data.rb
json_test_data-1.1.0 lib/json_test_data.rb
json_test_data-1.0.0 lib/json_test_data.rb