Skip to content

Latest commit

 

History

History
89 lines (69 loc) · 1.04 KB

supportedTypes.md

File metadata and controls

89 lines (69 loc) · 1.04 KB

Supported types

The Algo API supports the following types for the inputs and outputs:

string

{
  "type": "string"
}

You can specify those optional parameters:

{
  "type": "string",
  "availableValues": ["string"],
  "default": "string"
}

number

{
  "type": "number"
}

You can specify those optional parameters:

{
  "type": "string",
  "availableValues": ["number"],
  "default": "number",
  "min": "number",
  "max": "number"
}

boolean

{
  "type": "boolean"
}

You can specify an optional default value:

{
  "type": "boolean",
  "default": "boolean"
}

array

When you specify an array, you need to specify the type of the array's elements. The available types are:

  • string
  • number
  • boolean
  • dict
  • array
{
  "type": "array",
  "arrayType": "string"
}

You can specify those optional parameters:

{
  "type": "array",
  "arrayType": "string",
  "lengthMin": "number",
  "lengthMax": "number"
}

Back to the Algo API page.