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 found the reason for that in class io.swagger.v3.oas.models.media.MediaType
That class has internal boolean field exampleSetFlag which is leaking to JSON schema definition.
I did 2 experiments:
renamed the field (the json file changed and started containing renamed field)
added @JsonIgnore on that field ( the json file changed and irritating field disappeared)
So I would suggest adding @JsonIgnore annotation on this field like below
public class MediaType {
...
@JsonIgnore
private boolean exampleSetFlag;
...
}
The text was updated successfully, but these errors were encountered:
exampleSetFlag field is correctly ignored in serialization when using correctly configured object mapper, please see this comment about using the correctly configured object mapper.
closing ticket, please reopen if you're still experiencing issues
I found the reason for that in class
io.swagger.v3.oas.models.media.MediaType
That class has internal boolean field exampleSetFlag which is leaking to JSON schema definition.
I did 2 experiments:
So I would suggest adding @JsonIgnore annotation on this field like below
The text was updated successfully, but these errors were encountered: