Commit 4d0b0b6e authored by Christophe Benz's avatar Christophe Benz

Fix datasets with ordered and non-ordered dimensions values labels

parent 283a2933
......@@ -220,10 +220,11 @@ dataset =
dimensionsValuesLabels : Decoder DimensionsValuesLabels
dimensionsValuesLabels =
oneOf
[ dict <| (list pairOfString |> map OrderedDict.fromList)
, dict (dict string |> map (Dict.toList >> OrderedDict.fromList))
]
dict <|
oneOf
[ list pairOfString |> map OrderedDict.fromList
, dict string |> map (Dict.toList >> OrderedDict.fromList)
]
pairOfString : Decoder ( String, String )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment