-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[dotnet] [bidi] Avoid using JsonInclude attribute to include optional property for DTO #16413
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] Avoid using JsonInclude attribute to include optional property for DTO #16413
Conversation
… property for DTO
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
💥 What does this PR do?
Simplifies DTO definitions.
JsonIncludeattribute leads to messing.🔧 Implementation Notes
I am applied it everywhere is possible.
🔄 Types of changes
PR Type
Other
Description
Remove JsonInclude attributes from BiDi DTO classes
Convert properties to constructor parameters in records
Simplify serialization by using primary constructors
Update network event handlers with new signatures
Diagram Walkthrough
File Walkthrough
14 files
Convert Parent property to constructor parameterAdd Intercepts parameter to event handlersConvert UserText property to constructor parameterConvert DefaultValue property to constructor parameterAdd Intercepts parameter to constructorConvert Intercepts property to constructor parameterAdd Intercepts parameter to constructorAdd Intercepts parameter to constructorUpdate intercepted event constructors with InterceptsAdd Intercepts parameter to constructorConvert AuthChallenges property to constructor parameterAdd Intercepts parameter to constructorConvert all properties to constructor parametersConvert SharedId and Value to constructor parameters