upgrade: update wrapper
This commit is contained in:
@ -8,12 +8,8 @@
|
||||
package api_doc
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"reflect"
|
||||
"testing"
|
||||
|
||||
"git.zhangdeman.cn/zhangdeman/api-doc/define"
|
||||
)
|
||||
|
||||
type Meta struct {
|
||||
@ -24,7 +20,7 @@ type Meta struct {
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 17:55 2024/7/19
|
||||
func Test_parser_Openapi3(t *testing.T) {
|
||||
/*func Test_parser_Openapi3(t *testing.T) {
|
||||
type UserExt struct {
|
||||
Job string `json:"job" dc:"job" binding:"required"`
|
||||
JobPtr *string `json:"job_ptr" dc:"job_ptr" binding:"required"`
|
||||
@ -95,7 +91,7 @@ func Test_parser_Openapi3(t *testing.T) {
|
||||
byteData, _ := json.Marshal(g.docData)
|
||||
fmt.Println(string(byteData))
|
||||
}
|
||||
|
||||
*/
|
||||
func Test_parse_Openapi3_doc(t *testing.T) {
|
||||
res, err := ParseOpenapi3("http://localhost:10990/static-server/github-openapi.json", "")
|
||||
fmt.Println(res, err)
|
||||
|
Reference in New Issue
Block a user