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

Fixed int type being serialized to double sometimes #177

Conversation

mrashed-dev
Copy link
Contributor

Description

Sometimes when serializing query parameters, it converts an integer to a double. The decimal produced breaks the API call. We ensure that we are handling the Double instance specifically.

License

I confirm that this contribution is made under the terms of the MIT license and that I have the authority necessary to make this contribution on behalf of its copyright owner.

due to how moshi works behind the scenes, sometimes an int gets converted to a double, and the decimal breaks the API call
Copy link
Contributor

@atejada atejada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! Just test it and works perfectly! 🥳

@mrashed-dev mrashed-dev merged commit 44e4969 into v2.0.0-beta Dec 14, 2023
1 check passed
@mrashed-dev mrashed-dev deleted the TW-2441-bug-on-java-kotlin-when-using-limit-to-read-messages branch December 14, 2023 20:24
mrashed-dev added a commit that referenced this pull request Dec 18, 2023
# Changelog

### Added
* Added support for event send RSVP (#175)

### Changed
* Fixed int type being serialized to double sometimes (#177)
* Fixed `Auth.exchangeCodeForToken` always returning 401 (#178)
* Fixed error when sending message or updating draft (#179)

# License
<!-- Your PR comment must contain the following line for us to merge the
PR. -->
I confirm that this contribution is made under the terms of the MIT
license and that I have the authority necessary to make this
contribution on behalf of its copyright owner.
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

Successfully merging this pull request may close these issues.

2 participants