You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to get the description for only the field and if nothing is present on the field defaults to the children class description. Nevertheless, what I get when using the jackson module is the following:
I would like to avoid the allOf completely, and have a less nested json, but I am not sure how to do it after a while looking into the API. I was able to remove completely the description by extending the JacksonModule and overriding the resolveDescription* methods, and I guess that it might be possible there. Any suggestion from the community?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Having two classes like this:
and
I would like to get the description for only the field and if nothing is present on the field defaults to the children class description. Nevertheless, what I get when using the jackson module is the following:
I would like to avoid the
allOf
completely, and have a less nested json, but I am not sure how to do it after a while looking into the API. I was able to remove completely the description by extending theJacksonModule
and overriding theresolveDescription*
methods, and I guess that it might be possible there. Any suggestion from the community?Beta Was this translation helpful? Give feedback.
All reactions