Open rideliner opened 4 years ago
Schema does not conform to the grapql specification
As mentioned above this issue should be closed because according to spec, unions can only contain types - not other unions or interfaces: http://spec.graphql.org/draft/#sel-HAHdfFDABgCBlE9-X
Description
A union can only contain object types. The class scanner fails to deeply scan a union if it contains another union or interface type.
Expected behavior
A union that contains another union or an interface should be valid.
Actual behavior
The
SchemaClassScanner
only looks atObjectTypeDefinition
s when a union is scanned.InterfaceTypeDefinition
s andUnionTypeDefinition
s are ignored.Steps to reproduce the bug