Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #47499 [Uid][Validator] Stop to first ULID format violation (ogiz…
…anagi) This PR was merged into the 5.4 branch. Discussion ---------- [Uid][Validator] Stop to first ULID format violation | Q | A | ------------- | --- | Branch? | 5.4 <!-- see below --> | Bug fix? | yes | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | N/A | License | MIT | Doc PR | N/A Unlike the UUID validator, the ULID validator does not stop on the first violation raised, but continues adding a violation for each ULID format infringement. Which might make sense in some situations, but the same error message is set for each. In case of a string like `not-even-ulid-like`, you'll get 3 violations with the same message. IIMHO, 95% of the use-cases will consist of exposing the violation messages directly, so displaying 3 times the same message is unexpected. (getting different messages per violation type could be added as a new feature if needed) Commits ------- fdd73c7 [Validator][UID] Stop to first ULID format violation
- Loading branch information