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) |
| [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[]`"
}
```
## 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[]`"
}
```
88
89
90
91
92
93
94
95
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
## 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[]`"
}
```