Closed roma-glushko closed 2 weeks ago
When there is a syntax error like this one:
Response(200 OK, data_model=<class 'githubkit.graphql.models.GraphQLResponse'>) data=None errors=[GraphQLError(type=None, message='Expected NAME, actual: COLON (":") at [3, 64]', locations=[SourceLocation(line=3, column=64)], path=None, extensions=None)] extensions=None []
The GraphQLResponse schema fails to parse it with the following error:
1 validation error for ParsingModel[GraphQLResponse] __root__ -> errors -> 0 -> type field required (type=value_error.missing) []
Seems like the error schema has type as a required field but it doesn't hold true in case of syntax errors.
Confirm that the type field is missing when syntax error.
In the octokit's issue,
Yes, the type field is going to be returned with every error.
😅 Maybe this case also affects the octokit's error type.
When there is a syntax error like this one:
The GraphQLResponse schema fails to parse it with the following error:
Seems like the error schema has type as a required field but it doesn't hold true in case of syntax errors.