Skip to content

Commit

Permalink
Fix: Me.CountryId should be nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
dstj committed Sep 27, 2024
1 parent d475d49 commit 788ec27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Toggl.Api/Models/Me.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class Me : IdentifiedItem
/// country_id
/// </summary>
[JsonPropertyName("country_id")]
public int CountryId { get; set; }
public int? CountryId { get; set; }

/// <summary>
/// Created
Expand Down
4 changes: 2 additions & 2 deletions Toggl.Api/Models/MeUpdateDto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class MeUpdateDto
/// User's country ID
/// </summary>
[JsonPropertyName("country_id")]
public required int CountryId { get; set; }
public required int? CountryId { get; set; }

/// <summary>
/// User's current password (used to change the current password)
Expand Down Expand Up @@ -54,4 +54,4 @@ public class MeUpdateDto
/// </summary>
[JsonPropertyName("timezone")]
public required string Timezone { get; set; }
}
}

0 comments on commit 788ec27

Please sign in to comment.