vine icon indicating copy to clipboard operation
vine copied to clipboard

`field` field of Adonis validation messages

Open Xstoudi opened this issue 1 year ago • 1 comments

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?

 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.

Reproduction repo

No response

Xstoudi avatar Mar 31 '24 21:03 Xstoudi

Can you share how you report the error and how this unique rule is used?

thetutlage avatar Jun 02 '24 11:06 thetutlage

Closing since no response from the issue reporter and not actionable as well

thetutlage avatar Nov 29 '24 02:11 thetutlage