@@ -343,17 +343,17 @@ client-specific primitive for time. Another example of a potentially useful
343343custom scalar is ` Url ` , which serializes as a string, but is guaranteed by
344344the server to be a valid URL.
345345
346- When defining an additional scalar, GraphQL systems should use the ` @specified `
347- directive to provide a URL pointing to a human-readable specification of the
348- data format, serialization, and coercion rules for the scalar. For example, a
349- GraphQL system providing a ` UUID ` scalar might link to RFC 4122, or some
350- document defining a reasonable subset of that RFC. If a specification URL is
351- present, systems must conform to the described rules. Built-in scalar types
352- should not provide a URL.
346+ When defining an additional scalar, GraphQL systems should use the
347+ ` @specifiedBy ` directive to provide a URL pointing to a human-readable
348+ specification of the data format, serialization, and coercion rules for the
349+ scalar. For example, a GraphQL system providing a ` UUID ` scalar might link to
350+ RFC 4122, or some document defining a reasonable subset of that RFC. If a
351+ specification URL is present, systems must conform to the described rules.
352+ Built-in scalar types should not provide a URL.
353353
354354``` graphql example
355- scalar UUID @specified ( by : " https://tools.ietf.org/html/rfc4122" )
356- scalar URL @specified ( by : " https://tools.ietf.org/html/rfc3986" )
355+ scalar UUID @specifiedBy ( url : " https://tools.ietf.org/html/rfc4122" )
356+ scalar URL @specifiedBy ( url : " https://tools.ietf.org/html/rfc3986" )
357357```
358358
359359A server may omit any of the built -in scalars from its schema , for example if a
@@ -1659,7 +1659,7 @@ provide the `@deprecated` directive if representing deprecated portions of
16591659the schema.
16601660
16611661GraphQL implementations that support the type system definition language should
1662- provide the ` @specified ` directive if representing custom scalar
1662+ provide the ` @specifiedBy ` directive if representing custom scalar
16631663definitions.
16641664
16651665Directives must only be used in the locations they are declared to belong in.
@@ -1792,15 +1792,15 @@ type ExampleType {
17921792```
17931793
17941794
1795- ### @specified
1795+ ### @specifiedBy
17961796
17971797``` graphql
1798- directive @specified (
1799- by : String !
1798+ directive @specifiedBy (
1799+ url : String !
18001800) on SCALAR
18011801```
18021802
1803- The `@specified ` directive is used within the type system definition language
1803+ The `@specifiedBy ` directive is used within the type system definition language
18041804to provide a URL for specifying the behaviour of custom
18051805scalar definitions . The URL should point to a human -readable specification of
18061806the data format , serialization , and coercion rules for the scalar . For example ,
@@ -1820,6 +1820,6 @@ In this example, two custom scalar types are defined with URLs pointing to the
18201820relevant IETF specifications .
18211821
18221822```graphql example
1823- scalar UUID @specified ( by : " https://tools.ietf.org/html/rfc4122" )
1824- scalar URL @specified ( by : " https://tools.ietf.org/html/rfc3986" )
1823+ scalar UUID @specifiedBy ( url : " https://tools.ietf.org/html/rfc4122" )
1824+ scalar URL @specifiedBy ( url : " https://tools.ietf.org/html/rfc3986" )
18251825```
0 commit comments