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
Null serialisation is not disabled when spring.gson.serialize-nulls is set to false #16332
Null serialisation is not disabled when spring.gson.serialize-nulls is set to false #16332
Conversation
The code which I changed pass the Tests.
But some test failed from the
|
@zhanglc Thank you for your efforts to contribute to Spring Boot. They're much appreciated. Please note that there's no need to close a pull request and open a new one if you want to refine it. Doing so creates some extra noise for everyone watching the repository. Instead, please push new commits to the branch you have used for the pull request or amend an existing commit and force-push it. |
@wilkinsona Sorry for that. This is my first time contributing to the open source project and I am not too familiar with it. |
No problem. That failure seems to be unrelated to the proposed change so please don't worry about it. Master is building against snapshots of Spring Framework so it may be that a change there as caused the test to start to fail. |
* pr/16332: Disable nulls serialization when serialize-nulls property is false
@zhanglc thank you for making your first contribution to Spring Boot. This is now merged in |
fix: #13622
gson should not serialize null value when set
spring.gson.serialize-nulls=false
test case: