Closed ErtugrulSener closed 11 months ago
This shouldn't be needed. The description is already discovered by Jackson here: https://github.com/leangen/graphql-spqr/blob/9b899d0defee4562534b7d8ce2fb17c1dc715e67/src/main/java/io/leangen/graphql/metadata/strategy/value/jackson/AnnotationIntrospector.java#L74
Oh, before trying anything else: are you using the jackson-kotlin module? That's practically a prerequisite for correct Kotlin⇔Jackson integration.
Oh, before trying anything else: are you using the jackson-kotlin module? That's practically a prerequisite for correct Kotlin⇔Jackson integration.
@kaqqao No, I am not using it with kotlin or the jackson-kotlin module. I have a spring boot 3 java application. Here is the demo to reproduce the issue: https://github.com/ErtugrulSener/description-issue-demo-app
Oops, sorry, I saw no methods and immediately assumed Kotlin (when it was actually Lombok). Because a similar issue was reported with Kotlin recently.
Fixed it in AnnotationIntrospector
in https://github.com/leangen/graphql-spqr/issues/469. But thanks again for discovering the bug!
Fixed it in
AnnotationIntrospector
in https://github.com/leangen/graphql-spqr/issues/469. But thanks again for discovering the bug!
No problem, glad the bug is fixed now!
As I wrote here in my original thread: https://github.com/leangen/graphql-spqr/issues/466#issuecomment-1625892403 Descriptions set via the @GraphQLInputField annotation are not considered. I realized that when I printed the graphql schema by doing:
The source for the demo:
The test class to generate the schema:
This will result in the following graphql schema:
With the fix: