Open
Description
Hey!
I'm implementing a way for my front-end to retrieve validation schemes from the back-end automatically. While snooping around I realized that I can use schema.describe()
in conjunction with Joi.build()
. I wouldn't believe that this is officially supported, but I wanted to mention that the the type definition says the following:
It would appear that Joi.build()
takes a description object and parses it into a proper Joi schema. Is that the intended behavior, and should the definitions be updated?
Cheers!