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
which support plan is this issue covered by? (e.g. Community, Core, Plus, or Enterprise): none
is this issue currently blocking your project? (yes/no): no
is this issue affecting a production system? (yes/no): no
Context
node version: 13.7.0
module version with issue: "@hapi/joi": "^17.1.1",
last module version without issue:
environment (e.g. node, browser, native): node
used with (e.g. hapi application, another framework, standalone, ...): standalone
any other relevant information:
What are you trying to achieve or the steps to reproduce?
I'm new the the library and was just trying the examples listed in the documentation. Everything I tried worked as expected, except the lazy example for recursive schemas. See example from docs below:
children: Joi.array().items(Joi.lazy(() => Person).description('Person schema'))
^
TypeError: Joi.lazy is not a function
What result did you expect?
That it worked. All you other examples from the documentation works as is. I think this is a bug, otherwise the documentation might benefit from an extra line explaining usage.
Thank you
The text was updated successfully, but these errors were encountered:
Support plan
Context
What are you trying to achieve or the steps to reproduce?
I'm new the the library and was just trying the examples listed in the documentation. Everything I tried worked as expected, except the lazy example for recursive schemas. See example from docs below:
What was the result you got?
What result did you expect?
That it worked. All you other examples from the documentation works as is. I think this is a bug, otherwise the documentation might benefit from an extra line explaining usage.
Thank you
The text was updated successfully, but these errors were encountered: