Describe the bug
Per GraphQL spec, the error location should only be specified IF it can point to a valid location (i.e., starting with a positive column/row).
https://spec.graphql.org/draft/#sel-GAPHRPFCCaCGX5zM
This value was returned:
|
public static final SourceLocation EMPTY = new SourceLocation(-1, -1); |
It is assigned here:
|
SourceLocation location = sourceLocation == null ? SourceLocation.EMPTY : sourceLocation; |
To Reproduce
I don't have a Java environment on my machine, so I can't test it myself :(
Describe the bug
Per GraphQL spec, the error location should only be specified IF it can point to a valid location (i.e., starting with a positive column/row).
https://spec.graphql.org/draft/#sel-GAPHRPFCCaCGX5zM
This value was returned:
graphql-java/src/main/java/graphql/language/SourceLocation.java
Line 17 in ee32161
It is assigned here:
graphql-java/src/main/java/graphql/parser/ExtendedBailStrategy.java
Line 72 in ee32161
To Reproduce
I don't have a Java environment on my machine, so I can't test it myself :(