Speakeasy Logo
Skip to Content

array

The array type provides a way of defining a list of other types through providing an items attribute that represents the schema of the type contained in the array.

The array type will support any schema that describes any other type in its items attribute including types using oneOf/anyOf/allOf attributes. The array type also has some optional attributes for additional validation:

  • minItems - The minimum number of items the array must contain.
  • maxItems - The maximum number of items the array must contain.
  • uniqueItems - The array must contain only unique items.

Last updated on