Sha256: a75a36cf375ff7022dcffa357ddbcef7b78064474e69f138d03b63f6f8510f41

Contents?: true

Size: 297 Bytes

Versions: 1

Compression:

Stored size: 297 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, opts[:handler]).generate_example
    opts[:ruby] ? JSON.parse(schema, symbolize_names: true) : schema
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
json_test_data-1.2.0 lib/json_test_data.rb