Skip to content

FieldVisibilitySchemaTransformation fails to create valid schema when removing types in 2nd step #4074

@mtmdla

Description

@mtmdla

Describe the bug
When performing field vis schema transform, the transformer can fail during the removal of types after the fields have been removed. I've reproduced in the repo under version 17.x as I first encountered the problem in 16.x and then upgraded to 17 and still experienced it although the error message was better. The issue seems to be related to 2 interfaces defining a similar field based on the same enum.

To Reproduce
Here's a test to reproduce the issue
https://github.com/mtmdla/graphql-java/blob/interface-issue-with-type-null/src/test/groovy/graphql/schema/transform/FieldVisibilitySchemaTransformationTest.groovy#L524

Metadata

Metadata

Assignees

No one assigned

    Labels

    keep-openTells Stale Bot to keep PRs and issues open

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions