mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-09 12:37:49 +00:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user