From 1215fde3383ae5c3a759c209fa7fa952df7012b5 Mon Sep 17 00:00:00 2001 From: Roman Lovakov Date: Mon, 16 Sep 2024 12:22:13 +0300 Subject: [PATCH] Smallrye GraphQL: add missing federation annotations to index --- .../deployment/SmallRyeGraphQLProcessor.java | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/extensions/smallrye-graphql/deployment/src/main/java/io/quarkus/smallrye/graphql/deployment/SmallRyeGraphQLProcessor.java b/extensions/smallrye-graphql/deployment/src/main/java/io/quarkus/smallrye/graphql/deployment/SmallRyeGraphQLProcessor.java index 03ee25fd6e059..792edd0eba119 100644 --- a/extensions/smallrye-graphql/deployment/src/main/java/io/quarkus/smallrye/graphql/deployment/SmallRyeGraphQLProcessor.java +++ b/extensions/smallrye-graphql/deployment/src/main/java/io/quarkus/smallrye/graphql/deployment/SmallRyeGraphQLProcessor.java @@ -83,9 +83,11 @@ import io.smallrye.graphql.api.Entry; import io.smallrye.graphql.api.ErrorExtensionProvider; import io.smallrye.graphql.api.OneOf; +import io.smallrye.graphql.api.federation.Authenticated; import io.smallrye.graphql.api.federation.ComposeDirective; import io.smallrye.graphql.api.federation.Extends; import io.smallrye.graphql.api.federation.External; +import io.smallrye.graphql.api.federation.FieldSet; import io.smallrye.graphql.api.federation.Inaccessible; import io.smallrye.graphql.api.federation.InterfaceObject; import io.smallrye.graphql.api.federation.Key; @@ -93,6 +95,15 @@ import io.smallrye.graphql.api.federation.Requires; import io.smallrye.graphql.api.federation.Shareable; import io.smallrye.graphql.api.federation.Tag; +import io.smallrye.graphql.api.federation.link.Import; +import io.smallrye.graphql.api.federation.link.Link; +import io.smallrye.graphql.api.federation.link.Purpose; +import io.smallrye.graphql.api.federation.policy.Policy; +import io.smallrye.graphql.api.federation.policy.PolicyGroup; +import io.smallrye.graphql.api.federation.policy.PolicyItem; +import io.smallrye.graphql.api.federation.requiresscopes.RequiresScopes; +import io.smallrye.graphql.api.federation.requiresscopes.ScopeGroup; +import io.smallrye.graphql.api.federation.requiresscopes.ScopeItem; import io.smallrye.graphql.cdi.config.MicroProfileConfig; import io.smallrye.graphql.cdi.producer.GraphQLProducer; import io.smallrye.graphql.cdi.tracing.TracingService; @@ -298,6 +309,17 @@ void buildFinalIndex( indexer.indexClass(io.smallrye.graphql.api.federation.Override.class); indexer.indexClass(Tag.class); indexer.indexClass(OneOf.class); + indexer.indexClass(Authenticated.class); + indexer.indexClass(FieldSet.class); + indexer.indexClass(Link.class); + indexer.indexClass(Import.class); + indexer.indexClass(Purpose.class); + indexer.indexClass(Policy.class); + indexer.indexClass(PolicyGroup.class); + indexer.indexClass(PolicyItem.class); + indexer.indexClass(RequiresScopes.class); + indexer.indexClass(ScopeGroup.class); + indexer.indexClass(ScopeItem.class); } catch (IOException ex) { LOG.warn("Failure while creating index", ex); }