diff --git a/examples/docs/arrays.schema.md b/examples/docs/arrays.schema.md index 8b8c786da93349a8ec6a02f2b4e7d1687e2bdc88..38387fee20c706fdd0386ab8e083c09676bbbb9f 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 be728108edfadbb236681ca0768121df0e71e09e..8eaff21eb494cb0df59395ceba45e0ccb00cd605 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 41e588d8929a970b2b39933e61894d27aef7ab98..a3697c511f17983b0228608dd92de035c9b016ed 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 %>`.