隐藏Springdoc Swagger UI中给定类型的所有属性?
我正在使用 springdoc-openapi-ui 生成OpenAPI定义。它从javax.validation.constraints.asserttrue
的函数中生成属性。我不想这样做。
我知道hidden = true
选项,但不想使用它,因为我更喜欢将其设置为全球设置(例如,不会为javax.validation.constraints.asserttrue生成属性/代码>类型)
您有什么想法如何完成?
I’m using springdoc-openapi-ui to generate an OpenAPI definition. It generates properties from functions annotated with javax.validation.constraints.AssertTrue
. I don't want it to do so.
I know about the hidden = true
option but don't want to use it as I prefer to have it set globally (e.g. don't generate properties for javax.validation.constraints.AssertTrue
type)
Do you have any ideas how it can be done?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论