ValidationRule

public enum ValidationRule

The different validation rules a Question can have

  • It must be answered

    Declaration

    Swift

    case required
  • The answer must match the given RegEx pattern

    Declaration

    Swift

    case pattern(pattern: NSRegularExpression, message: String)