joelittlejohn / jsonschema2pojo

Generate Java types from JSON or JSON Schema and annotate those types for data-binding with Jackson, Gson, etc

Home Page:http://www.jsonschema2pojo.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

ulviugur opened this issue · comments

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

Hi

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

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