Sha256: 7a50fa0c172a458e0995af666b5f6226c8e4f5546c00fed3bd3e4cbd7b5a8ae5
Contents?: true
Size: 281 Bytes
Versions: 1
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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
json_test_data-0.9.0 | lib/json_test_data.rb |