FSharp.Configuration icon indicating copy to clipboard operation
FSharp.Configuration copied to clipboard

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

Open lfr opened this issue 6 years ago • 0 comments

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.

lfr avatar May 09 '19 08:05 lfr