We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69de270 commit fc7c77fCopy full SHA for fc7c77f
application/src/main/java/org/opentripplanner/apis/gtfs/configure/SchemaModule.java
@@ -4,6 +4,7 @@
4
import dagger.Provides;
5
import graphql.schema.GraphQLSchema;
6
import jakarta.inject.Singleton;
7
+import javax.annotation.Nullable;
8
import org.opentripplanner.apis.gtfs.SchemaFactory;
9
import org.opentripplanner.framework.application.OTPFeature;
10
import org.opentripplanner.routing.api.request.RouteRequest;
@@ -19,6 +20,7 @@ public class SchemaModule {
19
20
21
@Provides
22
@Singleton
23
+ @Nullable
24
public GraphQLSchema provideSchema(RouteRequest defaultRouteRequest) {
25
return OTPFeature.GtfsGraphQlApi.isOn()
26
? SchemaFactory.createSchemaWithDefaultInjection(defaultRouteRequest)
0 commit comments