I tried using the Yaml map card in the configuration file:
Companies: - code: 11 name: A country: FR functionalCurrency: EUR - code: 12 name: B country: GB functionalCurrency: GBP
However, when trying to read it with a type provider, it finds only the first result of the list.
Via:
open FSharp.Configuration type CompaniesConfig = YamlConfig<"Config.yaml"> let config = CompaniesConfig()
output:
val config : CompaniesConfig = Companies: - code: 11 name: A country: FR functionalCurrency: EUR
Trying to parse processed code online, so I wonder if this is a library limitation or ...?
thanks for the help
source share