Skip to content

Validation API duplicates Markers #1281

Answered by planger
rsoika asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, the idea behind that is to have a distinct set of rules for live validation and batch validation. This way, each validation rule is executed only once for the scope you want to run the validation (live or batch). Thus, when a batch validation is triggered, all markers of previous batch validations are cleared. When a live validation is triggered, all markers of the previous live validation are cleared. But they do not impact each other.

Otherwise, if an adopter doesn't make sure to invoke all live validation rules also from the batch validation, we would loose markers.
If the framework would enforce this (ie running all live validation rules on batch validation request), we would ess…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@planger
Comment options

Answer selected by rsoika
@rsoika
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants