View Source AshAuthentication.Validations.Attribute (ash_authentication v3.11.10)

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

Link to this function

validate_attribute_option(attribute, resource, field, values)

View Source
@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

Link to this function

validate_attribute_unique_constraint(dsl_state, fields, resource)

View Source
@spec validate_attribute_unique_constraint(map(), [atom()], module()) ::
  :ok | {:error, Exception.t()}

Validate than an attribute has a unique identity applied.