You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
then the following will fail the graphqlGenerateSDL task with Cannot convert kotlin.Any? since it is not a valid GraphQL type or outside the supported packages:
data classMyType(
@GraphQLDescription("Some description")
@MyUnion
valmyField:Any? = null
)
data classMyType(
@MyUnion
@Deprecated("This is deprecated")
valmyField:Any? = null
)
data classMyType(
@Deprecated("This is deprecated")
@MyUnion
valmyField:Any? = null
)
Expected behavior
All of the above data classes should be translated to SDL without error, since Kotlin annotations should not care about order.
The text was updated successfully, but these errors were encountered:
Library Version
Latest (7.0.2)
Describe the bug
Using Kotlin annotation classes to define unions does not work with
@Deprecated
and sometimes does not work with@GraphQLDescription
.To Reproduce
If you define an annotation class for a union like so:
then the following will fail the
graphqlGenerateSDL
task withCannot convert kotlin.Any? since it is not a valid GraphQL type or outside the supported packages
:Expected behavior
All of the above data classes should be translated to SDL without error, since Kotlin annotations should not care about order.
The text was updated successfully, but these errors were encountered: