Open luther7 opened 1 year ago
Hi! Thanks for the free software. 🙏
For YAML, string values for list-of-string types are valid. They are deserialized into a list, splitting the string by commas. Example:
data class TestConfig(val testList: List<String>) val testSource = "testList: Hello, world!" ConfigLoaderBuilder .default() .addSource(YamlPropertySource(testSource)) .build() .loadConfig<TestConfig>() .map { println(it) // TestConfig(testList=[Hello, world!]) println(it.testList.size) // 2 }
Thanks!
Is there a question here :)
Hi! Thanks for the free software. 🙏
For YAML, string values for list-of-string types are valid. They are deserialized into a list, splitting the string by commas. Example:
Thanks!