Skip to content

Latest commit

 

History

History
240 lines (128 loc) · 7.21 KB

arrays.md

File metadata and controls

240 lines (128 loc) · 7.21 KB

Arrays Schema

https://example.com/schemas/arrays

This is an example schema with examples for multiple array types and their constraints.

Abstract Extensible Status Identifiable Custom Properties Additional Properties Access Restrictions Defined In
Can be instantiated No Unknown status No Forbidden Allowed none arrays.schema.json

Arrays Type

object (Arrays)

Arrays Properties

Property Type Required Nullable Defined by
tuple array Optional cannot be null Arrays
list array Optional cannot be null Arrays
listlist array Optional cannot be null Arrays
stringlistlist array Optional cannot be null Arrays
intlist array Optional cannot be null Arrays
boollist array Optional cannot be null Arrays
numlist array Optional cannot be null Arrays
coordinatelist array Optional cannot be null Arrays
objectlist array Optional cannot be null Arrays
JoinTypelist array Optional cannot be null Arrays

tuple

This is an array of two values, one positive, one negative. All additional values must be 0.

tuple

  • is optional

  • Type: an array where each item follows the corresponding schema in the following list:

    1. Positive Integer

    2. Negative Integer

    3. and all following items must follow the schema: Zero

  • cannot be null

  • defined in: Arrays

tuple Type

an array where each item follows the corresponding schema in the following list:

  1. Positive Integer

  2. Negative Integer

  3. and all following items must follow the schema: Zero

list

This is an array

list

  • is optional

  • Type: string[]

  • cannot be null

  • defined in: Arrays

list Type

string[]

listlist

This is an array of arrays

listlist

  • is optional

  • Type: array[]

  • cannot be null

  • defined in: Arrays

listlist Type

array[]

stringlistlist

This is an array of arrays of strings

stringlistlist

  • is optional

  • Type: string[][]

  • cannot be null

  • defined in: Arrays

stringlistlist Type

string[][]

intlist

This is an array

intlist

  • is optional

  • Type: integer[]

  • cannot be null

  • defined in: Arrays

intlist Type

integer[]

intlist Constraints

maximum number of items: the maximum number of items for this array is: 10

minimum number of items: the minimum number of items for this array is: 1

boollist

This is an array

boollist

  • is optional

  • Type: boolean[]

  • cannot be null

  • defined in: Arrays

boollist Type

boolean[]

boollist Constraints

minimum number of items: the minimum number of items for this array is: 1

numlist

This is an array

numlist

  • is optional

  • Type: number[]

  • cannot be null

  • defined in: Arrays

numlist Type

number[]

numlist Constraints

maximum number of items: the maximum number of items for this array is: 10

coordinatelist

This is an array of coordinates in three-dimensional space.

coordinatelist

  • is optional

  • Type: number[][]

  • cannot be null

  • defined in: Arrays

coordinatelist Type

number[][]

coordinatelist Constraints

maximum number of items: the maximum number of items for this array is: 10

objectlist

An array of simple objects

objectlist

  • is optional

  • Type: object[] (Details)

  • cannot be null

  • defined in: Arrays

objectlist Type

object[] (Details)

JoinTypelist

An array of simple objects

JoinTypelist

  • is optional

  • Type: an array of merged types (Details)

  • cannot be null

  • defined in: Arrays

JoinTypelist Type

an array of merged types (Details)