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

Fix string serialization error raising #1062

Merged

Conversation

emeryotopalik
Copy link
Contributor

During serialization of the result, String.Chars.to_string raises the following error when given a map:

** (Protocol.UndefinedError) protocol String.Chars not implemented for %{} of type Map. This protocol is implemented for the following type(s): Decimal, Float, DateTime, Time, List, Version.Requirement, Atom, Integer, Version, Date, BitString, NaiveDateTime, URI

This trickles up to the end user when instead it should handle the serialization error more gracefully like the other scalars.

@emeryotopalik emeryotopalik changed the title fix string serialization fix string serialization error raising Apr 15, 2021
@emeryotopalik emeryotopalik changed the title fix string serialization error raising Fix string serialization error raising Apr 15, 2021
@binaryseed
Copy link
Contributor

Thanks!

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.

None yet

3 participants