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

Support parsing IntValue literals into GraphQLFloat #113

Merged
merged 1 commit into from Apr 2, 2016

Conversation

Macroz
Copy link
Contributor

@Macroz Macroz commented Mar 22, 2016

Hello!

We noticed a problem with the GraphQLFloat data type. If you send a literal number e.g. 2, it will be parsed as IntValue and therefore throw an exception in the Scalars.parseLiteral for floats. There is a workaround to send e.g. 2.00001 but probably integers should be accepted here.

-Markku
https://github.com/HSLdevcom/digitransit-ui

@andimarek
Copy link
Member

Thanks for this PR. You are right: This should be changed. I'm merging this.

@andimarek andimarek merged commit 018bd2e into graphql-java:master Apr 2, 2016
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

2 participants