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

Negative Integer Values Returned as Decimal Value #1641

Closed
HusnaHariz opened this issue Jun 28, 2019 · 0 comments · Fixed by #1648
Closed

Negative Integer Values Returned as Decimal Value #1641

HusnaHariz opened this issue Jun 28, 2019 · 0 comments · Fixed by #1648
Labels

Comments

@HusnaHariz
Copy link

HusnaHariz commented Jun 28, 2019

Negative values entered in fields of Integer type through the forms are returned as decimal values when hitting the data endpoint: https://api.ona.io/api/v1/data/{formID}.

Positive values are accurately represented as integers.

Negative values are represented accurately both in the table view of ona.io and in the xml form. The issue only arises when retrieving the json representation of the data

Observed Behaviour
Value entered in INT field in forms -2
Value returned from data endpoint -2.0

Aha! Link: https://ona.aha.io/features/PROD-234

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

Successfully merging a pull request may close this issue.

2 participants