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:
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. |
schema.maxLength | integer | Maximum number of symbols. |
schema.minLength | integer | Minimum number of symbols. |
schema.pattern | string | A pattern in the form of a regular expression. |
schema.type | string |