-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Schema Builder doesn't support inheriting interface field with subtype (
#2122) * Add schema-builder tests * Fix type in comment * Define Method Ordering in TypeCreator * Address reviews: Change Map to List of List
- Loading branch information
1 parent
09aacd1
commit fb1c3f3
Showing
7 changed files
with
74 additions
and
14 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
5 changes: 5 additions & 0 deletions
5
...on/schema-builder/src/test/java/io/smallrye/graphql/index/inherit/ContainerInterface.java
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,5 @@ | ||
package io.smallrye.graphql.index.inherit; | ||
|
||
public interface ContainerInterface { | ||
FieldInterface getInheritField(); | ||
} |
8 changes: 8 additions & 0 deletions
8
common/schema-builder/src/test/java/io/smallrye/graphql/index/inherit/ContainerType.java
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,8 @@ | ||
package io.smallrye.graphql.index.inherit; | ||
|
||
public class ContainerType implements ContainerInterface { | ||
|
||
public FieldType getInheritField() { | ||
return new FieldType(); | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
common/schema-builder/src/test/java/io/smallrye/graphql/index/inherit/FieldInterface.java
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,5 @@ | ||
package io.smallrye.graphql.index.inherit; | ||
|
||
public interface FieldInterface { | ||
String getVal(); | ||
} |
7 changes: 7 additions & 0 deletions
7
common/schema-builder/src/test/java/io/smallrye/graphql/index/inherit/FieldType.java
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,7 @@ | ||
package io.smallrye.graphql.index.inherit; | ||
|
||
public class FieldType implements FieldInterface { | ||
public String getVal() { | ||
return ""; | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
common/schema-builder/src/test/java/io/smallrye/graphql/index/inherit/InheritAPI.java
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 io.smallrye.graphql.index.inherit; | ||
|
||
import org.eclipse.microprofile.graphql.GraphQLApi; | ||
import org.eclipse.microprofile.graphql.Query; | ||
|
||
@GraphQLApi | ||
public class InheritAPI { | ||
@Query | ||
public ContainerInterface getContainer() { | ||
return null; | ||
} | ||
} |