Skip to content

Update System.Text.Json to 8.0.6 and refactor MethodWrapper class#28

Merged
IvanMurzak merged 1 commit intomainfrom
refactoring/method-wrapper
Nov 11, 2025
Merged

Update System.Text.Json to 8.0.6 and refactor MethodWrapper class#28
IvanMurzak merged 1 commit intomainfrom
refactoring/method-wrapper

Conversation

@IvanMurzak
Copy link
Copy Markdown
Owner

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.

…t version to 2.3.1; refactor MethodWrapper to partial class and extract methods for description and schema creation.
@IvanMurzak IvanMurzak self-assigned this Nov 11, 2025
@IvanMurzak IvanMurzak requested a review from Copilot November 11, 2025 04:16
@IvanMurzak IvanMurzak added bug Something isn't working enhancement New feature or request labels Nov 11, 2025
@github-actions
Copy link
Copy Markdown
Contributor

Test Results

    3 files  ±0      3 suites  ±0   3m 24s ⏱️ +35s
  567 tests ±0    567 ✅ ±0  0 💤 ±0  0 ❌ ±0 
1 663 runs  ±0  1 663 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 4064a21. ± Comparison against base commit 12205d5.

@IvanMurzak IvanMurzak merged commit 1d5e841 into main Nov 11, 2025
6 checks passed
@IvanMurzak IvanMurzak deleted the refactoring/method-wrapper branch November 11, 2025 04:18
Copy link
Copy Markdown
Contributor

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 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 MethodWrapper into a partial class with extracted virtual methods for description and schema creation
  • Moved static factory methods (Create, CreateFromInstance) and ConvertStringToEnum to a new partial file
  • Changed properties InputSchema, OutputSchema, and Description from 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.

Comment thread ReflectorNet/src/Reflector/MethodWrapper.cs
Comment thread ReflectorNet/src/Reflector/MethodWrapper.Static.cs
Comment thread ReflectorNet/src/Reflector/MethodWrapper.Static.cs
Comment thread ReflectorNet/src/Reflector/MethodWrapper.Static.cs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants