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
dataPath of additionalProperties is empty #11
Comments
I suspect I may have recently fixed the issue with incorrect dataPath reporting in version 0.4.9 (it was issue #9). Please try using the latest version (0.4.10 - there is another important fix). If you are still seeing the issue please post your schema, data and results (errors) here. Thanks for helping me making it better ;) |
Ok, I've figured what it was about. So I added it in 0.4.15.
There will be two errors in the array, with dataPaths So if you want to remove additional properties you could do smth like this:
It'll be just a bit more complex for properties in sub-objects. |
i would like to remove all additional properties but dataPath is always empty when err type is additionalProperties!
The text was updated successfully, but these errors were encountered: