Pipeline-ruleset interaction
See original GitHub issueSystem Details
- FluentValidation version: 8.1.3
- Web Framework version ASP.NET Core 2.2 + netstandard2.0
Issue Description
I’d like to do something like an IValidatorInterceptor
, but I’d like it cross cutting for the entire ASP.NET Core project.
Specifically, rather than using CustomizeValidatorAttribute
or implementing IValidatorInterceptor
on my validating class, instead put something into the pipeline which enables or disables a particular ruleset when a PATCH
verb is encountered.
Is there a way to do this?
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Source code for streamsets.sdk.st_models
This class provides abstractions to make it easier to interact with a pipeline before it's imported into ST. Args: pipeline (:obj:`dict`): A Python...
Read more >streamsets.sdk.sdc_models — SDK for Python
This class provides abstractions to make it easier to interact with a pipeline before it's imported into SDC. Args: pipeline (:obj:`dict`): A Python...
Read more >TurboEngines
interaction costs and the quote turnaround time, specifically during peak load or large transactions. ... Manage Price Pipeline Ruleset.
Read more >Drug interactions due to cytochrome P450 - PMC
Drug metabolism via the cytochrome P450 system has emerged as an important determinant in the occurrence of several drug-drug interactions. A greater degree...
Read more >SlackAttachment.fallback - Java
private SlackAttachment slackAttachment(PipelineRule rule, GoNotificationMessage message, PipelineStatus pipelineStatus) throws URISyntaxException { String ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I had to push out an 8.2.1 release with an unrelated fix, so I made the
IValidatorInterceptor
change while I was in there. You can now register a defaultIValidatorInterceptor
with the container, and it’ll be used for all requests.If you have some specific requests, please could you open separate issues for them? Thanks.
The usual approach is to create a new instance of the context, copying across what you need from the old one (and providing a new selector). This is how the internal validators handle this.