Skip to content

Commit

Permalink
fix #1996: add missing federation directives to index
Browse files Browse the repository at this point in the history
  • Loading branch information
t1 committed Jan 13, 2024
1 parent 8245943 commit 83d3641
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@
import java.util.zip.ZipEntry;
import java.util.zip.ZipInputStream;

import io.smallrye.graphql.api.federation.ComposeDirective;
import io.smallrye.graphql.api.federation.Inaccessible;
import io.smallrye.graphql.api.federation.InterfaceObject;
import io.smallrye.graphql.api.federation.Shareable;
import io.smallrye.graphql.api.federation.Tag;
import org.jboss.jandex.CompositeIndex;
import org.jboss.jandex.IndexReader;
import org.jboss.jandex.IndexView;
Expand Down Expand Up @@ -81,12 +86,18 @@ private IndexView createCustomIndex() {
indexer.index(convertClassToInputStream(Entry.class));
indexer.index(convertClassToInputStream(Repeatable.class));

// things from the API module
// directives from the API module
indexer.index(convertClassToInputStream(ComposeDirective.class));
indexer.index(convertClassToInputStream(Extends.class));
indexer.index(convertClassToInputStream(External.class));
indexer.index(convertClassToInputStream(Inaccessible.class));
indexer.index(convertClassToInputStream(InterfaceObject.class));
indexer.index(convertClassToInputStream(Key.class));
indexer.index(convertClassToInputStream(Override.class));
indexer.index(convertClassToInputStream(Provides.class));
indexer.index(convertClassToInputStream(Requires.class));
indexer.index(convertClassToInputStream(Shareable.class));
indexer.index(convertClassToInputStream(Tag.class));
} catch (IOException ex) {
throw new RuntimeException(ex);
}
Expand Down

0 comments on commit 83d3641

Please sign in to comment.