Skip to content

Commit 2d27d8f

Browse files
Merge pull request #184 from NeedleInAJayStack/feat/avoid-throwing-on-validate
`validateSchema` no longer throws
2 parents 42549f9 + c701a0c commit 2d27d8f

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)