RunicIncludeJsonIgnoredAttribute class

Namespace Runic.Application.Views in Runic.Application.Views 0.23.0

public sealed class RunicIncludeJsonIgnoredAttribute : Attribute

Inherits or implements Attribute.

Keeps DTO properties that System.Text.Json ignores in the Bridge contract of the ViewModels declared in the annotated assembly. Without it, a property marked with System.Text.Json.Serialization.JsonIgnoreAttribute whose condition is Always (including an unspecified condition), or with JsonExtensionDataAttribute, is not part of the contract, throughout nested DTO graphs and including DTOs from assemblies that do not reference Runic. Conditional JSON ignores and Never stay included either way. ViewModel properties use RunicIgnoreAttribute.

Remarks

Adding or removing the attribute changes the generated contract, and the frontend's types with it.

Constructors

RunicIncludeJsonIgnoredAttribute

public RunicIncludeJsonIgnoredAttribute()

No documentation.