OneAPI
OneAPI copied to clipboard
参数中同时包含RequestParam和RequestBody,解析后会丢失信息
像是这样同时有RequestParam和RequestBody的注解,解析到oneapi.json就会丢失了是query还是body的信息,openapi.json中就是都在requestBody里了
@RequestMapping("/check")
public RestResp<xxxxxO> check(@RequestParam("xxid") String xxid, @RequestBody xxxxxParam param) {
param.setUid(xxid);
return RestResp.buildDataResp(checkxxxxInfo(param));
}
"parameter": [
{
"name": "xxid",
"isRequired": false,
"isPathVariable": false,
"type": { "name": "String", "classPath": "java.lang.String" },
"jsType": "string"
},
{
"name": "param",
"isRequired": false,
"isPathVariable": false,
"type": {
"name": "xxxParam",
"classPath": "xxxxParam"
},
"jsType": "xxxxParam"
}
],
嗯,确实是漏了,我来修
@lixiaoyang1992 0.6.5 试试这个版本看