You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have extracted a schema from an API. However, graphdoc fails to parse for 3 reasons;
there is a "\uFFD" character
The schema had multi-line comments i.e. see below for example from the schema
"""
The Date scalar type represents a year, month and day in accordance with the ISO-8601 standard.
"""
scalar Date
there are nulls
For the first issue i converted to utf-8
then I replaced all occurences of null with "null"
and finally I removed the comments
This worked and graphdoc produces the documentation but it would be great the tool could parse this schema.
I used the npm package get-graphql-schema to produce the schema so unsure if some of these issues are due to that package producing an invalid schema files.
The text was updated successfully, but these errors were encountered:
I have extracted a schema from an API. However, graphdoc fails to parse for 3 reasons;
"""
The
Date
scalar type represents a year, month and day in accordance with theISO-8601 standard.
"""
scalar Date
For the first issue i converted to utf-8
then I replaced all occurences of null with "null"
and finally I removed the comments
This worked and graphdoc produces the documentation but it would be great the tool could parse this schema.
I used the npm package get-graphql-schema to produce the schema so unsure if some of these issues are due to that package producing an invalid schema files.
The text was updated successfully, but these errors were encountered: