Toloka documentation

ArrayStringSpec

toloka.client.project.field_spec.ArrayStringSpec | Source code

ArrayStringSpec(
    self,
    *,
    required: Optional[bool] = True,
    hidden: Optional[bool] = False,
    min_length: Optional[int] = None,
    max_length: Optional[int] = None,
    allowed_values: Optional[List[str]] = None,
    min_size: Optional[int] = None,
    max_size: Optional[int] = None
)

A string array field specification

Parameters Description

Parameters Type Description
required Optional[bool]

Whether the object or input field is required.

hidden Optional[bool]

Whether to hide the input field from Tolokers.

min_length Optional[int]

Minimum length of the string

max_length Optional[int]

Maximum length of the string

allowed_values Optional[List[str]]

Allowed values

min_size Optional[int]

Minimum number of elements in the array

max_size Optional[int]

Maximum number of elements in the array