EnumList

annotation class EnumList

Converts a list of Strings to a List of Enum values (case-insensitive).

The enum type is inferred from the type parameter of the field (e.g., List<MyEnum>). Strings that do not match any enum constant are silently dropped.

Example:

enum class Mode { READ, WRITE, ADMIN }

data class MyConfig(
@EnumList val modes: List<Mode>? = null
)

YAML:

modes:
- read
- write