Skip to content
This repository was archived by the owner on May 26, 2025. It is now read-only.
This repository was archived by the owner on May 26, 2025. It is now read-only.

WithFailFastStrategy - fail fast, but only in the related scope #5

@bartoszlenar

Description

@bartoszlenar

Feature description

  • Ability to set the fail-fast strategy in a single scope.

Feature in action

Specification<Model> specification = s => s
    .Member(m => m.Member, memberSpecification).WithFailFastStrategy();
Specification<Model> specification = s => s
    .AsModel(anotherSpecification).WithFailFastStrategy();

Feature details

  • New parameter command: WithFailFastStrategy.
  • The related scope command would terminate and return error output immediately after detecting a single error.
  • Internally it looks like temporary setting FailFast to true in the ValidationContext class, but let's investigate that further.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions