Skip to content
Snippets Groups Projects
arrays.schema.md 2.73 KiB
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 Properties

Property Type Required Defined by
list string[] Optional Arrays (this schema)
listlist array[] Optional Arrays (this schema)
stringlistlist string[][] Optional Arrays (this schema)
intlist integer[] Optional Arrays (this schema)
boollist boolean[] Optional Arrays (this schema)
numlist number[] Optional Arrays (this schema)
coordinatelist number[][] Optional Arrays (this schema)

list

This is an array

list

  • is optional

  • type: string[]

  • defined in this schema

list Type

Array type: string[]

All items must be of the type: string

listlist

This is an array of arrays

listlist

  • is optional

  • type: array[] (nested array)

  • defined in this schema

listlist Type

Nested array type: array

stringlistlist

This is an array of arrays of strings

stringlistlist

  • is optional

  • type: string[][] (nested array)

  • defined in this schema

stringlistlist Type

Nested array type: string[]

All items must be of the type: string

intlist

This is an array

intlist