Skip to content
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

Ignore IUpdateModel and BuildPartDisplayContext in console_log #11286

Merged
merged 3 commits into from
May 19, 2022

Conversation

ns8482e
Copy link
Contributor

@ns8482e ns8482e commented Mar 1, 2022

Ignore IUpdateModel and BuildPartDisplayContext properties in console_log for Shape json

Fixes #11260

@@ -16,6 +16,8 @@ public class BagPartEditViewModel
[BindNever]
public BagPart BagPart { get; set; }

[System.Text.Json.Serialization.JsonIgnore]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't there a common attribute that doesn't require referencing these libraries?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added as - I guess NewtosoftJson's JsonIgnore wont work for System.Text.Json

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[IgnoreDataMember], or [NonSerialized] might work for both libraries

Copy link
Contributor Author

@ns8482e ns8482e Mar 17, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sebastienros NonSerialized is not allowed on properties
However IgnoreDataMember is working - Updated the PR

@ns8482e
Copy link
Contributor Author

ns8482e commented May 12, 2022

@sebastienros @deanmarcussen It's be nice to have this included in 1.4

@sebastienros sebastienros merged commit c7520df into main May 19, 2022
@sebastienros sebastienros deleted the ns/#11260 branch May 19, 2022 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

console_log on FlowPart shape returns logs of C# Runtime objects
4 participants