Thanks to visit codestin.com
Credit goes to github.com

Skip to content

An example of how we might fix the schema transformer

Sign in for the full log view
GitHub Actions / Test Results failed Dec 22, 2025 in 0s

24 fail, 8 skipped, 5 189 pass in 5m 12s

  327 files    327 suites   5m 12s ⏱️
5 221 tests 5 189 ✅ 8 💤 24 ❌
5 310 runs  5 278 ✅ 8 💤 24 ❌

Results for commit 803896b.

Annotations

Check warning on line 0 in graphql.schema.GraphQLInterfaceTypeTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

schema transformer accepts interface with type reference (graphql.schema.GraphQLInterfaceTypeTest) failed

build/test-results/testWithJava11/TEST-graphql.schema.GraphQLInterfaceTypeTest.xml [took 0s]
Raw output
Expected no exception to be thrown, but got 'graphql.AssertException'
	at app//spock.lang.Specification.noExceptionThrown(Specification.java:118)
	at graphql.schema.GraphQLInterfaceTypeTest.schema transformer accepts interface with type reference(GraphQLInterfaceTypeTest.groovy:106)
Caused by: graphql.AssertException: All types within a GraphQL schema must have unique names. No two provided types may have the same name.
No provided type may have a name which conflicts with any built in types (including Scalar and Introspection types).
You have redefined the type '__Field' from being a 'GraphQLObjectType' to a 'GraphQLObjectType'
	at app//graphql.schema.impl.GraphQLTypeCollectingVisitor.assertUniqueTypeObjects(GraphQLTypeCollectingVisitor.java:156)
	at app//graphql.schema.impl.GraphQLTypeCollectingVisitor.assertTypeUniqueness(GraphQLTypeCollectingVisitor.java:148)
	at app//graphql.schema.impl.GraphQLTypeCollectingVisitor.visitGraphQLObjectType(GraphQLTypeCollectingVisitor.java:59)
	at app//graphql.schema.impl.MultiReadOnlyGraphQLTypeVisitor.lambda$visitGraphQLObjectType$12(MultiReadOnlyGraphQLTypeVisitor.java:124)
	at [email protected]/java.util.Arrays$ArrayList.forEach(Arrays.java:4390)
	at app//graphql.schema.impl.MultiReadOnlyGraphQLTypeVisitor.visitGraphQLObjectType(MultiReadOnlyGraphQLTypeVisitor.java:124)
	at app//graphql.schema.GraphQLObjectType.accept(GraphQLObjectType.java:191)
	at app//graphql.schema.SchemaTraverser$TraverserDelegateVisitor.enter(SchemaTraverser.java:111)
	at app//graphql.util.Traverser.traverse(Traverser.java:144)
	at app//graphql.schema.SchemaTraverser.doTraverse(SchemaTraverser.java:98)
	at app//graphql.schema.SchemaTraverser.depthFirst(SchemaTraverser.java:88)
	at app//graphql.schema.SchemaTraverser.depthFirst(SchemaTraverser.java:81)
	at app//graphql.schema.impl.SchemaUtil.visitPartiallySchema(SchemaUtil.java:68)
	at app//graphql.schema.GraphQLSchema$Builder.buildImpl(GraphQLSchema.java:862)
	at app//graphql.schema.GraphQLSchema$Builder.build(GraphQLSchema.java:841)
	at app//graphql.schema.SchemaTransformer$DummyRoot.rebuildSchema(SchemaTransformer.java:636)
	at app//graphql.schema.SchemaTransformer.transformImpl(SchemaTransformer.java:152)
	at app//graphql.schema.SchemaTransformer.transform(SchemaTransformer.java:111)
	at app//graphql.schema.SchemaTransformer.transformSchema(SchemaTransformer.java:79)
	at graphql.schema.GraphQLInterfaceTypeTest.schema transformer accepts interface with type reference(GraphQLInterfaceTypeTest.groovy:95)

Check warning on line 0 in graphql.schema.visitor.GraphQLSchemaVisitorTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

can quit visitation (graphql.schema.visitor.GraphQLSchemaVisitorTest) failed

build/test-results/testWithJava11/TEST-graphql.schema.visitor.GraphQLSchemaVisitorTest.xml [took 0s]
Raw output
Condition not satisfied:

visited == ["xField", "xQuit",]
|       |
|       false
[XInputType, xinA, XObjectType2, xObj2, XObjectType, xObj, xArg, xField, xQuit]

	at graphql.schema.visitor.GraphQLSchemaVisitorTest.can quit visitation(GraphQLSchemaVisitorTest.groovy:370)

Check warning on line 0 in graphql.schema.usage.SchemaUsageSupportTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

can handle cleared directives (graphql.schema.usage.SchemaUsageSupportTest) failed

build/test-results/testWithJava11/TEST-graphql.schema.usage.SchemaUsageSupportTest.xml [took 0s]
Raw output
graphql.AssertException: All types within a GraphQL schema must have unique names. No two provided types may have the same name.
No provided type may have a name which conflicts with any built in types (including Scalar and Introspection types).
You have redefined the type '__Field' from being a 'GraphQLObjectType' to a 'GraphQLObjectType'
	at app//graphql.schema.impl.GraphQLTypeCollectingVisitor.assertUniqueTypeObjects(GraphQLTypeCollectingVisitor.java:156)
	at app//graphql.schema.impl.GraphQLTypeCollectingVisitor.assertTypeUniqueness(GraphQLTypeCollectingVisitor.java:148)
	at app//graphql.schema.impl.GraphQLTypeCollectingVisitor.visitGraphQLObjectType(GraphQLTypeCollectingVisitor.java:59)
	at app//graphql.schema.impl.MultiReadOnlyGraphQLTypeVisitor.lambda$visitGraphQLObjectType$12(MultiReadOnlyGraphQLTypeVisitor.java:124)
	at [email protected]/java.util.Arrays$ArrayList.forEach(Arrays.java:4390)
	at app//graphql.schema.impl.MultiReadOnlyGraphQLTypeVisitor.visitGraphQLObjectType(MultiReadOnlyGraphQLTypeVisitor.java:124)
	at app//graphql.schema.GraphQLObjectType.accept(GraphQLObjectType.java:191)
	at app//graphql.schema.SchemaTraverser$TraverserDelegateVisitor.enter(SchemaTraverser.java:111)
	at app//graphql.util.Traverser.traverse(Traverser.java:144)
	at app//graphql.schema.SchemaTraverser.doTraverse(SchemaTraverser.java:98)
	at app//graphql.schema.SchemaTraverser.depthFirst(SchemaTraverser.java:88)
	at app//graphql.schema.SchemaTraverser.depthFirst(SchemaTraverser.java:81)
	at app//graphql.schema.impl.SchemaUtil.visitPartiallySchema(SchemaUtil.java:68)
	at app//graphql.schema.GraphQLSchema$Builder.buildImpl(GraphQLSchema.java:862)
	at app//graphql.schema.GraphQLSchema$Builder.build(GraphQLSchema.java:841)
	at app//graphql.schema.SchemaTransformer$DummyRoot.rebuildSchema(SchemaTransformer.java:636)
	at app//graphql.schema.SchemaTransformer.transformImpl(SchemaTransformer.java:152)
	at app//graphql.schema.SchemaTransformer.transform(SchemaTransformer.java:111)
	at graphql.schema.usage.SchemaUsageSupportTest.can handle cleared directives(SchemaUsageSupportTest.groovy:261)

Check warning on line 0 in graphql.introspection.IntrospectionWithDirectivesSupportTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

can find directives in introspection (graphql.introspection.IntrospectionWithDirectivesSupportTest) failed

build/test-results/testWithJava11/TEST-graphql.introspection.IntrospectionWithDirectivesSupportTest.xml [took 0s]
Raw output
graphql.AssertException: All types within a GraphQL schema must have unique names. No two provided types may have the same name.
No provided type may have a name which conflicts with any built in types (including Scalar and Introspection types).
You have redefined the type '__Field' from being a 'GraphQLObjectType' to a 'GraphQLObjectType'
	at app//graphql.schema.impl.GraphQLTypeCollectingVisitor.assertUniqueTypeObjects(GraphQLTypeCollectingVisitor.java:156)
	at app//graphql.schema.impl.GraphQLTypeCollectingVisitor.assertTypeUniqueness(GraphQLTypeCollectingVisitor.java:148)
	at app//graphql.schema.impl.GraphQLTypeCollectingVisitor.visitGraphQLObjectType(GraphQLTypeCollectingVisitor.java:59)
	at app//graphql.schema.impl.MultiReadOnlyGraphQLTypeVisitor.lambda$visitGraphQLObjectType$12(MultiReadOnlyGraphQLTypeVisitor.java:124)
	at [email protected]/java.util.Arrays$ArrayList.forEach(Arrays.java:4390)
	at app//graphql.schema.impl.MultiReadOnlyGraphQLTypeVisitor.visitGraphQLObjectType(MultiReadOnlyGraphQLTypeVisitor.java:124)
	at app//graphql.schema.GraphQLObjectType.accept(GraphQLObjectType.java:191)
	at app//graphql.schema.SchemaTraverser$TraverserDelegateVisitor.enter(SchemaTraverser.java:111)
	at app//graphql.util.Traverser.traverse(Traverser.java:144)
	at app//graphql.schema.SchemaTraverser.doTraverse(SchemaTraverser.java:98)
	at app//graphql.schema.SchemaTraverser.depthFirst(SchemaTraverser.java:88)
	at app//graphql.schema.SchemaTraverser.depthFirst(SchemaTraverser.java:81)
	at app//graphql.schema.impl.SchemaUtil.visitPartiallySchema(SchemaUtil.java:68)
	at app//graphql.schema.GraphQLSchema$Builder.buildImpl(GraphQLSchema.java:862)
	at app//graphql.schema.GraphQLSchema$Builder.build(GraphQLSchema.java:841)
	at app//graphql.schema.SchemaTransformer$DummyRoot.rebuildSchema(SchemaTransformer.java:636)
	at app//graphql.schema.SchemaTransformer.transformImpl(SchemaTransformer.java:152)
	at app//graphql.schema.SchemaTransformer.transform(SchemaTransformer.java:111)
	at app//graphql.schema.SchemaTransformer.transformSchema(SchemaTransformer.java:79)
	at app//graphql.introspection.IntrospectionWithDirectivesSupport.apply(IntrospectionWithDirectivesSupport.java:143)
	at graphql.introspection.IntrospectionWithDirectivesSupportTest.can find directives in introspection(IntrospectionWithDirectivesSupportTest.groovy:33)

Check warning on line 0 in graphql.introspection.IntrospectionWithDirectivesSupportTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

can filter the directives returned in introspection (graphql.introspection.IntrospectionWithDirectivesSupportTest) failed

build/test-results/testWithJava11/TEST-graphql.introspection.IntrospectionWithDirectivesSupportTest.xml [took 0s]
Raw output
graphql.AssertException: All types within a GraphQL schema must have unique names. No two provided types may have the same name.
No provided type may have a name which conflicts with any built in types (including Scalar and Introspection types).
You have redefined the type '__Field' from being a 'GraphQLObjectType' to a 'GraphQLObjectType'
	at app//graphql.schema.impl.GraphQLTypeCollectingVisitor.assertUniqueTypeObjects(GraphQLTypeCollectingVisitor.java:156)
	at app//graphql.schema.impl.GraphQLTypeCollectingVisitor.assertTypeUniqueness(GraphQLTypeCollectingVisitor.java:148)
	at app//graphql.schema.impl.GraphQLTypeCollectingVisitor.visitGraphQLObjectType(GraphQLTypeCollectingVisitor.java:59)
	at app//graphql.schema.impl.MultiReadOnlyGraphQLTypeVisitor.lambda$visitGraphQLObjectType$12(MultiReadOnlyGraphQLTypeVisitor.java:124)
	at [email protected]/java.util.Arrays$ArrayList.forEach(Arrays.java:4390)
	at app//graphql.schema.impl.MultiReadOnlyGraphQLTypeVisitor.visitGraphQLObjectType(MultiReadOnlyGraphQLTypeVisitor.java:124)
	at app//graphql.schema.GraphQLObjectType.accept(GraphQLObjectType.java:191)
	at app//graphql.schema.SchemaTraverser$TraverserDelegateVisitor.enter(SchemaTraverser.java:111)
	at app//graphql.util.Traverser.traverse(Traverser.java:144)
	at app//graphql.schema.SchemaTraverser.doTraverse(SchemaTraverser.java:98)
	at app//graphql.schema.SchemaTraverser.depthFirst(SchemaTraverser.java:88)
	at app//graphql.schema.SchemaTraverser.depthFirst(SchemaTraverser.java:81)
	at app//graphql.schema.impl.SchemaUtil.visitPartiallySchema(SchemaUtil.java:68)
	at app//graphql.schema.GraphQLSchema$Builder.buildImpl(GraphQLSchema.java:862)
	at app//graphql.schema.GraphQLSchema$Builder.build(GraphQLSchema.java:841)
	at app//graphql.schema.SchemaTransformer$DummyRoot.rebuildSchema(SchemaTransformer.java:636)
	at app//graphql.schema.SchemaTransformer.transformImpl(SchemaTransformer.java:152)
	at app//graphql.schema.SchemaTransformer.transform(SchemaTransformer.java:111)
	at app//graphql.schema.SchemaTransformer.transformSchema(SchemaTransformer.java:79)
	at app//graphql.introspection.IntrospectionWithDirectivesSupport.apply(IntrospectionWithDirectivesSupport.java:143)
	at graphql.introspection.IntrospectionWithDirectivesSupportTest.can filter the directives returned in introspection(IntrospectionWithDirectivesSupportTest.groovy:142)

Check warning on line 0 in graphql.introspection.IntrospectionWithDirectivesSupportTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

can set prefixes onto the Applied types (graphql.introspection.IntrospectionWithDirectivesSupportTest) failed

build/test-results/testWithJava11/TEST-graphql.introspection.IntrospectionWithDirectivesSupportTest.xml [took 0s]
Raw output
graphql.AssertException: All types within a GraphQL schema must have unique names. No two provided types may have the same name.
No provided type may have a name which conflicts with any built in types (including Scalar and Introspection types).
You have redefined the type '__Field' from being a 'GraphQLObjectType' to a 'GraphQLObjectType'
	at app//graphql.schema.impl.GraphQLTypeCollectingVisitor.assertUniqueTypeObjects(GraphQLTypeCollectingVisitor.java:156)
	at app//graphql.schema.impl.GraphQLTypeCollectingVisitor.assertTypeUniqueness(GraphQLTypeCollectingVisitor.java:148)
	at app//graphql.schema.impl.GraphQLTypeCollectingVisitor.visitGraphQLObjectType(GraphQLTypeCollectingVisitor.java:59)
	at app//graphql.schema.impl.MultiReadOnlyGraphQLTypeVisitor.lambda$visitGraphQLObjectType$12(MultiReadOnlyGraphQLTypeVisitor.java:124)
	at [email protected]/java.util.Arrays$ArrayList.forEach(Arrays.java:4390)
	at app//graphql.schema.impl.MultiReadOnlyGraphQLTypeVisitor.visitGraphQLObjectType(MultiReadOnlyGraphQLTypeVisitor.java:124)
	at app//graphql.schema.GraphQLObjectType.accept(GraphQLObjectType.java:191)
	at app//graphql.schema.SchemaTraverser$TraverserDelegateVisitor.enter(SchemaTraverser.java:111)
	at app//graphql.util.Traverser.traverse(Traverser.java:144)
	at app//graphql.schema.SchemaTraverser.doTraverse(SchemaTraverser.java:98)
	at app//graphql.schema.SchemaTraverser.depthFirst(SchemaTraverser.java:88)
	at app//graphql.schema.SchemaTraverser.depthFirst(SchemaTraverser.java:81)
	at app//graphql.schema.impl.SchemaUtil.visitPartiallySchema(SchemaUtil.java:68)
	at app//graphql.schema.GraphQLSchema$Builder.buildImpl(GraphQLSchema.java:862)
	at app//graphql.schema.GraphQLSchema$Builder.build(GraphQLSchema.java:841)
	at app//graphql.schema.SchemaTransformer$DummyRoot.rebuildSchema(SchemaTransformer.java:636)
	at app//graphql.schema.SchemaTransformer.transformImpl(SchemaTransformer.java:152)
	at app//graphql.schema.SchemaTransformer.transform(SchemaTransformer.java:111)
	at app//graphql.schema.SchemaTransformer.transformSchema(SchemaTransformer.java:79)
	at app//graphql.introspection.IntrospectionWithDirectivesSupport.apply(IntrospectionWithDirectivesSupport.java:143)
	at graphql.introspection.IntrospectionWithDirectivesSupportTest.can set prefixes onto the Applied types(IntrospectionWithDirectivesSupportTest.groovy:204)

Check warning on line 0 in graphql.util.AnonymizerTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

simple schema and query (graphql.util.AnonymizerTest) failed

build/test-results/testWithJava11/TEST-graphql.util.AnonymizerTest.xml [took 0s]
Raw output
Condition not satisfied:

newSchema == """schema { query: Object1 } type Object1 { field1: Object2 } type Object2 { field2: String field3: ID } """
|         |
|         false
|         37 differences (66% similarity)
|         schema {\n  query: Object(2)\n}\n\ntype Object1 {\n  field1: (String\n  fi)e(ld)2(: ID)\n}\n\ntype Object2 {\n  field(3): (Obj----~----)e(ct1----)\n}\n
|         schema {\n  query: Object(1)\n}\n\ntype Object1 {\n  field1: (Obj----~----)e(ct)2(----)\n}\n\ntype Object2 {\n  field(2): (String\n  fi)e(ld3: ID)\n}\n
schema {
  query: Object2
}
 
type Object1 {
  field1: String
  field2: ID
}
 
type Object2 {
  field3: Object1
}

	at graphql.util.AnonymizerTest.simple schema and query(AnonymizerTest.groovy:30)

Check warning on line 0 in graphql.util.AnonymizerTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

query with fragments (graphql.util.AnonymizerTest) failed

build/test-results/testWithJava11/TEST-graphql.util.AnonymizerTest.xml [took 0s]
Raw output
Condition not satisfied:

newSchema == """schema { query: Object1 } type Object1 { field1: Object2 } type Object2 { field2: String field3: ID } """
|         |
|         false
|         37 differences (66% similarity)
|         schema {\n  query: Object(2)\n}\n\ntype Object1 {\n  field1: (String\n  fi)e(ld)2(: ID)\n}\n\ntype Object2 {\n  field(3): (Obj----~----)e(ct1----)\n}\n
|         schema {\n  query: Object(1)\n}\n\ntype Object1 {\n  field1: (Obj----~----)e(ct)2(----)\n}\n\ntype Object2 {\n  field(2): (String\n  fi)e(ld3: ID)\n}\n
schema {
  query: Object2
}
 
type Object1 {
  field1: String
  field2: ID
}
 
type Object2 {
  field3: Object1
}

	at graphql.util.AnonymizerTest.query with fragments(AnonymizerTest.groovy:65)

Check warning on line 0 in graphql.util.AnonymizerTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

query with arguments (graphql.util.AnonymizerTest) failed

build/test-results/testWithJava11/TEST-graphql.util.AnonymizerTest.xml [took 0s]
Raw output
Condition not satisfied:

newSchema == """schema { query: Object1 } type Object1 { field1(argument1: ID, argument2: String): Object2 } type Object2 { field2(argument3: Boolean): String field3: ID } """
|         |
|         false
|         50 differences (69% similarity)
|         schema {\n  query: Object(2)\n}\n\ntype Object1 {\n  field1(argument1: (Boole)a(-----)n()-): String(\n ) (fi-)e(ld)2(: ID)\n}\n\ntype Object2 {\n  field(3)(argument(2): (ID, argum)e(-)n(t3): String()~:) (Obj)e(ct1----)\n}\n
|         schema {\n  query: Object(1)\n}\n\ntype Object1 {\n  field1(argument1: (ID, -)a(rgume)n(t2): String()~:) (Obj)e(ct)2(----)\n}\n\ntype Object2 {\n  field(2)(argument(3): (Bool-----)e(a)n()-): String(\n ) (fi-)e(ld3: ID)\n}\n
schema {
  query: Object2
}
 
type Object1 {
  field1(argument1: Boolean): String
  field2: ID
}
 
type Object2 {
  field3(argument2: ID, argument3: String): Object1
}

	at graphql.util.AnonymizerTest.query with arguments(AnonymizerTest.groovy:101)

Check warning on line 0 in graphql.util.AnonymizerTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

query with operation and variable names (graphql.util.AnonymizerTest) failed

build/test-results/testWithJava11/TEST-graphql.util.AnonymizerTest.xml [took 0s]
Raw output
Condition not satisfied:

newSchema == """schema { query: Object1 } type Object1 { field1(argument1: ID, argument2: String): Object2 } type Object2 { field2(argument3: Boolean): String field3(argument4: ID): ID } """
|         |
|         false
|         75 differences (58% similarity)
|         schema {\n  query: Object(2)\n}\n\ntype Object1 {\n  field1(argument1: (Boole)a(-----)n()-): String(\n ) (field2(argum)e(n)t2(: ID): ID)\n}\n\ntype Object2 {\n  field(3)(argument3: (ID, argum)e(-)n(t4): String()~:) (Obj---------)e(c)t(1---------)\n}\n
|         schema {\n  query: Object(1)\n}\n\ntype Object1 {\n  field1(argument1: (ID, -)a(rgume)n(t2): String()~:) (Obj---------)e(c)t2(---------)\n}\n\ntype Object2 {\n  field(2)(argument3: (Bool-----)e(a)n()-): String(\n ) (field3(argum)e(n)t(4: ID): ID)\n}\n
schema {
  query: Object2
}
 
type Object1 {
  field1(argument1: Boolean): String
  field2(argument2: ID): ID
}
 
type Object2 {
  field3(argument3: ID, argument4: String): Object1
}

	at graphql.util.AnonymizerTest.query with operation and variable names(AnonymizerTest.groovy:137)

Check warning on line 0 in graphql.util.AnonymizerTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

replace values (graphql.util.AnonymizerTest) failed

build/test-results/testWithJava11/TEST-graphql.util.AnonymizerTest.xml [took 0s]
Raw output
Condition not satisfied:

newSchema == """        schema { query: Object1 } interface Interface1 { field7: String field8(argument6: InputObject1 = {inputField2 : "stringValue5", inputField5 : EnumValue1}): String } type Object1 { field1(argument1: InputObject1!): String field2(argument2: String = "stringValue2"): String field3(argument3: [[String!]!]! = [["stringValue3"]]): String field4(argument4: Enum1! = EnumValue1): String field5(argument5: InputObject1! = {inputField2 : "stringValue4", inputField5 : EnumValue2, inputField6 : {inputField1 : 3}}): String field6: Object2 } type Object2 implements Interface1 { field7: String field8(argument6: InputObject1 = {inputField2 : "stringValue5", inputField5 : EnumValue1}): String } enum Enum1 { EnumValue1 EnumValue2 } input InputObject1 { inputField1: Int inputField2: String = "stringValue1" inputField3: Int = 1 inputField4: Int = 2 inputField5: Enum1 = EnumValue2 inputField6: InputObject1 } """.stripIndent()
|         |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
|         |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    schema {
|         |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      query: Object1
|         |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    }
|         |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     
|         |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    interface Interface1 {
|         |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      field7: String
|         |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      field8(argument6: InputObject1 = {inputField2 : "stringValue5", inputField5 : EnumValue1}): String
|         |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    }
|         |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     
|         |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type Object1 {
|         |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      field1(argument1: InputObject1!): String
|         |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      field2(argument2: String = "stringValue2"): String
|         |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      field3(argument3: [[String!]!]! = [["stringValue3"]]): String
|         |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      field4(argument4: Enum1! = EnumValue1): String
|         |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      field5(argument5: InputObject1! = {inputField2 : "stringValue4", inputField5 : EnumValue2, inputField6 : {inputField1 : 3}}): String
|         |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      field6: Object2
|         |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    }
|         |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     
|         |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type Object2 implements Interface1 {
|         |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      field7: String
|         |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      field8(argument6: InputObject1 = {inputField2 : "stringValue5", inputField5 : EnumValue1}): String
|         |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    }
|         |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     
|         |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    enum Enum1 {
|         |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      EnumValue1
|         |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      EnumValue2
|         |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    }
|         |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     
|         |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    input InputObject1 {
|         |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      inputField1: Int
|         |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      inputField2: String = "stringValue1"
|         |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      inputField3: Int = 1
|         |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      inputField4: Int = 2
|         |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      inputField5: Enum1 = EnumValue2
|         |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      inputField6: InputObject1
|         |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    }
|         false
|         Strings too large to calculate edit distance.
schema {
  query: Object2
}
 
interface Interface1 {
  field1: String
  field2(argument1: InputObject1 = {inputField2 : "stringValue2", inputField5 : EnumValue1}): String
}
 
type Object1 implements Interface1 {
  field1: String
  field2(argument1: InputObject1 = {inputField2 : "stringValue2", inputField5 : EnumValue1}): String
}
 
type Object2 {
  field3(argument2: InputObject1!): String
  field4(argument3: String = "stringValue3"): String
  field5(argument4: [[String!]!]! = [["stringValue4"]]): String
  field6(argument5: Enum1! = EnumValue1): String
  field7(argument6: InputObject1! = {inputField2 : "stringValue5", inputField5 : EnumValue2, inputField6 : {inputField1 : 3}}): String
  field8: Object1
}
 
enum Enum1 {
  EnumValue1
  EnumValue2
}
 
input InputObject1 {
  inputField1: Int
  inputField2: String = "stringValue1"
  inputField3: Int = 1
  inputField4: Int = 2
  inputField5: Enum1 = EnumValue2
  inputField6: InputObject1
}

	at graphql.util.AnonymizerTest.replace values(AnonymizerTest.groovy:266)

Check warning on line 0 in graphql.util.AnonymizerTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

query with aliases (graphql.util.AnonymizerTest) failed

build/test-results/testWithJava11/TEST-graphql.util.AnonymizerTest.xml [took 0s]
Raw output
Condition not satisfied:

newQuery == "{alias1:field1{alias2:field3}}"
|        |
|        false
|        2 differences (93% similarity)
|        {alias1:field(3){alias2:field(2)}}
|        {alias1:field(1){alias2:field(3)}}
{alias1:field3{alias2:field2}}

	at graphql.util.AnonymizerTest.query with aliases(AnonymizerTest.groovy:288)

Check warning on line 0 in graphql.util.AnonymizerTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

complex schema (graphql.util.AnonymizerTest) failed

build/test-results/testWithJava11/TEST-graphql.util.AnonymizerTest.xml [took 0s]
Raw output
Condition not satisfied:

newSchema == """schema { query: Object1 } interface Interface1 { field2: String field3: Enum1 } union Union1 = Object2 | Object3 type Object1 { field1: Interface1 field4: Union1 } type Object2 implements Interface1 { field2: String field3: Enum1 field5: String } type Object3 implements Interface1 { field2: String field3: Enum1 field6: String } enum Enum1 { EnumValue1 EnumValue2 } """
|         |
|         false
|         Strings too large to calculate edit distance.
schema {
  query: Object3
}
 
interface Interface1 {
  field1: String
  field2: Enum1
}
 
union Union1 = Object1 | Object2
 
type Object1 implements Interface1 {
  field1: String
  field2: Enum1
  field3: String
}
 
type Object2 implements Interface1 {
  field1: String
  field2: Enum1
  field4: String
}
 
type Object3 {
  field5: Interface1
  field6: Union1
}
 
enum Enum1 {
  EnumValue1
  EnumValue2
}

	at graphql.util.AnonymizerTest.complex schema(AnonymizerTest.groovy:325)

Check warning on line 0 in graphql.util.AnonymizerTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

interface hierarchies with arguments (graphql.util.AnonymizerTest) failed

build/test-results/testWithJava11/TEST-graphql.util.AnonymizerTest.xml [took 0s]
Raw output
Condition not satisfied:

newSchema == """schema { query: Object3 } interface Interface1 implements Interface2 { field1(argument1: String): String field2: Int } interface Interface2 { field1: String } interface Interface3 implements Interface2 { field1(argument3: String): String field4: Float } interface Interface4 implements Interface2 & Interface3 { field1(argument3: String, argument4: Float): String field4: Float field5: Boolean } type Object1 implements Interface1 & Interface2 { field1(argument1: String, argument2: ID): String field2: Int field3: ID } type Object2 implements Interface2 & Interface3 & Interface4 { field1(argument3: String, argument4: Float): String field4: Float field5: Boolean field6: Int } type Object3 { field7: Interface2 } """
|         |
|         false
|         Strings too large to calculate edit distance.
schema {
  query: Object3
}
 
interface Interface1 implements Interface2 & Interface3 {
  field1(argument1: String, argument2: Float): String
  field2: Float
  field3: Boolean
}
 
interface Interface2 implements Interface3 {
  field1(argument1: String): String
  field2: Float
}
 
interface Interface3 {
  field1: String
}
 
interface Interface4 implements Interface3 {
  field1(argument3: String): String
  field4: Int
}
 
type Object1 implements Interface3 & Interface4 {
  field1(argument3: String, argument4: ID): String
  field4: Int
  field5: ID
}
 
type Object2 implements Interface1 & Interface2 & Interface3 {
  field1(argument1: String, argument2: Float): String
  field2: Float
  field3: Boolean
  field6: Int
}
 
type Object3 {
  field7: Interface3
}

	at graphql.util.AnonymizerTest.interface hierarchies with arguments(AnonymizerTest.groovy:402)

Check warning on line 0 in graphql.util.AnonymizerTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

handles cyclic types (graphql.util.AnonymizerTest) failed

build/test-results/testWithJava11/TEST-graphql.util.AnonymizerTest.xml [took 0s]
Raw output
Condition not satisfied:

newSchema == """schema { query: Object1 } type Object1 { field1: Object2 } type Object2 { field2: [Object3] } type Object3 { field3: [Object2] } """
|         |
|         false
|         7 differences (95% similarity)
|         schema {\n  query: Object(3)\n}\n\ntype Object1 {\n  field1: ([)Object2(])\n}\n\ntype Object2 {\n  field2: [Object(1)]\n}\n\ntype Object3 {\n  field3: (-)Object(1-)\n}\n
|         schema {\n  query: Object(1)\n}\n\ntype Object1 {\n  field1: (-)Object2(-)\n}\n\ntype Object2 {\n  field2: [Object(3)]\n}\n\ntype Object3 {\n  field3: ([)Object(2])\n}\n
schema {
  query: Object3
}
 
type Object1 {
  field1: [Object2]
}
 
type Object2 {
  field2: [Object1]
}
 
type Object3 {
  field3: Object1
}

	at graphql.util.AnonymizerTest.handles cyclic types(AnonymizerTest.groovy:525)

Check warning on line 0 in graphql.util.AnonymizerTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

descriptions are removed (graphql.util.AnonymizerTest) failed

build/test-results/testWithJava11/TEST-graphql.util.AnonymizerTest.xml [took 0s]
Raw output
Condition not satisfied:

newSchema == """schema { query: Object1 } type Object1 { field1(argument1: String): Object2 } type Object2 { field2: String } """
|         |
|         false
|         41 differences (65% similarity)
|         schema {\n  query: Object(2)\n}\n\ntype Object1 {\n  field1(----------): String(----------)\n}\n\ntype Object2 {\n  field2((argument1): String(): Object1)\n}\n
|         schema {\n  query: Object(1)\n}\n\ntype Object1 {\n  field1((argument1): String(): Object2)\n}\n\ntype Object2 {\n  field2(----------): String(----------)\n}\n
schema {
  query: Object2
}
 
type Object1 {
  field1: String
}
 
type Object2 {
  field2(argument1: String): Object1
}

	at graphql.util.AnonymizerTest.descriptions are removed(AnonymizerTest.groovy:564)

Check warning on line 0 in graphql.util.AnonymizerTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

same field across hierarchy (graphql.util.AnonymizerTest) failed

build/test-results/testWithJava11/TEST-graphql.util.AnonymizerTest.xml [took 0s]
Raw output
Condition not satisfied:

newSchema == """schema { query: Object1 } interface Interface1 implements Interface2 & Interface3 { field1: ID! } interface Interface2 { field1: ID! } interface Interface3 { field1: ID! } interface Interface4 implements Interface1 & Interface2 & Interface3 { field1: ID! } interface Interface5 implements Interface1 & Interface2 & Interface3 & Interface6 { field1: ID! } interface Interface6 { field1: ID! } interface Interface7 implements Interface6 { field1: ID! } type Object1 { field2: Interface2 } """
|         |
|         false
|         56 differences (63% similarity) (comparing subset start: 302, end1: 454, end2: 454)
|         s Interface(6) ({\n) ( fi)e(ld1: ID!\n}\n\ni)nterface(-) (--)Interface6 {\n  field1: ID!\n}\n\ninterface Interface(7) (im~plem)e(nts-) I(---~--~-~-)nterface(1) (& )Interface(2) (& Int)e(rfac)e(3 &) Interface
|         s Interface(1) (&-~) (Int)e(rface2 & ~I-~-~-)nterface(3) (& )Interface6 {\n  field1: ID!\n}\n\ninterface Interface(6) ({\n  fi)e(ld1:) I(D!\n}\n\ni)nterface(-) (--)Interface(7) (impl-)e(m---)e(nts) Interface
schema {
  query: Object1
}
 
interface Interface1 implements Interface2 & Interface3 {
  field1: ID!
}
 
interface Interface2 {
  field1: ID!
}
 
interface Interface3 {
  field1: ID!
}
 
interface Interface4 implements Interface1 & Interface2 & Interface3 {
  field1: ID!
}
 
interface Interface5 implements Interface6 {
  field1: ID!
}
 
interface Interface6 {
  field1: ID!
}
 
interface Interface7 implements Interface1 & Interface2 & Interface3 & Interface6 {
  field1: ID!
}
 
type Object1 {
  field2: Interface2
}

	at graphql.util.AnonymizerTest.same field across hierarchy(AnonymizerTest.groovy:635)

Check warning on line 0 in graphql.util.AnonymizerTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

complex schema with directives (graphql.util.AnonymizerTest) failed

build/test-results/testWithJava11/TEST-graphql.util.AnonymizerTest.xml [took 0s]
Raw output
Condition not satisfied:

newSchema == """schema @Directive1(argument1 : "stringValue1"){ query: Object1 } directive @Directive1(argument1: String! = "stringValue4") repeatable on SCHEMA | SCALAR | OBJECT | FIELD_DEFINITION | ARGUMENT_DEFINITION | INTERFACE | UNION | ENUM | ENUM_VALUE | INPUT_OBJECT | INPUT_FIELD_DEFINITION "Marks the field, argument, input field or enum value as deprecated" directive @deprecated( "The reason for the deprecation" reason: String! = "No longer supported" ) on FIELD_DEFINITION | ARGUMENT_DEFINITION | ENUM_VALUE | INPUT_FIELD_DEFINITION interface Interface1 @Directive1(argument1 : "stringValue12") { field2: String field3: Enum1 } union Union1 @Directive1(argument1 : "stringValue21") = Object2 type Object1 @Directive1(argument1 : "stringValue8") { field1: Interface1 @Directive1(argument1 : "stringValue9") field4: Union1 @deprecated } type Object2 implements Interface1 { field2: String field3: Enum1 field5(argument2: InputObject1): String } enum Enum1 @Directive1(argument1 : "stringValue15") { EnumValue1 @Directive1(argument1 : "stringValue18") EnumValue2 } input InputObject1 @Directive1(argument1 : "stringValue24") { inputField1: Int @Directive1(argument1 : "stringValue27") } """
|         |
|         false
|         Strings too large to calculate edit distance.
schema @Directive1(argument1 : "stringValue1"){
  query: Object2
}
 
directive @Directive1(argument1: String! = "stringValue4") repeatable on SCHEMA | SCALAR | OBJECT | FIELD_DEFINITION | ARGUMENT_DEFINITION | INTERFACE | UNION | ENUM | ENUM_VALUE | INPUT_OBJECT | INPUT_FIELD_DEFINITION
 
"Marks the field, argument, input field or enum value as deprecated"
directive @deprecated(
    "The reason for the deprecation"
    reason: String! = "No longer supported"
  ) on FIELD_DEFINITION | ARGUMENT_DEFINITION | ENUM_VALUE | INPUT_FIELD_DEFINITION
 
interface Interface1 @Directive1(argument1 : "stringValue6") {
  field1: String
  field2: Enum1
}
 
union Union1 @Directive1(argument1 : "stringValue21") = Object1
 
type Object1 implements Interface1 {
  field1: String
  field2: Enum1
  field3(argument2: InputObject1): String
}
 
type Object2 @Directive1(argument1 : "stringValue26") {
  field4: Interface1 @Directive1(argument1 : "stringValue27")
  field5: Union1 @deprecated
}
 
enum Enum1 @Directive1(argument1 : "stringValue9") {
  EnumValue1 @Directive1(argument1 : "stringValue12")
  EnumValue2
}
 
input InputObject1 @Directive1(argument1 : "stringValue15") {
  inputField1: Int @Directive1(argument1 : "stringValue18")
}

	at graphql.util.AnonymizerTest.complex schema with directives(AnonymizerTest.groovy:725)

Check warning on line 0 in graphql.util.AnonymizerTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

query with directives (graphql.util.AnonymizerTest) failed

build/test-results/testWithJava11/TEST-graphql.util.AnonymizerTest.xml [took 0s]
Raw output
Condition not satisfied:

newSchema == """schema { query: Object1 } directive @Directive1(argument1: String = "stringValue1") on FIELD type Object1 { field1: Object2 } type Object2 { field2: String } """
|         |
|         false
|         15 differences (91% similarity)
|         schema {\n  query: Object(2)\n}\n\ndirective @Directive1(argument1: String = "stringValue1") on FIELD\n\ntype Object1 {\n  field1: (String-)\n}\n\ntype Object2 {\n  field2: (Object1)\n}\n
|         schema {\n  query: Object(1)\n}\n\ndirective @Directive1(argument1: String = "stringValue1") on FIELD\n\ntype Object1 {\n  field1: (Object2)\n}\n\ntype Object2 {\n  field2: (String-)\n}\n
schema {
  query: Object2
}
 
directive @Directive1(argument1: String = "stringValue1") on FIELD
 
type Object1 {
  field1: String
}
 
type Object2 {
  field2: Object1
}

	at graphql.util.AnonymizerTest.query with directives(AnonymizerTest.groovy:785)

Check warning on line 0 in graphql.util.AnonymizerTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

query with directives with arguments (graphql.util.AnonymizerTest) failed

build/test-results/testWithJava11/TEST-graphql.util.AnonymizerTest.xml [took 0s]
Raw output
Condition not satisfied:

newSchema == """schema { query: Object1 } directive @Directive1(argument1: String = "stringValue1") on FIELD type Object1 { field1: Object2 } type Object2 { field2: String } """
|         |
|         false
|         15 differences (91% similarity)
|         schema {\n  query: Object(2)\n}\n\ndirective @Directive1(argument1: String = "stringValue1") on FIELD\n\ntype Object1 {\n  field1: (String-)\n}\n\ntype Object2 {\n  field2: (Object1)\n}\n
|         schema {\n  query: Object(1)\n}\n\ndirective @Directive1(argument1: String = "stringValue1") on FIELD\n\ntype Object1 {\n  field1: (Object2)\n}\n\ntype Object2 {\n  field2: (String-)\n}\n
schema {
  query: Object2
}
 
directive @Directive1(argument1: String = "stringValue1") on FIELD
 
type Object1 {
  field1: String
}
 
type Object2 {
  field2: Object1
}

	at graphql.util.AnonymizerTest.query with directives with arguments(AnonymizerTest.groovy:822)

Check warning on line 0 in graphql.util.AnonymizerTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

query with directives with arguments and variables (graphql.util.AnonymizerTest) failed

build/test-results/testWithJava11/TEST-graphql.util.AnonymizerTest.xml [took 0s]
Raw output
Condition not satisfied:

newSchema == """schema { query: Object1 } directive @Directive1(argument1: String = "stringValue1") on FIELD type Object1 { field1: Object2 } type Object2 { field2(argument2: String): String } """
|         |
|         false
|         49 differences (73% similarity)
|         schema {\n  query: Object(2)\n}\n\ndirective @Directive1(argument1: String = "stringValue1") on FIELD\n\ntype Object1 {\n  field1((argum)e(n)t2(: String): String)\n}\n\ntype Object2 {\n  field2(----------): (Objec-----)t(1---)\n}\n
|         schema {\n  query: Object(1)\n}\n\ndirective @Directive1(argument1: String = "stringValue1") on FIELD\n\ntype Object1 {\n  field1(: Obj-)e(c)t2(-----------------)\n}\n\ntype Object2 {\n  field2((argument2): (String): S)t(ring)\n}\n
schema {
  query: Object2
}
 
directive @Directive1(argument1: String = "stringValue1") on FIELD
 
type Object1 {
  field1(argument2: String): String
}
 
type Object2 {
  field2: Object1
}

	at graphql.util.AnonymizerTest.query with directives with arguments and variables(AnonymizerTest.groovy:859)

Check warning on line 0 in graphql.schema.SchemaTransformerTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

__Field can be changed (graphql.schema.SchemaTransformerTest) failed

build/test-results/testWithJava11/TEST-graphql.schema.SchemaTransformerTest.xml [took 0s]
Raw output
graphql.AssertException: All types within a GraphQL schema must have unique names. No two provided types may have the same name.
No provided type may have a name which conflicts with any built in types (including Scalar and Introspection types).
You have redefined the type '__InputValue' from being a 'GraphQLObjectType' to a 'GraphQLObjectType'
	at app//graphql.schema.impl.GraphQLTypeCollectingVisitor.assertUniqueTypeObjects(GraphQLTypeCollectingVisitor.java:156)
	at app//graphql.schema.impl.GraphQLTypeCollectingVisitor.assertTypeUniqueness(GraphQLTypeCollectingVisitor.java:148)
	at app//graphql.schema.impl.GraphQLTypeCollectingVisitor.visitGraphQLObjectType(GraphQLTypeCollectingVisitor.java:59)
	at app//graphql.schema.impl.MultiReadOnlyGraphQLTypeVisitor.lambda$visitGraphQLObjectType$12(MultiReadOnlyGraphQLTypeVisitor.java:124)
	at [email protected]/java.util.Arrays$ArrayList.forEach(Arrays.java:4390)
	at app//graphql.schema.impl.MultiReadOnlyGraphQLTypeVisitor.visitGraphQLObjectType(MultiReadOnlyGraphQLTypeVisitor.java:124)
	at app//graphql.schema.GraphQLObjectType.accept(GraphQLObjectType.java:191)
	at app//graphql.schema.SchemaTraverser$TraverserDelegateVisitor.enter(SchemaTraverser.java:111)
	at app//graphql.util.Traverser.traverse(Traverser.java:144)
	at app//graphql.schema.SchemaTraverser.doTraverse(SchemaTraverser.java:98)
	at app//graphql.schema.SchemaTraverser.depthFirst(SchemaTraverser.java:88)
	at app//graphql.schema.SchemaTraverser.depthFirst(SchemaTraverser.java:81)
	at app//graphql.schema.impl.SchemaUtil.visitPartiallySchema(SchemaUtil.java:68)
	at app//graphql.schema.GraphQLSchema$Builder.buildImpl(GraphQLSchema.java:862)
	at app//graphql.schema.GraphQLSchema$Builder.build(GraphQLSchema.java:841)
	at app//graphql.schema.SchemaTransformer$DummyRoot.rebuildSchema(SchemaTransformer.java:636)
	at app//graphql.schema.SchemaTransformer.transformImpl(SchemaTransformer.java:152)
	at app//graphql.schema.SchemaTransformer.transform(SchemaTransformer.java:111)
	at app//graphql.schema.SchemaTransformer.transformSchema(SchemaTransformer.java:79)
	at graphql.schema.SchemaTransformerTest.__Field can be changed(SchemaTransformerTest.groovy:797)

Check warning on line 0 in graphql.schema.SchemaTransformerTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

deprecation transformation correctly overrides existing deprecated directive reasons (graphql.schema.SchemaTransformerTest) failed

build/test-results/testWithJava11/TEST-graphql.schema.SchemaTransformerTest.xml [took 0s]
Raw output
graphql.AssertException: All types within a GraphQL schema must have unique names. No two provided types may have the same name.
No provided type may have a name which conflicts with any built in types (including Scalar and Introspection types).
You have redefined the type '__Field' from being a 'GraphQLObjectType' to a 'GraphQLObjectType'
	at app//graphql.schema.impl.GraphQLTypeCollectingVisitor.assertUniqueTypeObjects(GraphQLTypeCollectingVisitor.java:156)
	at app//graphql.schema.impl.GraphQLTypeCollectingVisitor.assertTypeUniqueness(GraphQLTypeCollectingVisitor.java:148)
	at app//graphql.schema.impl.GraphQLTypeCollectingVisitor.visitGraphQLObjectType(GraphQLTypeCollectingVisitor.java:59)
	at app//graphql.schema.impl.MultiReadOnlyGraphQLTypeVisitor.lambda$visitGraphQLObjectType$12(MultiReadOnlyGraphQLTypeVisitor.java:124)
	at [email protected]/java.util.Arrays$ArrayList.forEach(Arrays.java:4390)
	at app//graphql.schema.impl.MultiReadOnlyGraphQLTypeVisitor.visitGraphQLObjectType(MultiReadOnlyGraphQLTypeVisitor.java:124)
	at app//graphql.schema.GraphQLObjectType.accept(GraphQLObjectType.java:191)
	at app//graphql.schema.SchemaTraverser$TraverserDelegateVisitor.enter(SchemaTraverser.java:111)
	at app//graphql.util.Traverser.traverse(Traverser.java:144)
	at app//graphql.schema.SchemaTraverser.doTraverse(SchemaTraverser.java:98)
	at app//graphql.schema.SchemaTraverser.depthFirst(SchemaTraverser.java:88)
	at app//graphql.schema.SchemaTraverser.depthFirst(SchemaTraverser.java:81)
	at app//graphql.schema.impl.SchemaUtil.visitPartiallySchema(SchemaUtil.java:68)
	at app//graphql.schema.GraphQLSchema$Builder.buildImpl(GraphQLSchema.java:862)
	at app//graphql.schema.GraphQLSchema$Builder.build(GraphQLSchema.java:841)
	at app//graphql.schema.SchemaTransformer$DummyRoot.rebuildSchema(SchemaTransformer.java:636)
	at app//graphql.schema.SchemaTransformer.transformImpl(SchemaTransformer.java:152)
	at app//graphql.schema.SchemaTransformer.transform(SchemaTransformer.java:111)
	at app//graphql.schema.SchemaTransformer.transformSchema(SchemaTransformer.java:79)
	at graphql.schema.SchemaTransformerTest.deprecation transformation correctly overrides existing deprecated directive reasons(SchemaTransformerTest.groovy:999)

Check warning on line 0 in graphql.schema.transform.FieldVisibilitySchemaTransformationTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

removes interface type if only private reference with multiple interfaces (graphql.schema.transform.FieldVisibilitySchemaTransformationTest) failed

build/test-results/testWithJava11/TEST-graphql.schema.transform.FieldVisibilitySchemaTransformationTest.xml [took 0s]
Raw output
Condition not satisfied:

restrictedSchema.getType("SuperSecretCustomerData") == null
|                |                                  |
|                |                                  false
|                GraphQLInterfaceType{name='SuperSecretCustomerData', description='null', fieldDefinitionsByName=[accountNumber], typeResolver=null}
<graphql.schema.GraphQLSchema@19181409 queryType=GraphQLObjectType{name='Query', description='null', fieldDefinitionsByName=[account], interfaces=[]} mutationType=null subscriptionType=null introspectionSchemaType=GraphQLObjectType{name='__Schema', description='A GraphQL Introspection defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, the entry points for query, mutation, and subscription operations.', fieldDefinitionsByName=[description, types, queryType, mutationType, directives, subscriptionType], interfaces=[]} additionalTypes=[GraphQLObjectType{name='__Field', description='null', fieldDefinitionsByName=[name, description, args, type, isDeprecated, deprecationReason], interfaces=[]}, GraphQLObjectType{name='Account', description='null', fieldDefinitionsByName=[name, country], interfaces=[GraphQLInterfaceType{name='PublicView', description='null', fieldDefinitionsByName=[country], typeResolver=null}]}, GraphQLInterfaceType{name='PublicView', description='null', fieldDefinitionsByName=[country], typeResolver=null}, GraphQLScalarType{name='String', description='Built-in String', coercing=graphql.scalar.GraphqlStringCoercing@ea147ea}, GraphQLObjectType{name='__EnumValue', description='null', fieldDefinitionsByName=[name, description, isDeprecated, deprecationReason], interfaces=[]}, GraphQLScalarType{name='Int', description='Built-in Int', coercing=graphql.scalar.GraphqlIntCoercing@4bb30faa}, GraphQLInterfaceType{name='Billable', description='null', fieldDefinitionsByName=[cardLast4], typeResolver=null}, GraphQLObjectType{name='__InputValue', description='null', fieldDefinitionsByName=[name, description, type, defaultValue, isDeprecated, deprecationReason], interfaces=[]}, GraphQLObjectType{name='__Directive', description='null', fieldDefinitionsByName=[name, description, isRepeatable, locations, args], interfaces=[]}, GraphQLScalarType{name='Boolean', description='Built-in Boolean', coercing=graphql.scalar.GraphqlBooleanCoercing@9ccabf6}, GraphQLEnumType{name='__DirectiveLocation', description='An enum describing valid locations where a directive can be placed', valueDefinitionMap={QUERY=GraphQLEnumValueDefinition{name='QUERY'}, MUTATION=GraphQLEnumValueDefinition{name='MUTATION'}, SUBSCRIPTION=GraphQLEnumValueDefinition{name='SUBSCRIPTION'}, FIELD=GraphQLEnumValueDefinition{name='FIELD'}, FRAGMENT_DEFINITION=GraphQLEnumValueDefinition{name='FRAGMENT_DEFINITION'}, FRAGMENT_SPREAD=GraphQLEnumValueDefinition{name='FRAGMENT_SPREAD'}, INLINE_FRAGMENT=GraphQLEnumValueDefinition{name='INLINE_FRAGMENT'}, VARIABLE_DEFINITION=GraphQLEnumValueDefinition{name='VARIABLE_DEFINITION'}, SCHEMA=GraphQLEnumValueDefinition{name='SCHEMA'}, SCALAR=GraphQLEnumValueDefinition{name='SCALAR'}, OBJECT=GraphQLEnumValueDefinition{name='OBJECT'}, FIELD_DEFINITION=GraphQLEnumValueDefinition{name='FIELD_DEFINITION'}, ARGUMENT_DEFINITION=GraphQLEnumValueDefinition{name='ARGUMENT_DEFINITION'}, INTERFACE=GraphQLEnumValueDefinition{name='INTERFACE'}, UNION=GraphQLEnumValueDefinition{name='UNION'}, ENUM=GraphQLEnumValueDefinition{name='ENUM'}, ENUM_VALUE=GraphQLEnumValueDefinition{name='ENUM_VALUE'}, INPUT_OBJECT=GraphQLEnumValueDefinition{name='INPUT_OBJECT'}, INPUT_FIELD_DEFINITION=GraphQLEnumValueDefinition{name='INPUT_FIELD_DEFINITION'}}, definition=null, extensionDefinitions=[], directives=DirectivesHolder[allDirectivesByName=, allAppliedDirectivesByName=]}, GraphQLObjectType{name='__Schema', description='A GraphQL Introspection defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, the entry points for query, mutation, and subscription operations.', fieldDefinitionsByName=[description, types, queryType, mutationType, directives, subscriptionType], interfaces=[]}, GraphQLObjectType{name='__Type', description='null', fieldDefinitionsByName=[kind, name, description, fields, interfaces, possibleTypes, enumValues, inputFields, ofType, isOneOf, specifiedByURL, specifiedByUrl], interfaces=[]}, GraphQLInterfaceType{name='SuperSecretCustomerData', description='null', fieldDefinitionsByName=[accountNumber], typeResolver=null}, GraphQLEnumType{name='__TypeKind', description='An enum describing what kind of type a given __Type is', valueDefinitionMap={SCALAR=GraphQLEnumValueDefinition{name='SCALAR'}, OBJECT=GraphQLEnumValueDefinition{name='OBJECT'}, INTERFACE=GraphQLEnumValueDefinition{name='INTERFACE'}, UNION=GraphQLEnumValueDefinition{name='UNION'}, ENUM=GraphQLEnumValueDefinition{name='ENUM'}, INPUT_OBJECT=GraphQLEnumValueDefinition{name='INPUT_OBJECT'}, LIST=GraphQLEnumValueDefinition{name='LIST'}, NON_NULL=GraphQLEnumValueDefinition{name='NON_NULL'}}, definition=null, extensionDefinitions=[], directives=DirectivesHolder[allDirectivesByName=, allAppliedDirectivesByName=]}] introspectionSchemaField=GraphQLFieldDefinition{name='__schema', type=__Schema!, arguments=[], dataFetcherFactory=null, description='Access the current type schema of this server.', deprecationReason='null', definition=null} introspectionTypeField=GraphQLFieldDefinition{name='__type', type=GraphQLObjectType{name='__Type', description='null', fieldDefinitionsByName=[kind, name, description, fields, interfaces, possibleTypes, enumValues, inputFields, ofType, isOneOf, specifiedByURL, specifiedByUrl], interfaces=[]}, arguments=[GraphQLArgument{name='name', value=InputValueWithState{state=NOT_SET, value=null}, defaultValue=InputValueWithState{state=NOT_SET, value=null}, type=String!}], dataFetcherFactory=null, description='Request the type information of a single type.', deprecationReason='null', definition=null} __typename=GraphQLFieldDefinition{name='__typename', type=String!, arguments=[], dataFetcherFactory=null, description='The name of the current Object type at runtime.', deprecationReason='null', definition=null} directiveDefinitionsHolder=DirectivesHolder[allDirectivesByName=include,skip,private,deprecated,specifiedBy,oneOf,defer,experimental_disableErrorPropagation, allAppliedDirectivesByName=] schemaAppliedDirectivesHolder=DirectivesHolder[allDirectivesByName=, allAppliedDirectivesByName=] definition=null extensionDefinitions=[] description=null codeRegistry=graphql.schema.GraphQLCodeRegistry@397d5b15 typeMap=[Account:GraphQLObjectType{name='Account', description='null', fieldDefinitionsByName=[name, country], interfaces=[GraphQLInterfaceType{name='PublicView', description='null', fieldDefinitionsByName=[country], typeResolver=null}]}, Billable:GraphQLInterfaceType{name='Billable', description='null', fieldDefinitionsByName=[cardLast4], typeResolver=null}, Boolean:GraphQLScalarType{name='Boolean', description='Built-in Boolean', coercing=graphql.scalar.GraphqlBooleanCoercing@9ccabf6}, Int:GraphQLScalarType{name='Int', description='Built-in Int', coercing=graphql.scalar.GraphqlIntCoercing@4bb30faa}, PublicView:GraphQLInterfaceType{name='PublicView', description='null', fieldDefinitionsByName=[country], typeResolver=null}, Query:GraphQLObjectType{name='Query', description='null', fieldDefinitionsByName=[account], interfaces=[]}, String:GraphQLScalarType{name='String', description='Built-in String', coercing=graphql.scalar.GraphqlStringCoercing@ea147ea}, SuperSecretCustomerData:GraphQLInterfaceType{name='SuperSecretCustomerData', description='null', fieldDefinitionsByName=[accountNumber], typeResolver=null}, __Directive:GraphQLObjectType{name='__Directive', description='null', fieldDefinitionsByName=[name, description, isRepeatable, locations, args], interfaces=[]}, __DirectiveLocation:GraphQLEnumType{name='__DirectiveLocation', description='An enum describing valid locations where a directive can be placed', valueDefinitionMap={QUERY=GraphQLEnumValueDefinition{name='QUERY'}, MUTATION=GraphQLEnumValueDefinition{name='MUTATION'}, SUBSCRIPTION=GraphQLEnumValueDefinition{name='SUBSCRIPTION'}, FIELD=GraphQLEnumValueDefinition{name='FIELD'}, FRAGMENT_DEFINITION=GraphQLEnumValueDefinition{name='FRAGMENT_DEFINITION'}, FRAGMENT_SPREAD=GraphQLEnumValueDefinition{name='FRAGMENT_SPREAD'}, INLINE_FRAGMENT=GraphQLEnumValueDefinition{name='INLINE_FRAGMENT'}, VARIABLE_DEFINITION=GraphQLEnumValueDefinition{name='VARIABLE_DEFINITION'}, SCHEMA=GraphQLEnumValueDefinition{name='SCHEMA'}, SCALAR=GraphQLEnumValueDefinition{name='SCALAR'}, OBJECT=GraphQLEnumValueDefinition{name='OBJECT'}, FIELD_DEFINITION=GraphQLEnumValueDefinition{name='FIELD_DEFINITION'}, ARGUMENT_DEFINITION=GraphQLEnumValueDefinition{name='ARGUMENT_DEFINITION'}, INTERFACE=GraphQLEnumValueDefinition{name='INTERFACE'}, UNION=GraphQLEnumValueDefinition{name='UNION'}, ENUM=GraphQLEnumValueDefinition{name='ENUM'}, ENUM_VALUE=GraphQLEnumValueDefinition{name='ENUM_VALUE'}, INPUT_OBJECT=GraphQLEnumValueDefinition{name='INPUT_OBJECT'}, INPUT_FIELD_DEFINITION=GraphQLEnumValueDefinition{name='INPUT_FIELD_DEFINITION'}}, definition=null, extensionDefinitions=[], directives=DirectivesHolder[allDirectivesByName=, allAppliedDirectivesByName=]}, __EnumValue:GraphQLObjectType{name='__EnumValue', description='null', fieldDefinitionsByName=[name, description, isDeprecated, deprecationReason], interfaces=[]}, __Field:GraphQLObjectType{name='__Field', description='null', fieldDefinitionsByName=[name, description, args, type, isDeprecated, deprecationReason], interfaces=[]}, __InputValue:GraphQLObjectType{name='__InputValue', description='null', fieldDefinitionsByName=[name, description, type, defaultValue, isDeprecated, deprecationReason], interfaces=[]}, __Schema:GraphQLObjectType{name='__Schema', description='A GraphQL Introspection defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, the entry points for query, mutation, and subscription operations.', fieldDefinitionsByName=[description, types, queryType, mutationType, directives, subscriptionType], interfaces=[]}, __Type:GraphQLObjectType{name='__Type', description='null', fieldDefinitionsByName=[kind, name, description, fields, interfaces, possibleTypes, enumValues, inputFields, ofType, isOneOf, specifiedByURL, specifiedByUrl], interfaces=[]}, __TypeKind:GraphQLEnumType{name='__TypeKind', description='An enum describing what kind of type a given __Type is', valueDefinitionMap={SCALAR=GraphQLEnumValueDefinition{name='SCALAR'}, OBJECT=GraphQLEnumValueDefinition{name='OBJECT'}, INTERFACE=GraphQLEnumValueDefinition{name='INTERFACE'}, UNION=GraphQLEnumValueDefinition{name='UNION'}, ENUM=GraphQLEnumValueDefinition{name='ENUM'}, INPUT_OBJECT=GraphQLEnumValueDefinition{name='INPUT_OBJECT'}, LIST=GraphQLEnumValueDefinition{name='LIST'}, NON_NULL=GraphQLEnumValueDefinition{name='NON_NULL'}}, definition=null, extensionDefinitions=[], directives=DirectivesHolder[allDirectivesByName=, allAppliedDirectivesByName=]}] interfaceNameToObjectTypes=[PublicView:[GraphQLObjectType{name='Account', description='null', fieldDefinitionsByName=[name, country], interfaces=[GraphQLInterfaceType{name='PublicView', description='null', fieldDefinitionsByName=[country], typeResolver=null}]}]] interfaceNameToObjectTypeNames=[PublicView:[Account]]>

	at graphql.schema.transform.FieldVisibilitySchemaTransformationTest.removes interface type if only private reference with multiple interfaces(FieldVisibilitySchemaTransformationTest.groovy:521)