index.js 186 Bytes
Newer Older
abergavenny's avatar
abergavenny committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
export const idSchema = {
  id: {
    in: ['params'],
    exists: true,
    isAlphanumeric: true
  }
}

export const emailSchema = {
  email: {
    in: ['body'],
    isEmail: true
  }
}