Skip to content

Commit

Permalink
[dotnet] Declare proper nullable Selenium Manager ResultResponse DTO
Browse files Browse the repository at this point in the history
  • Loading branch information
nvborisenko committed Oct 24, 2024
1 parent 68dbe57 commit fbdc7a5
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions dotnet/src/webdriver/SeleniumManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -230,15 +230,12 @@ internal record SeleniumManagerResponse(IReadOnlyList<LogEntryResponse> Logs, Re
public record LogEntryResponse(string Level, string Message);

public record ResultResponse
{
[JsonPropertyName("driver_path")]
[JsonRequired]
public string DriverPath { get; init; } = null!;

[JsonPropertyName("browser_path")]
[JsonRequired]
public string BrowserPath { get; init; } = null!;
}
(
[property: JsonPropertyName("driver_path")]
string DriverPath,
[property: JsonPropertyName("browser_path")]
string BrowserPath
);
}

[JsonSerializable(typeof(SeleniumManagerResponse))]
Expand Down

0 comments on commit fbdc7a5

Please sign in to comment.