class HaveAPI::Validators::Format

Checks that the value is or is not in specified format.

Short form:

string :param, format: /^[a-z0-9]+$/

Full form:

string :param, format: {
  rx: /^[a-z0-9]+$/,
  match: true/false,
  message: 'the error message'
}