Skip to content

Commit d6fe83b

Browse files
committed
fix extra word/capitalization with Within
1 parent d4d1bcb commit d6fe83b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/validation/__tests__/ValuesOfCorrectTypeRule-test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,7 @@ describe('Validate: Values of correct type', () => {
11051105
`).toDeepEqual([
11061106
{
11071107
message:
1108-
'Variable "$string" must be non-nullable to be used for Within OneOf Input Object type "OneOfInput".',
1108+
'Variable "$string" must be non-nullable to be used within OneOf Input Object type "OneOfInput".',
11091109
locations: [{ line: 4, column: 37 }],
11101110
},
11111111
]);

src/validation/rules/ValuesOfCorrectTypeRule.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ function validateOneOfInputObject(
224224
if (isNullableVariable) {
225225
context.reportError(
226226
new GraphQLError(
227-
`Variable "$${variableName}" must be non-nullable to be used for Within OneOf Input Object type "${type}".`,
227+
`Variable "$${variableName}" must be non-nullable to be used within OneOf Input Object type "${type}".`,
228228
{ nodes: [node] },
229229
),
230230
);

0 commit comments

Comments
 (0)