Namespace Cratis.Arc.Validation

Classes

BaseValidator<T>

Represents a base validator that we use for discovery.

CannotResolveValidatorDependency

Exception thrown when a discoverable validator cannot be constructed because a non-nullable constructor dependency cannot be resolved or resolves to null.

ConceptValidator<T>

Represents the base type for a validator of a ConceptAs<T>.

DiscoverableModelValidator

Represents a IModelValidator for BaseValidator<T>.

DiscoverableModelValidatorProvider

Represents a IModelValidatorProvider for DiscoverableValidator<T>.

DiscoverableValidatorMustImplementAbstractValidator

Exception that gets thrown when a validator.

DiscoverableValidatorRefusedInProtectedDecision

The exception that is thrown when a discoverable validator would run in a protected decision command although Arc cannot certify that its rules depend only on the model it validates.

DiscoverableValidator<T>

Represents a base validator that can be discovered and automatically hooked up.

DiscoverableValidators

Represents an implementation of IDiscoverableValidators that can discover validators from assemblies.

ExplicitConceptValidator<T>

Represents the base type for a validator of query.

ModelErrorExtensions

Extension methods for ModelError.

ModelGraphValidationRequest

Represents a request to validate an object graph with IModelGraphValidator.

ModelGraphValidator

Represents an implementation of IModelGraphValidator.

ReadModelValidatorRequiresCommandPipeline

The exception that is thrown when a validator that depends on a command-scoped read model is used through the MVC controller model-validation path, which runs before a command context is established.

RuleBuilderInitialExtensions

Extensions for working with FluentValidation.IRuleBuilderInitial<T, TProperty>.

RuleBuilderOptionsExtensions

Extensions for working with FluentValidation.IRuleBuilderOptions<T, TProperty>.

ValidationContextExtensions

Extensions for FluentValidation.IValidationContext.

ValidationResult

Represents the an failed validation rule.

ValidationResultReason

Represents what composed a ValidationResult - the machine-readable counterpart to its message.

ValidatorInvoker

Represents an implementation of IValidatorInvoker for FluentValidation.

Interfaces

IConceptRuleBuilder<T, TValue>

Represents an FluentValidation.IRuleBuilderInitial<T, TProperty> for a property that is a ConceptAs<T>, adding concept-specific fluent methods on top of the ordinary FluentValidation rule builder surface.

IDiscoverableValidator<T>

Defines a discoverable validator that can be discovered and automatically hooked up.

IDiscoverableValidators

Defines a service that can lookup FluentValidation.IValidator for a given model type.

IHasIgnoredConceptRuleMembers

Defines a validator that can suppress the cross-cutting ConceptValidator<T> registered for one of its own concept-typed properties.

IModelGraphValidator

Defines a system that validates an object graph by running every discoverable validator that applies to it.

IValidationFailure

Implemented by an exception that represents invalid command input rather than a server fault.

IValidatorInvoker

Defines a system that runs a validator against an instance and expresses the outcome as framework ValidationResult instances.

Enums

ValidationResultSeverity

Holds the values for severity of a validation result.