我使用SpringBoot和springdoc-openapi-ui。我有带有方法的控制器,其中包含数组作为 url 参数:
@Parameters(value = {
@Parameter(in = ParameterIn.QUERY, name = "output", example = "[f1,f2,f3]",
content = @Content(array = @ArraySchema(schema = @Schema(type = "string"))))
})
public ResponseEntity<Object> showReportData(@RequestParam(value = "output") String[] outputFields) {
//some body
}
但是,当我打开时SwaggerUI,我在项目文本框中看不到我的示例值:

为什么会这样?为什么示例数组没有显示在项目中?
