增加解析openapi文档的方法, 待完善
This commit is contained in:
@ -11,7 +11,6 @@ import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"git.zhangdeman.cn/gateway/api-doc/define"
|
||||
"git.zhangdeman.cn/zhangdeman/serialize"
|
||||
"reflect"
|
||||
"testing"
|
||||
)
|
||||
@ -95,9 +94,3 @@ func Test_parser_Openapi3(t *testing.T) {
|
||||
byteData, _ := json.Marshal(g.docData)
|
||||
fmt.Println(string(byteData))
|
||||
}
|
||||
|
||||
func TestParseForSwagger(t *testing.T) {
|
||||
docUrl := "https://git.zhangdeman.cn/swagger.v1.json"
|
||||
res, _ := Parse(docUrl)
|
||||
serialize.JSON.ConsoleOutput(res)
|
||||
}
|
||||
|
Reference in New Issue
Block a user