Skip to content

Conversation

@mozhganEtaati
Copy link
Contributor

@mozhganEtaati mozhganEtaati commented Oct 24, 2025

#49387

Fix the deserialization issue in the Repository model.

Summary

Corrected property names in the Repository model to match the JSON fields returned by the GitHub API.

GitHubHomeUrl → maps to html_url

LastPushUtc → maps to pushed_at

Fixes #49387


Internal previews

📄 File 🔗 Preview link
docs/csharp/tutorials/console-webapiclient.md Tutorial: Make HTTP requests in a .NET console app using C#

…otnet#49387

Fix the deserialization issue in the Repository model.
@mozhganEtaati mozhganEtaati requested review from a team and BillWagner as code owners October 24, 2025 15:43
@dotnetrepoman dotnetrepoman bot added this to the October 2025 milestone Oct 24, 2025
@dotnet-policy-service dotnet-policy-service bot added dotnet-csharp/svc fundamentals/subsvc community-contribution Indicates PR is created by someone from the .NET community. labels Oct 24, 2025
Updated the Repository class definition to use a record type with additional properties for JSON deserialization.
@mozhganEtaati
Copy link
Contributor Author

@dotnet-policy-service agree

@StuartMosquera
Copy link
Contributor

Let's wait for @BillWagner review.

Clarified JSON property name handling and added note on case insensitivity of GetFromJsonAsync.
Copy link
Member

@BillWagner BillWagner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @mozhganEtaati
And @StuartMosquera

This looks great, and I'll :shipit: now.

Copy link
Member

@BillWagner BillWagner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I spoke too soon. There's a couple lint issues to address. I've added suggestions that I think will fix them.

@mozhganEtaati
Copy link
Contributor Author

@BillWagner
Hello,
I noticed the PR hasn’t been merged yet.
Is there any issue or blocker that I should look into?

@BillWagner
Copy link
Member

@BillWagner Hello, I noticed the PR hasn’t been merged yet. Is there any issue or blocker that I should look into?

Hi, @mozhganEtaati Nothing is blocking it now. I'll merge. Thanks for making the updates based on the earlier review.

@BillWagner BillWagner merged commit 8a2ad6d into dotnet:main Oct 27, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Indicates PR is created by someone from the .NET community. dotnet-csharp/svc fundamentals/subsvc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

JSON deserialization errors in C# 'REST Client' tutorial

3 participants