Skip to content

Conversation

@eNeRGy164
Copy link
Member

  • Fix BaseTypes deserialization with System.Text.Json - add BaseTypes parameter to JsonConstructor

* Fix BaseTypes deserialization with System.Text.Json - add BaseTypes parameter to JsonConstructor

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: eNeRGy164 <10671831+eNeRGy164@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 26, 2025 14:44
Copy link
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 fixes an issue with BaseTypes deserialization using System.Text.Json by adding a BaseTypes parameter to the TypeDescription constructor and updating the tests accordingly.

  • Added unit tests in TextJsonDeserializationTests.cs to verify BaseTypes deserialization.
  • Added equivalent unit tests in NewtonsoftDeserializationTests.cs.
  • Updated the TypeDescription constructor to accept and assign a BaseTypes parameter.

Reviewed Changes

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

File Description
tests/DendroDocs.Shared.Tests/Serialization/TextJsonDeserializationTests.cs Added a test verifying BaseTypes are correctly deserialized using System.Text.Json.
tests/DendroDocs.Shared.Tests/Serialization/NewtonsoftDeserializationTests.cs Added a test verifying BaseTypes are correctly deserialized using Newtonsoft.Json.
src/DendroDocs.Shared/Descriptions/TypeDescription.cs Updated the constructor to include a BaseTypes parameter and assign it to the BaseTypes collection.

@eNeRGy164 eNeRGy164 merged commit c4f4e11 into dendrodocs:main Jun 26, 2025
1 check passed
@eNeRGy164 eNeRGy164 deleted the fix-39 branch June 26, 2025 14:46
@eNeRGy164 eNeRGy164 added the bug Something isn't working label Jun 26, 2025
@coveralls
Copy link

Pull Request Test Coverage Report for Build 15905036921

Details

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.01%) to 96.104%

Totals Coverage Status
Change from base Build 15880129795: 0.01%
Covered Lines: 567
Relevant Lines: 572

💛 - Coveralls

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

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants