tuweni / org.apache.tuweni.config / PropertyValidator / validate

validate

abstract fun validate(key: String, @Nullable position: DocumentPosition?, @Nullable value: T?): MutableList<ConfigurationError> (source)

Validate a configuration property.

Parameters

key - The configuration property key.

position - The position of the property in the input document, if supported. This should be used when constructing errors.

value - The value associated with the configuration entry.

Return
A list of errors. If no errors are found, an empty list should be returned.