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

When using @JsonIgnore in a subclass to ignore a property, it will still output the same-named property from the parent class. #509

Closed
HKMV opened this issue May 23, 2023 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@HKMV
Copy link

HKMV commented May 23, 2023

Environment

smart-doc: 2.6.6
spring-boot: 2.7.11

Expected Result

When using @JsonIgnore in the subclass, it should also ignore the same-named field in the parent class.

Current Result

The same-named field in the parent class is not ignored.

@HKMV HKMV added the bug Something isn't working label May 23, 2023
@shalousun
Copy link
Collaborator

shalousun commented May 27, 2023

@HKMV If you're able to handle it, welcome to submit a PR (Pull Request) to contribute to the project.

shalousun added a commit that referenced this issue May 27, 2023
@shalousun shalousun added this to the 2.7.0 milestone May 27, 2023
@shalousun shalousun changed the title 在子类中使用@JsonIgnore忽略属性后,依然会输出父类中的同名属性 When using @JsonIgnore in a subclass to ignore a property, it will still output the same-named property from the parent class. May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants