修复数组指针解析的BUG #4
@ -78,11 +78,11 @@ func Test_parser_Openapi3(t *testing.T) {
|
|||||||
Variables: nil,
|
Variables: nil,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
g.AddApiFromInAndOut(reflect.TypeOf(f), reflect.TypeOf(o))
|
g.AddApiFromInAndOut("", reflect.TypeOf(f), reflect.TypeOf(o))
|
||||||
g.AddApiFromInAndOut(reflect.TypeOf(fd), reflect.TypeOf(o))
|
g.AddApiFromInAndOut("", reflect.TypeOf(fd), reflect.TypeOf(o))
|
||||||
g.AddApiFromInAndOut(reflect.TypeOf(up), reflect.TypeOf(o))
|
g.AddApiFromInAndOut("", reflect.TypeOf(up), reflect.TypeOf(o))
|
||||||
g.AddApiFromInAndOut(reflect.TypeOf(ug), reflect.TypeOf(o))
|
g.AddApiFromInAndOut("", reflect.TypeOf(ug), reflect.TypeOf(o))
|
||||||
g.AddApiFromInAndOut(reflect.TypeOf(uh), reflect.TypeOf(o))
|
g.AddApiFromInAndOut("", reflect.TypeOf(uh), reflect.TypeOf(o))
|
||||||
byteData, _ := json.Marshal(g.docData)
|
byteData, _ := json.Marshal(g.docData)
|
||||||
fmt.Println(string(byteData))
|
fmt.Println(string(byteData))
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user