toloka.client.project.template_builder.conditions.SchemaConditionV1
| Source code
SchemaConditionV1( self, data: Optional[Any] = None, schema: Optional[Dict] = None, *, hint: Optional[Any] = None, version: Optional[str] = '1.0.0')
Validates data using the JSON Schema.
For more information, see condition.schema.
Parameters | Type | Description |
---|---|---|
data | Optional[Any] | Data to be validated. |
schema | Optional[Dict] | The schema for validating data. |
hint | Optional[Any] | A hint that is shown if the condition is not met. |
Last updated: August 28, 2023