diff --git a/Documentation/references/enums.md b/Documentation/references/enums.md index c84f0f8..f83d5e1 100644 --- a/Documentation/references/enums.md +++ b/Documentation/references/enums.md @@ -322,4 +322,4 @@ let server = Pioneer( ### ValidationRule -Typealias for `@Sendable (ValidationContext) -> Visitor` +Typealias for `(ValidationContext) -> Visitor` diff --git a/Sources/Pioneer/Utils/Validation.swift b/Sources/Pioneer/Utils/Validation.swift index b14cc70..ea79d83 100644 --- a/Sources/Pioneer/Utils/Validation.swift +++ b/Sources/Pioneer/Utils/Validation.swift @@ -8,11 +8,11 @@ import GraphQL /// Function that describe a validation rule for an operation -public typealias ValidationRule = @Sendable (ValidationContext) -> Visitor +public typealias ValidationRule = (ValidationContext) -> Visitor extension Pioneer { /// Validation strategy to add custom rules that is executed before any resolver is executed - public enum Validations: ExpressibleByArrayLiteral, ExpressibleByNilLiteral, Sendable { + public enum Validations: @unchecked Sendable, ExpressibleByArrayLiteral, ExpressibleByNilLiteral { public init(nilLiteral: ()) { self = .none }