Skip to content
Snippets Groups Projects
arrays.schema.md 2.36 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)

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

Array type: array[].

All items must be of the type: Nesting alarm!

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

Array type: string[][].

All items must be of the type: Nesting alarm!

Array type: string[].

All items must be of the type: string

intlist

This is an array

intlist

  • is optional
  • type: integer[]
  • between 1 and 10 items in the array
  • defined in this schema

intlist Type

Array type: integer[].

All items must be of the type: integer

boollist

This is an array