If I specify a URL in my yaml config, it seems useful to automatically infer the type to be System.Uri, but when saving the type, it doesn't seem useful to write out the properties of System.Uri, instead it should write out just the AbsoluteUri.
Reproduced with 2.0.0-alpha2 - the best workaround I've found is to add something to the sample to force the type to string.
Sample script:
#r "FSharp.Configuration.dll"
open FSharp.Configuration
type Config = YamlConfig<YamlText = "url: http://localhost">
let config = Config()
config.LoadText("url: http://localhost:9999")
config.Save("config.yml")
If I specify a URL in my yaml config, it seems useful to automatically infer the type to be
System.Uri
, but when saving the type, it doesn't seem useful to write out the properties ofSystem.Uri
, instead it should write out just theAbsoluteUri
.Reproduced with
2.0.0-alpha2
- the best workaround I've found is to add something to the sample to force the type to string.Sample script:
And the resulting
config.yml
: