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

Remove number stringification. #269

Closed
bravehorsie opened this issue Jun 6, 2019 · 0 comments
Closed

Remove number stringification. #269

bravehorsie opened this issue Jun 6, 2019 · 0 comments
Assignees

Comments

@bravehorsie
Copy link
Contributor

There is a feauture in Yasson that check number values and tries to figure out if the values does "fit" IEEE754 double precision range or not. Based on the result the number is written either as JSON string or JSON integer. This proves to be a wrong approach causing to break any schema and making documentation of REST APIs tricky.

For now this feauture should be removed, after jakartaee/jsonp-api#176 is accepted and released, Yasson should support similar parameter configuration to pass it to jsonp, which in turn would know how to handle these types properly.

[1] jakartaee/jsonb-api#112
[2] jakartaee/jsonp-api#160
[3] https://github.com/cyberphone/I-JSON-Number-System#java-json-b

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