BooleanSpec
toloka.client.project.field_spec.BooleanSpec
| Source code
BooleanSpec(
self,
*,
required: Optional[bool] = True,
hidden: Optional[bool] = False,
allowed_values: Optional[List[bool]] = None
)
A boolean 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 |
allowed_values |
Optional[List[bool]] | Allowed values |