Fix Frends.JSON.QuerySingle compliance findings: net8, static class, CancellationToken, error handling - #43
Open
MichalFrends1 with Copilot wants to merge 3 commits into
Open
Conversation
Co-authored-by: MichalFrends1 <167774394+MichalFrends1@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix compliance findings in Frends.JSON.QuerySingle
Fix Frends.JSON.QuerySingle compliance findings: net8, static class, CancellationToken, error handling
Aug 5, 2026
Co-authored-by: MichalFrends1 <167774394+MichalFrends1@users.noreply.github.com>
MichalFrends1
marked this pull request as ready for review
August 5, 2026 10:00
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.
Resolves 5 task analyzer findings (FT0004, FT0007, FT0011, FT0015×2) plus framework and project metadata requirements for
Frends.JSON.QuerySingle.Changes
Frends.JSON.QuerySingle.csprojnet6.0→net8.01.3.0→1.4.0QuerySingle.csJSONclass madestatic(FT0004)CancellationTokenadded as required parameter (FT0007)try/catchdelegating toErrorHandler.Handle(options)Definitions/Options.cs(FT0015)ThrowErrorOnFailure(bool, defaulttrue)ErrorMessageOnFailure(string, default"")Definitions/Result.cs(FT0011)Errorproperty of newErrorclass (Message,AdditionalInfo)Helpers/ErrorHandler.cs(new)Resultbased onThrowErrorOnFailureFrends.JSON.QuerySingle.UnitTests.csprojnet6.0→net8.0Tests
CancellationTokenparameter andException(vsJsonException) throw typeErrorHandlerTests.cscovering throw-on-failure, return-failed-result, and custom error message paths