Skip to content

Commit e86575b

Browse files
committed
fix(codegen): KotlinTypeMapper: Add "Char" scalar to mapping
1 parent 6ce3bf1 commit e86575b

File tree

1 file changed

+2
-0
lines changed
  • graphql-kotlin-toolkit-codegen/src/main/kotlin/com/auritylab/graphql/kotlin/toolkit/codegen/mapper

1 file changed

+2
-0
lines changed

graphql-kotlin-toolkit-codegen/src/main/kotlin/com/auritylab/graphql/kotlin/toolkit/codegen/mapper/KotlinTypeMapper.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import com.auritylab.graphql.kotlin.toolkit.common.helper.GraphQLTypeHelper
77
import com.squareup.kotlinpoet.ANY
88
import com.squareup.kotlinpoet.BOOLEAN
99
import com.squareup.kotlinpoet.BYTE
10+
import com.squareup.kotlinpoet.CHAR
1011
import com.squareup.kotlinpoet.ClassName
1112
import com.squareup.kotlinpoet.DOUBLE
1213
import com.squareup.kotlinpoet.INT
@@ -118,6 +119,7 @@ internal class KotlinTypeMapper(
118119
"Long" -> LONG
119120
"Short" -> SHORT
120121
"Byte" -> BYTE
122+
"Char" -> CHAR
121123
"BigDecimal" -> BigDecimal::class.asClassName()
122124
"BigInteger" -> BigInteger::class.asClassName()
123125
else -> null

0 commit comments

Comments
 (0)