Open rainder opened 3 years ago
@rainder Yeah Joi thought the example was a schema. A simple fix would be to change the output of describe()
, but that would be a breaking change.
Does this still need to be addressed? And do you think there's a way without causing a breaking change? @brianle1301
Support plan
Context
What are you trying to achieve or the steps to reproduce?
Trying to build Joi object from JSON specification which contains examples. When example is set to an object which contains property
type
- build process fails with an exception.Failing example using .describe()
What was the result you got?
the error was thrown
What result did you expect?
Joi object should be successfully created regardless of the properties defined in the example object.