@@ -3,7 +3,7 @@ package com.kotlin.generated
33import com.expediagroup.graphql.generator.annotations.*
44
55@GraphQLDescription(" A description for MyType" )
6- data class MyType (
6+ data class TypeThatShouldBeProperlyAnnotated (
77 val username : String? = null ,
88 @GraphQLDescription(" A description for email" )
99 val email : String? = null ,
@@ -17,20 +17,20 @@ data class MyType(
1717 val deprecated3 : String? = null ,
1818 @Deprecated(" It only takes the first one" )
1919 val deprecated4 : String? = null ,
20- @MyUnion
20+ @UnionThatShouldBeProperlyAnnotated
2121 @GraphQLDescription(" DEPRECATED: It uses the GraphQLDescription annotation for union types" )
2222 val deprecated5 : Any? = null ,
23- @MyUnion
23+ @UnionThatShouldBeProperlyAnnotated
2424 @GraphQLDescription(" It uses the GraphQLDescription annotation for union types" )
2525 val deprecated6 : Any? = null ,
26- @MyUnion
26+ @UnionThatShouldBeProperlyAnnotated
2727 @GraphQLDescription(" When there is a description" )
2828 val deprecated7 : Any? = null
2929)
3030
3131@GraphQLUnion(
32- name = " MyUnion " ,
33- possibleTypes = [MyType ::class ],
32+ name = " UnionThatShouldBeProperlyAnnotated " ,
33+ possibleTypes = [TypeThatShouldBeProperlyAnnotated ::class ],
3434 description = " "
3535)
36- annotation class MyUnion
36+ annotation class UnionThatShouldBeProperlyAnnotated
0 commit comments