I created a unique rule for VineObject, but I don't really understand where I forgot to pass the field value on message object.
I understand there is none by default, but is it possible to customize it?
messages: [
{
message: 'The [section_id, rank] group is not unique',
rule: 'uniqueComposed',
field: ''
}
]
For example, here I would like to show the error on the rank field in the frontend, so I would like field to equals rank.
Package version
2.0.0
Describe the bug
I created a unique rule for VineObject, but I don't really understand where I forgot to pass the
field
value on message object. I understand there is none by default, but is it possible to customize it?For example, here I would like to show the error on the
rank
field in the frontend, so I would likefield
to equalsrank
.Reproduction repo
No response