Skip to content

Commit

Permalink
Fixes writing null nth property in generated mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
waldekmastykarz committed Dec 13, 2023
1 parent 3b87fd9 commit 7964c4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev-proxy-plugins/MockResponses/MockResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class MockResponse {
public string Url { get; set; } = string.Empty;
[JsonPropertyName("method")]
public string Method { get; set; } = "GET";
[JsonPropertyName("nth")]
[JsonPropertyName("nth"), JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public int? Nth { get; set; }
[JsonPropertyName("responseCode")]
public int? ResponseCode { get; set; } = 200;
Expand Down

0 comments on commit 7964c4b

Please sign in to comment.