Skip to content

在线文档中不能支持对List<Enum>的入参 #1246

Closed
@KochamCie

Description

@KochamCie

版本号:V1.1

问题描述:定义Controller中入参为List/Array 类型并且指定泛型为枚举类型,在线文档(swagger)中下拉框可选枚举值,无法多选而且选中的一个无法传递到接口。在原生swagger-ui中可以通过ALT选中多个枚举作为参数传递。

截图&代码

友情提示: 未按格式要求发帖,会直接删掉。

Activity

lvdandan16

lvdandan16 commented on May 31, 2020

@lvdandan16

能否截图看一下

KochamCie

KochamCie commented on May 31, 2020

@KochamCie
Author

image

Hi

左边的红框标识了字段是array类型,但是右边的selectbox只支持单选。

J-cafe

J-cafe commented on Jul 30, 2020

@J-cafe

框架用的就是原生的swagger,swagger-ui是支持多选的,doc是不行的,多选用的是Ctrl而不是ALT。如果需要测试多选参数可以访问http://ip:port/swagger-ui.html页面测试。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @zhangdaiscott@KochamCie@J-cafe@lvdandan16

        Issue actions

          在线文档中不能支持对List<Enum>的入参 · Issue #1246 · jeecgboot/JeecgBoot