Starting from this release, only Joi v8+ is supported.
Upgrade time: low to none
Complexity: very low
Risk: low
Breaking changes
Only Joi v8+ is supported.
Since Joi changed its description format, this has an unexpected consequence for hapi users using the short version of a validation.
Considering a route like :
Hapi automatically converts the query schema into a Joi schema, but it is doing so by using its own version of Joi, thus producing (currently with hapi v13) Joi v7 objects. You may experience lout errors on a few schemas that are using references. If you want to avoid those errors, the best way is to provide hapi an already built schema, so the example above becomes :
Summary
Starting from this release, only Joi v8+ is supported.
Breaking changes
Only Joi v8+ is supported.
Since Joi changed its description format, this has an unexpected consequence for hapi users using the short version of a validation. Considering a route like :
Hapi automatically converts the
query
schema into a Joi schema, but it is doing so by using its own version of Joi, thus producing (currently with hapi v13) Joi v7 objects. You may experience lout errors on a few schemas that are using references. If you want to avoid those errors, the best way is to provide hapi an already built schema, so the example above becomes :