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.
1 parent 446cc0b commit 68f7ce2Copy full SHA for 68f7ce2
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