-
-
Notifications
You must be signed in to change notification settings - Fork 114
Closed
Description
Issue Description
Describe your bug in detail.
When I use JSON as the configuration(generate kotlin), the language can be generated successfully, but it does use Java type, as follows:
val first: Integer,
This is a bug.
If I add a separate language configuration in build.gradle, it will not appear, as follows:
compileKotlin.dependsOn "graphqlCodegenKotlinService"
task graphqlCodegenKotlinService(type: GraphQLCodegenGradleTask) {
graphqlSchemas.includePattern = "schema\\.graphqls"
outputDir = new File("src/main/graphql")
jsonConfigurationFile = "src/main/resources/codegen-config.json"
generatedLanguage = GeneratedLanguage.KOTLIN // it will be invalid in json, add here
}
Steps to Reproduce
List in detail the exact steps to reproduce the unexpected behavior.
Expected Result
Explain in detail what behavior you expected to happen.
Actual Result
Explain in detail what behavior actually happened.
Your Environment and Setup
- graphql-java-codegen version: X.X.X
- Build tool: E.g.: Maven/Gradle/SBT
- Mapping Config: E.g.:
{
"generateClient": true,
"generateApis": true,
"generatedLanguage": "KOTLIN",
"generateBuilder": false,
"generateImmutableModels": true,
"apiPackageName": "io.github.graphql.resolver",
"modelPackageName": "io.github.graphql.model",
"generateModelOpenClasses": true,
"modelNameSuffix": "TO"
}Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working