1

When you generate java class using this plugin it applies JsonInclude.Include.NON_NULL in genarted class. How to override this default configuration from @JsonInclude(JsonInclude.Include.NON_NULL) to @JsonInclude(JsonInclude.Include.ALWAYS) in generated class.

I tried putting <inclusionLevel>ALWAYS</inclusionLevel> in plugin configuration but it's not working.

Dev Gosain
  • 690
  • 8
  • 15

1 Answers1

0

I had the same problem until I changed version of jsonschema2pojo-maven-plugin to latest 0.5.1 in pom.xml and finally worked. inclusionLevel is available since 0.4.30 version.

madafaka
  • 133
  • 2
  • 7