loader

fun loader(loader: FieldLoader)

Sets a custom loader for the configuration field.

The custom loader is responsible for converting raw parsed values (e.g., from YAML/JSON) into the final expected type of the field. This can be used for fields requiring special deserialization logic.

Parameters

loader

an implementation of the FieldLoader interface for custom deserialization logic