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 |
|----------|------|----------|------------|
| [boollist](#boollist) | `boolean[]` | Optional | Arrays (this schema) |
| [coordinatelist](#coordinatelist) | `number[][]` | Optional | Arrays (this schema) |
| [intlist](#intlist) | `integer[]` | Optional | Arrays (this schema) |
| [list](#list) | `string[]` | Optional | Arrays (this schema) |
| [listlist](#listlist) | `array[]` | Optional | Arrays (this schema) |
| [numlist](#numlist) | `number[]` | Optional | Arrays (this schema) |
| [objectlist](#objectlist) | `object[]` | Optional | Arrays (this schema) |
| [stringlistlist](#stringlistlist) | `string[][]` | Optional | Arrays (this schema) |
* type: `boolean[]`
* at least `1` items in the array
This is an array of coordinates in three-dimensional space.
* type: `number[][]` (nested array)
* no more than `10` items in the array
All items must be of the type:
`number`
* minimum value: `0`
* maximum value: `10`
A coordinate, specified by `x`, `y`, and `z` values
`intlist`
* is optional
* type: `integer[]`
* between `1` and `10` items in the array
* defined in this schema
All items must be of the type:
`integer`
All items must be of the type:
* type: `array[]` (nested array)
### listlist Type
Nested array type: `array`
## numlist
This is an array
`numlist`
* is optional
* no more than `10` items in the array
* defined in this schema
### numlist Type
All items must be of the type:
`number`
* minimum value: `10`
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
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
## objectlist
An array of simple objects
`objectlist`
* is optional
* type: `object[]`
* defined in this schema
### objectlist Type
Array type: `object[]`
All items must be of the type:
Unknown type `object`.
```json
{
"type": "array",
"description": "An array of simple objects",
"items": {
"type": "object",
"properties": {
"a": {
"type": "string",
"description": "The a property"
},
"b": {
"type": "integer",
"description": "The b property"
}
},
"simpletype": "`object`"
},
"simpletype": "`object[]`"
}
```
This is an array of arrays of strings
* type: `string[][]` (nested array)