Skip to content

Commit

Permalink
add valid locations
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddewie authored and federicorispo committed Jul 28, 2024
1 parent 28fa810 commit 9adc921
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import graphql.annotations.processor.GraphQLAnnotations
import graphql.execution.instrumentation.InstrumentationState
import graphql.execution.instrumentation.SimplePerformantInstrumentation
import graphql.execution.instrumentation.parameters.InstrumentationCreateStateParameters
import graphql.introspection.Introspection
import graphql.kickstart.execution.GraphQLRequest
import graphql.kickstart.execution.config.ExecutionStrategyProvider
import graphql.kickstart.execution.config.InstrumentationProvider
Expand Down Expand Up @@ -268,7 +269,7 @@ class OsgiGraphQLHttpServletSpec extends Specification {
static class TestDirectiveProvider implements GraphQLDirectiveProvider {
@Override
Set<GraphQLDirective> getDirectives() {
return new HashSet<>(Arrays.asList(GraphQLDirective.newDirective().name("myDirective").build()));
return new HashSet<>(Arrays.asList(GraphQLDirective.newDirective().name("myDirective").validLocation(Introspection.DirectiveLocation.FIELD).build()));
}
}

Expand Down

0 comments on commit 9adc921

Please sign in to comment.