I did the validation that the field can receive from 0 to 10, until then it is working, however when placing || (or) null, the test fails when given the value of null, says it expects it to be a number or date.
Where am I wrong? Please help me!
Below the code:
I am validating the raw of the request, the field is receiving null but it still gives this error. Is the “or” not working?