stringEmpty<T> function

IValidator stringEmpty<T>()

Validate that it's a String and the string is empty

Implementation

IValidator stringEmpty<T>() =>
  stringLength([isLte(0)]) >
  Expectation(message: 'String to be empty', code: 'value.length_out_of_range', data: {'expected': 0});