fsprojects / FSharp.Configuration

The FSharp.Configuration project contains type providers for the configuration of .NET projects.
http://fsprojects.github.io/FSharp.Configuration/
Other
114 stars 63 forks source link

YamlConfig doesn't recognize [] as empty list #141

Closed gmlion closed 6 years ago

gmlion commented 6 years ago

Looks like it's impossible to define an empty list in a yaml file. [] is inferred to be a string instead of a string list. Is there a way to keep the correct type inference with a list that can optionally be empty?

vasily-kirichenko commented 6 years ago

@gmlion just use non empty list in your example yaml file/string.