Skip to content

Fix compliance findings in Frends.JSON.ConvertJSONStringToJToken - #41

Open
MichalFrends1 with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-compliance-findings
Open

Fix compliance findings in Frends.JSON.ConvertJSONStringToJToken#41
MichalFrends1 with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-compliance-findings

Conversation

Copilot AI commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Resolves task analyzer findings (FT0004, FT0007, FT0011), upgrades target framework to net8.0, and adds standard error handling infrastructure.

Changes

  • ConvertJSONStringToJToken.csprojnet6.0net8.0; version 1.1.01.2.0
  • UnitTests.csprojnet6.0net8.0
  • JSON class — made static (FT0004)
  • Task method — added Options and CancellationToken parameters (FT0007); wrapped body in try/catch using ErrorHandler
  • Result — switched to init-only properties; added Error property (FT0011)
  • New: Definitions/Options.csThrowErrorOnFailure, ErrorMessageOnFailure
  • New: Definitions/Error.csMessage, AdditionalInfo
  • New: Helpers/ErrorHandler.cs — standard Handle(exception, options) extension
  • New: ErrorHandlerTests.cs — covers throw-on-failure, return-on-failure, and custom error message paths

Updated call signature:

JSON.ConvertJSONStringToJToken(input, options, cancellationToken)

Co-authored-by: MichalFrends1 <167774394+MichalFrends1@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix compliance findings in Frends.JSON.ConvertJSONStringToJToken Fix compliance findings in Frends.JSON.ConvertJSONStringToJToken Aug 4, 2026
Copilot AI requested a review from MichalFrends1 August 4, 2026 11:33
@MichalFrends1
MichalFrends1 marked this pull request as ready for review August 4, 2026 12:39
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.

2 participants