graphql-kit / graphql-faker

🎲 Mock or extend your GraphQL API with faked data. No coding required.
MIT License
2.69k stars 225 forks source link

Unknown directive "specifiedBy" #165

Open sebthom opened 2 years ago

sebthom commented 2 years ago

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 commented 7 months ago

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")