Replies: 1 comment
-
@epoberezkin Sorry tagging you here |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey folks, I have a schema like:
{type:"object", properties: { value: { type: "integer", minimum: 1, maximum: 60, nullable: true, errorMessage: { type: "Invalid type", minimum: "Value must be at least 1", maximum: "Value must be less than or equal to 60", }, }}}
I have set
nullable
to true to prevent null values from throwingInvalid type
error, rather I want to show an error message likevalue is required
orvalue cannot be null
.Any idea how to achieve this behavior? I have tried my luck with if-else and custom keywords but couldn't make it work. Any help will be highly appreciated 🙏
Beta Was this translation helpful? Give feedback.
All reactions