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
What are you trying to achieve or the steps to reproduce ?
I try to have a custom error message if a parameter is required conditionally and it is not provided in input. For example for the schema below at least one of the start or match parameters should be provided. So I made start required if match is not provided, and I want to tell user, that one of them should be provided instead of start is required..
Context
What are you trying to achieve or the steps to reproduce ?
I try to have a custom error message if a parameter is required conditionally and it is not provided in input. For example for the schema below at least one of the
start
ormatch
parameters should be provided. So I madestart
required ifmatch
is not provided, and I want to tell user, that one of them should be provided instead ofstart is required.
.Which result you had ?
Exception is thrown for:
TypeError: error.annotate is not a function
What did you expect ?
I expected my custom exception:
CUSTOM MESSAGE
The text was updated successfully, but these errors were encountered: