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

Use Java Double type for GraphQL Float properties #23

Merged
merged 1 commit into from
Mar 17, 2020
Merged

Use Java Double type for GraphQL Float properties #23

merged 1 commit into from
Mar 17, 2020

Conversation

joffrey-bion
Copy link
Contributor

@joffrey-bion joffrey-bion commented Mar 17, 2020

Resolves: #22

GraphQL specification reference:
https://graphql.org/learn/schema/#scalar-types

@codecov
Copy link

codecov bot commented Mar 17, 2020

Codecov Report

Merging #23 into master will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master      #23      +/-   ##
============================================
+ Coverage     86.81%   86.83%   +0.02%     
- Complexity      203      204       +1     
============================================
  Files            29       29              
  Lines           508      509       +1     
  Branches         69       69              
============================================
+ Hits            441      442       +1     
  Misses           44       44              
  Partials         23       23              
Impacted Files Coverage Δ Complexity Δ
...kyi/graphql/codegen/mapper/DefaultValueMapper.java 86.84% <100.00%> (ø) 21.00 <1.00> (ø)
...ql/codegen/mapper/GraphqlTypeToJavaTypeMapper.java 87.50% <100.00%> (+0.22%) 27.00 <0.00> (+1.00)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 96f7aa3...cfc13f3. Read the comment docs.

The GraphQL specification says that Float type is double-precision.
It is thus effectively equivalent to Java's float.

Resolves:
#22
@joffrey-bion
Copy link
Contributor Author

I rebased so that this only contains the changes related to the Float->Double change.
Thank you for letting me help!

@kobylynskyi kobylynskyi self-requested a review March 17, 2020 14:23
@kobylynskyi kobylynskyi self-assigned this Mar 17, 2020
@kobylynskyi kobylynskyi merged commit a4dbe0c into kobylynskyi:master Mar 17, 2020
@kobylynskyi
Copy link
Owner

@joffrey-bion thank you so much for the contribution!

@kobylynskyi
Copy link
Owner

Will release the changes today

@joffrey-bion joffrey-bion deleted the float-to-double branch March 30, 2020 11:14
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.

GraphQL Float is supposed to be double-precision
2 participants