Commit 8a2ad6d
Fix JSON deserialization errors in C# 'REST Client' tutorial. Closes … (dotnet#49442)
* Fix JSON deserialization errors in C# 'REST Client' tutorial. Closes dotnet#49387
Fix the deserialization issue in the Repository model.
* Refactor Repository class to use record definition
Updated the Repository class definition to use a record type with additional properties for JSON deserialization.
* Add JSON property names to Repository record
* Remove LastPush property from model
Removed LastPush property and its implementation.
* Update console-webapiclient.md
* Update documentation text for Repository section
* Change step numbers
* Update console-webapiclient.md for JSON deserialization
Clarified JSON property name handling and added note on case insensitivity of GetFromJsonAsync.
* Update docs/csharp/tutorials/console-webapiclient.md
Co-authored-by: Bill Wagner <[email protected]>
* Update docs/csharp/tutorials/console-webapiclient.md
Co-authored-by: Bill Wagner <[email protected]>
---------
Co-authored-by: Bill Wagner <[email protected]>1 parent 690503f commit 8a2ad6d
File tree
2 files changed
+23
-18
lines changed- docs/csharp/tutorials
- snippets/WebAPIClient
2 files changed
+23
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
212 | | - | |
| 212 | + | |
213 | 213 | | |
214 | | - | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
215 | 218 | | |
216 | | - | |
217 | 219 | | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
226 | 228 | | |
227 | 229 | | |
228 | 230 | | |
229 | | - | |
| 231 | + | |
| 232 | + | |
230 | 233 | | |
231 | | - | |
| 234 | + | |
232 | 235 | | |
233 | 236 | | |
234 | 237 | | |
| |||
242 | 245 | | |
243 | 246 | | |
244 | 247 | | |
245 | | - | |
| 248 | + | |
246 | 249 | | |
247 | 250 | | |
248 | 251 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
2 | 4 | | |
3 | 5 | | |
4 | | - | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | | - | |
8 | | - | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
0 commit comments