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

Add GenerationConfig option to exclude Object Header from toString() #1619

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ajaysagar
Copy link

@ajaysagar ajaysagar commented Jun 16, 2024

Hi, thanks for the very useful library! We are using jsonschema2pojo to perform semantic diffing between multiple JSON payloads, for which we are using toString in certain scenarios to assist in comparing objects. It would be great if we had the option to exclude the object header (object identity hash) so that multiple objects in memory that are logically the same would generate the same output for toString. Potentially other use cases as well could benefit from having this as a configuration option. Thanks!

@ajaysagar ajaysagar force-pushed the feature-exclude-objectheader-from-tostring branch from 28d25c4 to f44d83e Compare June 16, 2024 01:04
@ajaysagar ajaysagar force-pushed the feature-exclude-objectheader-from-tostring branch from f44d83e to bab9537 Compare June 18, 2024 03:16
@ajaysagar
Copy link
Author

@joelittlejohn anything I can do to move this PR forward? Thanks!

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

Successfully merging this pull request may close these issues.

1 participant