File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -693,13 +693,4 @@ int64: 9223372036854775807
693693 } | Should -Not - Throw
694694 }
695695 }
696-
697- Describe ' Case insensitive keys in mappings' {
698- It ' should deserialize both keys' {
699- $yaml = ' {"a": 1, "A": 2}'
700- $result = ConvertFrom-Yaml - Yaml $yaml
701- $result.a | Should - Be 1
702- $result.A | Should - Be 2
703- }
704- }
705696}
Original file line number Diff line number Diff line change @@ -244,7 +244,7 @@ function Convert-YamlMappingToHashtable {
244244 [switch ] $Ordered
245245 )
246246 PROCESS {
247- if ($Ordered ) { $ret = [System.Collections.Specialized.OrderedDictionary ]::new() } else { $ret = [ hashtable ]::new() }
247+ if ($Ordered ) { $ret = [ordered ] @ {} } else { $ret = @ {} }
248248 foreach ($i in $Node.Children.Keys ) {
249249 $ret [$i.Value ] = Convert-YamlDocumentToPSObject $Node.Children [$i ] - Ordered:$Ordered
250250 }
You can’t perform that action at this time.
0 commit comments