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
This feature requests comes from the discussion in #2669.
node version:
module version:
environment (e.g. node, browser, native):
used with (e.g. hapi application, another framework, standalone, ...):
any other relevant information:
What problem are you trying to solve?
We currently have the ability to set warnings on unknown keys within an object of Joi, but not recursively. It would be nice to have the ability to say "I have an object and if I receive any unknown keys at any depth, I'd like to warn the user." The following technically works, but is not great as it can hide future problems validating joi config.
Given the single-level warning above, I'm not sure what the best approach here would be. Attaching a recursive argument into one of these would make sense, but doesn't feel right in any of the method calls. My initial idea is to add a Joi.rules or some other top-level method to set up these types of controls.
The text was updated successfully, but these errors were encountered:
Context
This feature requests comes from the discussion in #2669.
What problem are you trying to solve?
We currently have the ability to set warnings on unknown keys within an object of Joi, but not recursively. It would be nice to have the ability to say "I have an object and if I receive any unknown keys at any depth, I'd like to warn the user." The following technically works, but is not great as it can hide future problems validating joi config.
Do you have a new or modified API suggestion to solve the problem?
Given the single-level warning above, I'm not sure what the best approach here would be. Attaching a
recursive
argument into one of these would make sense, but doesn't feel right in any of the method calls. My initial idea is to add aJoi.rules
or some other top-level method to set up these types of controls.The text was updated successfully, but these errors were encountered: