Skip to content

Commit fbdc7a5

Browse files
committed
[dotnet] Declare proper nullable Selenium Manager ResultResponse DTO
1 parent 68dbe57 commit fbdc7a5

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

dotnet/src/webdriver/SeleniumManager.cs

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -230,15 +230,12 @@ internal record SeleniumManagerResponse(IReadOnlyList<LogEntryResponse> Logs, Re
230230
public record LogEntryResponse(string Level, string Message);
231231

232232
public record ResultResponse
233-
{
234-
[JsonPropertyName("driver_path")]
235-
[JsonRequired]
236-
public string DriverPath { get; init; } = null!;
237-
238-
[JsonPropertyName("browser_path")]
239-
[JsonRequired]
240-
public string BrowserPath { get; init; } = null!;
241-
}
233+
(
234+
[property: JsonPropertyName("driver_path")]
235+
string DriverPath,
236+
[property: JsonPropertyName("browser_path")]
237+
string BrowserPath
238+
);
242239
}
243240

244241
[JsonSerializable(typeof(SeleniumManagerResponse))]

0 commit comments

Comments
 (0)