You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
By default, GraphQL Float type result in a Float in Java.
However, the specification states that Float in GraphQL is a double-precision floating point value, and should therefore be a Double instead (at least by default).
Expected behavior
The property type should be Double in Java for a GraphQL field declared as Float.
Steps to reproduce
Use this schema:
type MyType {
someFloat: Float
}
The text was updated successfully, but these errors were encountered:
I'm taking it, it shouldn't be too long I think. I'll wait for you to merge #21 first, though, as I'll need to update the float default literal as well
The GraphQL specification says that Float type is double-precision.
It is thus effectively equivalent to Java's float.
Resolves:
#22
Co-authored-by: Joffrey Bion <joffrey.bion@booking.com>
Describe the bug
By default, GraphQL
Float
type result in aFloat
in Java.However, the specification states that Float in GraphQL is a double-precision floating point value, and should therefore be a
Double
instead (at least by default).Expected behavior
The property type should be
Double
in Java for a GraphQL field declared asFloat
.Steps to reproduce
Use this schema:
The text was updated successfully, but these errors were encountered: