-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[dotnet] [bidi] Ignore non-serializable extension properties in BrowsingContext #16654
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] Ignore non-serializable extension properties in BrowsingContext #16654
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
User description
Avoid metadata generation in
JsonSerializerContexts.🔄 Types of changes
PR Type
Bug fix
Description
Add
[JsonIgnore]attributes to extension properties inBrowsingContextPrevent non-serializable properties from being included in JSON serialization
Import
System.Text.Json.Serializationnamespace for attribute supportDiagram Walkthrough
File Walkthrough
BrowsingContext.cs
Add JsonIgnore attributes to extension propertiesdotnet/src/webdriver/BiDi/BrowsingContext/BrowsingContext.cs
using System.Text.Json.Serialization;import statement[JsonIgnore]attribute to six extension properties:BiDi,Log,Network,Script,Storage, andInputJSON serialization