From 57bf76d5e2e0eb73010927df03318907b54be2ae Mon Sep 17 00:00:00 2001 From: Benjamin Barnard <44757473+barnard-b@users.noreply.github.com> Date: Tue, 25 Jan 2022 18:44:02 -0500 Subject: [PATCH] Make the `interfaces` property of `ObjectType` and `InterfaceType` optional --- Sources/GraphQLAST/Type.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/GraphQLAST/Type.swift b/Sources/GraphQLAST/Type.swift index f668903d..93e4b121 100644 --- a/Sources/GraphQLAST/Type.swift +++ b/Sources/GraphQLAST/Type.swift @@ -50,7 +50,7 @@ public struct ObjectType: NamedTypeProtocol, Decodable, Equatable { public let description: String? public let fields: [Field] - public let interfaces: [InterfaceTypeRef] + public let interfaces: [InterfaceTypeRef]? } public struct InterfaceType: NamedTypeProtocol, Decodable, Equatable { @@ -59,7 +59,7 @@ public struct InterfaceType: NamedTypeProtocol, Decodable, Equatable { public let description: String? public let fields: [Field] - public let interfaces: [InterfaceTypeRef] + public let interfaces: [InterfaceTypeRef]? public let possibleTypes: [ObjectTypeRef] }