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 Wrapped Scalar and Coerced Float Decoding, Add extensions to GraphQLError #125

Merged
merged 4 commits into from
May 2, 2023

Conversation

maticzav
Copy link
Owner

@maticzav maticzav commented May 2, 2023

This PR fixes the bug where coerced Float values would throw an error. Additionally, it fixes the bug where wrapped scalar values (e.g. [Array]) would throw in decoding step because the decoder expected them to be nested AnyCodable values and in reality they were flattened AnyCodable values.

Lastly, this PR changes the default logging level so that DebugExchange prints messages in the console without any extra configuration.

Fixes #120.
Fixes #121.
Fixes #117.

Huge thanks to @NeverwinterMoon, @tuxi7x and @nordfogel. I genuinely can't thank you enough for your effort. This library is much better because of your contribution and I am thankful to have such a great community surrounding the library.

@vercel
Copy link

vercel bot commented May 2, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
swift-graphql ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 2, 2023 10:41am

@maticzav maticzav changed the title Fix Wrapped Scalar and Coerced Float Decoding Fix Wrapped Scalar and Coerced Float Decoding, Add extensions to GraphQLError May 2, 2023
@maticzav maticzav merged commit ba1b356 into main May 2, 2023
@maticzav maticzav deleted the fix/issues-120-and-121 branch May 2, 2023 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant