z-schema
z-schema copied to clipboard
How to get ID of error element
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!