hapijs/joi — pull request #478 by hueniverse (2014-11-07 18:50:00+00:00)
Title: Retain object reference when no rules specified

We have a few places in hapi config where we validate an options object containing user-specified values like `app`. These are shallow copied even when there is no reason to (no other rules specified). This creates a simple shortcut when there is no reason to perform even a shallow copy. Without this, the type must be set to `joi.any()` which is not as good as `joi.object()`.