The result of evaluating all rules attached to a field.
Returned from AbsinthePermission.Evaluator.evaluate_pre/6 and emitted as
the metadata payload of [:absinthe_permission, :decision] telemetry
events. Useful for logging, audit trails, and tests.
Fields
:verdict—:allow | :deny | :nullify | :filter:reason— atom describing why;nilwhen allowed:permission— the permission that was checked, when relevant:field— the field identifier this decision is about:matched_rules— rules whose condition fired:loaded— map ofname => recordfor any loaded data:error_message— message to surface to the client when:verdictis:deny
Summary
Types
@type reason() ::
nil
| :missing_permission
| :condition_unmet
| :no_rules
| :load_failed
| :evaluation_error
@type verdict() :: :allow | :deny | :nullify | :filter