View Source AshAuthentication.Validations.Attribute (ash_authentication v4.0.1)
Validation helpers for Resource attributes.
Summary
Functions
Validate that an option is set correctly on an attribute
Validate than an attribute has a unique identity applied.
Functions
@spec validate_attribute_option(Ash.Resource.Attribute.t(), module(), atom(), [any()]) :: :ok | {:error, Exception.t()}
Validate that an option is set correctly on an attribute
@spec validate_attribute_unique_constraint(map(), [atom()], module()) :: :ok | {:error, Exception.t()}
Validate than an attribute has a unique identity applied.