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

Integer type validation fails for values bigger than java.lang.Long.MAX_VALUE #154

Closed
chuwy opened this issue May 28, 2019 · 3 comments
Closed

Comments

@chuwy
Copy link
Contributor

chuwy commented May 28, 2019

Having this JSON Schema:

{"properties": {"int": { "type": "integer" }}}

And following two JSON instances:

{"int": 9223372036854775808 }
{"int": 9223372036854775807 }

Former fails with [$.int: number found, integer expected], while latter is successfully validated.

Tried with 1.0.5 - 1.0.10 version of the library.

@chuwy
Copy link
Contributor Author

chuwy commented May 28, 2019

Couldn't reproduce it with unit test suite. Maybe the reason was that I'm using it with Scala and convert circe JSON AST into Jackson.

@stevehu
Copy link
Contributor

stevehu commented May 28, 2019

@chuwy Thanks for the confirmation that the unit tests work. Difference language handlers JSON differently and we have encountered several issues when implementing JSON schema in Java.

@chuwy
Copy link
Contributor Author

chuwy commented May 28, 2019

Sorry for bothering, it was a bug in circe-jackson adapter: circe/circe-jackson#65. Closing

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

2 participants