Skip to content

Commit

Permalink
Merge pull request #5 from jmartisk/srgql2.8.0-federation-annotations…
Browse files Browse the repository at this point in the history
…-change

Updates to scalars and directives
  • Loading branch information
mskacelik authored Feb 9, 2024
2 parents 4738314 + fb6b525 commit 2e024f7
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 5 deletions.
10 changes: 10 additions & 0 deletions extensions/smallrye-graphql/deployment/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,16 @@
</annotationProcessorPaths>
</configuration>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<!-- this is needed because we use a static initializer in io.smallrye.graphql.schema.model.Scalars
that acts upon the value of `smallrye.graphql.federation.enabled` during build, but some tests have that as
true, some as false, so we need to create a separate JVM per test to run the initializer each time separately.
This is reported as https://github.com/smallrye/smallrye-graphql/issues/2039 -->
<reuseForks>false</reuseForks>
</configuration>
</plugin>
</plugins>
</build>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

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.Key;

@Key(fields = "id")
@Key(fields = @FieldSet("id"))
@Extends
public class Foo {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

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.Key;

@Key(fields = "id")
@Key(fields = @FieldSet("id"))
@Extends
public class Foo {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@

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.Key;

@Key(fields = "id")
@Key(fields = "otherId")
@Key(fields = @FieldSet("id"))
@Key(fields = @FieldSet("otherId"))
@Extends
public class Bar {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

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.Key;

@Key(fields = "id")
@Key(fields = @FieldSet("id"))
@Extends
public class Foo {

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# testJsonDefault
60|type Mutation | id : "1000" | Expecting an id in the default value for item for provisionHero

0 comments on commit 2e024f7

Please sign in to comment.