Skip to content

Make FLASHBOOT an enum value#488

Open
ReneNyffenegger wants to merge 1 commit intorunpod:mainfrom
ReneNyffenegger:FLASHBOOT-enum
Open

Make FLASHBOOT an enum value#488
ReneNyffenegger wants to merge 1 commit intorunpod:mainfrom
ReneNyffenegger:FLASHBOOT-enum

Conversation

@ReneNyffenegger
Copy link
Copy Markdown

Because FLASHBOOT is an enum value, running create_endpoint throws
runpod.error.QueryError: Enum "FlashBootType" cannot represent non-enum value: "FLASHBOOT"
if FLASHBOOT is passed as string.

Because FLASHBOOT is an enum value, running create_endpoint
throws
   runpod.error.QueryError: Enum "FlashBootType" cannot represent non-enum value: "FLASHBOOT"
if FLASHBOOT is passed as string.
Copy link
Copy Markdown

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 fixes a GraphQL enum serialization bug in the endpoint creation mutation by sending FLASHBOOT as an enum token (not a quoted string), preventing Enum "FlashBootType" cannot represent non-enum value errors when flashboot is enabled.

Changes:

  • Update flashBootType input formatting to pass FLASHBOOT as a GraphQL enum value rather than a string literal.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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