Skip to content

Commit 914d081

Browse files
authored
Make Collaborator.Uid nullable to fix JSON deserialization error (#9170)
1 parent 10902f9 commit 914d081

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Common/Api/Project.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public class Collaborator
2727
/// User ID
2828
/// </summary>
2929
[JsonProperty(PropertyName = "uid")]
30-
public int Uid { get; set; }
30+
public int? Uid { get; set; }
3131

3232
/// <summary>
3333
/// Indicate if the user have live control
@@ -46,7 +46,7 @@ public class Collaborator
4646
/// The user public ID
4747
/// </summary>
4848
[JsonProperty(PropertyName = "publicId")]
49-
public string PublicId { get; set; }
49+
public string PublicId { get; set; }
5050

5151
/// <summary>
5252
/// The url of the user profile image
@@ -119,7 +119,7 @@ public class GridChart
119119
/// The chart name
120120
/// </summary>
121121
[JsonProperty(PropertyName = "chartName")]
122-
public string ChartName { get; set;}
122+
public string ChartName { get; set; }
123123

124124
/// <summary>
125125
/// Width of the chart
@@ -328,7 +328,7 @@ public class Project : RestResponse
328328
/// <summary>
329329
/// Configuration of the backtest view grid
330330
/// </summary>
331-
[JsonProperty(PropertyName = "grid" )]
331+
[JsonProperty(PropertyName = "grid")]
332332
public Grid Grid { get; set; }
333333

334334
/// <summary>
@@ -365,7 +365,7 @@ public class Project : RestResponse
365365
/// Indicates if the project is running or not
366366
/// </summary>
367367
[JsonProperty(PropertyName = "codeRunning")]
368-
public bool CodeRunning { get; set; }
368+
public bool CodeRunning { get; set; }
369369

370370
/// <summary>
371371
/// LEAN environment of the project running on

0 commit comments

Comments
 (0)