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

List cannot contain elements of heterogeneous types (attempt to mix types: [])

Open Lenne231 opened this issue 8 years ago • 2 comments

FSharp.Configuration 1.1.0

I'm getting this error when using the YAML file from http://editor.swagger.io/#/.

It seems to have a problem with

      - api_key: []

is this a bug or does it works as intended?

Lenne231 avatar May 17 '17 11:05 Lenne231

FSharp.Data.JsonProvider seems to handle this by returning FSharp.Data.Runtime.BaseTypes.IJsonDocument[].

Lenne231 avatar May 17 '17 11:05 Lenne231

We could return obj [], but it's unlikely the type you want. Can you add a single fake element from which we could infer the type?

vasily-kirichenko avatar May 17 '17 11:05 vasily-kirichenko