You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would be nice if the decode exception included information about the error instead of the error message, so the output could be formatted nicely to an end user
The path property can point to where in an object or array that the error occured, so I can log a message like Expected "string" in Object.nested.field[0]
The text was updated successfully, but these errors were encountered:
It's certainly possible to make the errors more strongly typed, but this scheme doesn't cover all the cases. How would you, for example, use this in oneOf.
It would also be a major breaking change. And I'm not sure how useful it really is, seeing as your use case of logging a string seems to be covered well by the current error representation.
But I'm open to suggestions and use cases that show its usefulness.
Would be nice if the decode exception included information about the error instead of the error message, so the output could be formatted nicely to an end user
The
path
property can point to where in anobject
orarray
that the error occured, so I can log a message likeExpected "string" in Object.nested.field[0]
The text was updated successfully, but these errors were encountered: