Fix (validation) use joi's concat #23
No reviewers
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: thereadme/hapi-sequelize-crud#23
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix-joi-concat"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
It turns out defaultsDeep doesn't ever correctly combine Joi objects.
So, the only option is to use Joi's concat method to combine Joi
schemas. This complicates
getConfigForMethod
, but simplifies actualroute creation.
I ran into this because I'm setting up lout
on a server, and it requires properly formatted Joi schemas. This leads
me to believe there was something already wrong and Lout just exposed
the problem.
This is a patch release.
@mdibaiee I wouldn't mind a second pair of eyes if you get time!
@joeybaker: oh, I wasn't aware of
joi.combine
. Thank you, looks good to me. 👍Published as 2.6.2