StringSpec
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 Description
Parameters | Type | Description |
---|---|---|
required |
Optional[bool] | Whether the object or input field is required |
hidden |
Optional[bool] | Whether or not to hide the input value field from the user |
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 |