Skip to content

Conversation

@dondonz
Copy link
Member

@dondonz dondonz commented Aug 27, 2022

The removed logic belongs inside a scalar's serialize method and should not be handled in this location inside ExecutionStrategy.

We have already handled the NaN case inside GraphqlFloatCoercing and we already had a NaN test in ScalarsFloatTest, see serialize throws exception for invalid input #value.

This is an old TODO from 2018. The Float spec has changed since then, now an error is to be raised for non-finite values such as NaN.
Spec: https://spec.graphql.org/draft/#sec-Float
Spec PR: graphql/graphql-spec#778

@andimarek andimarek added this to the 20.0 milestone Aug 29, 2022
@andimarek andimarek merged commit 0576774 into master Aug 29, 2022
@dondonz dondonz deleted the fix-nan-check branch August 29, 2022 06:56
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