Toloka documentation

ValidationErrorCodes

toloka.client.error_codes.ValidationErrorCodes | Source code

Types of validation error codes returned by the API

Attributes Description

Name Value Description
ARRAY_EXPECTED 'ARRAY_EXPECTED'

ARRAY_SIZE_GREATER_THAN_MAX 'ARRAY_SIZE_GREATER_THAN_MAX'

ARRAY_SIZE_LESS_THAN_MIN 'ARRAY_SIZE_LESS_THAN_MIN'

ARRAY_SIZE_OUT_OF_BOUNDS 'ARRAY_SIZE_OUT_OF_BOUNDS'

BLANK_STRING_NOT_ALLOWED 'BLANK_STRING_NOT_ALLOWED'

BOOLEAN_EXPECTED 'BOOLEAN_EXPECTED'

CHARACTER_NOT_ALLOWED 'CHARACTER_NOT_ALLOWED'

DATE_OUT_OF_RANGE 'DATE_OUT_OF_RANGE'

DUPLICATE_VALUE_IN_ARRAY 'DUPLICATE_VALUE_IN_ARRAY'

EMPTY_OBJECT_NOT_ALLOWED 'EMPTY_OBJECT_NOT_ALLOWED'

ENTITY_ACCESS_DENIED 'ENTITY_ACCESS_DENIED'

ENTITY_DOES_NOT_EXIST 'ENTITY_DOES_NOT_EXIST'

FLOAT_EXPECTED 'FLOAT_EXPECTED'

INTEGER_EXPECTED 'INTEGER_EXPECTED'

INVALID_COORDINATES_SYNTAX 'INVALID_COORDINATES_SYNTAX'

INVALID_DATE_SYNTAX 'INVALID_DATE_SYNTAX'

INVALID_DATE_TIME_SYNTAX 'INVALID_DATE_TIME_SYNTAX'

INVALID_REGEX_SYNTAX 'INVALID_REGEX_SYNTAX'

INVALID_URL_SYNTAX 'INVALID_URL_SYNTAX'

INVALID_VALUE 'INVALID_VALUE'

JSON_EXPECTED 'JSON_EXPECTED'

MAX_ONE_PROPERTY_ALLOWED 'MAX_ONE_PROPERTY_ALLOWED'

NAME_LENGTH_LESS_THAN_MIN 'NAME_LENGTH_LESS_THAN_MIN'

NOT_NULL_BODY 'NOT_NULL_BODY'

OBJECT_EXPECTED 'OBJECT_EXPECTED'

OBJECT_SIZE_BYTES_GREATER_THAN_MAX 'OBJECT_SIZE_BYTES_GREATER_THAN_MAX'

PATTERN_MISMATCH 'PATTERN_MISMATCH'

SIMPLE_VALUE_EXPECTED 'SIMPLE_VALUE_EXPECTED'

STRING_EXPECTED 'STRING_EXPECTED'

STRING_LENGTH_GREATER_THAN_MAX 'STRING_LENGTH_GREATER_THAN_MAX'

STRING_LENGTH_LESS_THAN_MIN 'STRING_LENGTH_LESS_THAN_MIN'

STRING_LENGTH_OUT_OF_BOUNDS 'STRING_LENGTH_OUT_OF_BOUNDS'

UNKNOWN_ENUM_VALUE 'UNKNOWN_ENUM_VALUE'

UUID_EXPECTED 'UUID_EXPECTED'

VALUES_REQUIRED 'VALUES_REQUIRED'

VALUE_GREATER_THAN_MAX 'VALUE_GREATER_THAN_MAX'

VALUE_LESS_THAN_MIN 'VALUE_LESS_THAN_MIN'

VALUE_NOT_ALLOWED 'VALUE_NOT_ALLOWED'

VALUE_OUT_OF_BOUNDS 'VALUE_OUT_OF_BOUNDS'

VALUE_REQUIRED 'VALUE_REQUIRED'