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

string containing numbers seperated by comma's is not loaded correctly #170

Open MatthijsPrent opened 1 year ago

MatthijsPrent commented 1 year ago

I am not sure whether it is a question or bug.

I have a string that I try to save into a string field from the type provider. The string looks something like this:

let toSaveValue = "1, 2, 3, 5, 6,7,8,9,10"

Now the saving goes correct and the result in my Yaml file is (note: "Name:intArray is unrelated to this": image

However, after reading it back, it all the comma's are gone, as can be seen in the following image: image

I have tried enclosing it between quotation marks before saving, however, this results in the typeprovider enclosing it with quotation marks as well, which results in more of a workaround then a fix.

What should I do to save this string of numbers and comma's?