You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Non-scalar parameters are currently simply converted to strings via their default #to_s method. This leaves for less than ideal outputs in some cases depending on what the value is. E.g.
constraint =AVD::Constraints::Choice.new(
["one", "two", "three"],
message:"{{ value}} is not one of {{ choices }}."
)
putsAVD.validator.validate "four", constraint
# four:# {{ value}} is not one of ["one", "two", "three"]. (code: c7398ea5-e787-4ee9-9fca-5f2c130614d6)
Non-scalar parameters are currently simply converted to strings via their default
#to_s
method. This leaves for less than ideal outputs in some cases depending on what the value is. E.g.It might not be a bad idea to have a bit more robust/predictable output for these parameters. Can maybe reference https://github.com/symfony/validator/blob/6.2/ConstraintValidator.php#L76-L145.
The text was updated successfully, but these errors were encountered: