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

How to get ID of error element #188

Open
songoo opened this issue Jun 28, 2017 · 0 comments
Open

How to get ID of error element #188

songoo opened this issue Jun 28, 2017 · 0 comments
Labels

Comments

@songoo
Copy link

songoo commented Jun 28, 2017

Hi, at error I can get .path, but in cause of arrays path contains also number of item (/1/) . How can i get id of error element ?

I would like add additional error text for some of my enum elements, for now i have .path set as array and compare only last part of path. So i have to take care to have unique keyst in my schema.

Tnx for any help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants