Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bartoszlenar opened this issue Jun 11, 2020 · 0 comments
Open
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@bartoszlenar
Copy link
Owner

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.
@bartoszlenar bartoszlenar added the enhancement New feature or request label Jun 11, 2020
@bartoszlenar bartoszlenar self-assigned this Jun 11, 2020
@bartoszlenar bartoszlenar added this to the v2.6 milestone Dec 6, 2022
@bartoszlenar bartoszlenar modified the milestones: v2.6, v3.2 Dec 14, 2022
@bartoszlenar bartoszlenar modified the milestones: v3.2, v2.6 Jun 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant