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

[trivial] better nesting

parent dbb15541
Branches
Tags
No related merge requests found
...@@ -68,8 +68,6 @@ This is an array of arrays ...@@ -68,8 +68,6 @@ This is an array of arrays
Nested array type: `array` Nested array type: `array`
All items must be of the type:
Array type: `array`
...@@ -94,10 +92,9 @@ This is an array of arrays of strings ...@@ -94,10 +92,9 @@ 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[]`
All items must be of the type:
`string` `string`
...@@ -202,10 +199,9 @@ This is an array of coordinates in three-dimensional space. ...@@ -202,10 +199,9 @@ 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[]`
All items must be of the type:
`number` `number`
* minimum value: `0` * minimum value: `0`
* maximum value: `10` * maximum value: `10`
......
...@@ -6,11 +6,11 @@ ...@@ -6,11 +6,11 @@
*/ %> */ %>
<% if (schema.items!==undefined&&schema.items.type==="array") { %> <% if (schema.items!==undefined&&schema.items.type==="array") { %>
Nested array type: <%=schema.items.simpletype %> Nested array type: <%=schema.items.simpletype %>
<% } else { %> <% } else if (nested===undefined||nested===false) { %>
Array type: <%=schema.simpletype %> Array type: <%=schema.simpletype %>
<% } %> <% } %>
<% if (schema.items!==undefined) { %> <% if (schema.items!==undefined) { %>
<% if (nested===false) { %> <% if (!(schema.items!==undefined&&schema.items.type==="array")) { %>
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,_:_})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment