OpenAPI(Swagger)不能正确使用数组类型

OpenAPI(Swagger)不能正确使用数组类型,swagger,swagger-ui,openapi,springdoc-openapi-ui,Swagger,Swagger Ui,Openapi,Springdoc Openapi Ui,我使用SpringBoot和springdoc-openapi-ui。我有一个带有方法的控制器,其中包含作为url参数的数组: @参数(值={ @参数(in=ParameterIn.QUERY,name=“output”,example=“[f1,f2,f3]”, content=@content(数组=@ArraySchema(schema=@schema(type=“string”))) }) 公共响应属性showReportData(@RequestParam(value=“output”

我使用
SpringBoot
springdoc-openapi-ui
。我有一个带有方法的控制器,其中包含作为url参数的数组:

@参数(值={
@参数(in=ParameterIn.QUERY,name=“output”,example=“[f1,f2,f3]”,
content=@content(数组=@ArraySchema(schema=@schema(type=“string”)))
})
公共响应属性showReportData(@RequestParam(value=“output”)字符串[]outputFields){
//某人
}
但是,当我打开
SwaggerUI
时,我在items文本框中看不到我的示例值:

当我单击execute时,我在请求中看到这个参数:


为什么会这样?为什么示例数组未显示在项中?

这似乎更多地是与浏览器配置有关的问题。 尝试更改浏览器

数组在swagger ui中的工作方式就像chamr