Table of Contents

Class RuleManifest

Namespace
JD.Domain.Abstractions
Assembly
JD.Domain.Abstractions.dll

Represents metadata about a domain rule.

public sealed class RuleManifest
Inheritance
RuleManifest
Inherited Members

Properties

Category

Gets the category of the rule (Invariant, Validator, Policy, Derivation, StateTransition).

public required string Category { get; init; }

Property Value

string

Expression

Gets the expression representation of the rule, if serializable.

public string? Expression { get; init; }

Property Value

string

Id

Gets the unique identifier of the rule.

public required string Id { get; init; }

Property Value

string

Message

Gets the error message template for rule violations.

public string? Message { get; init; }

Property Value

string

Metadata

Gets additional metadata about the rule.

public IReadOnlyDictionary<string, object?> Metadata { get; init; }

Property Value

IReadOnlyDictionary<string, object>

Severity

Gets the severity of rule violations.

public RuleSeverity Severity { get; init; }

Property Value

RuleSeverity

Tags

Gets the tags associated with this rule.

public IReadOnlyList<string> Tags { get; init; }

Property Value

IReadOnlyList<string>

TargetType

Gets the name of the entity or type this rule applies to.

public required string TargetType { get; init; }

Property Value

string