From dbb1554135e3df7310bbff33668124e263672f3c Mon Sep 17 00:00:00 2001
From: Lars Trieloff <trieloff@adobe.com>
Date: Thu, 14 Dec 2017 15:53:12 +0000
Subject: [PATCH] [trivial] preview nesting

---
 examples/docs/arrays.schema.md | 10 +++++-----
 templates/md/array-type.ejs    |  2 +-
 templates/md/property.ejs      |  2 +-
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/examples/docs/arrays.schema.md b/examples/docs/arrays.schema.md
index 8b8c786..38387fe 100644
--- a/examples/docs/arrays.schema.md
+++ b/examples/docs/arrays.schema.md
@@ -68,7 +68,7 @@ This is an array of arrays
 
 Nested array type: `array`
 
-
+All items must be of the type:
 Array type: `array`
 
 
@@ -94,10 +94,10 @@ This is an array of arrays of strings
 
 Nested array type: `string[]`
 
-
+All items must be of the type:
 Array type: `string[]`
 
-All items must be of the type:
+
 `string`
 
 
@@ -202,10 +202,10 @@ This is an array of coordinates in three-dimensional space.
 
 Nested array type: `number[]`
 
-
+All items must be of the type:
 Array type: `number[]`
 
-All items must be of the type:
+
 `number`
 * minimum value: `0`
 * maximum value: `10`
diff --git a/templates/md/array-type.ejs b/templates/md/array-type.ejs
index be72810..8eaff21 100644
--- a/templates/md/array-type.ejs
+++ b/templates/md/array-type.ejs
@@ -10,7 +10,7 @@ Nested array type: <%=schema.items.simpletype %>
 Array type: <%=schema.simpletype %>
 <% } %>
 <% if (schema.items!==undefined) { %>
-<% if (!nested) { %>
+<% if (nested===false) { %>
 All items must be of the type:<% }
 if (schema.items.type==="string") { 
   %><%- include("string-type",{schema:schema.items,_:_}) 
diff --git a/templates/md/property.ejs b/templates/md/property.ejs
index 41e588d..a3697c5 100644
--- a/templates/md/property.ejs
+++ b/templates/md/property.ejs
@@ -42,7 +42,7 @@ The value of this property **must** be equal to one of the [known values below](
 <% } else if (schema.type==="boolean") { %>
 <%- include("boolean-type",{schema:schema,_:_}) %>
 <% } else if (schema.type==="array") { %>
-<%- include("array-type",{schema:schema,_:_}) %>
+<%- include("array-type",{schema:schema,_:_,nested:false}) %>
 <% } else { %>
 Unknown type `<%= schema.type %>`.
 
-- 
GitLab