mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-09 20:47:44 +00:00
Added some new getters to the index
Also added map conversion utilities based on reported vacuum error https://github.com/daveshanley/vacuum/issues/417 also prevented the bundler from inlining root references. Signed-off-by: quobix <dave@quobix.com>
This commit is contained in:
@@ -139,6 +139,18 @@ func ConvertInterfaceIntoStringMap(context interface{}) map[string]string {
|
||||
if s, okB := n.(string); okB {
|
||||
converted[k] = s
|
||||
}
|
||||
if s, okB := n.(float64); okB {
|
||||
converted[k] = fmt.Sprint(s)
|
||||
}
|
||||
if s, okB := n.(bool); okB {
|
||||
converted[k] = fmt.Sprint(s)
|
||||
}
|
||||
if s, okB := n.(int); okB {
|
||||
converted[k] = fmt.Sprint(s)
|
||||
}
|
||||
if s, okB := n.(int64); okB {
|
||||
converted[k] = fmt.Sprint(s)
|
||||
}
|
||||
}
|
||||
}
|
||||
if v, ok := context.(map[string]string); ok {
|
||||
|
||||
Reference in New Issue
Block a user