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

javaType as Long does not work with latest version but works with 0.4.x

nikhilbhalwankar opened this issue · comments

"type": "integer",
"javaType": "Long"

This correctly creates Long object in 0.4.x. However it does not work with the latest version. If I want some objects as Integer and come as Long then this does not work with latest version.

commented

Hi

There were a lot of changes between 0.4.x and current version including breaking changes.
javaType has been separated into existingJavaType and javaType, see #828.

Please use existingJavaType when referring existing java types, eg:

"type": "integer",
"existingJavaType": "Long"