Skip to content

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

@fate0zore

Description

@fate0zore

当我在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": []
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions