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

Comparison method is created for each array type declared in JSON sample file #1564

Closed ulviugur closed 10 months ago

ulviugur commented 1 year ago

Hi,

it looks like json2pojo creates a comparison method (equals(Object other)) for arrays defined in the sample JSON file which leads to a compiler error. I would like to suppress the generation of such methods as it currently does not makes sense for my use case (yet).

In my 24 pojo classes, I have this same issue in 23 of them and the last one is called an "Object" which is also a red flag for me.

Any ideas how to fix this ?

Cheers, Geo

unkish commented 1 year ago

Hi

It's really hard to say anything without having an example that would showcase issue at hand

unkish commented 10 months ago

Closing due to lack of feedback. Please feel free to reopen if you still have questions.