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

generic error #222

Open
peterejiro opened this issue Nov 24, 2022 · 1 comment
Open

generic error #222

peterejiro opened this issue Nov 24, 2022 · 1 comment

Comments

@peterejiro
Copy link

when validating a payload, it doesn't throw the exact fields missing or not allowed, instead, we get a generic error, 'invalid payload', would be nice to have the specific fields missing or not allowed

@altoblond
Copy link

When calling the decode method you get an error containing the invalid paths, but it seems to work only for second level paths not the root paths.
In an payload with
{items: {values:{hello:string}[]}}
if hello field. is wrong you get:
paths: [ [ '/values/0' ] ]
If items field is wrong you get:
paths: [ [ '' ] ]

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