Core
API v2.x
2

# 0x05: validation

# Subdomain: 0x0501: assert

id / code class / status message description
validation.assert.missing_nested_spec
0x05010001
PreconditionError
(412)
All levels of an object have to be defined in the specification. All levels of an object have to be defined in the specification
validation.assert.unexpected_children
0x05010002
PreconditionError
(412)
The field type "%s" is not allowed to have children fields. The field configuration does not allow children fields
validation.assert.missing_parent
0x05010003
PreconditionError
(412)
The parent field of the field "%s" is not defined. Missing parent field
validation.assert.unexpected_properties
0x05010004
PreconditionError
(412)
The object "%s" contains unexpected properties (allowed: %s). Unexpected properties found
validation.assert.missing_type
0x05010005
PreconditionError
(412)
Missing property "type" in field "%s". The property "type" is required
validation.assert.unknown_type
0x05010006
PreconditionError
(412)
In "%s": unknown type "%s". Unknown "type" defined
validation.assert.missing_value
0x05010007
PreconditionError
(412)
Missing property "value" in field "%s". The "value" field is required
validation.assert.invalid_type
0x05010008
PreconditionError
(412)
Wrong type for parameter "%s" (expected: %s). Wrong parameter type
validation.assert.not_multivalued
0x05010009
PreconditionError
(412)
Field "%s": cannot set a property "%s" if the field is not multivalued. Expected the field to be multivalued
validation.assert.invalid_range
0x0501000a
PreconditionError
(412)
Property "%s": invalid range (%s > %s). A range has been defined with its lower bound greater than its upper one
validation.assert.invalid_specifications
0x0501000b
BadRequestError
(400)
Errors occured with the provided specifications:
%s The provided specifications are invalid
validation.assert.not_found
0x0501000c
NotFoundError
(404)
No specifications defined for index %s and collection %s Attempted to access to a non-existent collection specifications
validation.assert.invalid_filters
0x0501000d
BadRequestError
(400)
Invalid filters validator: %s The Koncorde filters provided as a validator are invalid
validation.assert.incorrect_validation_format
0x0501000e
InternalError
(500)
Incorrect validation format stored for collection "%s": missing "%s" property. The Koncorde filters provided as a validator are invalid

# Subdomain: 0x0502: types

id / code class / status message description
validation.types.invalid_date_format
0x05020001
PreconditionError
(412)
The following date types are invalid: %s. One or multiple date format types are invalid
validation.types.invalid_date
0x05020002
PreconditionError
(412)
Cannot parse the date value: "%s". The date value is invalid and cannot be parsed
validation.types.missing_enum_values
0x05020003
PreconditionError
(412)
The "enum" type requires a "values" property holding the list of the enum values. The "enum" type requires a "values" property holding the list of the enum values
validation.types.invalid_geoshape
0x05020004
PreconditionError
(412)
The following shapes are invalid: %s. One or multiple geoshape types are invalid
validation.types.missing_type_name
0x05020005
PluginImplementationError
(500)
Missing property "typeName" Type definitions must have a "typeName" defined
validation.types.missing_function
0x05020006
PluginImplementationError
(500)
The type "%s" must implement a function "%s". A required function is missing from the new validation data type
validation.types.already_exists
0x05020007
PluginImplementationError
(500)
The type "%s" already exists. Duplicate data type definition

# Subdomain: 0x0503: check

id / code class / status message description
validation.check.failed_document
0x05030001
BadRequestError
(400)
Failed to validate document: %s Document rejected because it does not validate the collection specifications
validation.check.failed_field
0x05030002
BadRequestError
(400)
Validation failed. Field "%s": %s Document rejected because one of its field does not validate the collection specifications