README.md in json_test_data-0.3.0.beta vs README.md in json_test_data-0.4.0.beta
- old
+ new
@@ -10,10 +10,14 @@
```ruby
gem "json_test_data", "~> 0.0.1"
```
To use it, first require it, then generate the test data using:
```ruby
-data = JsonTestData.generate!
+data = JsonTestData.generate!(schema)
+```
+If you would prefer to return a Ruby object instead of a JSON object, simply include the `:ruby` option:
+```ruby
+data = JsonTestData.generate!(schema, ruby: true)
```
The input that you put into it must be valid [JSON schema](http://json-schema.org). The top-level object must have a `:type` key indicating the type of object to be generated ("object", "array", "string", etc.).
## Contribute