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