-
-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix generation of Interface when return type of the method has a list…
- Loading branch information
1 parent
ec6d30d
commit 76e0471
Showing
15 changed files
with
125 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
src/test/resources/expected-classes/jackson-resolver-union/ResultObject.java.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.kobylynskyi.graphql.unionresolver; | ||
|
||
|
||
@javax.annotation.Generated( | ||
value = "com.kobylynskyi.graphql.codegen.GraphQLCodegen", | ||
date = "2020-12-31T23:59:59-0500" | ||
) | ||
public interface ResultObject { | ||
|
||
java.util.List<? extends UnionToResolve> getList(); | ||
|
||
} |
9 changes: 9 additions & 0 deletions
9
...pected-classes/jackson-resolver-union/without-model-package/MyResultObjectSuffix.java.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
@javax.annotation.Generated( | ||
value = "com.kobylynskyi.graphql.codegen.GraphQLCodegen", | ||
date = "2020-12-31T23:59:59-0500" | ||
) | ||
public interface MyResultObjectSuffix { | ||
|
||
java.util.List<? extends MyUnionToResolveSuffix> getList(); | ||
|
||
} |
12 changes: 12 additions & 0 deletions
12
src/test/resources/expected-classes/kt/jackson-resolver-union/ResultObject.kt.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.kobylynskyi.graphql.unionresolver | ||
|
||
|
||
@javax.annotation.Generated( | ||
value = ["com.kobylynskyi.graphql.codegen.GraphQLCodegen"], | ||
date = "2020-12-31T23:59:59-0500" | ||
) | ||
interface ResultObject { | ||
|
||
val list: List<out UnionToResolve>? | ||
|
||
} |
9 changes: 9 additions & 0 deletions
9
...ected-classes/kt/jackson-resolver-union/without-model-package/MyResultObjectSuffix.kt.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
@javax.annotation.Generated( | ||
value = ["com.kobylynskyi.graphql.codegen.GraphQLCodegen"], | ||
date = "2020-12-31T23:59:59-0500" | ||
) | ||
interface MyResultObjectSuffix { | ||
|
||
val list: List<out MyUnionToResolveSuffix>? | ||
|
||
} |
12 changes: 12 additions & 0 deletions
12
src/test/resources/expected-classes/scala/jackson-resolver-union/ResultObject.scala.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.kobylynskyi.graphql.unionresolver | ||
|
||
|
||
@javax.annotation.Generated( | ||
value = Array("com.kobylynskyi.graphql.codegen.GraphQLCodegen"), | ||
date = "2020-12-31T23:59:59-0500" | ||
) | ||
trait ResultObject { | ||
|
||
val list: scala.Seq[_ <: UnionToResolve] | ||
|
||
} |
9 changes: 9 additions & 0 deletions
9
...classes/scala/jackson-resolver-union/without-model-package/MyResultObjectSuffix.scala.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
@javax.annotation.Generated( | ||
value = Array("com.kobylynskyi.graphql.codegen.GraphQLCodegen"), | ||
date = "2020-12-31T23:59:59-0500" | ||
) | ||
trait MyResultObjectSuffix { | ||
|
||
val list: scala.Seq[_ <: MyUnionToResolveSuffix] | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
interface ResultObject { | ||
list: [UnionToResolve!] | ||
} | ||
|
||
type UnionMemberA { | ||
someField: Int | ||
} | ||
|