Skip to content
Prev Previous commit
Next Next commit
fix extra word/capitalization with Within
  • Loading branch information
yaacovCR committed Sep 20, 2024
commit d6fe83b6d2a0e8bf3dc053c267788ec8bdba7d9b
2 changes: 1 addition & 1 deletion src/validation/__tests__/ValuesOfCorrectTypeRule-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1105,7 +1105,7 @@ describe('Validate: Values of correct type', () => {
`).toDeepEqual([
{
message:
'Variable "$string" must be non-nullable to be used for Within OneOf Input Object type "OneOfInput".',
'Variable "$string" must be non-nullable to be used within OneOf Input Object type "OneOfInput".',
locations: [{ line: 4, column: 37 }],
},
]);
Expand Down
2 changes: 1 addition & 1 deletion src/validation/rules/ValuesOfCorrectTypeRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ function validateOneOfInputObject(
if (isNullableVariable) {
context.reportError(
new GraphQLError(
`Variable "$${variableName}" must be non-nullable to be used for Within OneOf Input Object type "${type}".`,
`Variable "$${variableName}" must be non-nullable to be used within OneOf Input Object type "${type}".`,
{ nodes: [node] },
),
);
Expand Down