Skip to content

Commit c701a0c

Browse files
feat: validateSchema no longer throws
1 parent 42549f9 commit c701a0c

7 files changed

Lines changed: 254 additions & 166 deletions

File tree

Sources/GraphQL/GraphQL.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public func graphql(
3636
validationRules: [@Sendable (ValidationContext) -> Visitor] = specifiedRules
3737
) async throws -> GraphQLResult {
3838
// Validate schema
39-
let schemaValidationErrors = try validateSchema(schema: schema)
39+
let schemaValidationErrors = validateSchema(schema: schema)
4040
guard schemaValidationErrors.isEmpty else {
4141
return GraphQLResult(errors: schemaValidationErrors)
4242
}

0 commit comments

Comments
 (0)