Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown directive "specifiedBy" #165

Open
sebthom opened this issue Nov 29, 2021 · 1 comment
Open

Unknown directive "specifiedBy" #165

sebthom opened this issue Nov 29, 2021 · 1 comment

Comments

@sebthom
Copy link

sebthom commented Nov 29, 2021

I tried to load a generated schema and graphql-faker failed with:

> npx graphql-faker my_schema.gql

Your schema constains 2 validation errors:

Unknown directive "specifiedBy".

my_schema.gql:369:19
368 | """
369 | scalar JSONObject @specifiedBy(url: "http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf")
    |                   ^
370 |

Unknown directive "specifiedBy".

my_schema.gql:528:32
527 | """
528 | scalar ProseMirrorJSONDocument @specifiedBy(url: "https://prosemirror.net/docs/ref/#model.Document_Structure")
    |                                ^
529 |

Offending definitions:

"""
The `JSONObject` scalar type represents JSON objects as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).
"""
scalar JSONObject @specifiedBy(url: "http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf")
"""
The `ProseMirrorJSONDocument` scalar type represents JSON data for [ProseMirror Documents](https://prosemirror.net/docs/ref/#model.Document_Structure).
"""
scalar ProseMirrorJSONDocument @specifiedBy(url: "https://prosemirror.net/docs/ref/#model.Document_Structure")
@hanskokx
Copy link

I've seen this issue, too.

"The `DateTime` scalar represents an ISO-8601 compliant date time type."
scalar DateTime @specifiedBy(url: "https://www.graphql-scalars.com/date-time")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants