Toloka documentation

condition.schema

Allows validating data using JSON Schema. This is a special format for describing data in JSON format.

For example, you can describe the data type, the minimum and maximum values, and specify that all values must be unique.

This component is useful in the following cases:

  • If available components don't provide everything you need to configure validation.
  • If you already have a prepared JSON Schema configuration for the check and you want to use it.

Component properties

Name

Type

Description

type*

"condition.schema"

Set component type

data

any

Data that should be checked.

hint

string

Validation error message that a Toloker will see

schema

JSON Schema draft 7

The schema for validating data.