-
-
Notifications
You must be signed in to change notification settings - Fork 114
Closed
Description
Issue Description
Version 5.7.0 is omitting the annotations configured in customAnnotationsMapping for fields in input types.
Steps to Reproduce
Repro at https://github.com/dsilva/repro-graphql-java-codegen-missing-annotations
- Clone the repo
- Run
./gradlew graphqlCodegen - Look at
build/generated/ReproInput.java
Expected Result
The output up to version 5.6.0 was
@javax.validation.constraints.NotNull
@com.fasterxml.jackson.annotation.JsonProperty("reproField")
private java.util.List<String> reproField;Actual Result
The output with version 5.7.0 of the gradle plugin includes this:
@javax.validation.constraints.NotNull
private java.util.List<String> reproField;Your Environment and Setup
- graphql-java-codegen version: 5.7.0
- Build tool: Gradle
- Mapping Config: E.g.:
tasks.named<io.github.kobylynskyi.graphql.codegen.gradle.GraphQLCodegenGradleTask>("graphqlCodegen").configure {
graphqlSchemaPaths = listOf(
"$projectDir/schema.graphqls"
)
outputDir = File("$buildDir/generated")
customAnnotationsMapping = mutableMapOf(
Pair("ReproInput.reproField", listOf("""@com.fasterxml.jackson.annotation.JsonProperty("reproField")"""))
)
generatedAnnotation = "javax.annotation.Generated"
}kobylynskyi
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working