Skip to content

Commit 0c45ddf

Browse files
Fix link and description of supported Markdown (#1490)
See: http://facebook.github.io/graphql/June2018/#sec--deprecated
1 parent 4631744 commit 0c45ddf

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/type/directives.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ export const GraphQLDeprecatedDirective = new GraphQLDirective({
153153
type: GraphQLString,
154154
description:
155155
'Explains why this element was deprecated, usually also including a ' +
156-
'suggestion for how to access supported similar data. Formatted ' +
157-
'in [Markdown](https://daringfireball.net/projects/markdown/).',
156+
'suggestion for how to access supported similar data. Formatted using ' +
157+
'the Markdown syntax (as specified by [CommonMark](https://commonmark.org/).',
158158
defaultValue: DEFAULT_DEPRECATION_REASON,
159159
},
160160
},

src/utilities/__tests__/schemaPrinter-test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -629,8 +629,8 @@ describe('Type System Printer', () => {
629629
directive @deprecated(
630630
"""
631631
Explains why this element was deprecated, usually also including a suggestion
632-
for how to access supported similar data. Formatted in
633-
[Markdown](https://daringfireball.net/projects/markdown/).
632+
for how to access supported similar data. Formatted using the Markdown syntax
633+
(as specified by [CommonMark](https://commonmark.org/).
634634
"""
635635
reason: String = "No longer supported"
636636
) on FIELD_DEFINITION | ENUM_VALUE
@@ -865,8 +865,8 @@ describe('Type System Printer', () => {
865865
# Marks an element of a GraphQL schema as no longer supported.
866866
directive @deprecated(
867867
# Explains why this element was deprecated, usually also including a suggestion
868-
# for how to access supported similar data. Formatted in
869-
# [Markdown](https://daringfireball.net/projects/markdown/).
868+
# for how to access supported similar data. Formatted using the Markdown syntax
869+
# (as specified by [CommonMark](https://commonmark.org/).
870870
reason: String = "No longer supported"
871871
) on FIELD_DEFINITION | ENUM_VALUE
872872

0 commit comments

Comments
 (0)