From dde60b4708a6876241c2dfc41d63c051a74c5a9a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Alvaro=20Cabrera=20Dur=C3=A1n?= <pateketrueke@gmail.com>
Date: Thu, 10 Oct 2019 10:02:30 -0500
Subject: [PATCH] Increase generation of referenced schemas

---
 src/core/run.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/core/run.js b/src/core/run.js
index 964ede10..7780d5ad 100644
--- a/src/core/run.js
+++ b/src/core/run.js
@@ -138,7 +138,7 @@ function run(refs, schema, container) {
           if (parentSchema.required.includes(index)) return sub;
         }
 
-        if (sub.$ref === '#' || (++depth > random.number(0, 1))) {
+        if (sub.$ref === '#' || (++depth > random.number(1, 2))) {
           delete sub.$ref;
           return sub;
         }
-- 
GitLab