Core
Framework v2.x
2

validateFieldSpecification (abstract) #

Validates a new configuration for this data type.

This is an abstract method. If not overloaded, it always returns true

Arguments #

Copied to clipboard!
validateFieldSpecification(opts: JSONObject): JSONObject;

Arguments Type Description
opts
JSONObject
Data type options. The provided object can only contain the keys defined in the allowedTypeOptions property

Return #

The validateFieldSpecification returns a copy of the opts object, updated with interpreted values.

If the provided options are not valid, this function is expected to throw a KuzzleError error.