jsonschema icon indicating copy to clipboard operation
jsonschema copied to clipboard

Detailed output missing info

Open jose-tim opened this issue 1 year ago • 0 comments
trafficstars

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

jose-tim avatar Dec 06 '23 14:12 jose-tim