Closed kkwiatkowski closed 4 years ago
Pull request is somehow related to the following issues #54 and #67. I tried to keep the paths as close to the originals as possible aligning these to have almost the same format.
The paths are not fully correct in terms of JSON pointers (according to https://github.com/epoberezkin/ajv#validation-errors) since these are not starting with .
nor /
and schema path has preceding #
.
I can still update it to make the format compatible with AJV.
It seems that error handler has more bugs than the above fixes. I'll sniff a bit more and once I'll have more things addressed I'll make a new pull request.
Provide an extra error value so that client code have more data to form proper error message