Skip to main content

Check out Port for yourself ➜ 

Array

Array inputs allow users to provide a list of values.

Common usage

The array input type can be used for:

  • Multiple tags or labels
  • List of services to deploy
  • Multiple email recipients
  • Configuration lists

Definition

{
"tags": {
"title": "Tags",
"description": "Tags to apply to the resource",
"type": "array",
"items": {
"type": "string"
}
}
}

Properties

PropertyTypeDescription
type"array"Required. Must be "array"
itemsobjectRequired. Schema for array items
defaultarrayDefault array value
minItemsnumberMinimum number of items
maxItemsnumberMaximum number of items
uniqueItemsbooleanWhether items must be unique

Enum array

Create a multi-select dropdown:

{
"regions": {
"title": "Regions",
"description": "Regions to deploy to",
"type": "array",
"items": {
"type": "string",
"enum": ["us-east-1", "us-west-2", "eu-west-1", "ap-southeast-1"]
}
}
}