Skip to content

Commit

Permalink
Adjusted KnownTypeNames to handle TypeSystemExtensionDefinition
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegIlyenko committed May 11, 2018
1 parent 60be110 commit b090aea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import sangria.validation._
class KnownTypeNames extends ValidationRule {
override def visitor(ctx: ValidationContext) = new AstValidatingVisitor {
override val onEnter: ValidationVisit = {
case _: ast.ObjectTypeDefinition | _: ast.InterfaceTypeDefinition | _: ast.UnionTypeDefinition | _: ast.InputObjectTypeDefinition | _: ast.TypeExtensionDefinition | _: ast.SchemaDefinition
case _: ast.ObjectTypeDefinition | _: ast.InterfaceTypeDefinition | _: ast.UnionTypeDefinition | _: ast.InputObjectTypeDefinition | _: ast.TypeSystemExtensionDefinition | _: ast.SchemaDefinition
// When validating SDL, at the moment schema does not know about these types.
// All type names are validated in the schema materializer as new schema is constructed.
AstVisitorCommand.RightSkip
Expand Down

0 comments on commit b090aea

Please sign in to comment.