We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5cd97c5 + 137d837 commit 69e2f3dCopy full SHA for 69e2f3d
src/main/kotlin/graphql/kickstart/tools/SchemaParser.kt
@@ -363,8 +363,8 @@ class SchemaParser internal constructor(
363
private fun buildDefaultValue(value: Value<*>?): Any? {
364
return when (value) {
365
null -> null
366
- is IntValue -> value.value
367
- is FloatValue -> value.value
+ is IntValue -> value.value.toInt()
+ is FloatValue -> value.value.toDouble()
368
is StringValue -> value.value
369
is EnumValue -> value.name
370
is BooleanValue -> value.isValue
0 commit comments