Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lfr opened this issue May 9, 2019 · 0 comments

Comments

@lfr
Copy link

lfr commented May 9, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant