Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Long integers become java.lang.Double when using JSON source type #130

Closed
joelittlejohn opened this issue Oct 21, 2013 · 0 comments
Closed
Milestone

Comments

@joelittlejohn
Copy link
Owner

JSON like this:

{"value" : 93872987987987987}

produces a Java bean property of type java.lang.Double. In fact these values are integers according to JSON schema and this fails a round-trip test using the generated Java types.

The generated type should use java.lang.Integer. Supporting values this large in the data you're binding requires the useLongIntegers config option to be set to force the type generation to use java.lang.Long instead of java.lang.Integer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant