View Source ndto_validation (ndto v0.3.1)
Summary
Types
-type condition() :: {condition_fun(), condition_args()}.
-type condition_args() :: [term()].
-type t() :: true | {false, term()}.
Functions
-spec 'andalso'(Conditions) -> Result when Conditions :: [condition()], Result :: true | {false, Reason}, Reason :: {SchemaPath, Description, FailedIndex}, SchemaPath :: atom(), Description :: binary(), FailedIndex :: non_neg_integer().
-spec 'orelse'(Conditions) -> Result when Conditions :: [condition()], Result :: true | {false, Reason}, Reason :: none_matched.