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

question: Get the index of invalid value in array #2235

Open
wahyubaskara opened this issue Sep 8, 2023 · 1 comment
Open

question: Get the index of invalid value in array #2235

wahyubaskara opened this issue Sep 8, 2023 · 1 comment
Labels
type: question Questions about the usage of the library.

Comments

@wahyubaskara
Copy link

I was trying to...
Get the index of invalid value in array when validating array.

The problem:
How can i access the index of invalid value in array as message?

@isarray()
@isalpha(undefined, { each: true, message: '$property[$index] not valid' })
deletedItemCodes?: string[];

@wahyubaskara wahyubaskara added the type: question Questions about the usage of the library. label Sep 8, 2023
@closesimple-wl
Copy link

Pretty sure the answer is "you can't."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question Questions about the usage of the library.
Development

No branches or pull requests

2 participants