zeromicro/goctl-swagger

不支持api类型中的内嵌结构体语法

fate0zore opened this issue · 0 comments

当我在api文件中声明以下类型时

Role {
        Id uint `json:"id,optional"`
        Key string `json:"key"`
        Name string `json:"name"`
        Desc string `json:"desc"`
    }
    RoleCreateReq {
        Role
        Auth []uint `json:"auth"`
    }

对应的swagger schemas 为

{
    "": {
        "key": "",
        "name": "",
        "desc": ""
    },
    "auth": []
}