From 31c2812631b37fbdc5ab02813fc4621cf1931a34 Mon Sep 17 00:00:00 2001 From: Raiyan Kamal Date: Sat, 18 Jun 2016 08:05:38 -0400 Subject: [PATCH] Documented max, min options of Number type --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 16a95b3..341ba68 100644 --- a/README.md +++ b/README.md @@ -151,13 +151,20 @@ Returns a random object created from [SimpleSchema](http://github.com/aldeed/met }, available: { type: Boolean + }, + price: { + type: Number, + max: 100, + min: 25 } }); var fakeDoc = Fake.simpleSchemaDoc(BookSchema); - // { "title": "Tendy Orbiter", "pages": 112, "available": true } + // { "title": "Tendy Orbiter", "pages": 112, "available": true, "price": 42 } Only `Number`, `String` and `Boolean` type fields are supported at the moment. +The `max` and `min` options are respected for `Number` type. + ## History This package is forked from `anti:fake`. I forked it and added some modifications to support simple schema docs generation.