-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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] [bidi] Make UrlPattern
as not nested
#15434
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking nice.
Small request, unrelated to changes.
User description
Motivation and Context
Contributes to #15407
Types of changes
Checklist
PR Type
Enhancement, Tests
Description
Refactored
UrlPattern
to use non-nested types for better extensibility.Updated
UrlPattern
derived types toPatternUrlPattern
andStringUrlPattern
.Adjusted test cases to use the new non-nested
UrlPattern
types.Removed nested DTO type usage in
BiDiJsonSerializerContext
.Changes walkthrough 📝
BiDiJsonSerializerContext.cs
Removed nested `UrlPattern.String` serialization
dotnet/src/webdriver/BiDi/Communication/Json/BiDiJsonSerializerContext.cs
JsonSerializable
attribute for nestedUrlPattern.String
type.reference.
UrlPattern.cs
Refactored `UrlPattern` to non-nested derived types
dotnet/src/webdriver/BiDi/Modules/Network/UrlPattern.cs
UrlPattern
to use non-nested derived types.Pattern
toPatternUrlPattern
andString
toStringUrlPattern
.StringUrlPattern
.NetworkTest.cs
Updated tests for non-nested `UrlPattern` types
dotnet/test/common/BiDi/Network/NetworkTest.cs
PatternUrlPattern
andStringUrlPattern
.UrlPattern
types with new non-nestedtypes.