Table of Contents

Class DomainValidationMetadata

Namespace
JD.Domain.AspNetCore
Assembly
JD.Domain.AspNetCore.dll

Metadata marker for endpoints that require domain validation.

public sealed class DomainValidationMetadata
Inheritance
DomainValidationMetadata
Inherited Members

Constructors

DomainValidationMetadata(Type, string?, bool?)

Initializes a new instance of the DomainValidationMetadata class.

public DomainValidationMetadata(Type validationType, string? ruleSet = null, bool? stopOnFirstError = null)

Parameters

validationType Type

The type to validate.

ruleSet string

Optional rule set name.

stopOnFirstError bool?

Optional stop on first error override.

Properties

RuleSet

Gets the rule set to evaluate. Null means use default.

public string? RuleSet { get; }

Property Value

string

StopOnFirstError

Gets whether to stop on first error. Null means use default from options.

public bool? StopOnFirstError { get; }

Property Value

bool?

ValidationType

Gets the type to validate.

public Type ValidationType { get; }

Property Value

Type