I wish to make Ajv print the piece of my data that is wrong when an error is detected.
I'll make a couple of examples of how Ajv currently behaves and how I wish for it to act:
{const:"hello!"}"hi"data must be equal to constantdata ("hi") must be equal to constant ("hello!"){type:"object", properties:{"x":{}}, additionalProperties:false}{x:1, y:2}data must NOT have additional propertiesdata must NOT have additional properties (found "y")And so on and so forth. I want more information to help me debug my data for any kind of error, anywhere in the data.
I found lots of information pointing to the ajv-errors package but couldn't figure out how to use it to achieve what I want.
Could anyone suggest if it's possible to achieve what I want and how?