Skip to content

Commit cc44dfd

Browse files
fix: default deprecation reason is string
1 parent 4e25e56 commit cc44dfd

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
@@ -108,7 +108,7 @@ public let GraphQLSkipDirective = try! GraphQLDirective(
108108
/**
109109
* Constant string used for default reason for a deprecation.
110110
*/
111-
let defaulDeprecationReason: Map = "No longer supported"
111+
let defaultDeprecationReason = "No longer supported"
112112

113113
/**
114114
* Used to declare element of a GraphQL schema as deprecated.
@@ -131,7 +131,7 @@ public let GraphQLDeprecatedDirective = try! GraphQLDirective(
131131
"suggestion for how to access supported similar data. Formatted " +
132132
"using the Markdown syntax, as specified by [CommonMark]" +
133133
"(https://commonmark.org/).",
134-
defaultValue: defaulDeprecationReason
134+
defaultValue: Map.string(defaultDeprecationReason)
135135
),
136136
]
137137
)

0 commit comments

Comments
 (0)