Skip to content

Commit 33a71bd

Browse files
committed
Add more rules to validate SDL
1 parent 9c2b206 commit 33a71bd

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/type/__tests__/validation-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ describe('Type System: Input Objects must have fields', () => {
713713
schema = extendSchema(
714714
schema,
715715
parse(`
716-
directive @test on ENUM
716+
directive @test on INPUT_OBJECT
717717
718718
extend input SomeInputObject @test
719719
`),

src/validation/specifiedRules.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,4 +132,6 @@ export const specifiedSDLRules: Array<(SDLValidationContext) => ASTVisitor> = [
132132
LoneSchemaDefinition,
133133
KnownDirectives,
134134
UniqueDirectivesPerLocation,
135+
UniqueArgumentNames,
136+
UniqueInputFieldNames,
135137
];

0 commit comments

Comments
 (0)