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

jsonschema2pojo does not generate pojo for semi large json schema #1500

Closed rami-nk closed 1 year ago

rami-nk commented 1 year ago

When trying to generate a java implementation for a more or less large json schema the tool just generates nothing. I tried it with these json schemas:

Here you can see the generation of nothing: Bildschirm­foto 2023-03-08 um 09 39 23

I also tried using the maven plugin, but it also just generates an empty directory inside the target folder.

joelittlejohn commented 1 year ago

Hi. The problem here is that the file is not a schema, but is being used as a container for other schemas. In each case, the file itself doesn't represent any type at all and so nothing is generated. See https://github.com/joelittlejohn/jsonschema2pojo/issues/419.

rami-nk commented 1 year ago

Ok thanks, I'll look at it again! Would be nice to get any error message tho and not just nothing