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

CIS-1113 Fix inconsistent/wrong RawJSON number type handling #1375

Merged
merged 2 commits into from
Aug 16, 2021

Conversation

tbarbugli
Copy link
Member

@tbarbugli tbarbugli commented Aug 13, 2021

The initial implementation of RawJSON had double and integer types. This made decoding incorrect because integer values can be Int and Double and the decoder would always decode them as Int.

This PR removes .integer from RawJSON, adds a new case .number and keeps .double around as an "alias" of .number

@Stream-SDK-Bot
Copy link
Collaborator

Stream-SDK-Bot commented Aug 13, 2021

1 Error
🚫 Please use more than one word.
1f62dd9

Generated by 🚫 Danger

Copy link
Member

@nuno-vieira nuno-vieira left a comment

Choose a reason for hiding this comment

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

LGTM!

@tbarbugli tbarbugli changed the title Fix inconsistent/wrong RawJSON number type handling CIS-1113 Fix inconsistent/wrong RawJSON number type handling Aug 16, 2021
@tbarbugli tbarbugli merged commit 95811ce into main Aug 16, 2021
@tbarbugli tbarbugli deleted the fix-rawjson-number branch August 16, 2021 14:38
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.

3 participants