Hardening is uncovering a few rough edges.

Some missing bits here and there are being picked up by the diff engine in tests. Working through each rough edge, one at a time.
This commit is contained in:
Dave Shanley
2023-03-22 11:22:27 -04:00
parent cd3011655c
commit bc5a020c7a
5 changed files with 160 additions and 54 deletions

View File

@@ -118,5 +118,10 @@ func ExtractExampleValue(exp *yaml.Node) any {
v, _ := strconv.ParseFloat(exp.Value, 64)
return v
}
if utils.IsNodeMap(exp) {
var m map[string]interface{}
_ = exp.Decode(&m)
return m
}
return exp.Value
}