Skip to content

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

Open
@lfr

Description

@lfr

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions