Skip to content

Commit 3158558

Browse files
feat!: Directive has nullable description
1 parent c91a342 commit 3158558

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/GraphQL/Type/Directives.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ public enum DirectiveLocation: String, Encodable {
3131
*/
3232
public struct GraphQLDirective {
3333
public let name: String
34-
public let description: String
34+
public let description: String?
3535
public let locations: [DirectiveLocation]
3636
public let args: [GraphQLArgumentDefinition]
3737
public let isRepeatable: Bool
3838
public let astNode: DirectiveDefinition?
3939

4040
public init(
4141
name: String,
42-
description: String = "",
42+
description: String? = nil,
4343
locations: [DirectiveLocation],
4444
args: GraphQLArgumentConfigMap = [:],
4545
isRepeatable: Bool = false,

0 commit comments

Comments
 (0)