import Joi from 'joi'

export default {
  createUser: {
    body: {
      email: Joi.string().email().required(),
      firstname: Joi.string().alphanum().min(3).max(30).required(),
      lastname: Joi.string().alphanum().min(3).max(30).required(),
      password: Joi.string().min(8).required(),
    },
  },
  updateUser: {
    body: {
      email: Joi.string().email().required(),
      firstname: Joi.string().alphanum().min(3).max(30).required(),
      lastname: Joi.string().alphanum().min(3).max(30).required(),
    },
    params: {
      resourceId: Joi.string().hex().required(),
    },
  },
}

@@ -133,35 +133,24 @@
 oi.string().
-alphanum().
 min(3).max(3
@@ -189,35 +189,24 @@
 oi.string().
-alphanum().
 min(3).max(3
@@ -380,35 +380,24 @@
 oi.string().
-alphanum().
 min(3).max(3
@@ -444,19 +444,8 @@
 g().
-alphanum().
 min(

Remove alphanum restriction in user firstname and lastname validation