Replies: 1 comment 3 replies
-
@cristalp , private properties are enabled by default, but you can disable by using
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have an object that's used as request body, and it looks something like this:
The method
isDateValid
is only used for Bean Validation and is not part of the object's "API". So I would expect to see the following as example in SwaggerUI:However, I see this:
I have to annotate the method with
@JsonIgnore
to remove it from the example.But I think that private methods should not be scanned at all, even if they stick to the bean method standard. Or am I wrong?
Beta Was this translation helpful? Give feedback.
All reactions