Swagger-JSON语法必须是什么才能满足Map类型的@ApiModelProperty<;字符串,字符串>;使用Grails部署
当使用以下参数之一定义端点时:Swagger-JSON语法必须是什么才能满足Map类型的@ApiModelProperty<;字符串,字符串>;使用Grails部署,json,grails,swagger,Json,Grails,Swagger,当使用以下参数之一定义端点时: @ApiModelProperty(value = 'Some parameters', required = false) Map<String, String> someParams {“someParams”:{“someKey”:“someValue”}}不起作用?很抱歉,将编辑我的问题以显示更多JSON请求,这只是一个提取。 { "body": { "body": "Some text." }, "s
@ApiModelProperty(value = 'Some parameters', required = false)
Map<String, String> someParams
{“someParams”:{“someKey”:“someValue”}}
不起作用?很抱歉,将编辑我的问题以显示更多JSON请求,这只是一个提取。
{
"body": {
"body": "Some text."
},
"someParams": {
"someKey": "someValue"
}
}