mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-06 20:47:49 +00:00
Working on building out models
a recursive approach? or a dfs approach? not sure yet. still playing with ideas.
This commit is contained in:
@@ -99,8 +99,8 @@ func ConvertInterfaceToStringArray(raw interface{}) []string {
|
||||
if vals, ok := raw.(map[string]interface{}); ok {
|
||||
var s []string
|
||||
for _, v := range vals {
|
||||
if v, ok := v.([]interface{}); ok {
|
||||
for _, q := range v {
|
||||
if g, y := v.([]interface{}); y {
|
||||
for _, q := range g {
|
||||
s = append(s, fmt.Sprint(q))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user