How does swagger conditionally hide attributes in bean/model?

at present, @ ApiModelProperty (hidden = true) hides the attribute
in bean, but sometimes it takes certain conditions to hide the attribute
such as
updateCertainProp (Book book) {}

interface, only some specified fields need to be updated, how to set it?

May.27,2022

Brothers want to go together, there is no solution

Menu