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

[trivial] nested array formatting

parent 41b34d24
No related branches found
No related tags found
No related merge requests found
...@@ -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 (!(schema.items!==undefined&&schema.items.type==="array")) { %> <% if (!nested) { %>
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,_:_})
...@@ -19,7 +19,7 @@ if (schema.items.type==="string") { ...@@ -19,7 +19,7 @@ if (schema.items.type==="string") {
%><% } else if (schema.items.type==="boolean") { %><% } else if (schema.items.type==="boolean") {
%><%- include("boolean-type",{schema:schema.items,_:_}) %><%- include("boolean-type",{schema:schema.items,_:_})
%><% } else if (schema.items.type==="array") { %><% } else if (schema.items.type==="array") {
%><%- include("array-type",{schema:schema.items,_:_}) %> %><%- include("array-type",{schema:schema.items,_:_, nested:true}) %>
<% } 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 register or to comment