BridgeValidationMessage record

Namespace Runic.Application.Views · Runic.Application 0.7.0-preview.5

public sealed record BridgeValidationMessage : IEquatable<BridgeValidationMessage>

Inherits or implements IEquatable.

A structured validation error that a model may return from INotifyDataErrorInfo.GetErrors. Member paths are relative CLR property paths (for example Address.Postcode); the bridge resolves them through generated metadata before placing them on the wire. One message is emitted for each supplied member path.

Constructors

BridgeValidationMessage

public BridgeValidationMessage(string Message, string? Code = null, string? Severity = null, IReadOnlyList<string>? MemberPaths = null)

A structured validation error that a model may return from INotifyDataErrorInfo.GetErrors. Member paths are relative CLR property paths (for example Address.Postcode); the bridge resolves them through generated metadata before placing them on the wire. One message is emitted for each supplied member path.

Properties

Code

public string? Code { get; init; }

No documentation.

MemberPaths

public IReadOnlyList<string>? MemberPaths { get; init; }

No documentation.

Message

public string Message { get; init; }

No documentation.

Severity

public string? Severity { get; init; }

No documentation.