OneAPI icon indicating copy to clipboard operation
OneAPI copied to clipboard

参数中同时包含RequestParam和RequestBody,解析后会丢失信息

Open lixiaoyang1992 opened this issue 3 years ago • 1 comments

像是这样同时有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 avatar Dec 02 '22 02:12 lixiaoyang1992

嗯,确实是漏了,我来修

tudou527 avatar Dec 02 '22 02:12 tudou527

@lixiaoyang1992 0.6.5 试试这个版本看

tudou527 avatar Dec 05 '22 14:12 tudou527