code: function assertEnumerated (key, value, descriptor) {
    var enumeration = descriptor.enum
    if (enumeration && enumeration.indexOf(value) === -1) {
      throw new Error(key + ' must be an enumerated value')
    } else {
      return true
    }
  }
docs: Assert Enumerated