@ignoreParams cannot ignore parameters in the requestBody.
zgqq opened this issue · comments
zgqq commented
Your Environment(您的使用环境)
- smart-doc version: 3.0.1
- plugin version (e.g. smart-doc-maven-plugin or smart-doc-gradle-plugin): gradle-plugin
- build tool version(maven or gradle): gradle
- jdk version: 17
Expected Behavior(您期望的结果)
`
/**
* @ignoreParams data.id data.ctime
*/
(@requestbody BaseRequest<Character> characterBaseRequest)
请求文档忽略 Character的id和ctime
`
Current Behavior(当前结果)
还是输出到文档
Possible Solution(bug解决建议)
Steps to Reproduce (Bug产生步骤,请尽量提供用例代码)
Context(Bug影响描述)
孙宇 commented
@zgqq Please use Jackson JsonIgnore annotation instead, You could reference https://smart-doc-group.github.io/#/zh-cn/advanced/advancedFeatures?id=%e5%93%8d%e5%ba%94%e5%ad%97%e6%ae%b5%e5%bf%bd%e7%95%a5