Skip to content

Conversation

@matnun-br
Copy link
Contributor

No description provided.

…ng so they can be linked back to their source enum type
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds an EnumTypeAttribute to enum fields when they are generated as strings, enabling them to be linked back to their source enum type. This provides metadata that can be used to maintain the connection between string-represented enum values and their original enum definitions.

  • Introduces a new EnumTypeAttribute class to store enum type metadata
  • Modifies the field generation logic to apply this attribute to enum fields when using string representation

Reviewed Changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.

File Description
GraphQLSharp/Abstractions/EnumTypeAttribute.cs Defines the new attribute class for storing enum type information
GraphQLSharp/TypeGenerator/GraphQLTypeGenerator.cs Updates field generation to conditionally apply the EnumType attribute to enum fields

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@clement911 clement911 merged commit 852c19d into main Sep 15, 2025
1 check passed
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.

3 participants