From b8260f697800c584c32fd17a9935dfe9e85c3e2e Mon Sep 17 00:00:00 2001 From: Ivan Goncharov Date: Wed, 29 Aug 2018 16:28:39 +0300 Subject: [PATCH] Fix link and description of supported Markdown See: http://facebook.github.io/graphql/June2018/#sec--deprecated --- src/type/directives.js | 4 ++-- src/utilities/__tests__/schemaPrinter-test.js | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/type/directives.js b/src/type/directives.js index 9495f65ca9..e8a7b74fdb 100644 --- a/src/type/directives.js +++ b/src/type/directives.js @@ -153,8 +153,8 @@ export const GraphQLDeprecatedDirective = new GraphQLDirective({ type: GraphQLString, description: 'Explains why this element was deprecated, usually also including a ' + - 'suggestion for how to access supported similar data. Formatted ' + - 'in [Markdown](https://daringfireball.net/projects/markdown/).', + 'suggestion for how to access supported similar data. Formatted using ' + + 'the Markdown syntax (as specified by [CommonMark](https://commonmark.org/).', defaultValue: DEFAULT_DEPRECATION_REASON, }, }, diff --git a/src/utilities/__tests__/schemaPrinter-test.js b/src/utilities/__tests__/schemaPrinter-test.js index 2ff9717cd8..0881162703 100644 --- a/src/utilities/__tests__/schemaPrinter-test.js +++ b/src/utilities/__tests__/schemaPrinter-test.js @@ -629,8 +629,8 @@ describe('Type System Printer', () => { directive @deprecated( """ Explains why this element was deprecated, usually also including a suggestion - for how to access supported similar data. Formatted in - [Markdown](https://daringfireball.net/projects/markdown/). + for how to access supported similar data. Formatted using the Markdown syntax + (as specified by [CommonMark](https://commonmark.org/). """ reason: String = "No longer supported" ) on FIELD_DEFINITION | ENUM_VALUE @@ -865,8 +865,8 @@ describe('Type System Printer', () => { # Marks an element of a GraphQL schema as no longer supported. directive @deprecated( # Explains why this element was deprecated, usually also including a suggestion - # for how to access supported similar data. Formatted in - # [Markdown](https://daringfireball.net/projects/markdown/). + # for how to access supported similar data. Formatted using the Markdown syntax + # (as specified by [CommonMark](https://commonmark.org/). reason: String = "No longer supported" ) on FIELD_DEFINITION | ENUM_VALUE