Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upFix for #352 is preventing meaningful Schema parsing errors #1322
Comments
|
So the previous behavior was a result of a bug most likely.
So it is correctly saying its invalid syntax. We could accept ANY name and then validate but this would lead to silly situations with meaningful characters and open us up parsing bugs. I understand your point about how its not easy to work out whats wrong but it is correct. Building loose parsers and then guarding yourself on all the conditions is not a task we would want take on. |
|
Sorry I don't think I've described this issue very well. I'll close this for now. Thanks for your time :) |
I made a dumb mistake in my schema (
oops.in front ofQuery) -With the fix for #352 in place (current master) this generates a
ParseCancellationExceptionwith only the text -There are more tokens in the query that have not been consumedIf I comment out the fix, I get the much more helpful -
Caused by: com.coxautodev.graphql.tools.SchemaClassScannerError: Type definition for root query type 'Query' not found!