From fbdc7a560ae18495605da3c6ba99b674c7741db8 Mon Sep 17 00:00:00 2001 From: Nikolay Borisenko <22616990+nvborisenko@users.noreply.github.com> Date: Fri, 25 Oct 2024 00:56:14 +0300 Subject: [PATCH] [dotnet] Declare proper nullable Selenium Manager ResultResponse DTO --- dotnet/src/webdriver/SeleniumManager.cs | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/dotnet/src/webdriver/SeleniumManager.cs b/dotnet/src/webdriver/SeleniumManager.cs index e9060a8984e5e..4b28f7862d138 100644 --- a/dotnet/src/webdriver/SeleniumManager.cs +++ b/dotnet/src/webdriver/SeleniumManager.cs @@ -230,15 +230,12 @@ internal record SeleniumManagerResponse(IReadOnlyList 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))]