From 3edef78e78bb217422920a56c82488a04111afc2 Mon Sep 17 00:00:00 2001 From: Alvaro Cabrera <pateketrueke@gmail.com> Date: Wed, 13 May 2015 09:46:42 -0500 Subject: [PATCH] Improved range logic for random() calls; fixes #30 --- lib/util/random.js | Bin 1466 -> 1542 bytes spec/core/issues/minmax.json | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 spec/core/issues/minmax.json diff --git a/lib/util/random.js b/lib/util/random.js index 1d7404554b592d522833b407141d7f84f18fa03d..cf9542ddbd29329b59691de190bc6d0518604160 100644 GIT binary patch delta 63 zcmdnR-Nv(ljfo{QO+jO_J(IMinwmmxW}bqbLP~0yZ(@a}LN%9yf&!GMplu71wdPV# LsNKxOw1XJ{710pM delta 12 TcmZqU*~PtqjcIcb(-vj`8f^p4 diff --git a/spec/core/issues/minmax.json b/spec/core/issues/minmax.json new file mode 100644 index 00000000..9b294306 --- /dev/null +++ b/spec/core/issues/minmax.json @@ -0,0 +1,18 @@ +[ + { + "description": "min/max constraints", + "tests": [ + { + "description": "should allow minItems > 5", + "schema": { + "type": "array", + "minItems": 10, + "items": { + "type": "string" + } + }, + "valid": true + } + ] + } +] -- GitLab