santhosh-tekuri/jsonschema

Detailed output missing info

Opened this issue · 0 comments

Hi,
I'm trying to validate a input using a json schema (draft 2022-12), but can't get any useful info for my users.
I only get "a type is a string but an object was expected" message, but I need to tell them "your property 'example_prop' was a string but an object was expected".

My code:
imagen

Console error:

invalid payload: [I#] [S#] doesn't validate with file:(REDACTED)# [I#] [S#/type] expected object, but got string

Postman error:
imagen