jetplugins / apidocx

Generate API documents to any place: YApi, RAP2, Eolink, etc.
https://plugins.jetbrains.com/plugin/17425-apidocx/
Apache License 2.0
177 stars 39 forks source link

swagger解析问题 #64

Open zhangxiaohui2517 opened 1 year ago

zhangxiaohui2517 commented 1 year ago

1.使用插件导入时部分swagger的注解在apiOperation指定httpMethod时不生效,查看源码发现该工具只支持解析@xxxMapping的方式,能否支持一下,我这边使用场景是定义了个接口 @RequestMapping(value = "xxx", method = {RequestMethod.GET, RequestMethod.POST}),但api文档上只想展示 POST的接口,所以使用了swagger的注解: @ApiOperation(value = "xxx", httpMethod = HttpMethods.POST)

2当入参是复杂类型是,比如 @ApiModel(value = "请求体") public class Request { /**

InfoDTO 这个对象内部的属性也使用了 @ApiModelProperty,但导入后,注释都没生成成功,应该是解析swagger注解时没有针对复杂类型的入出参做处理,能否支持?

lkqm commented 1 year ago

不好意思现在才回复,对于问题1下个版本支持,问题2是infoList需要指定泛型才能解析