public Item addProperties(
@Parameter(description = "identifier of the item")
@PathVariable("id") String id,
@Parameter(description = "map of property names and values ",
content = @Content(schema = @Schema(type = "object", implementation = Map.class)))
@RequestBody Map<String, Object> properties)
对于上面的代码,只有 Parameterid
正在生成并且它完全缺少 requestBody。我根据https://swagger.io/docs/specification/data-models/dictionaries/添加了 type="object" 。