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

handles json.number #115

Closed
wants to merge 1 commit into from
Closed

handles json.number #115

wants to merge 1 commit into from

Conversation

ybriffa
Copy link

@ybriffa ybriffa commented Jul 12, 2021

So far, cast does not handles very well content coming directly from json.Unmarshal when unmarshal decides by itself the type of the number (setting it to json.Number). This PR adds just a new raw in the switch type to handle this type coming from the standard library

@CLAassistant
Copy link

CLAassistant commented Jul 12, 2021

CLA assistant check
All committers have signed the CLA.

Signed-off-by: Yannick Briffa <[email protected]>
@bep
Copy link
Collaborator

bep commented Jul 12, 2021

This looks good, but it needs a minimal set of test cases.

bep pushed a commit to bep/cast that referenced this pull request May 11, 2022
@bep bep closed this in 408043c May 11, 2022
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