Newer
Older
---
template: reference
foo: bar
---
# Arrays Schema
```
https://example.com/schemas/arrays
```
This is an example schema with examples for multiple array types and their constraints.
| Abstract | Extensible | Custom Properties | Defined In |
|----------|------------|-------------------|------------|
| Can be instantiated | No | Forbidden | [arrays.schema.json](arrays.schema.json) |
# Arrays Properties
| Property | Type | Required | Defined by |
|----------|------|----------|------------|
| [list](#list) | `string[]` | Optional | Arrays (this schema) |
| [listlist](#listlist) | `array[]` | Optional | Arrays (this schema) |
| [stringlistlist](#stringlistlist) | `string[][]` | Optional | Arrays (this schema) |
| [intlist](#intlist) | `integer[]` | Optional | Arrays (this schema) |
| [boollist](#boollist) | `boolean[]` | Optional | Arrays (this schema) |
| [numlist](#numlist) | `number[]` | Optional | Arrays (this schema) |
## list
This is an array
`list`
* is optional
* type: `string[]`
* defined in this schema
### list Type
Unknown type `array`.
```json
{
"type": "array",
"description": "This is an array",
"items": {
"type": "string",
"simpletype": "`string`"
},
"simpletype": "`string[]`"
}
```
## listlist
This is an array of arrays
`listlist`
* is optional
* defined in this schema
### listlist Type
Unknown type `array`.
```json
{
"type": "array",
"description": "This is an array of arrays",
"items": {
"type": "array",
"simpletype": "`array`"
},
"simpletype": "`array[]`"
}
```
## stringlistlist
This is an array of arrays of strings
`stringlistlist`
* is optional
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
* defined in this schema
### stringlistlist Type
Unknown type `array`.
```json
{
"type": "array",
"description": "This is an array of arrays of strings",
"items": {
"type": "array",
"items": {
"type": "string",
"simpletype": "`string`"
},
"simpletype": "`string[]`"
},
"simpletype": "`string[][]`"
}
```
## intlist
This is an array
`intlist`
* is optional
* type: `integer[]`
* defined in this schema
### intlist Type
Unknown type `array`.
```json
{
"type": "array",
"description": "This is an array",
"items": {
"type": "integer",
"simpletype": "`integer`"
},
"simpletype": "`integer[]`"
}
```
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
## boollist
This is an array
`boollist`
* is optional
* type: `boolean[]`
* at least `1` items in the array
* defined in this schema
### boollist Type
Unknown type `array`.
```json
{
"type": "array",
"description": "This is an array",
"items": {
"type": "boolean",
"simpletype": "`boolean`"
},
"minItems": 1,
"simpletype": "`boolean[]`"
}
```
## numlist
This is an array
`numlist`
* is optional
* type: `number[]`
* no more than `10` items in the array
* defined in this schema
### numlist Type
Unknown type `array`.
```json
{
"type": "array",
"description": "This is an array",
"items": {
"type": "number",
"simpletype": "`number`"
},
"maxItems": 10,
"simpletype": "`number[]`"
}
```