Swagger @ApiParam-如何使用@ApiParam指定列表的默认值?

时间:2020-08-17 13:08:05

标签: list swagger

对于字符串,我可以指定默认值并在不完整的页面中填充,但无法指定默认值 值并填充列表的默认值

@ApiParam(name = "languageCode", value = "Language Code", type = "String", example = "19", defaultValue = "19") @RequestParam(required = false) String languageCode, @ApiParam(name = "countryList", value = "List of Countries", example = "["US","CA"]") @RequestParam(required = false) List countryList

非常感谢您的帮助

0 个答案:

没有答案