mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-10-22 13:12:49 +00:00
Refactor validation handling in PersonEdit.vue
: Replace hasValidationError
and validationError
with hasViolation
and violationTitles
. Introduce hasViolationWithParameter
and violationTitlesWithParameter
for enhanced field validation. Update RequiredIdentifierConstraint
messages, improve API error mapping, and refine ValidationException
structure with violationsList
. Add tests and translations for identifier validation.
This commit is contained in:
@@ -16,9 +16,10 @@ use Symfony\Component\Validator\Constraint;
|
||||
/**
|
||||
* Test that the required constraints are present.
|
||||
*/
|
||||
#[\Attribute]
|
||||
class RequiredIdentifierConstraint extends Constraint
|
||||
{
|
||||
public string $message = 'This identifier must be set';
|
||||
public string $message = 'person_identifier.This identifier must be set';
|
||||
|
||||
public function getTargets(): string
|
||||
{
|
||||
|
Reference in New Issue
Block a user