Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Update to Message<TModel> to enable deserialization in .NET 5.0-rc1 #4935

Merged
merged 3 commits into from
Oct 2, 2020
Merged

Conversation

ChrisKlug
Copy link
Contributor

What issue does this PR address?
#4912 - System.Text.Json deserialization fails in .NET5 RC1

Does this PR introduce a breaking change?
It shouldn't. The only change is that the parameterless constructor for IdentityServer4.Models.Message has been made public as the System.Text.Json.JsonSerializer requires a public parameterless constructor

Please check if the PR fulfills these requirements

  • The commit follows our guidelines
  • Unit Tests for the changes have been added (for bug fixes / features)

Other information:
A unit test has been added for IdentityServer4.ObjectSerializer. However, the test wouldn't fail with an internal constructor using netcoreapp3.1. Having that said, it would ensure it works when moving to net5.0.

@dnfadmin
Copy link

dnfadmin commented Oct 1, 2020

CLA assistant check
All CLA requirements met.

@leastprivilege leastprivilege added this to the 4.1.1 milestone Oct 2, 2020
@brockallen brockallen merged commit 62d48b5 into IdentityServer:main Oct 2, 2020
@brockallen
Copy link
Member

THanks!

@github-actions
Copy link

github-actions bot commented Oct 3, 2021

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants