Skip to content
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

Detailed output missing info #141

Open
jose-tim opened this issue Dec 6, 2023 · 1 comment
Open

Detailed output missing info #141

jose-tim opened this issue Dec 6, 2023 · 1 comment

Comments

@jose-tim
Copy link

jose-tim commented Dec 6, 2023

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

@santhosh-tekuri
Copy link
Owner

the property name is present in instanceLocation. it is not repeated in message.

please provide sample schema and instance json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants