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

[Feature Request] Ability to control serialization settings through type provider constructor #150

Open lfr opened 5 years ago

lfr commented 5 years ago

Currently yaml files with member names using kebab-case, the type provider exposes these as-is using `` as follows:

my-attribute1: abcd
my-attribute2: 1234

becomes

conf.``my-attribute1``
conf.``my-attribute2``

Using YamlDotNet I'm able to configure serialization so that my-attribute1 becomes conf.MyAttribute1, but this doesn't seem to be possible with the type provider, which makes using configuration from FSharp.Configuration kebab-case files pretty jarring from the F# code.