Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing the missing description for enum values for introspection to schema conversion #2778

Merged

Conversation

ashpak-shaikh
Copy link
Contributor

When converting the introspection response to GraphQLSchema, the descriptions in the enumvalues are missing. Please accept my contribution to fix this issue.

Copy link
Member

@bbakerman bbakerman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this

@@ -230,7 +230,7 @@ EnumTypeDefinition createEnum(Map<String, Object> input) {
for (Map<String, Object> enumValue : enumValues) {

EnumValueDefinition.Builder enumValueDefinition = EnumValueDefinition.newEnumValueDefinition().name((String) enumValue.get("name"));
enumTypeDefinition.description(toDescription(input));
enumValueDefinition.description(toDescription(enumValue));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch

@bbakerman bbakerman added this to the 19.0 milestone Apr 3, 2022
@bbakerman bbakerman merged commit 29ffff7 into graphql-java:master Apr 3, 2022
@dondonz dondonz modified the milestones: 19.0, 18.1 May 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants