Skip to content

Commit

Permalink
Remove stale example. Fixes #1561.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marsup committed Aug 6, 2018
1 parent 88b2a42 commit 4e894c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/customMessage.js
Expand Up @@ -13,7 +13,7 @@ const internals = {};
const schema = Joi.object().options({ abortEarly: false }).keys({
email: Joi.string().email().required().label('User Email'),
password: Joi.string().min(8).required(),
password_confirmation: Joi.any().valid(Joi.ref('password')).required().options({ language: { any: { allowOnly: 'must match password' }, label: 'Password Confirmation' } }).label('This label is not used because language.label takes precedence'),
password_confirmation: Joi.any().valid(Joi.ref('password')).required().options({ language: { any: { allowOnly: 'must match password' } } }).label('Password Confirmation'),
first_name: Joi.string().required(),
last_name: Joi.string().required(),
company: Joi.string().optional()
Expand Down

0 comments on commit 4e894c5

Please sign in to comment.