joelittlejohn / jsonschema2pojo

Generate Java types from JSON or JSON Schema and annotate those types for data-binding with Jackson, Gson, etc
http://www.jsonschema2pojo.org
Apache License 2.0
6.24k stars 1.66k forks source link

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

Open ajaysagar opened 5 months ago

ajaysagar commented 5 months ago

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 commented 4 months ago

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