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
Expression
Gets the expression representation of the rule, if serializable.
public string? Expression { get; init; }
Property Value
Id
Gets the unique identifier of the rule.
public required string Id { get; init; }
Property Value
Message
Gets the error message template for rule violations.
public string? Message { get; init; }
Property Value
Metadata
Gets additional metadata about the rule.
public IReadOnlyDictionary<string, object?> Metadata { get; init; }
Property Value
Severity
Gets the severity of rule violations.
public RuleSeverity Severity { get; init; }
Property Value
Tags
Gets the tags associated with this rule.
public IReadOnlyList<string> Tags { get; init; }
Property Value
TargetType
Gets the name of the entity or type this rule applies to.
public required string TargetType { get; init; }