Skip to content

Conversation

tobias-tengler
Copy link
Member

@tobias-tengler tobias-tengler commented Oct 13, 2025

@Copilot Copilot AI review requested due to automatic review settings October 13, 2025 16:17
Copy link
Contributor

@Copilot 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 error extension forwarding in the Fusion GraphQL gateway. The change ensures that error extensions from source schemas are properly passed through to the client by wrapping them in RawJsonValue objects instead of using raw JsonElement values.

  • Updates error extension handling to use RawJsonValue wrapper for proper JSON serialization
  • Adds a test to verify error extensions are correctly forwarded from source schemas
  • Includes snapshot test file for the new test case

Reviewed Changes

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

File Description
SourceSchemaErrors.cs Fixed error extension forwarding by wrapping JSON values in RawJsonValue
SourceSchemaErrorTests.cs Added test case and source schema class to verify error extension forwarding
Error_Extensions_From_Source_Schema_Are_Properly_Forwarded.yaml Snapshot test file for the new test case

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant