Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed value overflows break query validation. (#5522)
- Loading branch information
1 parent
9158360
commit 5c59a9f
Showing
5 changed files
with
88 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
...te/Core/test/Validation.Tests/__snapshots__/ValuesOfCorrectTypeRuleTests.OverflowInt.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
[ | ||
{ | ||
"Message": "The specified argument value does not match the argument type.", | ||
"Code": null, | ||
"Path": { | ||
"Name": "intArgField", | ||
"Parent": { | ||
"Name": "arguments", | ||
"Parent": { | ||
"Parent": null, | ||
"Depth": -1, | ||
"IsRoot": true | ||
}, | ||
"Depth": 0, | ||
"IsRoot": false | ||
}, | ||
"Depth": 1, | ||
"IsRoot": false | ||
}, | ||
"Locations": [ | ||
{ | ||
"Line": 4, | ||
"Column": 37 | ||
} | ||
], | ||
"Extensions": { | ||
"argument": "intArg", | ||
"argumentValue": "9223372036854775807", | ||
"locationType": "Int", | ||
"specifiedBy": "http://spec.graphql.org/October2021/#sec-Values-of-Correct-Type" | ||
}, | ||
"Exception": null, | ||
"SyntaxNode": { | ||
"Kind": "IntValue", | ||
"Location": { | ||
"Start": 77, | ||
"End": 97, | ||
"Line": 4, | ||
"Column": 37 | ||
}, | ||
"Value": "9223372036854775807" | ||
} | ||
} | ||
] |