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

[trivial] nested array formatting

parent 6898d93b
Branches
Tags
No related merge requests found
......@@ -39,7 +39,7 @@ This is an array
### list Type
Array type: `string[]`.
Array type: `string[]`
All items must be of the type:
`string`
......@@ -64,12 +64,10 @@ This is an array of arrays
### listlist Type
Array type: `array[]`.
Array type: `array[]`
All items must be of the type:
Nesting alarm!
Array type: `array`.
Array type: `array`
......@@ -90,12 +88,10 @@ This is an array of arrays of strings
### stringlistlist Type
Array type: `string[][]`.
Array type: `string[][]`
All items must be of the type:
Nesting alarm!
Array type: `string[]`.
Array type: `string[]`
All items must be of the type:
`string`
......@@ -122,7 +118,7 @@ This is an array
### intlist Type
Array type: `integer[]`.
Array type: `integer[]`
All items must be of the type:
`integer`
......@@ -147,7 +143,7 @@ This is an array
### boollist Type
Array type: `boolean[]`.
Array type: `boolean[]`
All items must be of the type:
`boolean`
......@@ -170,7 +166,7 @@ This is an array
### numlist Type
Array type: `number[]`.
Array type: `number[]`
All items must be of the type:
`number`
......
......@@ -5,7 +5,7 @@
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*/ %>
Array type: <%=schema.simpletype %>.
Array type: <%=schema.simpletype %>
<% if (schema.items!==undefined) { %>
All items must be of the type:<%
......@@ -15,9 +15,8 @@ if (schema.items.type==="string") {
%><%- include("number-type",{schema:schema.items,_:_})
%><% } else if (schema.items.type==="boolean") {
%><%- include("boolean-type",{schema:schema.items,_:_})
%><% } else if (schema.items.type==="array") { %>
Nesting alarm!
<%- include("array-type",{schema:schema.items,_:_}) %>
%><% } else if (schema.items.type==="array") {
%><%- include("array-type",{schema:schema.items,_:_}) %>
<% } else { %>
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