Skip to content

Commit 5f4c6c0

Browse files
feat: Adds validateSchema
1 parent d8a1bff commit 5f4c6c0

File tree

4 files changed

+3141
-2
lines changed

4 files changed

+3141
-2
lines changed

Sources/GraphQL/Language/AST.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ public func == (lhs: Definition, rhs: Definition) -> Bool {
360360
return false
361361
}
362362

363-
public enum OperationType: String {
363+
public enum OperationType: String, CaseIterable {
364364
case query
365365
case mutation
366366
case subscription

Sources/GraphQL/Type/Schema.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public final class GraphQLSchema {
3434
let extensionASTNodes: [SchemaExtensionDefinition]
3535

3636
// Used as a cache for validateSchema().
37-
let validationErrors: [GraphQLError]?
37+
var validationErrors: [GraphQLError]?
3838

3939
public let queryType: GraphQLObjectType?
4040
public let mutationType: GraphQLObjectType?

0 commit comments

Comments
 (0)