Skip to content
Snippets Groups Projects
Commit dbb15541 authored by Lars Trieloff's avatar Lars Trieloff
Browse files

[trivial] preview nesting

parent 07aa73a8
No related branches found
No related tags found
No related merge requests found
...@@ -68,7 +68,7 @@ This is an array of arrays ...@@ -68,7 +68,7 @@ This is an array of arrays
Nested array type: `array` Nested array type: `array`
All items must be of the type:
Array type: `array` Array type: `array`
...@@ -94,10 +94,10 @@ This is an array of arrays of strings ...@@ -94,10 +94,10 @@ This is an array of arrays of strings
Nested array type: `string[]` Nested array type: `string[]`
All items must be of the type:
Array type: `string[]` Array type: `string[]`
All items must be of the type:
`string` `string`
...@@ -202,10 +202,10 @@ This is an array of coordinates in three-dimensional space. ...@@ -202,10 +202,10 @@ This is an array of coordinates in three-dimensional space.
Nested array type: `number[]` Nested array type: `number[]`
All items must be of the type:
Array type: `number[]` Array type: `number[]`
All items must be of the type:
`number` `number`
* minimum value: `0` * minimum value: `0`
* maximum value: `10` * maximum value: `10`
... ...
......
...@@ -10,7 +10,7 @@ Nested array type: <%=schema.items.simpletype %> ...@@ -10,7 +10,7 @@ Nested array type: <%=schema.items.simpletype %>
Array type: <%=schema.simpletype %> Array type: <%=schema.simpletype %>
<% } %> <% } %>
<% if (schema.items!==undefined) { %> <% if (schema.items!==undefined) { %>
<% if (!nested) { %> <% if (nested===false) { %>
All items must be of the type:<% } All items must be of the type:<% }
if (schema.items.type==="string") { if (schema.items.type==="string") {
%><%- include("string-type",{schema:schema.items,_:_}) %><%- include("string-type",{schema:schema.items,_:_})
... ...
......
...@@ -42,7 +42,7 @@ The value of this property **must** be equal to one of the [known values below]( ...@@ -42,7 +42,7 @@ The value of this property **must** be equal to one of the [known values below](
<% } else if (schema.type==="boolean") { %> <% } else if (schema.type==="boolean") { %>
<%- include("boolean-type",{schema:schema,_:_}) %> <%- include("boolean-type",{schema:schema,_:_}) %>
<% } else if (schema.type==="array") { %> <% } else if (schema.type==="array") { %>
<%- include("array-type",{schema:schema,_:_}) %> <%- include("array-type",{schema:schema,_:_,nested:false}) %>
<% } else { %> <% } else { %>
Unknown type `<%= schema.type %>`. Unknown type `<%= schema.type %>`.
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment