Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Is there a way to allow @JsonIgnoreProperties( allowGetters = true) to allow the variable to be present in response example values , instead of avoiding it ? #3410

Closed
Andrew3431 opened this issue Jan 13, 2020 · 2 comments

Comments

@Andrew3431
Copy link

Andrew3431 commented Jan 13, 2020

The @JsonIgnoreProperties hides the variables from appearing in the swagger document, which is expected. But in cases where the variable has allowGetters = true property set, shouldn't the variable be displayed in response example values ?
NOTE: @JsonIgnoreProperties was added not for swagger purposes in my code , but for functional use (to avoid deserialization) , therefore I cant use @JSONVIEW instead of @JsonIgnoreProperties..

Can this feature be supported ?

@Andrew3431 Andrew3431 changed the title Is there a way to allow @JsonIgnoreProperties( allowGetters = true) to allow the variable to be present in response example values , instead of avoiding it ? Question: Is there a way to allow @JsonIgnoreProperties( allowGetters = true) to allow the variable to be present in response example values , instead of avoiding it ? Jan 13, 2020
@HaruhiSuzumiyah
Copy link
Contributor

I know it's been a few years, but I'm also experiencing this issue.

@frantuma
Copy link
Member

frantuma commented Jun 1, 2023

this has been addressed in #4418

@frantuma frantuma closed this as completed Jun 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants