Scrutinex.Checks.Inclusion (Scrutinex v0.2.0)

Copy Markdown View Source

Validates that a value is a member of an allowed list.

Summary

Functions

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

Functions

run(value, list)

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

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