Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

field field of Adonis validation messages #46

Open
Xstoudi opened this issue Mar 31, 2024 · 1 comment
Open

field field of Adonis validation messages #46

Xstoudi opened this issue Mar 31, 2024 · 1 comment
Assignees

Comments

@Xstoudi
Copy link

Xstoudi commented Mar 31, 2024

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

@thetutlage
Copy link
Contributor

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

@thetutlage thetutlage self-assigned this Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants