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 ?
A new feature in Joi 14 is the ability to use nested paths in or/and/with (among others) as described in #1615. However according to my tests with seem to validate in an unexpected or faulty manner.
This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.
lockbot
locked as resolved and limited conversation to collaborators
Jan 9, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Context
v8.11.4
14.0.0
What are you trying to achieve or the steps to reproduce ?
A new feature in Joi 14 is the ability to use nested paths in or/and/with (among others) as described in #1615. However according to my tests
with
seem to validate in an unexpected or faulty manner.So if
a: {b: "..."}
exists we wantc: {d: "..."}
to also exist.Which result you had ?
If we have the following input
Then the input is considered valid.
What did you expect ?
The input should not be valid as
c.d
does not exist.The text was updated successfully, but these errors were encountered: