-
Couldn't load subscription status.
- Fork 6.1k
Fix JSON deserialization errors in C# 'REST Client' tutorial. Closes … #49442
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix JSON deserialization errors in C# 'REST Client' tutorial. Closes … #49442
Conversation
…otnet#49387 Fix the deserialization issue in the Repository model.
Updated the Repository class definition to use a record type with additional properties for JSON deserialization.
|
@dotnet-policy-service agree |
Removed LastPush property and its implementation.
|
Let's wait for @BillWagner review. |
Clarified JSON property name handling and added note on case insensitivity of GetFromJsonAsync.
There was a problem hiding this 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
now.
There was a problem hiding this 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.
Co-authored-by: Bill Wagner <[email protected]>
Co-authored-by: Bill Wagner <[email protected]>
|
@BillWagner |
Hi, @mozhganEtaati Nothing is blocking it now. I'll merge. Thanks for making the updates based on the earlier review. |
…#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