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

[trivial] point out nested arrays

parent 56298412
Branches
Tags
No related merge requests found
......@@ -62,7 +62,7 @@ This is an array of arrays
`listlist`
* is optional
* type: `array[]`
* type: `array[]` (nested array)
* defined in this schema
......@@ -92,7 +92,7 @@ This is an array of arrays of strings
`stringlistlist`
* is optional
* type: `string[][]`
* type: `string[][]` (nested array)
* defined in this schema
......
......@@ -19,15 +19,15 @@ This is an example schema with *multiple* examples. Too many examples? There can
```json
{
"foo": "bi",
"bar": "bu"
"foo": "zip",
"bar": "zap"
}
```
```json
{
"foo": "zip",
"bar": "zap"
"foo": "bi",
"bar": "bu"
}
```
......
......@@ -31,13 +31,13 @@
"bar"
],
"examples": [
{
"foo": "bi",
"bar": "bu"
},
{
"foo": "zip",
"bar": "zap"
},
{
"foo": "bi",
"bar": "bu"
}
]
}
\ No newline at end of file
......@@ -14,7 +14,7 @@
`<%=name %>`
* is <% if (required) { %>**required**<% } else { %>optional<% } %>
* type: <%=schema.simpletype %><% if (schema.type==='array') { %>
* type: <%=schema.simpletype %><% if (schema.simpletype.match(/\[\]\[\]/)||schema.simpletype==="`array[]`") { %> (nested array)<% } %><% if (schema.type==='array') { %>
<% if (schema.maxItems!==undefined&&schema.minItems!==undefined) { %>* between `<%=schema.minItems %>` and `<%=schema.maxItems %>` items in the array<% }
else if (schema.maxItems!==undefined ) { %>* no more than `<%=schema.maxItems %>` items in the array<% }
else if (schema.minItems!==undefined ) { %>* at least `<%=schema.minItems %>` items in the array<% } %>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment