Skip to content

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 <yannick.briffa@corp.ovh.com>
@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