ValigatorDataSource
public protocol ValigatorDataSource : AnyObject
Protocol that declares the methods for validation service data source
-
Called in the validation process to get the value from input field.
Throws
could be a ValidationServiceError or something else
Declaration
Swift
func validatableValue<InputType>(for fieldId: Int) throws -> InputType
Parameters
fieldId
identifier of the field
Return Value
value of the input field