-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[dotnet] Json serializer gen context for SM output #14481
[dotnet] Json serializer gen context for SM output #14481
Conversation
PR Reviewer Guide 🔍
|
PR Code Suggestions ✨
|
Blocked by bazel-contrib/rules_dotnet#443 |
This has been fixed in rules_dotnet. I tested it out on this branch and you can fix it with the following patch:
I'll be cutting a new rules_dotnet release soon and then the override in |
That's great! I verified locally, and seems it works smoothly: So, just waiting official release. Thank you @purkhusid! |
Finally it is happening, thanks all participants! |
User description
Description
Use generated json serializer context for Selenium Manager json output.
Motivation and Context
To be friendly with AOT.
Types of changes
Checklist
PR Type
enhancement
Description
JsonNode
with a strongly typedSeleniumManagerResponse
class, improving type safety and clarity.JsonSerializerOptions
with a custom serializer context to support AOT (Ahead Of Time) compilation.RunCommand
method to utilize the new structured response class, ensuring more reliable data handling.SeleniumManagerResponse
,LogEntryResponse
, andResultResponse
to represent the JSON structure.Changes walkthrough 📝
SeleniumManager.cs
Implement strong typing for JSON deserialization in SeleniumManager
dotnet/src/webdriver/SeleniumManager.cs
JsonNode
with a strongly typedSeleniumManagerResponse
class.JsonSerializerOptions
with a custom serializer context.RunCommand
method to use the new response class.