Update System.Text.Json to 8.0.6 and refactor MethodWrapper class#28
Merged
IvanMurzak merged 1 commit intomainfrom Nov 11, 2025
Merged
Update System.Text.Json to 8.0.6 and refactor MethodWrapper class#28IvanMurzak merged 1 commit intomainfrom
IvanMurzak merged 1 commit intomainfrom
Conversation
…t version to 2.3.1; refactor MethodWrapper to partial class and extract methods for description and schema creation.
Contributor
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR upgrades the System.Text.Json dependency from version 8.0.5 to 8.0.6 across all projects and bumps the package version to 2.3.1. The main code change refactors the MethodWrapper class into a partial class, extracting schema creation logic into separate virtual methods while moving static factory methods and helper methods to a new partial file.
- Refactored
MethodWrapperinto a partial class with extracted virtual methods for description and schema creation - Moved static factory methods (
Create,CreateFromInstance) andConvertStringToEnumto a new partial file - Changed properties
InputSchema,OutputSchema, andDescriptionfrom regular to virtual properties - Updated System.Text.Json from 8.0.5 to 8.0.6
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| ReflectorNet/src/Reflector/MethodWrapper.cs | Converted to partial class, extracted schema creation methods, made properties virtual |
| ReflectorNet/src/Reflector/MethodWrapper.Static.cs | New file containing static factory methods and helper methods moved from main class |
| ReflectorNet/ReflectorNet.csproj | Updated System.Text.Json to 8.0.6 and incremented version to 2.3.1 |
| ReflectorNet.Tests/ReflectorNet.Tests.csproj | Updated System.Text.Json to 8.0.6 |
| ReflectorNet.Tests.OuterAssembly/ReflectorNet.Tests.OuterAssembly.csproj | Updated System.Text.Json to 8.0.6 |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Upgrade the System.Text.Json package to version 8.0.6 and increment the project version to 2.3.1. Refactor the MethodWrapper class into a partial class, extracting methods for description and schema creation to enhance code organization and maintainability.