# validate_auth_descriptor_rules · FT4 Rell API · Chromia Docs (concept)

> function validate_ auth_ descriptor_ rules(rules: gtv) Analyze the rules before assigning them to an auth descriptor, to check that they haven't
already ex

Source: https://docs.chromia.com/pages/ft4-rell/-f-t4-library/lib.ft4.core.accounts/validate_auth_descriptor_rules/

FUNCTION

# validate\_auth\_descriptor\_rules

```signature
function validate_auth_descriptor_rules(rules: gtv)
```

[Source](https://gitlab.com/chromaway/ft4-lib/-/blob/development/rell/src/lib/ft4/core/accounts/auth_descriptor_rule_validation.rell#lines-345)

Analyze the rules before assigning them to an auth descriptor, to check that they haven't
already expired and that the values are sensible.

Can only be called from an operation.

Throws `"INVALID RULES"` when there are more than the `max_rules` configured in the
`chromia.yml` file.

Throws `"EXPIRED"` when the rule set has expired.

Throws when `rules` is not the valid GTV representation of a rule.

**Parameters**

* **rules** — the rules to analyze

**See Also**

* [rule\_expression](https://docs.chromia.com/pages/ft4-rell/-f-t4-library/lib.ft4.core.accounts/rule_expression/) — for a definition of active and expired rules.
* [validate\_rule](https://docs.chromia.com/pages/ft4-rell/-f-t4-library/lib.ft4.core.accounts/validate_rule/) — for a definition of sensible values.
* [account\_auth\_descriptor.rules](https://docs.chromia.com/pages/ft4-rell/-f-t4-library/lib.ft4.core.accounts/account_auth_descriptor/) — for the list of valid GTV representations of rules.

[View this page on docs.chromia.com](https://docs.chromia.com/pages/ft4-rell/-f-t4%20-library/lib.ft4.core.accounts/validate_auth_descriptor_rules.html)Generated API reference, mirrored from the live docs
