AbstractValidatedCallback

@objc(FRAbstractValidatedCallback)
public class AbstractValidatedCallback : SingleValueCallback

Callback that accepts user input often need to validate that input either on the client side, the server side or both. Such callback should extend this base class.

Property

  • Policies as in JSON format that contains validation rules and details for the input

    Declaration

    Swift

    @objc
    public var policies: [String : Any]?
  • An array of FailedPolicy for user input validation

    Declaration

    Swift

    @objc
    public var failedPolicies: [FailedPolicy]?
  • Boolean indicator when it’s set to true, Node does not advance even if all validations are passed; only works when validation is enabled in AM’s Node

    Declaration

    Swift

    @objc
    public var validateOnly: Bool

Init

  • Declaration

    Swift

    public override func buildResponse() -> [String : Any]