FieldSpec
toloka.client.project.field_spec.FieldSpec
| Source code
FieldSpec(
self,
*,
required: Optional[bool] = True,
hidden: Optional[bool] = False
)
A base class for field specifications used in project's input_spec
and output_spec
for input and response data validation specification respectively. Use subclasses of this class defined below to define the data type (string, integer, URL, etc.) and specify validation parameters (such as string length).
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. |