toloka.client.project.field_spec.StringSpec
| Source code
StringSpec( 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)
A string field specification.
Parameters | Type | Description |
---|---|---|
required | Optional[bool] | Whether a field is required. Default value: |
hidden | Optional[bool] | Whether to hide an input field from Tolokers. Output fields can't be hidden. Default value: |
min_length | Optional[int] | The minimum length of the string. |
max_length | Optional[int] | The maximum length of the string. |
allowed_values | Optional[List[str]] | A list of allowed values. |
Last updated: August 28, 2023