ValidatorOutput

public enum ValidatorOutput<Value, Error: Swift.Error>

Represents a decision of a validator of a validating property made on a proposed value.

  • The proposed value is valid.

    Declaration

    Swift

    case valid
  • The proposed value is invalid, but the validator coerces it into a replacement which it deems valid.

    Declaration

    Swift

    case coerced(Value, Error?)
  • The proposed value is invalid.

    Declaration

    Swift

    case invalid(Error)