-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
bugBug or defectBug or defectsupportQuestions, discussions, and general supportQuestions, discussions, and general support
Milestone
Description
Is there a way to overwrite a key in the schema or add to the validation parameter?
Overwrite a key:
var base = Joi.object().keys({
a: Joi.number(),
b: Joi.string()
});
var extended = base.keys({
a: Joi.string()
});Add a parameter:
var base = Joi.object().keys({
a: Joi.number(),
b: Joi.string()
});
var extended = base.keys({
a: Joi.number().min(10)
});Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugBug or defectBug or defectsupportQuestions, discussions, and general supportQuestions, discussions, and general support