Scrutinex.Checks.Exclusion (Scrutinex v0.2.0)

Copy Markdown View Source

Validates that a value is not a member of a forbidden list.

Summary

Functions

Returns :ok if value is not in list, otherwise an error.

Functions

run(value, list)

@spec run(term(), list()) :: :ok | {:error, String.t(), map()}

Returns :ok if value is not in list, otherwise an error.