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 ?
If i want to validate server payload (json) against the schema props and not running the validate function could I reliably dig into: schema._inner.children[n].schema._inner[n2]
recursively to figure out the object keys that belong there?
It seems pretty consistent but just want to make sure.
What did you expect ?
that it is consistent...
The text was updated successfully, but these errors were encountered:
pr1ntr
changed the title
Is it safe to use Schema._inner[n].children to walk through a schema as defined by Joi.object.keys({})
Is it safe to use Schema._inner[n].children to walk through a schema as defined by Joi.object.keys({})?
Jan 25, 2017
Context
What are you trying to achieve or the steps to reproduce ?
If i want to validate server payload (json) against the schema props and not running the validate function could I reliably dig into:
schema._inner.children[n].schema._inner[n2]
recursively to figure out the object keys that belong there?
Which result you had ?
It seems pretty consistent but just want to make sure.
What did you expect ?
that it is consistent...
The text was updated successfully, but these errors were encountered: